Class: Inttegro::Customer::Data

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/customer/data.rb

Overview

Typed representation of the data 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

#custom_data ⇒ Inttegro::CustomDataInput? (readonly)

Merchant-defined values accepted on resource creation. Values are serialized to strings before storage.

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

Returns:



43
44
45
46
47
48
# File 'lib/inttegro/customer/data.rb', line 43

class Data < T::Struct
  const :name, T.nilable(String), default: nil
  const :email_address, T.nilable(String), default: nil
  const :phone_number, T.nilable(String), default: nil
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
end

#email_address ⇒ String? (readonly)

Customer's email address

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

Returns:

  • (String, nil)


43
44
45
46
47
48
# File 'lib/inttegro/customer/data.rb', line 43

class Data < T::Struct
  const :name, T.nilable(String), default: nil
  const :email_address, T.nilable(String), default: nil
  const :phone_number, T.nilable(String), default: nil
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
end

#name ⇒ String? (readonly)

Customer's full name

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

Returns:

  • (String, nil)


43
44
45
46
47
48
# File 'lib/inttegro/customer/data.rb', line 43

class Data < T::Struct
  const :name, T.nilable(String), default: nil
  const :email_address, T.nilable(String), default: nil
  const :phone_number, T.nilable(String), default: nil
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
end

#phone_number ⇒ String? (readonly)

Customer's phone number

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

Returns:

  • (String, nil)


43
44
45
46
47
48
# File 'lib/inttegro/customer/data.rb', line 43

class Data < T::Struct
  const :name, T.nilable(String), default: nil
  const :email_address, T.nilable(String), default: nil
  const :phone_number, T.nilable(String), default: nil
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
end