Class: Inttegro::Checkout::PaymentMethodDataBillingDetails

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/payment_method_data_billing_details.rb

Overview

Billing details for this new payment method. They do not replace the Order customer's identity or the Order's shipping address.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#address ⇒ Inttegro::Checkout::PaymentAddress (readonly)

Value of the address field in the Inttegro API payload.

Required in the API payload. Wire name: address.



37
38
39
40
41
# File 'lib/inttegro/checkout/payment_method_data_billing_details.rb', line 37

class PaymentMethodDataBillingDetails < T::Struct
  const :name, String
  const :phone_number, T.nilable(String), default: nil
  const :address, Inttegro::Checkout::PaymentAddress
end

#name ⇒ String (readonly)

Name of the payer associated with the new payment method.

Required in the API payload. Wire name: name.

Returns:

  • (String)


37
38
39
40
41
# File 'lib/inttegro/checkout/payment_method_data_billing_details.rb', line 37

class PaymentMethodDataBillingDetails < T::Struct
  const :name, String
  const :phone_number, T.nilable(String), default: nil
  const :address, Inttegro::Checkout::PaymentAddress
end

#phone_number ⇒ String? (readonly)

Phone number associated with the new payment method.

Optional in the API payload; omitted values default to nil. Wire name: phone_number.

Returns:

  • (String, nil)


37
38
39
40
41
# File 'lib/inttegro/checkout/payment_method_data_billing_details.rb', line 37

class PaymentMethodDataBillingDetails < T::Struct
  const :name, String
  const :phone_number, T.nilable(String), default: nil
  const :address, Inttegro::Checkout::PaymentAddress
end