Class: Pago::V2026_04::Models::CustomerBenefitGrantLicenseKeys
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ created_at: "created_at", modified_at: "modified_at", id: "id", granted_at: "granted_at", revoked_at: "revoked_at", customer_id: "customer_id", member_id: "member_id", benefit_id: "benefit_id", subscription_id: "subscription_id", order_id: "order_id", is_granted: "is_granted", is_revoked: "is_revoked", error: "error", customer: "customer", benefit: "benefit", properties: "properties" }.freeze
- REQUIRED_KEYS =
["created_at", "modified_at", "id", "granted_at", "revoked_at", "customer_id", "benefit_id", "subscription_id", "order_id", "is_granted", "is_revoked", "customer", "benefit", "properties"].freeze
Instance Attribute Summary collapse
- #benefit ⇒ Models::BenefitLicenseKeysSubscriber readonly
- #benefit_id ⇒ String readonly
-
#created_at ⇒ String
readonly
Creation timestamp of the object.
- #customer ⇒ Models::CustomerPortalCustomer readonly
- #customer_id ⇒ String readonly
- #error ⇒ Models::BenefitGrantError? readonly
- #granted_at ⇒ String? readonly
-
#id ⇒ String
readonly
The ID of the object.
- #is_granted ⇒ Boolean readonly
- #is_revoked ⇒ Boolean readonly
- #member_id ⇒ String? readonly
-
#modified_at ⇒ String?
readonly
Last modification timestamp of the object.
- #order_id ⇒ String? readonly
- #properties ⇒ Models::BenefitGrantLicenseKeysProperties readonly
- #revoked_at ⇒ String? readonly
- #subscription_id ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(created_at:, modified_at:, id:, granted_at:, revoked_at:, customer_id:, member_id: ::Pago::UNSET, benefit_id:, subscription_id:, order_id:, is_granted:, is_revoked:, error: ::Pago::UNSET, customer:, benefit:, properties:) ⇒ CustomerBenefitGrantLicenseKeys
constructor
A new instance of CustomerBenefitGrantLicenseKeys.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(created_at:, modified_at:, id:, granted_at:, revoked_at:, customer_id:, member_id: ::Pago::UNSET, benefit_id:, subscription_id:, order_id:, is_granted:, is_revoked:, error: ::Pago::UNSET, customer:, benefit:, properties:) ⇒ CustomerBenefitGrantLicenseKeys
Returns a new instance of CustomerBenefitGrantLicenseKeys.
15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 |
# File 'lib/pago/v2026_04/models.rb', line 15725 def initialize( created_at:, modified_at:, id:, granted_at:, revoked_at:, customer_id:, member_id: ::Pago::UNSET, benefit_id:, subscription_id:, order_id:, is_granted:, is_revoked:, error: ::Pago::UNSET, customer:, benefit:, properties: ) super() assign(:created_at, created_at) assign(:modified_at, modified_at) assign(:id, id) assign(:granted_at, granted_at) assign(:revoked_at, revoked_at) assign(:customer_id, customer_id) assign(:member_id, member_id) assign(:benefit_id, benefit_id) assign(:subscription_id, subscription_id) assign(:order_id, order_id) assign(:is_granted, is_granted) assign(:is_revoked, is_revoked) assign(:error, error) assign(:customer, customer) assign(:benefit, benefit) assign(:properties, properties) end |
Instance Attribute Details
#benefit ⇒ Models::BenefitLicenseKeysSubscriber (readonly)
15720 15721 15722 |
# File 'lib/pago/v2026_04/models.rb', line 15720 def benefit @benefit end |
#benefit_id ⇒ String (readonly)
15699 15700 15701 |
# File 'lib/pago/v2026_04/models.rb', line 15699 def benefit_id @benefit_id end |
#created_at ⇒ String (readonly)
Creation timestamp of the object.
15676 15677 15678 |
# File 'lib/pago/v2026_04/models.rb', line 15676 def created_at @created_at end |
#customer ⇒ Models::CustomerPortalCustomer (readonly)
15717 15718 15719 |
# File 'lib/pago/v2026_04/models.rb', line 15717 def customer @customer end |
#customer_id ⇒ String (readonly)
15693 15694 15695 |
# File 'lib/pago/v2026_04/models.rb', line 15693 def customer_id @customer_id end |
#error ⇒ Models::BenefitGrantError? (readonly)
15714 15715 15716 |
# File 'lib/pago/v2026_04/models.rb', line 15714 def error @error end |
#granted_at ⇒ String? (readonly)
15687 15688 15689 |
# File 'lib/pago/v2026_04/models.rb', line 15687 def granted_at @granted_at end |
#id ⇒ String (readonly)
The ID of the object.
15684 15685 15686 |
# File 'lib/pago/v2026_04/models.rb', line 15684 def id @id end |
#is_granted ⇒ Boolean (readonly)
15708 15709 15710 |
# File 'lib/pago/v2026_04/models.rb', line 15708 def is_granted @is_granted end |
#is_revoked ⇒ Boolean (readonly)
15711 15712 15713 |
# File 'lib/pago/v2026_04/models.rb', line 15711 def is_revoked @is_revoked end |
#member_id ⇒ String? (readonly)
15696 15697 15698 |
# File 'lib/pago/v2026_04/models.rb', line 15696 def member_id @member_id end |
#modified_at ⇒ String? (readonly)
Last modification timestamp of the object.
15680 15681 15682 |
# File 'lib/pago/v2026_04/models.rb', line 15680 def modified_at @modified_at end |
#order_id ⇒ String? (readonly)
15705 15706 15707 |
# File 'lib/pago/v2026_04/models.rb', line 15705 def order_id @order_id end |
#properties ⇒ Models::BenefitGrantLicenseKeysProperties (readonly)
15723 15724 15725 |
# File 'lib/pago/v2026_04/models.rb', line 15723 def properties @properties end |
#revoked_at ⇒ String? (readonly)
15690 15691 15692 |
# File 'lib/pago/v2026_04/models.rb', line 15690 def revoked_at @revoked_at end |
#subscription_id ⇒ String? (readonly)
15702 15703 15704 |
# File 'lib/pago/v2026_04/models.rb', line 15702 def subscription_id @subscription_id end |
Class Method Details
.from_json(data) ⇒ CustomerBenefitGrantLicenseKeys?
15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 |
# File 'lib/pago/v2026_04/models.rb', line 15764 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( created_at: (data.key?("created_at") ? data["created_at"] : ::Pago::UNSET), modified_at: (data.key?("modified_at") ? data["modified_at"] : ::Pago::UNSET), id: (data.key?("id") ? data["id"] : ::Pago::UNSET), granted_at: (data.key?("granted_at") ? data["granted_at"] : ::Pago::UNSET), revoked_at: (data.key?("revoked_at") ? data["revoked_at"] : ::Pago::UNSET), customer_id: (data.key?("customer_id") ? data["customer_id"] : ::Pago::UNSET), member_id: (data.key?("member_id") ? data["member_id"] : ::Pago::UNSET), benefit_id: (data.key?("benefit_id") ? data["benefit_id"] : ::Pago::UNSET), subscription_id: (data.key?("subscription_id") ? data["subscription_id"] : ::Pago::UNSET), order_id: (data.key?("order_id") ? data["order_id"] : ::Pago::UNSET), is_granted: (data.key?("is_granted") ? data["is_granted"] : ::Pago::UNSET), is_revoked: (data.key?("is_revoked") ? data["is_revoked"] : ::Pago::UNSET), error: (data.key?("error") ? Models::BenefitGrantError.from_json(data["error"]) : ::Pago::UNSET), customer: (data.key?("customer") ? Models::CustomerPortalCustomer.from_json(data["customer"]) : ::Pago::UNSET), benefit: (data.key?("benefit") ? Models::BenefitLicenseKeysSubscriber.from_json(data["benefit"]) : ::Pago::UNSET), properties: (data.key?("properties") ? Models::BenefitGrantLicenseKeysProperties.from_json(data["properties"]) : ::Pago::UNSET) ), data ) end |