Class: Inttegro::Shared::BillingDetails

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/shared/billing_details.rb

Overview

Typed representation of the billing details 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::Shared::Address? (readonly)

Value of the address field in the Inttegro API payload.

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

Returns:



42
43
44
45
46
47
# File 'lib/inttegro/shared/billing_details.rb', line 42

class BillingDetails < T::Struct
  const :name, String
  const :email_address, String
  const :phone_number, String
  const :address, T.nilable(Inttegro::Shared::Address), default: nil
end

#email_address ⇒ String (readonly)

Billing email address

Required in the API payload. Wire name: email_address.

Returns:

  • (String)


42
43
44
45
46
47
# File 'lib/inttegro/shared/billing_details.rb', line 42

class BillingDetails < T::Struct
  const :name, String
  const :email_address, String
  const :phone_number, String
  const :address, T.nilable(Inttegro::Shared::Address), default: nil
end

#name ⇒ String (readonly)

Billing contact name

Required in the API payload. Wire name: name.

Returns:

  • (String)


42
43
44
45
46
47
# File 'lib/inttegro/shared/billing_details.rb', line 42

class BillingDetails < T::Struct
  const :name, String
  const :email_address, String
  const :phone_number, String
  const :address, T.nilable(Inttegro::Shared::Address), default: nil
end

#phone_number ⇒ String (readonly)

Billing phone number

Required in the API payload. Wire name: phone_number.

Returns:

  • (String)


42
43
44
45
46
47
# File 'lib/inttegro/shared/billing_details.rb', line 42

class BillingDetails < T::Struct
  const :name, String
  const :email_address, String
  const :phone_number, String
  const :address, T.nilable(Inttegro::Shared::Address), default: nil
end