Class: Google::Apis::ContentV2::OrderPaymentMethod
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::OrderPaymentMethod
 
 
- Defined in:
 - generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #billing_address  ⇒ Google::Apis::ContentV2::OrderAddress 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The billing address.
 - 
  
    
      #expiration_month  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The card expiration month (January = 1, February = 2 etc.).
 - 
  
    
      #expiration_year  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The card expiration year (4-digit, e.g. 2015).
 - 
  
    
      #last_four_digits  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The last four digits of the card number.
 - 
  
    
      #phone_number  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The billing phone number.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of instrument.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ OrderPaymentMethod 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of OrderPaymentMethod.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderPaymentMethod
Returns a new instance of OrderPaymentMethod
      4455 4456 4457  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4455 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#billing_address ⇒ Google::Apis::ContentV2::OrderAddress
The billing address.
Corresponds to the JSON property billingAddress
      4420 4421 4422  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4420 def billing_address @billing_address end  | 
  
#expiration_month ⇒ Fixnum
The card expiration month (January = 1, February = 2 etc.).
Corresponds to the JSON property expirationMonth
      4425 4426 4427  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4425 def expiration_month @expiration_month end  | 
  
#expiration_year ⇒ Fixnum
The card expiration year (4-digit, e.g. 2015).
Corresponds to the JSON property expirationYear
      4430 4431 4432  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4430 def expiration_year @expiration_year end  | 
  
#last_four_digits ⇒ String
The last four digits of the card number.
Corresponds to the JSON property lastFourDigits
      4435 4436 4437  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4435 def last_four_digits @last_four_digits end  | 
  
#phone_number ⇒ String
The billing phone number.
Corresponds to the JSON property phoneNumber
      4440 4441 4442  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4440 def phone_number @phone_number end  | 
  
#type ⇒ String
The type of instrument. Acceptable values are:
- "AMEX"
 - "DISCOVER"
 - "JCB"
 - "MASTERCARD"
 - "UNIONPAY"
 - "VISA"
 - ""
Corresponds to the JSON property 
type 
      4453 4454 4455  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4453 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4460 4461 4462 4463 4464 4465 4466 4467  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 4460 def update!(**args) @billing_address = args[:billing_address] if args.key?(:billing_address) @expiration_month = args[:expiration_month] if args.key?(:expiration_month) @expiration_year = args[:expiration_year] if args.key?(:expiration_year) @last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits) @phone_number = args[:phone_number] if args.key?(:phone_number) @type = args[:type] if args.key?(:type) end  |