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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderPaymentMethod

Returns a new instance of OrderPaymentMethod.



4770
4771
4772
# File 'lib/google/apis/content_v2/classes.rb', line 4770

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

Instance Attribute Details

#billing_addressGoogle::Apis::ContentV2::OrderAddress

The billing address. Corresponds to the JSON property billingAddress



4742
4743
4744
# File 'lib/google/apis/content_v2/classes.rb', line 4742

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)


4747
4748
4749
# File 'lib/google/apis/content_v2/classes.rb', line 4747

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)


4752
4753
4754
# File 'lib/google/apis/content_v2/classes.rb', line 4752

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)


4757
4758
4759
# File 'lib/google/apis/content_v2/classes.rb', line 4757

def last_four_digits
  @last_four_digits
end

#phone_numberString

The billing phone number. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


4762
4763
4764
# File 'lib/google/apis/content_v2/classes.rb', line 4762

def phone_number
  @phone_number
end

#typeString

The type of instrument. Acceptable values are: - "AMEX" - "DISCOVER" - " JCB" - "MASTERCARD" - "UNIONPAY" - "VISA" - "`" Corresponds to the JSON propertytype`

Returns:

  • (String)


4768
4769
4770
# File 'lib/google/apis/content_v2/classes.rb', line 4768

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4775
4776
4777
4778
4779
4780
4781
4782
# File 'lib/google/apis/content_v2/classes.rb', line 4775

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