Class: Pago::V2026_04::Models::CustomerBenefitGrantDiscordPropertiesUpdate
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::CustomerBenefitGrantDiscordPropertiesUpdate
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ account_id: "account_id" }.freeze
- REQUIRED_KEYS =
["account_id"].freeze
Instance Attribute Summary collapse
- #account_id ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:) ⇒ CustomerBenefitGrantDiscordPropertiesUpdate
constructor
A new instance of CustomerBenefitGrantDiscordPropertiesUpdate.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(account_id:) ⇒ CustomerBenefitGrantDiscordPropertiesUpdate
Returns a new instance of CustomerBenefitGrantDiscordPropertiesUpdate.
15036 15037 15038 15039 15040 15041 |
# File 'lib/pago/v2026_04/models.rb', line 15036 def initialize( account_id: ) super() assign(:account_id, account_id) end |
Instance Attribute Details
#account_id ⇒ String? (readonly)
15034 15035 15036 |
# File 'lib/pago/v2026_04/models.rb', line 15034 def account_id @account_id end |
Class Method Details
.from_json(data) ⇒ CustomerBenefitGrantDiscordPropertiesUpdate?
15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 |
# File 'lib/pago/v2026_04/models.rb', line 15045 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( account_id: (data.key?("account_id") ? data["account_id"] : ::Pago::UNSET) ), data ) end |