Class: Pago::V2026_04::Models::MemberOwnerCreate
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Overview
Schema for creating an owner member during customer creation.
Constant Summary collapse
- JSON_KEYS =
{ email: "email", name: "name", external_id: "external_id" }.freeze
- REQUIRED_KEYS =
["email"].freeze
Instance Attribute Summary collapse
-
#email ⇒ String
readonly
The email address of the member.
-
#external_id ⇒ String?
readonly
The ID of the member in your system.
- #name ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(email:, name: ::Pago::UNSET, external_id: ::Pago::UNSET) ⇒ MemberOwnerCreate
constructor
A new instance of MemberOwnerCreate.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(email:, name: ::Pago::UNSET, external_id: ::Pago::UNSET) ⇒ MemberOwnerCreate
Returns a new instance of MemberOwnerCreate.
28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 |
# File 'lib/pago/v2026_04/models.rb', line 28928 def initialize( email:, name: ::Pago::UNSET, external_id: ::Pago::UNSET ) super() assign(:email, email) assign(:name, name) assign(:external_id, external_id) end |
Instance Attribute Details
#email ⇒ String (readonly)
The email address of the member.
28919 28920 28921 |
# File 'lib/pago/v2026_04/models.rb', line 28919 def email @email end |
#external_id ⇒ String? (readonly)
The ID of the member in your system. This must be unique within the customer.
28926 28927 28928 |
# File 'lib/pago/v2026_04/models.rb', line 28926 def external_id @external_id end |
#name ⇒ String? (readonly)
28922 28923 28924 |
# File 'lib/pago/v2026_04/models.rb', line 28922 def name @name end |
Class Method Details
.from_json(data) ⇒ MemberOwnerCreate?
28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 |
# File 'lib/pago/v2026_04/models.rb', line 28941 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( email: (data.key?("email") ? data["email"] : ::Pago::UNSET), name: (data.key?("name") ? data["name"] : ::Pago::UNSET), external_id: (data.key?("external_id") ? data["external_id"] : ::Pago::UNSET) ), data ) end |