Class: Dodopayments::Models::CustomerListEntitlementsResponse::Item
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/dodopayments/models/customer_list_entitlements_response.rb,
sig/dodopayments/models/customer_list_entitlements_response.rbs
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(created_at:, entitlement_id:, entitlement_name:, grant_id:, integration_type:, status:, updated_at:, delivered_at: nil, entitlement_description: nil, revoked_at: nil) ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 16
class Item < Dodopayments::Internal::Type::BaseModel
required :created_at, Time
required :entitlement_id, String
required :entitlement_name, String
required :grant_id, String
required :integration_type, enum: -> { Dodopayments::EntitlementIntegrationType }
required :status, enum: -> { Dodopayments::Models::CustomerListEntitlementsResponse::Item::Status }
required :updated_at, Time
optional :delivered_at, Time, nil?: true
optional :entitlement_description, String, nil?: true
optional :revoked_at, Time, nil?: true
module Status
extend Dodopayments::Internal::Type::Enum
PENDING = :pending
DELIVERED = :delivered
FAILED = :failed
REVOKED = :revoked
end
end
|
Instance Attribute Details
#created_at ⇒ Time
20
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 20
required :created_at, Time
|
#delivered_at ⇒ Time?
57
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 57
optional :delivered_at, Time, nil?: true
|
#entitlement_description ⇒ String?
62
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 62
optional :entitlement_description, String, nil?: true
|
#entitlement_id ⇒ String
The entitlement this grant belongs to.
26
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 26
required :entitlement_id, String
|
#entitlement_name ⇒ String
31
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 31
required :entitlement_name, String
|
#grant_id ⇒ String
Grant id (the per-customer row in entitlement_grants).
37
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 37
required :grant_id, String
|
42
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 42
required :integration_type, enum: -> { Dodopayments::EntitlementIntegrationType }
|
#revoked_at ⇒ Time?
67
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 67
optional :revoked_at, Time, nil?: true
|
47
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 47
required :status, enum: -> { Dodopayments::Models::CustomerListEntitlementsResponse::Item::Status }
|
#updated_at ⇒ Time
52
|
# File 'lib/dodopayments/models/customer_list_entitlements_response.rb', line 52
required :updated_at, Time
|
Instance Method Details
#to_hash ⇒ {
67
|
# File 'sig/dodopayments/models/customer_list_entitlements_response.rbs', line 67
def to_hash: -> {
|