Class: Pago::V2026_04::Models::CustomerUpdateExternalID
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ metadata: "metadata", email: "email", name: "name", billing_address: "billing_address", tax_id: "tax_id", locale: "locale" }.freeze
- REQUIRED_KEYS =
[].freeze
Instance Attribute Summary collapse
- #billing_address ⇒ Models::AddressInput? readonly
-
#email ⇒ String?
readonly
The email address of the customer.
- #locale ⇒ String? readonly
-
#metadata ⇒ Hash{String => String, Integer, Float, Boolean}
readonly
Key-value object allowing you to store additional information.
- #name ⇒ String? readonly
- #tax_id ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: ::Pago::UNSET, email: ::Pago::UNSET, name: ::Pago::UNSET, billing_address: ::Pago::UNSET, tax_id: ::Pago::UNSET, locale: ::Pago::UNSET) ⇒ CustomerUpdateExternalID
constructor
A new instance of CustomerUpdateExternalID.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(metadata: ::Pago::UNSET, email: ::Pago::UNSET, name: ::Pago::UNSET, billing_address: ::Pago::UNSET, tax_id: ::Pago::UNSET, locale: ::Pago::UNSET) ⇒ CustomerUpdateExternalID
Returns a new instance of CustomerUpdateExternalID.
21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 |
# File 'lib/pago/v2026_04/models.rb', line 21974 def initialize( metadata: ::Pago::UNSET, email: ::Pago::UNSET, name: ::Pago::UNSET, billing_address: ::Pago::UNSET, tax_id: ::Pago::UNSET, locale: ::Pago::UNSET ) super() assign(:metadata, ) assign(:email, email) assign(:name, name) assign(:billing_address, billing_address) assign(:tax_id, tax_id) assign(:locale, locale) end |
Instance Attribute Details
#billing_address ⇒ Models::AddressInput? (readonly)
21966 21967 21968 |
# File 'lib/pago/v2026_04/models.rb', line 21966 def billing_address @billing_address end |
#email ⇒ String? (readonly)
The email address of the customer. This must be unique within the organization.
21960 21961 21962 |
# File 'lib/pago/v2026_04/models.rb', line 21960 def email @email end |
#locale ⇒ String? (readonly)
21972 21973 21974 |
# File 'lib/pago/v2026_04/models.rb', line 21972 def locale @locale end |
#metadata ⇒ Hash{String => String, Integer, Float, Boolean} (readonly)
Key-value object allowing you to store additional information.
The key must be a string with a maximum length of 40 characters. The value must be either:
- A string with a maximum length of 500 characters
- An integer
- A floating-point number
- A boolean
You can store up to 50 key-value pairs.
21956 21957 21958 |
# File 'lib/pago/v2026_04/models.rb', line 21956 def @metadata end |
#name ⇒ String? (readonly)
21963 21964 21965 |
# File 'lib/pago/v2026_04/models.rb', line 21963 def name @name end |
#tax_id ⇒ String? (readonly)
21969 21970 21971 |
# File 'lib/pago/v2026_04/models.rb', line 21969 def tax_id @tax_id end |
Class Method Details
.from_json(data) ⇒ CustomerUpdateExternalID?
21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 |
# File 'lib/pago/v2026_04/models.rb', line 21993 def self.from_json(data) data = ::JSON.parse(data) if data.is_a?(String) data = ::Pago::Serde.object(data) return nil if data.nil? wrap_raw( new( metadata: (data.key?("metadata") ? data["metadata"] : ::Pago::UNSET), email: (data.key?("email") ? data["email"] : ::Pago::UNSET), name: (data.key?("name") ? data["name"] : ::Pago::UNSET), billing_address: (data.key?("billing_address") ? Models::AddressInput.from_json(data["billing_address"]) : ::Pago::UNSET), tax_id: (data.key?("tax_id") ? data["tax_id"] : ::Pago::UNSET), locale: (data.key?("locale") ? data["locale"] : ::Pago::UNSET) ), data ) end |