Class: Google::Apis::ContentV2::OrderPaymentMethod

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderPaymentMethod

Returns a new instance of OrderPaymentMethod



3068
3069
3070
# File 'generated/google/apis/content_v2/classes.rb', line 3068

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#billing_addressGoogle::Apis::ContentV2::OrderAddress

The billing address. Corresponds to the JSON property billingAddress



3033
3034
3035
# File 'generated/google/apis/content_v2/classes.rb', line 3033

def billing_address
  @billing_address
end

#expiration_monthFixnum

The card expiration month (January = 1, February = 2 etc.). Corresponds to the JSON property expirationMonth

Returns:

  • (Fixnum)


3038
3039
3040
# File 'generated/google/apis/content_v2/classes.rb', line 3038

def expiration_month
  @expiration_month
end

#expiration_yearFixnum

The card expiration year (4-digit, e.g. 2015). Corresponds to the JSON property expirationYear

Returns:

  • (Fixnum)


3043
3044
3045
# File 'generated/google/apis/content_v2/classes.rb', line 3043

def expiration_year
  @expiration_year
end

#last_four_digitsString

The last four digits of the card number. Corresponds to the JSON property lastFourDigits

Returns:

  • (String)


3048
3049
3050
# File 'generated/google/apis/content_v2/classes.rb', line 3048

def last_four_digits
  @last_four_digits
end

#phone_numberString

The billing phone number. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


3053
3054
3055
# File 'generated/google/apis/content_v2/classes.rb', line 3053

def phone_number
  @phone_number
end

#typeString

The type of instrument. Acceptable values are:

  • "AMEX"
  • "DISCOVER"
  • "JCB"
  • "MASTERCARD"
  • "UNIONPAY"
  • "VISA"
  • "" Corresponds to the JSON property type

Returns:

  • (String)


3066
3067
3068
# File 'generated/google/apis/content_v2/classes.rb', line 3066

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3073
3074
3075
3076
3077
3078
3079
3080
# File 'generated/google/apis/content_v2/classes.rb', line 3073

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