class Google::Apis::ContentV2::TestOrderPaymentMethod

Attributes

expiration_month[RW]

The card expiration month (January = 1, February = 2 etc.). Corresponds to the JSON property `expirationMonth` @return [Fixnum]

expiration_year[RW]

The card expiration year (4-digit, e.g. 2015). Corresponds to the JSON property `expirationYear` @return [Fixnum]

last_four_digits[RW]

The last four digits of the card number. Corresponds to the JSON property `lastFourDigits` @return [String]

predefined_billing_address[RW]

The billing address. Acceptable values are: - “`dwight`” - “`jim`” - “`pam`” Corresponds to the JSON property `predefinedBillingAddress` @return [String]

type[RW]

The type of instrument. Note that real orders might have different values than the four values accepted by `createTestOrder`. Acceptable values are: - “`AMEX` ” - “`DISCOVER`” - “`MASTERCARD`” - “`VISA`” Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 11275
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 11280
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