Class: Pago::V2026_04::Models::BenefitLicenseKeyActivationCreateProperties
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::BenefitLicenseKeyActivationCreateProperties
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
limit: "limit",
enable_customer_admin: "enable_customer_admin"
}.freeze
- REQUIRED_KEYS =
["limit", "enable_customer_admin"].freeze
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
Returns a new instance of BenefitLicenseKeyActivationCreateProperties.
6658
6659
6660
6661
6662
6663
6664
6665
|
# File 'lib/pago/v2026_04/models.rb', line 6658
def initialize(
limit:,
enable_customer_admin:
)
super()
assign(:limit, limit)
assign(:enable_customer_admin, enable_customer_admin)
end
|
Instance Attribute Details
#enable_customer_admin ⇒ Boolean
6656
6657
6658
|
# File 'lib/pago/v2026_04/models.rb', line 6656
def enable_customer_admin
@enable_customer_admin
end
|
#limit ⇒ Integer
6653
6654
6655
|
# File 'lib/pago/v2026_04/models.rb', line 6653
def limit
@limit
end
|
Class Method Details
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
|
# File 'lib/pago/v2026_04/models.rb', line 6669
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(
limit: (data.key?("limit") ? data["limit"] : ::Pago::UNSET),
enable_customer_admin: (data.key?("enable_customer_admin") ? data["enable_customer_admin"] : ::Pago::UNSET)
),
data
)
end
|