Class: Pago::V2026_04::Models::CustomerBenefitGrantSlackSharedChannel
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::CustomerBenefitGrantSlackSharedChannel
- 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::BenefitSlackSharedChannelSubscriber 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::BenefitGrantSlackSharedChannelProperties 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:) ⇒ CustomerBenefitGrantSlackSharedChannel
constructor
A new instance of CustomerBenefitGrantSlackSharedChannel.
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:) ⇒ CustomerBenefitGrantSlackSharedChannel
Returns a new instance of CustomerBenefitGrantSlackSharedChannel.
16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 |
# File 'lib/pago/v2026_04/models.rb', line 16069 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::BenefitSlackSharedChannelSubscriber (readonly)
16064 16065 16066 |
# File 'lib/pago/v2026_04/models.rb', line 16064 def benefit @benefit end |
#benefit_id ⇒ String (readonly)
16043 16044 16045 |
# File 'lib/pago/v2026_04/models.rb', line 16043 def benefit_id @benefit_id end |
#created_at ⇒ String (readonly)
Creation timestamp of the object.
16020 16021 16022 |
# File 'lib/pago/v2026_04/models.rb', line 16020 def created_at @created_at end |
#customer ⇒ Models::CustomerPortalCustomer (readonly)
16061 16062 16063 |
# File 'lib/pago/v2026_04/models.rb', line 16061 def customer @customer end |
#customer_id ⇒ String (readonly)
16037 16038 16039 |
# File 'lib/pago/v2026_04/models.rb', line 16037 def customer_id @customer_id end |
#error ⇒ Models::BenefitGrantError? (readonly)
16058 16059 16060 |
# File 'lib/pago/v2026_04/models.rb', line 16058 def error @error end |
#granted_at ⇒ String? (readonly)
16031 16032 16033 |
# File 'lib/pago/v2026_04/models.rb', line 16031 def granted_at @granted_at end |
#id ⇒ String (readonly)
The ID of the object.
16028 16029 16030 |
# File 'lib/pago/v2026_04/models.rb', line 16028 def id @id end |
#is_granted ⇒ Boolean (readonly)
16052 16053 16054 |
# File 'lib/pago/v2026_04/models.rb', line 16052 def is_granted @is_granted end |
#is_revoked ⇒ Boolean (readonly)
16055 16056 16057 |
# File 'lib/pago/v2026_04/models.rb', line 16055 def is_revoked @is_revoked end |
#member_id ⇒ String? (readonly)
16040 16041 16042 |
# File 'lib/pago/v2026_04/models.rb', line 16040 def member_id @member_id end |
#modified_at ⇒ String? (readonly)
Last modification timestamp of the object.
16024 16025 16026 |
# File 'lib/pago/v2026_04/models.rb', line 16024 def modified_at @modified_at end |
#order_id ⇒ String? (readonly)
16049 16050 16051 |
# File 'lib/pago/v2026_04/models.rb', line 16049 def order_id @order_id end |
#properties ⇒ Models::BenefitGrantSlackSharedChannelProperties (readonly)
16067 16068 16069 |
# File 'lib/pago/v2026_04/models.rb', line 16067 def properties @properties end |
#revoked_at ⇒ String? (readonly)
16034 16035 16036 |
# File 'lib/pago/v2026_04/models.rb', line 16034 def revoked_at @revoked_at end |
#subscription_id ⇒ String? (readonly)
16046 16047 16048 |
# File 'lib/pago/v2026_04/models.rb', line 16046 def subscription_id @subscription_id end |
Class Method Details
.from_json(data) ⇒ CustomerBenefitGrantSlackSharedChannel?
16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 |
# File 'lib/pago/v2026_04/models.rb', line 16108 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::BenefitSlackSharedChannelSubscriber.from_json(data["benefit"]) : ::Pago::UNSET), properties: (data.key?("properties") ? Models::BenefitGrantSlackSharedChannelProperties.from_json(data["properties"]) : ::Pago::UNSET) ), data ) end |