class Google::Apis::ContentV2::OrderPaymentMethod

Attributes

billing_address[RW]

The billing address. Corresponds to the JSON property `billingAddress` @return [Google::Apis::ContentV2::OrderAddress]

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]

phone_number[RW]

The billing phone number. Corresponds to the JSON property `phoneNumber` @return [String]

type[RW]

The type of instrument (VISA, Mastercard, etc). Corresponds to the JSON property `type` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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