Class: Inttegro::PaymentMethod::BillingDetailsInput

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payment_method/billing_details_input.rb

Overview

Typed representation of the billing details input object in the Inttegro API.

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::PaymentMethod::AddressInput (readonly)

Value of the address field in the Inttegro API payload.

Required in the API payload. Wire name: address.



36
37
38
39
40
# File 'lib/inttegro/payment_method/billing_details_input.rb', line 36

class BillingDetailsInput < T::Struct
  const :name, String
  const :phone_number, T.nilable(String), default: nil
  const :address, Inttegro::PaymentMethod::AddressInput
end

#name ⇒ String (readonly)

Value of the name field in the Inttegro API payload.

Required in the API payload. Wire name: name.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/payment_method/billing_details_input.rb', line 36

class BillingDetailsInput < T::Struct
  const :name, String
  const :phone_number, T.nilable(String), default: nil
  const :address, Inttegro::PaymentMethod::AddressInput
end

#phone_number ⇒ String? (readonly)

Value of the phone_number field in the Inttegro API payload.

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

Returns:

  • (String, nil)


36
37
38
39
40
# File 'lib/inttegro/payment_method/billing_details_input.rb', line 36

class BillingDetailsInput < T::Struct
  const :name, String
  const :phone_number, T.nilable(String), default: nil
  const :address, Inttegro::PaymentMethod::AddressInput
end