Class: Google::Apis::ContentV2::TestOrderPaymentMethod
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::TestOrderPaymentMethod
 
- 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
- 
  
    
      #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. 
- 
  
    
      #predefined_billing_address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The billing address. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of instrument. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TestOrderPaymentMethod 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TestOrderPaymentMethod. 
- 
  
    
      #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) ⇒ TestOrderPaymentMethod
Returns a new instance of TestOrderPaymentMethod
| 8899 8900 8901 | # File 'generated/google/apis/content_v2/classes.rb', line 8899 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#expiration_month ⇒ Fixnum
The card expiration month (January = 1, February = 2 etc.).
Corresponds to the JSON property expirationMonth
| 8876 8877 8878 | # File 'generated/google/apis/content_v2/classes.rb', line 8876 def expiration_month @expiration_month end | 
#expiration_year ⇒ Fixnum
The card expiration year (4-digit, e.g. 2015).
Corresponds to the JSON property expirationYear
| 8881 8882 8883 | # File 'generated/google/apis/content_v2/classes.rb', line 8881 def expiration_year @expiration_year end | 
#last_four_digits ⇒ String
The last four digits of the card number.
Corresponds to the JSON property lastFourDigits
| 8886 8887 8888 | # File 'generated/google/apis/content_v2/classes.rb', line 8886 def last_four_digits @last_four_digits end | 
#predefined_billing_address ⇒ String
The billing address.
Corresponds to the JSON property predefinedBillingAddress
| 8891 8892 8893 | # File 'generated/google/apis/content_v2/classes.rb', line 8891 def predefined_billing_address @predefined_billing_address end | 
#type ⇒ String
The type of instrument. Note that real orders might have different values than
the four values accepted by createTestOrder.
Corresponds to the JSON property type
| 8897 8898 8899 | # File 'generated/google/apis/content_v2/classes.rb', line 8897 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 8904 8905 8906 8907 8908 8909 8910 | # File 'generated/google/apis/content_v2/classes.rb', line 8904 def update!(**args) @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) @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address) @type = args[:type] if args.key?(:type) end |