stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +29 -1
  4. data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
  5. data/lib/stigg/internal/type/base_model.rb +2 -2
  6. data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +31 -26
  7. data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
  8. data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
  9. data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
  10. data/lib/stigg/models/v1/customer_import_params.rb +75 -0
  11. data/lib/stigg/models/v1/customer_import_response.rb +35 -0
  12. data/lib/stigg/models/v1/customer_list_params.rb +14 -14
  13. data/lib/stigg/models/v1/customer_list_response.rb +160 -174
  14. data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +18 -16
  15. data/lib/stigg/models/v1/customer_response.rb +9 -2
  16. data/lib/stigg/models/v1/customer_update_params.rb +2 -0
  17. data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
  18. data/lib/stigg/models/v1/customers/{promotional_create_params.rb → promotional_entitlement_grant_params.rb} +46 -44
  19. data/lib/stigg/models/v1/customers/{promotional_create_response.rb → promotional_entitlement_grant_response.rb} +105 -32
  20. data/lib/stigg/models/v1/customers/{promotional_revoke_params.rb → promotional_entitlement_revoke_params.rb} +2 -2
  21. data/lib/stigg/models/v1/customers/{promotional_revoke_response.rb → promotional_entitlement_revoke_response.rb} +107 -33
  22. data/lib/stigg/models/v1/event_report_params.rb +91 -0
  23. data/lib/stigg/models/v1/event_report_response.rb +25 -0
  24. data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +67 -26
  25. data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
  26. data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
  27. data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
  28. data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
  29. data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
  30. data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
  31. data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
  32. data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
  33. data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
  34. data/lib/stigg/models/v1/subscription_provision_params.rb +1693 -0
  35. data/lib/stigg/models/v1/subscription_provision_response.rb +1038 -0
  36. data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
  37. data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
  38. data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +9 -5
  39. data/lib/stigg/models/v1/usage_history_params.rb +54 -0
  40. data/lib/stigg/models/v1/usage_history_response.rb +155 -0
  41. data/lib/stigg/models/v1/usage_report_params.rb +114 -0
  42. data/lib/stigg/models/v1/usage_report_response.rb +120 -0
  43. data/lib/stigg/models.rb +0 -4
  44. data/lib/stigg/resources/v1/coupons.rb +16 -14
  45. data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
  46. data/lib/stigg/resources/v1/customers/{promotional.rb → promotional_entitlements.rb} +17 -17
  47. data/lib/stigg/resources/v1/customers.rb +78 -56
  48. data/lib/stigg/resources/v1/events.rb +38 -0
  49. data/lib/stigg/resources/v1/subscriptions/future_update.rb +10 -8
  50. data/lib/stigg/resources/v1/subscriptions.rb +206 -79
  51. data/lib/stigg/resources/v1/usage.rb +79 -0
  52. data/lib/stigg/resources/v1.rb +6 -42
  53. data/lib/stigg/version.rb +1 -1
  54. data/lib/stigg.rb +25 -23
  55. data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
  56. data/rbi/stigg/models/v1/coupon.rbi +891 -0
  57. data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
  58. data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
  59. data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
  60. data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
  61. data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
  62. data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
  63. data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
  64. data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +36 -35
  65. data/rbi/stigg/models/v1/customer_response.rbi +8 -1
  66. data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
  67. data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
  68. data/rbi/stigg/models/v1/customers/{promotional_create_params.rbi → promotional_entitlement_grant_params.rbi} +78 -77
  69. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
  70. data/rbi/stigg/models/v1/customers/{promotional_revoke_params.rbi → promotional_entitlement_revoke_params.rbi} +2 -2
  71. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
  72. data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
  73. data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
  74. data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +130 -98
  75. data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
  76. data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
  77. data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
  78. data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
  79. data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
  80. data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
  81. data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
  82. data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
  83. data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
  84. data/rbi/stigg/models/v1/subscription_provision_params.rbi +5306 -0
  85. data/rbi/stigg/models/v1/subscription_provision_response.rbi +3175 -0
  86. data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
  87. data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
  88. data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +10 -16
  89. data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
  90. data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
  91. data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
  92. data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
  93. data/rbi/stigg/models.rbi +0 -4
  94. data/rbi/stigg/resources/v1/coupons.rbi +22 -14
  95. data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
  96. data/rbi/stigg/resources/v1/customers/{promotional.rbi → promotional_entitlements.rbi} +13 -9
  97. data/rbi/stigg/resources/v1/customers.rbi +84 -53
  98. data/rbi/stigg/resources/v1/events.rbi +28 -0
  99. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +14 -10
  100. data/rbi/stigg/resources/v1/subscriptions.rbi +242 -58
  101. data/rbi/stigg/resources/v1/usage.rbi +57 -0
  102. data/rbi/stigg/resources/v1.rbi +4 -26
  103. data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
  104. data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
  105. data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
  106. data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
  107. data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
  108. data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
  109. data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
  110. data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
  111. data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
  112. data/sig/stigg/models/v1/customers/{promotional_create_params.rbs → promotional_entitlement_grant_params.rbs} +43 -43
  113. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
  114. data/sig/stigg/models/v1/customers/{promotional_revoke_params.rbs → promotional_entitlement_revoke_params.rbs} +2 -2
  115. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
  116. data/sig/stigg/models/v1/event_report_params.rbs +82 -0
  117. data/sig/stigg/models/v1/event_report_response.rbs +15 -0
  118. data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +61 -35
  119. data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
  120. data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
  121. data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
  122. data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
  123. data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
  124. data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
  125. data/sig/stigg/models/v1/subscription_provision_params.rbs +2223 -0
  126. data/sig/stigg/models/v1/subscription_provision_response.rbs +1305 -0
  127. data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
  128. data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
  129. data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
  130. data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
  131. data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
  132. data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
  133. data/sig/stigg/models.rbs +0 -4
  134. data/sig/stigg/resources/v1/coupons.rbs +5 -5
  135. data/sig/stigg/resources/v1/customers/{promotional.rbs → promotional_entitlements.rbs} +5 -5
  136. data/sig/stigg/resources/v1/customers.rbs +20 -17
  137. data/sig/stigg/resources/v1/events.rbs +14 -0
  138. data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
  139. data/sig/stigg/resources/v1/subscriptions.rbs +68 -20
  140. data/sig/stigg/resources/v1/usage.rbs +24 -0
  141. data/sig/stigg/resources/v1.rbs +2 -8
  142. metadata +77 -71
  143. data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -317
  144. data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
  145. data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
  146. data/lib/stigg/models/v1/subscription_create_params.rb +0 -214
  147. data/lib/stigg/models/v1/subscription_create_response.rb +0 -338
  148. data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -274
  149. data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -274
  150. data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -274
  151. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -32
  152. data/lib/stigg/models/v1_create_event_params.rb +0 -87
  153. data/lib/stigg/models/v1_create_event_response.rb +0 -16
  154. data/lib/stigg/models/v1_create_usage_params.rb +0 -96
  155. data/lib/stigg/models/v1_create_usage_response.rb +0 -112
  156. data/lib/stigg/resources/v1/customers/usage.rb +0 -59
  157. data/rbi/stigg/models/v1/coupon_create_response.rbi +0 -986
  158. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -986
  159. data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
  160. data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
  161. data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
  162. data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
  163. data/rbi/stigg/models/v1/subscription_create_params.rbi +0 -394
  164. data/rbi/stigg/models/v1/subscription_create_response.rbi +0 -668
  165. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -535
  166. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -535
  167. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -535
  168. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -79
  169. data/rbi/stigg/models/v1_create_event_params.rbi +0 -160
  170. data/rbi/stigg/models/v1_create_event_response.rbi +0 -23
  171. data/rbi/stigg/models/v1_create_usage_params.rbi +0 -177
  172. data/rbi/stigg/models/v1_create_usage_response.rbi +0 -150
  173. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -45
  174. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
  175. data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
  176. data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
  177. data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
  178. data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
  179. data/sig/stigg/models/v1/subscription_create_params.rbs +0 -199
  180. data/sig/stigg/models/v1/subscription_create_response.rbs +0 -283
  181. data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -224
  182. data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -224
  183. data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -224
  184. data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
  185. data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
  186. data/sig/stigg/models/v1_create_event_params.rbs +0 -80
  187. data/sig/stigg/models/v1_create_event_response.rbs +0 -13
  188. data/sig/stigg/models/v1_create_usage_params.rbs +0 -90
  189. data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
  190. data/sig/stigg/resources/v1/customers/usage.rbs +0 -21
@@ -12,171 +12,234 @@ module Stigg
12
12
  )
13
13
  end
14
14
 
15
+ # Subscription ID
16
+ sig { returns(String) }
17
+ attr_accessor :id
18
+
19
+ # Billing ID
20
+ sig { returns(T.nilable(String)) }
21
+ attr_accessor :billing_id
22
+
23
+ # Created at
24
+ sig { returns(Time) }
25
+ attr_accessor :created_at
26
+
27
+ # Customer ID
28
+ sig { returns(String) }
29
+ attr_accessor :customer_id
30
+
31
+ # Payment collection
15
32
  sig do
16
- returns(T::Array[Stigg::Models::V1::SubscriptionListResponse::Data])
33
+ returns(
34
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::TaggedSymbol
35
+ )
17
36
  end
18
- attr_accessor :data
37
+ attr_accessor :payment_collection
19
38
 
39
+ # Plan ID
40
+ sig { returns(String) }
41
+ attr_accessor :plan_id
42
+
43
+ # Pricing type
20
44
  sig do
21
- params(
22
- data:
23
- T::Array[
24
- Stigg::Models::V1::SubscriptionListResponse::Data::OrHash
25
- ]
26
- ).returns(T.attached_class)
27
- end
28
- def self.new(data:)
45
+ returns(
46
+ Stigg::Models::V1::SubscriptionListResponse::PricingType::TaggedSymbol
47
+ )
29
48
  end
49
+ attr_accessor :pricing_type
50
+
51
+ # Subscription start date
52
+ sig { returns(Time) }
53
+ attr_accessor :start_date
30
54
 
55
+ # Subscription status
31
56
  sig do
32
- override.returns(
33
- {
34
- data: T::Array[Stigg::Models::V1::SubscriptionListResponse::Data]
35
- }
57
+ returns(
58
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
36
59
  )
37
60
  end
38
- def to_hash
61
+ attr_accessor :status
62
+
63
+ # Subscription cancellation date
64
+ sig { returns(T.nilable(Time)) }
65
+ attr_accessor :cancellation_date
66
+
67
+ # Subscription cancel reason
68
+ sig do
69
+ returns(
70
+ T.nilable(
71
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
72
+ )
73
+ )
39
74
  end
75
+ attr_accessor :cancel_reason
40
76
 
41
- class Data < Stigg::Internal::Type::BaseModel
42
- OrHash =
43
- T.type_alias do
44
- T.any(
45
- Stigg::Models::V1::SubscriptionListResponse::Data,
46
- Stigg::Internal::AnyHash
47
- )
48
- end
77
+ # End of the current billing period
78
+ sig { returns(T.nilable(Time)) }
79
+ attr_accessor :current_billing_period_end
49
80
 
50
- # Subscription ID
51
- sig { returns(String) }
52
- attr_accessor :id
81
+ # Start of the current billing period
82
+ sig { returns(T.nilable(Time)) }
83
+ attr_accessor :current_billing_period_start
53
84
 
54
- # Billing ID
55
- sig { returns(T.nilable(String)) }
56
- attr_accessor :billing_id
85
+ # Subscription effective end date
86
+ sig { returns(T.nilable(Time)) }
87
+ attr_accessor :effective_end_date
57
88
 
58
- # Created at
59
- sig { returns(Time) }
60
- attr_accessor :created_at
89
+ # Subscription end date
90
+ sig { returns(T.nilable(Time)) }
91
+ attr_accessor :end_date
61
92
 
62
- # Cursor ID for query pagination
63
- sig { returns(String) }
64
- attr_accessor :cursor_id
93
+ # Additional metadata for the subscription
94
+ sig { returns(T.nilable(T::Hash[Symbol, String])) }
95
+ attr_reader :metadata
65
96
 
66
- # Customer ID
67
- sig { returns(String) }
68
- attr_accessor :customer_id
97
+ sig { params(metadata: T::Hash[Symbol, String]).void }
98
+ attr_writer :metadata
69
99
 
70
- # Payment collection
71
- sig do
72
- returns(
73
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::TaggedSymbol
74
- )
75
- end
76
- attr_accessor :payment_collection
100
+ # Paying customer ID for delegated billing
101
+ sig { returns(T.nilable(String)) }
102
+ attr_accessor :paying_customer_id
77
103
 
78
- # Plan ID
79
- sig { returns(String) }
80
- attr_accessor :plan_id
104
+ # The method used to collect payments for a subscription
105
+ sig do
106
+ returns(
107
+ T.nilable(
108
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod::TaggedSymbol
109
+ )
110
+ )
111
+ end
112
+ attr_accessor :payment_collection_method
81
113
 
82
- # Pricing type
83
- sig do
84
- returns(
85
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType::TaggedSymbol
114
+ sig do
115
+ returns(
116
+ T.nilable(
117
+ T::Array[Stigg::Models::V1::SubscriptionListResponse::Price]
86
118
  )
87
- end
88
- attr_accessor :pricing_type
119
+ )
120
+ end
121
+ attr_reader :prices
89
122
 
90
- # Subscription start date
91
- sig { returns(Time) }
92
- attr_accessor :start_date
123
+ sig do
124
+ params(
125
+ prices:
126
+ T::Array[
127
+ Stigg::Models::V1::SubscriptionListResponse::Price::OrHash
128
+ ]
129
+ ).void
130
+ end
131
+ attr_writer :prices
93
132
 
94
- # Subscription status
95
- sig do
96
- returns(
97
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
98
- )
99
- end
100
- attr_accessor :status
133
+ # Resource ID
134
+ sig { returns(T.nilable(String)) }
135
+ attr_accessor :resource_id
101
136
 
102
- # Subscription cancellation date
103
- sig { returns(T.nilable(Time)) }
104
- attr_accessor :cancellation_date
137
+ # Subscription trial end date
138
+ sig { returns(T.nilable(Time)) }
139
+ attr_accessor :trial_end_date
105
140
 
106
- # Subscription cancel reason
107
- sig do
108
- returns(
141
+ # Customer subscription to a plan
142
+ sig do
143
+ params(
144
+ id: String,
145
+ billing_id: T.nilable(String),
146
+ created_at: Time,
147
+ customer_id: String,
148
+ payment_collection:
149
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::OrSymbol,
150
+ plan_id: String,
151
+ pricing_type:
152
+ Stigg::Models::V1::SubscriptionListResponse::PricingType::OrSymbol,
153
+ start_date: Time,
154
+ status:
155
+ Stigg::Models::V1::SubscriptionListResponse::Status::OrSymbol,
156
+ cancellation_date: T.nilable(Time),
157
+ cancel_reason:
109
158
  T.nilable(
110
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
111
- )
112
- )
113
- end
114
- attr_accessor :cancel_reason
115
-
159
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::OrSymbol
160
+ ),
161
+ current_billing_period_end: T.nilable(Time),
162
+ current_billing_period_start: T.nilable(Time),
163
+ effective_end_date: T.nilable(Time),
164
+ end_date: T.nilable(Time),
165
+ metadata: T::Hash[Symbol, String],
166
+ paying_customer_id: T.nilable(String),
167
+ payment_collection_method:
168
+ T.nilable(
169
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod::OrSymbol
170
+ ),
171
+ prices:
172
+ T::Array[
173
+ Stigg::Models::V1::SubscriptionListResponse::Price::OrHash
174
+ ],
175
+ resource_id: T.nilable(String),
176
+ trial_end_date: T.nilable(Time)
177
+ ).returns(T.attached_class)
178
+ end
179
+ def self.new(
180
+ # Subscription ID
181
+ id:,
182
+ # Billing ID
183
+ billing_id:,
184
+ # Created at
185
+ created_at:,
186
+ # Customer ID
187
+ customer_id:,
188
+ # Payment collection
189
+ payment_collection:,
190
+ # Plan ID
191
+ plan_id:,
192
+ # Pricing type
193
+ pricing_type:,
194
+ # Subscription start date
195
+ start_date:,
196
+ # Subscription status
197
+ status:,
198
+ # Subscription cancellation date
199
+ cancellation_date: nil,
200
+ # Subscription cancel reason
201
+ cancel_reason: nil,
116
202
  # End of the current billing period
117
- sig { returns(T.nilable(Time)) }
118
- attr_accessor :current_billing_period_end
119
-
203
+ current_billing_period_end: nil,
120
204
  # Start of the current billing period
121
- sig { returns(T.nilable(Time)) }
122
- attr_accessor :current_billing_period_start
123
-
205
+ current_billing_period_start: nil,
124
206
  # Subscription effective end date
125
- sig { returns(T.nilable(Time)) }
126
- attr_accessor :effective_end_date
127
-
207
+ effective_end_date: nil,
128
208
  # Subscription end date
129
- sig { returns(T.nilable(Time)) }
130
- attr_accessor :end_date
131
-
209
+ end_date: nil,
132
210
  # Additional metadata for the subscription
133
- sig { returns(T.nilable(T::Hash[Symbol, String])) }
134
- attr_reader :metadata
135
-
136
- sig { params(metadata: T::Hash[Symbol, String]).void }
137
- attr_writer :metadata
138
-
211
+ metadata: nil,
139
212
  # Paying customer ID for delegated billing
140
- sig { returns(T.nilable(String)) }
141
- attr_accessor :paying_customer_id
142
-
213
+ paying_customer_id: nil,
143
214
  # The method used to collect payments for a subscription
144
- sig do
145
- returns(
146
- T.nilable(
147
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod::TaggedSymbol
148
- )
149
- )
150
- end
151
- attr_accessor :payment_collection_method
152
-
215
+ payment_collection_method: nil,
216
+ prices: nil,
153
217
  # Resource ID
154
- sig { returns(T.nilable(String)) }
155
- attr_accessor :resource_id
156
-
218
+ resource_id: nil,
157
219
  # Subscription trial end date
158
- sig { returns(T.nilable(Time)) }
159
- attr_accessor :trial_end_date
220
+ trial_end_date: nil
221
+ )
222
+ end
160
223
 
161
- sig do
162
- params(
224
+ sig do
225
+ override.returns(
226
+ {
163
227
  id: String,
164
228
  billing_id: T.nilable(String),
165
229
  created_at: Time,
166
- cursor_id: String,
167
230
  customer_id: String,
168
231
  payment_collection:
169
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::OrSymbol,
232
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::TaggedSymbol,
170
233
  plan_id: String,
171
234
  pricing_type:
172
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType::OrSymbol,
235
+ Stigg::Models::V1::SubscriptionListResponse::PricingType::TaggedSymbol,
173
236
  start_date: Time,
174
237
  status:
175
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::OrSymbol,
238
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol,
176
239
  cancellation_date: T.nilable(Time),
177
240
  cancel_reason:
178
241
  T.nilable(
179
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::OrSymbol
242
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
180
243
  ),
181
244
  current_billing_period_end: T.nilable(Time),
182
245
  current_billing_period_start: T.nilable(Time),
@@ -186,355 +249,317 @@ module Stigg
186
249
  paying_customer_id: T.nilable(String),
187
250
  payment_collection_method:
188
251
  T.nilable(
189
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod::OrSymbol
252
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod::TaggedSymbol
190
253
  ),
254
+ prices:
255
+ T::Array[Stigg::Models::V1::SubscriptionListResponse::Price],
191
256
  resource_id: T.nilable(String),
192
257
  trial_end_date: T.nilable(Time)
193
- ).returns(T.attached_class)
194
- end
195
- def self.new(
196
- # Subscription ID
197
- id:,
198
- # Billing ID
199
- billing_id:,
200
- # Created at
201
- created_at:,
202
- # Cursor ID for query pagination
203
- cursor_id:,
204
- # Customer ID
205
- customer_id:,
206
- # Payment collection
207
- payment_collection:,
208
- # Plan ID
209
- plan_id:,
210
- # Pricing type
211
- pricing_type:,
212
- # Subscription start date
213
- start_date:,
214
- # Subscription status
215
- status:,
216
- # Subscription cancellation date
217
- cancellation_date: nil,
218
- # Subscription cancel reason
219
- cancel_reason: nil,
220
- # End of the current billing period
221
- current_billing_period_end: nil,
222
- # Start of the current billing period
223
- current_billing_period_start: nil,
224
- # Subscription effective end date
225
- effective_end_date: nil,
226
- # Subscription end date
227
- end_date: nil,
228
- # Additional metadata for the subscription
229
- metadata: nil,
230
- # Paying customer ID for delegated billing
231
- paying_customer_id: nil,
232
- # The method used to collect payments for a subscription
233
- payment_collection_method: nil,
234
- # Resource ID
235
- resource_id: nil,
236
- # Subscription trial end date
237
- trial_end_date: nil
258
+ }
238
259
  )
239
- end
260
+ end
261
+ def to_hash
262
+ end
263
+
264
+ # Payment collection
265
+ module PaymentCollection
266
+ extend Stigg::Internal::Type::Enum
267
+
268
+ TaggedSymbol =
269
+ T.type_alias do
270
+ T.all(
271
+ Symbol,
272
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection
273
+ )
274
+ end
275
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
276
+
277
+ NOT_REQUIRED =
278
+ T.let(
279
+ :NOT_REQUIRED,
280
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::TaggedSymbol
281
+ )
282
+ PROCESSING =
283
+ T.let(
284
+ :PROCESSING,
285
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::TaggedSymbol
286
+ )
287
+ FAILED =
288
+ T.let(
289
+ :FAILED,
290
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::TaggedSymbol
291
+ )
292
+ ACTION_REQUIRED =
293
+ T.let(
294
+ :ACTION_REQUIRED,
295
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::TaggedSymbol
296
+ )
240
297
 
241
298
  sig do
242
299
  override.returns(
243
- {
244
- id: String,
245
- billing_id: T.nilable(String),
246
- created_at: Time,
247
- cursor_id: String,
248
- customer_id: String,
249
- payment_collection:
250
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::TaggedSymbol,
251
- plan_id: String,
252
- pricing_type:
253
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType::TaggedSymbol,
254
- start_date: Time,
255
- status:
256
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol,
257
- cancellation_date: T.nilable(Time),
258
- cancel_reason:
259
- T.nilable(
260
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
261
- ),
262
- current_billing_period_end: T.nilable(Time),
263
- current_billing_period_start: T.nilable(Time),
264
- effective_end_date: T.nilable(Time),
265
- end_date: T.nilable(Time),
266
- metadata: T::Hash[Symbol, String],
267
- paying_customer_id: T.nilable(String),
268
- payment_collection_method:
269
- T.nilable(
270
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod::TaggedSymbol
271
- ),
272
- resource_id: T.nilable(String),
273
- trial_end_date: T.nilable(Time)
274
- }
300
+ T::Array[
301
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollection::TaggedSymbol
302
+ ]
275
303
  )
276
304
  end
277
- def to_hash
305
+ def self.values
278
306
  end
307
+ end
279
308
 
280
- # Payment collection
281
- module PaymentCollection
282
- extend Stigg::Internal::Type::Enum
283
-
284
- TaggedSymbol =
285
- T.type_alias do
286
- T.all(
287
- Symbol,
288
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection
289
- )
290
- end
291
- OrSymbol = T.type_alias { T.any(Symbol, String) }
292
-
293
- NOT_REQUIRED =
294
- T.let(
295
- :NOT_REQUIRED,
296
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::TaggedSymbol
297
- )
298
- PROCESSING =
299
- T.let(
300
- :PROCESSING,
301
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::TaggedSymbol
302
- )
303
- FAILED =
304
- T.let(
305
- :FAILED,
306
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::TaggedSymbol
307
- )
308
- ACTION_REQUIRED =
309
- T.let(
310
- :ACTION_REQUIRED,
311
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::TaggedSymbol
312
- )
309
+ # Pricing type
310
+ module PricingType
311
+ extend Stigg::Internal::Type::Enum
313
312
 
314
- sig do
315
- override.returns(
316
- T::Array[
317
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollection::TaggedSymbol
318
- ]
313
+ TaggedSymbol =
314
+ T.type_alias do
315
+ T.all(
316
+ Symbol,
317
+ Stigg::Models::V1::SubscriptionListResponse::PricingType
319
318
  )
320
319
  end
321
- def self.values
322
- end
320
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
321
+
322
+ FREE =
323
+ T.let(
324
+ :FREE,
325
+ Stigg::Models::V1::SubscriptionListResponse::PricingType::TaggedSymbol
326
+ )
327
+ PAID =
328
+ T.let(
329
+ :PAID,
330
+ Stigg::Models::V1::SubscriptionListResponse::PricingType::TaggedSymbol
331
+ )
332
+ CUSTOM =
333
+ T.let(
334
+ :CUSTOM,
335
+ Stigg::Models::V1::SubscriptionListResponse::PricingType::TaggedSymbol
336
+ )
337
+
338
+ sig do
339
+ override.returns(
340
+ T::Array[
341
+ Stigg::Models::V1::SubscriptionListResponse::PricingType::TaggedSymbol
342
+ ]
343
+ )
323
344
  end
345
+ def self.values
346
+ end
347
+ end
324
348
 
325
- # Pricing type
326
- module PricingType
327
- extend Stigg::Internal::Type::Enum
328
-
329
- TaggedSymbol =
330
- T.type_alias do
331
- T.all(
332
- Symbol,
333
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType
334
- )
335
- end
336
- OrSymbol = T.type_alias { T.any(Symbol, String) }
337
-
338
- FREE =
339
- T.let(
340
- :FREE,
341
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType::TaggedSymbol
342
- )
343
- PAID =
344
- T.let(
345
- :PAID,
346
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType::TaggedSymbol
347
- )
348
- CUSTOM =
349
- T.let(
350
- :CUSTOM,
351
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType::TaggedSymbol
352
- )
349
+ # Subscription status
350
+ module Status
351
+ extend Stigg::Internal::Type::Enum
353
352
 
354
- sig do
355
- override.returns(
356
- T::Array[
357
- Stigg::Models::V1::SubscriptionListResponse::Data::PricingType::TaggedSymbol
358
- ]
359
- )
360
- end
361
- def self.values
353
+ TaggedSymbol =
354
+ T.type_alias do
355
+ T.all(Symbol, Stigg::Models::V1::SubscriptionListResponse::Status)
362
356
  end
357
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
358
+
359
+ PAYMENT_PENDING =
360
+ T.let(
361
+ :PAYMENT_PENDING,
362
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
363
+ )
364
+ ACTIVE =
365
+ T.let(
366
+ :ACTIVE,
367
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
368
+ )
369
+ EXPIRED =
370
+ T.let(
371
+ :EXPIRED,
372
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
373
+ )
374
+ IN_TRIAL =
375
+ T.let(
376
+ :IN_TRIAL,
377
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
378
+ )
379
+ CANCELED =
380
+ T.let(
381
+ :CANCELED,
382
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
383
+ )
384
+ NOT_STARTED =
385
+ T.let(
386
+ :NOT_STARTED,
387
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
388
+ )
389
+
390
+ sig do
391
+ override.returns(
392
+ T::Array[
393
+ Stigg::Models::V1::SubscriptionListResponse::Status::TaggedSymbol
394
+ ]
395
+ )
363
396
  end
397
+ def self.values
398
+ end
399
+ end
364
400
 
365
- # Subscription status
366
- module Status
367
- extend Stigg::Internal::Type::Enum
368
-
369
- TaggedSymbol =
370
- T.type_alias do
371
- T.all(
372
- Symbol,
373
- Stigg::Models::V1::SubscriptionListResponse::Data::Status
374
- )
375
- end
376
- OrSymbol = T.type_alias { T.any(Symbol, String) }
377
-
378
- PAYMENT_PENDING =
379
- T.let(
380
- :PAYMENT_PENDING,
381
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
382
- )
383
- ACTIVE =
384
- T.let(
385
- :ACTIVE,
386
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
387
- )
388
- EXPIRED =
389
- T.let(
390
- :EXPIRED,
391
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
392
- )
393
- IN_TRIAL =
394
- T.let(
395
- :IN_TRIAL,
396
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
397
- )
398
- CANCELED =
399
- T.let(
400
- :CANCELED,
401
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
402
- )
403
- NOT_STARTED =
404
- T.let(
405
- :NOT_STARTED,
406
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
407
- )
401
+ # Subscription cancel reason
402
+ module CancelReason
403
+ extend Stigg::Internal::Type::Enum
408
404
 
409
- sig do
410
- override.returns(
411
- T::Array[
412
- Stigg::Models::V1::SubscriptionListResponse::Data::Status::TaggedSymbol
413
- ]
405
+ TaggedSymbol =
406
+ T.type_alias do
407
+ T.all(
408
+ Symbol,
409
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason
414
410
  )
415
411
  end
416
- def self.values
417
- end
412
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
413
+
414
+ UPGRADE_OR_DOWNGRADE =
415
+ T.let(
416
+ :UPGRADE_OR_DOWNGRADE,
417
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
418
+ )
419
+ CANCELLED_BY_BILLING =
420
+ T.let(
421
+ :CANCELLED_BY_BILLING,
422
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
423
+ )
424
+ EXPIRED =
425
+ T.let(
426
+ :EXPIRED,
427
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
428
+ )
429
+ DETACH_BILLING =
430
+ T.let(
431
+ :DETACH_BILLING,
432
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
433
+ )
434
+ TRIAL_ENDED =
435
+ T.let(
436
+ :TRIAL_ENDED,
437
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
438
+ )
439
+ IMMEDIATE =
440
+ T.let(
441
+ :Immediate,
442
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
443
+ )
444
+ TRIAL_CONVERTED =
445
+ T.let(
446
+ :TRIAL_CONVERTED,
447
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
448
+ )
449
+ PENDING_PAYMENT_EXPIRED =
450
+ T.let(
451
+ :PENDING_PAYMENT_EXPIRED,
452
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
453
+ )
454
+ SCHEDULED_CANCELLATION =
455
+ T.let(
456
+ :ScheduledCancellation,
457
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
458
+ )
459
+ CUSTOMER_ARCHIVED =
460
+ T.let(
461
+ :CustomerArchived,
462
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
463
+ )
464
+ AUTO_CANCELLATION_RULE =
465
+ T.let(
466
+ :AutoCancellationRule,
467
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
468
+ )
469
+
470
+ sig do
471
+ override.returns(
472
+ T::Array[
473
+ Stigg::Models::V1::SubscriptionListResponse::CancelReason::TaggedSymbol
474
+ ]
475
+ )
476
+ end
477
+ def self.values
418
478
  end
479
+ end
419
480
 
420
- # Subscription cancel reason
421
- module CancelReason
422
- extend Stigg::Internal::Type::Enum
423
-
424
- TaggedSymbol =
425
- T.type_alias do
426
- T.all(
427
- Symbol,
428
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason
429
- )
430
- end
431
- OrSymbol = T.type_alias { T.any(Symbol, String) }
432
-
433
- UPGRADE_OR_DOWNGRADE =
434
- T.let(
435
- :UPGRADE_OR_DOWNGRADE,
436
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
437
- )
438
- CANCELLED_BY_BILLING =
439
- T.let(
440
- :CANCELLED_BY_BILLING,
441
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
442
- )
443
- EXPIRED =
444
- T.let(
445
- :EXPIRED,
446
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
447
- )
448
- DETACH_BILLING =
449
- T.let(
450
- :DETACH_BILLING,
451
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
452
- )
453
- TRIAL_ENDED =
454
- T.let(
455
- :TRIAL_ENDED,
456
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
457
- )
458
- IMMEDIATE =
459
- T.let(
460
- :Immediate,
461
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
462
- )
463
- TRIAL_CONVERTED =
464
- T.let(
465
- :TRIAL_CONVERTED,
466
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
467
- )
468
- PENDING_PAYMENT_EXPIRED =
469
- T.let(
470
- :PENDING_PAYMENT_EXPIRED,
471
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
472
- )
473
- SCHEDULED_CANCELLATION =
474
- T.let(
475
- :ScheduledCancellation,
476
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
477
- )
478
- CUSTOMER_ARCHIVED =
479
- T.let(
480
- :CustomerArchived,
481
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
482
- )
483
- AUTO_CANCELLATION_RULE =
484
- T.let(
485
- :AutoCancellationRule,
486
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
487
- )
481
+ # The method used to collect payments for a subscription
482
+ module PaymentCollectionMethod
483
+ extend Stigg::Internal::Type::Enum
488
484
 
489
- sig do
490
- override.returns(
491
- T::Array[
492
- Stigg::Models::V1::SubscriptionListResponse::Data::CancelReason::TaggedSymbol
493
- ]
485
+ TaggedSymbol =
486
+ T.type_alias do
487
+ T.all(
488
+ Symbol,
489
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod
494
490
  )
495
491
  end
496
- def self.values
497
- end
498
- end
492
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
499
493
 
500
- # The method used to collect payments for a subscription
501
- module PaymentCollectionMethod
502
- extend Stigg::Internal::Type::Enum
503
-
504
- TaggedSymbol =
505
- T.type_alias do
506
- T.all(
507
- Symbol,
508
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod
509
- )
510
- end
511
- OrSymbol = T.type_alias { T.any(Symbol, String) }
512
-
513
- CHARGE =
514
- T.let(
515
- :CHARGE,
516
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod::TaggedSymbol
517
- )
518
- INVOICE =
519
- T.let(
520
- :INVOICE,
521
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod::TaggedSymbol
522
- )
523
- NONE =
524
- T.let(
525
- :NONE,
526
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod::TaggedSymbol
527
- )
494
+ CHARGE =
495
+ T.let(
496
+ :CHARGE,
497
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod::TaggedSymbol
498
+ )
499
+ INVOICE =
500
+ T.let(
501
+ :INVOICE,
502
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod::TaggedSymbol
503
+ )
504
+ NONE =
505
+ T.let(
506
+ :NONE,
507
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod::TaggedSymbol
508
+ )
509
+
510
+ sig do
511
+ override.returns(
512
+ T::Array[
513
+ Stigg::Models::V1::SubscriptionListResponse::PaymentCollectionMethod::TaggedSymbol
514
+ ]
515
+ )
516
+ end
517
+ def self.values
518
+ end
519
+ end
528
520
 
529
- sig do
530
- override.returns(
531
- T::Array[
532
- Stigg::Models::V1::SubscriptionListResponse::Data::PaymentCollectionMethod::TaggedSymbol
533
- ]
521
+ class Price < Stigg::Internal::Type::BaseModel
522
+ OrHash =
523
+ T.type_alias do
524
+ T.any(
525
+ Stigg::Models::V1::SubscriptionListResponse::Price,
526
+ Stigg::Internal::AnyHash
534
527
  )
535
528
  end
536
- def self.values
537
- end
529
+
530
+ # Price ID
531
+ sig { returns(String) }
532
+ attr_accessor :id
533
+
534
+ # Creation timestamp
535
+ sig { returns(String) }
536
+ attr_accessor :created_at
537
+
538
+ # Last update timestamp
539
+ sig { returns(String) }
540
+ attr_accessor :updated_at
541
+
542
+ sig do
543
+ params(id: String, created_at: String, updated_at: String).returns(
544
+ T.attached_class
545
+ )
546
+ end
547
+ def self.new(
548
+ # Price ID
549
+ id:,
550
+ # Creation timestamp
551
+ created_at:,
552
+ # Last update timestamp
553
+ updated_at:
554
+ )
555
+ end
556
+
557
+ sig do
558
+ override.returns(
559
+ { id: String, created_at: String, updated_at: String }
560
+ )
561
+ end
562
+ def to_hash
538
563
  end
539
564
  end
540
565
  end