Class: Pago::V2026_04::Models::BenefitLicenseKeyActivationProperties
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::BenefitLicenseKeyActivationProperties
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 BenefitLicenseKeyActivationProperties.
6697
6698
6699
6700
6701
6702
6703
6704
|
# File 'lib/pago/v2026_04/models.rb', line 6697
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
6695
6696
6697
|
# File 'lib/pago/v2026_04/models.rb', line 6695
def enable_customer_admin
@enable_customer_admin
end
|
#limit ⇒ Integer
6692
6693
6694
|
# File 'lib/pago/v2026_04/models.rb', line 6692
def limit
@limit
end
|
Class Method Details
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
|
# File 'lib/pago/v2026_04/models.rb', line 6708
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
|