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
@@ -0,0 +1,3578 @@
1
+ # typed: strong
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ class SubscriptionUpdateParams < Stigg::Internal::Type::BaseModel
7
+ extend Stigg::Internal::Type::RequestParameters::Converter
8
+ include Stigg::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(Stigg::V1::SubscriptionUpdateParams, Stigg::Internal::AnyHash)
13
+ end
14
+
15
+ sig do
16
+ returns(
17
+ T.nilable(T::Array[Stigg::V1::SubscriptionUpdateParams::Addon])
18
+ )
19
+ end
20
+ attr_reader :addons
21
+
22
+ sig do
23
+ params(
24
+ addons: T::Array[Stigg::V1::SubscriptionUpdateParams::Addon::OrHash]
25
+ ).void
26
+ end
27
+ attr_writer :addons
28
+
29
+ sig do
30
+ returns(T.nilable(Stigg::V1::SubscriptionUpdateParams::AppliedCoupon))
31
+ end
32
+ attr_reader :applied_coupon
33
+
34
+ sig do
35
+ params(
36
+ applied_coupon:
37
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::OrHash
38
+ ).void
39
+ end
40
+ attr_writer :applied_coupon
41
+
42
+ sig { returns(T.nilable(T::Boolean)) }
43
+ attr_reader :await_payment_confirmation
44
+
45
+ sig { params(await_payment_confirmation: T::Boolean).void }
46
+ attr_writer :await_payment_confirmation
47
+
48
+ sig do
49
+ returns(
50
+ T.nilable(Stigg::V1::SubscriptionUpdateParams::BillingInformation)
51
+ )
52
+ end
53
+ attr_reader :billing_information
54
+
55
+ sig do
56
+ params(
57
+ billing_information:
58
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::OrHash
59
+ ).void
60
+ end
61
+ attr_writer :billing_information
62
+
63
+ sig do
64
+ returns(
65
+ T.nilable(
66
+ Stigg::V1::SubscriptionUpdateParams::BillingPeriod::OrSymbol
67
+ )
68
+ )
69
+ end
70
+ attr_reader :billing_period
71
+
72
+ sig do
73
+ params(
74
+ billing_period:
75
+ Stigg::V1::SubscriptionUpdateParams::BillingPeriod::OrSymbol
76
+ ).void
77
+ end
78
+ attr_writer :billing_period
79
+
80
+ sig { returns(T.nilable(Stigg::V1::SubscriptionUpdateParams::Budget)) }
81
+ attr_reader :budget
82
+
83
+ sig do
84
+ params(
85
+ budget:
86
+ T.nilable(Stigg::V1::SubscriptionUpdateParams::Budget::OrHash)
87
+ ).void
88
+ end
89
+ attr_writer :budget
90
+
91
+ sig do
92
+ returns(
93
+ T.nilable(T::Array[Stigg::V1::SubscriptionUpdateParams::Charge])
94
+ )
95
+ end
96
+ attr_reader :charges
97
+
98
+ sig do
99
+ params(
100
+ charges:
101
+ T::Array[Stigg::V1::SubscriptionUpdateParams::Charge::OrHash]
102
+ ).void
103
+ end
104
+ attr_writer :charges
105
+
106
+ # Additional metadata for the subscription
107
+ sig { returns(T.nilable(T::Hash[Symbol, String])) }
108
+ attr_reader :metadata
109
+
110
+ sig { params(metadata: T::Hash[Symbol, String]).void }
111
+ attr_writer :metadata
112
+
113
+ sig do
114
+ returns(T.nilable(Stigg::V1::SubscriptionUpdateParams::MinimumSpend))
115
+ end
116
+ attr_reader :minimum_spend
117
+
118
+ sig do
119
+ params(
120
+ minimum_spend:
121
+ T.nilable(
122
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::OrHash
123
+ )
124
+ ).void
125
+ end
126
+ attr_writer :minimum_spend
127
+
128
+ sig do
129
+ returns(
130
+ T.nilable(
131
+ T::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride]
132
+ )
133
+ )
134
+ end
135
+ attr_reader :price_overrides
136
+
137
+ sig do
138
+ params(
139
+ price_overrides:
140
+ T::Array[
141
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::OrHash
142
+ ]
143
+ ).void
144
+ end
145
+ attr_writer :price_overrides
146
+
147
+ sig { returns(T.nilable(String)) }
148
+ attr_reader :promotion_code
149
+
150
+ sig { params(promotion_code: String).void }
151
+ attr_writer :promotion_code
152
+
153
+ sig do
154
+ returns(
155
+ T.nilable(
156
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::OrSymbol
157
+ )
158
+ )
159
+ end
160
+ attr_reader :schedule_strategy
161
+
162
+ sig do
163
+ params(
164
+ schedule_strategy:
165
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::OrSymbol
166
+ ).void
167
+ end
168
+ attr_writer :schedule_strategy
169
+
170
+ sig do
171
+ returns(
172
+ T.nilable(
173
+ T::Array[
174
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement
175
+ ]
176
+ )
177
+ )
178
+ end
179
+ attr_reader :subscription_entitlements
180
+
181
+ sig do
182
+ params(
183
+ subscription_entitlements:
184
+ T::Array[
185
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::OrHash
186
+ ]
187
+ ).void
188
+ end
189
+ attr_writer :subscription_entitlements
190
+
191
+ # Subscription trial end date
192
+ sig { returns(T.nilable(Time)) }
193
+ attr_reader :trial_end_date
194
+
195
+ sig { params(trial_end_date: Time).void }
196
+ attr_writer :trial_end_date
197
+
198
+ sig do
199
+ params(
200
+ addons:
201
+ T::Array[Stigg::V1::SubscriptionUpdateParams::Addon::OrHash],
202
+ applied_coupon:
203
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::OrHash,
204
+ await_payment_confirmation: T::Boolean,
205
+ billing_information:
206
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::OrHash,
207
+ billing_period:
208
+ Stigg::V1::SubscriptionUpdateParams::BillingPeriod::OrSymbol,
209
+ budget:
210
+ T.nilable(Stigg::V1::SubscriptionUpdateParams::Budget::OrHash),
211
+ charges:
212
+ T::Array[Stigg::V1::SubscriptionUpdateParams::Charge::OrHash],
213
+ metadata: T::Hash[Symbol, String],
214
+ minimum_spend:
215
+ T.nilable(
216
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::OrHash
217
+ ),
218
+ price_overrides:
219
+ T::Array[
220
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::OrHash
221
+ ],
222
+ promotion_code: String,
223
+ schedule_strategy:
224
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::OrSymbol,
225
+ subscription_entitlements:
226
+ T::Array[
227
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::OrHash
228
+ ],
229
+ trial_end_date: Time,
230
+ request_options: Stigg::RequestOptions::OrHash
231
+ ).returns(T.attached_class)
232
+ end
233
+ def self.new(
234
+ addons: nil,
235
+ applied_coupon: nil,
236
+ await_payment_confirmation: nil,
237
+ billing_information: nil,
238
+ billing_period: nil,
239
+ budget: nil,
240
+ charges: nil,
241
+ # Additional metadata for the subscription
242
+ metadata: nil,
243
+ minimum_spend: nil,
244
+ price_overrides: nil,
245
+ promotion_code: nil,
246
+ schedule_strategy: nil,
247
+ subscription_entitlements: nil,
248
+ # Subscription trial end date
249
+ trial_end_date: nil,
250
+ request_options: {}
251
+ )
252
+ end
253
+
254
+ sig do
255
+ override.returns(
256
+ {
257
+ addons: T::Array[Stigg::V1::SubscriptionUpdateParams::Addon],
258
+ applied_coupon:
259
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon,
260
+ await_payment_confirmation: T::Boolean,
261
+ billing_information:
262
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation,
263
+ billing_period:
264
+ Stigg::V1::SubscriptionUpdateParams::BillingPeriod::OrSymbol,
265
+ budget: T.nilable(Stigg::V1::SubscriptionUpdateParams::Budget),
266
+ charges: T::Array[Stigg::V1::SubscriptionUpdateParams::Charge],
267
+ metadata: T::Hash[Symbol, String],
268
+ minimum_spend:
269
+ T.nilable(Stigg::V1::SubscriptionUpdateParams::MinimumSpend),
270
+ price_overrides:
271
+ T::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride],
272
+ promotion_code: String,
273
+ schedule_strategy:
274
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::OrSymbol,
275
+ subscription_entitlements:
276
+ T::Array[
277
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement
278
+ ],
279
+ trial_end_date: Time,
280
+ request_options: Stigg::RequestOptions
281
+ }
282
+ )
283
+ end
284
+ def to_hash
285
+ end
286
+
287
+ class Addon < Stigg::Internal::Type::BaseModel
288
+ OrHash =
289
+ T.type_alias do
290
+ T.any(
291
+ Stigg::V1::SubscriptionUpdateParams::Addon,
292
+ Stigg::Internal::AnyHash
293
+ )
294
+ end
295
+
296
+ # Addon ID
297
+ sig { returns(String) }
298
+ attr_accessor :addon_id
299
+
300
+ sig { returns(Float) }
301
+ attr_accessor :quantity
302
+
303
+ sig do
304
+ params(addon_id: String, quantity: Float).returns(T.attached_class)
305
+ end
306
+ def self.new(
307
+ # Addon ID
308
+ addon_id:,
309
+ quantity:
310
+ )
311
+ end
312
+
313
+ sig { override.returns({ addon_id: String, quantity: Float }) }
314
+ def to_hash
315
+ end
316
+ end
317
+
318
+ class AppliedCoupon < Stigg::Internal::Type::BaseModel
319
+ OrHash =
320
+ T.type_alias do
321
+ T.any(
322
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon,
323
+ Stigg::Internal::AnyHash
324
+ )
325
+ end
326
+
327
+ sig { returns(T.nilable(String)) }
328
+ attr_reader :billing_coupon_id
329
+
330
+ sig { params(billing_coupon_id: String).void }
331
+ attr_writer :billing_coupon_id
332
+
333
+ sig do
334
+ returns(
335
+ T.nilable(
336
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration
337
+ )
338
+ )
339
+ end
340
+ attr_reader :configuration
341
+
342
+ sig do
343
+ params(
344
+ configuration:
345
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration::OrHash
346
+ ).void
347
+ end
348
+ attr_writer :configuration
349
+
350
+ sig { returns(T.nilable(String)) }
351
+ attr_reader :coupon_id
352
+
353
+ sig { params(coupon_id: String).void }
354
+ attr_writer :coupon_id
355
+
356
+ sig do
357
+ returns(
358
+ T.nilable(
359
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount
360
+ )
361
+ )
362
+ end
363
+ attr_reader :discount
364
+
365
+ sig do
366
+ params(
367
+ discount:
368
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::OrHash
369
+ ).void
370
+ end
371
+ attr_writer :discount
372
+
373
+ sig { returns(T.nilable(String)) }
374
+ attr_accessor :promotion_code
375
+
376
+ sig do
377
+ params(
378
+ billing_coupon_id: String,
379
+ configuration:
380
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration::OrHash,
381
+ coupon_id: String,
382
+ discount:
383
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::OrHash,
384
+ promotion_code: T.nilable(String)
385
+ ).returns(T.attached_class)
386
+ end
387
+ def self.new(
388
+ billing_coupon_id: nil,
389
+ configuration: nil,
390
+ coupon_id: nil,
391
+ discount: nil,
392
+ promotion_code: nil
393
+ )
394
+ end
395
+
396
+ sig do
397
+ override.returns(
398
+ {
399
+ billing_coupon_id: String,
400
+ configuration:
401
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration,
402
+ coupon_id: String,
403
+ discount:
404
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount,
405
+ promotion_code: T.nilable(String)
406
+ }
407
+ )
408
+ end
409
+ def to_hash
410
+ end
411
+
412
+ class Configuration < Stigg::Internal::Type::BaseModel
413
+ OrHash =
414
+ T.type_alias do
415
+ T.any(
416
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration,
417
+ Stigg::Internal::AnyHash
418
+ )
419
+ end
420
+
421
+ # Coupon start date
422
+ sig { returns(T.nilable(Time)) }
423
+ attr_reader :start_date
424
+
425
+ sig { params(start_date: Time).void }
426
+ attr_writer :start_date
427
+
428
+ sig { params(start_date: Time).returns(T.attached_class) }
429
+ def self.new(
430
+ # Coupon start date
431
+ start_date: nil
432
+ )
433
+ end
434
+
435
+ sig { override.returns({ start_date: Time }) }
436
+ def to_hash
437
+ end
438
+ end
439
+
440
+ class Discount < Stigg::Internal::Type::BaseModel
441
+ OrHash =
442
+ T.type_alias do
443
+ T.any(
444
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount,
445
+ Stigg::Internal::AnyHash
446
+ )
447
+ end
448
+
449
+ sig do
450
+ returns(
451
+ T.nilable(
452
+ T::Array[
453
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff
454
+ ]
455
+ )
456
+ )
457
+ end
458
+ attr_accessor :amounts_off
459
+
460
+ sig { returns(T.nilable(String)) }
461
+ attr_reader :description
462
+
463
+ sig { params(description: String).void }
464
+ attr_writer :description
465
+
466
+ sig { returns(T.nilable(Float)) }
467
+ attr_reader :duration_in_months
468
+
469
+ sig { params(duration_in_months: Float).void }
470
+ attr_writer :duration_in_months
471
+
472
+ sig { returns(T.nilable(String)) }
473
+ attr_reader :name
474
+
475
+ sig { params(name: String).void }
476
+ attr_writer :name
477
+
478
+ sig { returns(T.nilable(Float)) }
479
+ attr_reader :percent_off
480
+
481
+ sig { params(percent_off: Float).void }
482
+ attr_writer :percent_off
483
+
484
+ sig do
485
+ params(
486
+ amounts_off:
487
+ T.nilable(
488
+ T::Array[
489
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::OrHash
490
+ ]
491
+ ),
492
+ description: String,
493
+ duration_in_months: Float,
494
+ name: String,
495
+ percent_off: Float
496
+ ).returns(T.attached_class)
497
+ end
498
+ def self.new(
499
+ amounts_off: nil,
500
+ description: nil,
501
+ duration_in_months: nil,
502
+ name: nil,
503
+ percent_off: nil
504
+ )
505
+ end
506
+
507
+ sig do
508
+ override.returns(
509
+ {
510
+ amounts_off:
511
+ T.nilable(
512
+ T::Array[
513
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff
514
+ ]
515
+ ),
516
+ description: String,
517
+ duration_in_months: Float,
518
+ name: String,
519
+ percent_off: Float
520
+ }
521
+ )
522
+ end
523
+ def to_hash
524
+ end
525
+
526
+ class AmountsOff < Stigg::Internal::Type::BaseModel
527
+ OrHash =
528
+ T.type_alias do
529
+ T.any(
530
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff,
531
+ Stigg::Internal::AnyHash
532
+ )
533
+ end
534
+
535
+ sig { returns(Float) }
536
+ attr_accessor :amount
537
+
538
+ sig do
539
+ returns(
540
+ T.nilable(
541
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::OrSymbol
542
+ )
543
+ )
544
+ end
545
+ attr_reader :currency
546
+
547
+ sig do
548
+ params(
549
+ currency:
550
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::OrSymbol
551
+ ).void
552
+ end
553
+ attr_writer :currency
554
+
555
+ sig do
556
+ params(
557
+ amount: Float,
558
+ currency:
559
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::OrSymbol
560
+ ).returns(T.attached_class)
561
+ end
562
+ def self.new(amount:, currency: nil)
563
+ end
564
+
565
+ sig do
566
+ override.returns(
567
+ {
568
+ amount: Float,
569
+ currency:
570
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::OrSymbol
571
+ }
572
+ )
573
+ end
574
+ def to_hash
575
+ end
576
+
577
+ module Currency
578
+ extend Stigg::Internal::Type::Enum
579
+
580
+ TaggedSymbol =
581
+ T.type_alias do
582
+ T.all(
583
+ Symbol,
584
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency
585
+ )
586
+ end
587
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
588
+
589
+ USD =
590
+ T.let(
591
+ :usd,
592
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
593
+ )
594
+ AED =
595
+ T.let(
596
+ :aed,
597
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
598
+ )
599
+ ALL =
600
+ T.let(
601
+ :all,
602
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
603
+ )
604
+ AMD =
605
+ T.let(
606
+ :amd,
607
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
608
+ )
609
+ ANG =
610
+ T.let(
611
+ :ang,
612
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
613
+ )
614
+ AUD =
615
+ T.let(
616
+ :aud,
617
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
618
+ )
619
+ AWG =
620
+ T.let(
621
+ :awg,
622
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
623
+ )
624
+ AZN =
625
+ T.let(
626
+ :azn,
627
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
628
+ )
629
+ BAM =
630
+ T.let(
631
+ :bam,
632
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
633
+ )
634
+ BBD =
635
+ T.let(
636
+ :bbd,
637
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
638
+ )
639
+ BDT =
640
+ T.let(
641
+ :bdt,
642
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
643
+ )
644
+ BGN =
645
+ T.let(
646
+ :bgn,
647
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
648
+ )
649
+ BIF =
650
+ T.let(
651
+ :bif,
652
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
653
+ )
654
+ BMD =
655
+ T.let(
656
+ :bmd,
657
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
658
+ )
659
+ BND =
660
+ T.let(
661
+ :bnd,
662
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
663
+ )
664
+ BSD =
665
+ T.let(
666
+ :bsd,
667
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
668
+ )
669
+ BWP =
670
+ T.let(
671
+ :bwp,
672
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
673
+ )
674
+ BYN =
675
+ T.let(
676
+ :byn,
677
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
678
+ )
679
+ BZD =
680
+ T.let(
681
+ :bzd,
682
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
683
+ )
684
+ BRL =
685
+ T.let(
686
+ :brl,
687
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
688
+ )
689
+ CAD =
690
+ T.let(
691
+ :cad,
692
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
693
+ )
694
+ CDF =
695
+ T.let(
696
+ :cdf,
697
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
698
+ )
699
+ CHF =
700
+ T.let(
701
+ :chf,
702
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
703
+ )
704
+ CNY =
705
+ T.let(
706
+ :cny,
707
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
708
+ )
709
+ CZK =
710
+ T.let(
711
+ :czk,
712
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
713
+ )
714
+ DKK =
715
+ T.let(
716
+ :dkk,
717
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
718
+ )
719
+ DOP =
720
+ T.let(
721
+ :dop,
722
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
723
+ )
724
+ DZD =
725
+ T.let(
726
+ :dzd,
727
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
728
+ )
729
+ EGP =
730
+ T.let(
731
+ :egp,
732
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
733
+ )
734
+ ETB =
735
+ T.let(
736
+ :etb,
737
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
738
+ )
739
+ EUR =
740
+ T.let(
741
+ :eur,
742
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
743
+ )
744
+ FJD =
745
+ T.let(
746
+ :fjd,
747
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
748
+ )
749
+ GBP =
750
+ T.let(
751
+ :gbp,
752
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
753
+ )
754
+ GEL =
755
+ T.let(
756
+ :gel,
757
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
758
+ )
759
+ GIP =
760
+ T.let(
761
+ :gip,
762
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
763
+ )
764
+ GMD =
765
+ T.let(
766
+ :gmd,
767
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
768
+ )
769
+ GYD =
770
+ T.let(
771
+ :gyd,
772
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
773
+ )
774
+ HKD =
775
+ T.let(
776
+ :hkd,
777
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
778
+ )
779
+ HRK =
780
+ T.let(
781
+ :hrk,
782
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
783
+ )
784
+ HTG =
785
+ T.let(
786
+ :htg,
787
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
788
+ )
789
+ IDR =
790
+ T.let(
791
+ :idr,
792
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
793
+ )
794
+ ILS =
795
+ T.let(
796
+ :ils,
797
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
798
+ )
799
+ INR =
800
+ T.let(
801
+ :inr,
802
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
803
+ )
804
+ ISK =
805
+ T.let(
806
+ :isk,
807
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
808
+ )
809
+ JMD =
810
+ T.let(
811
+ :jmd,
812
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
813
+ )
814
+ JPY =
815
+ T.let(
816
+ :jpy,
817
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
818
+ )
819
+ KES =
820
+ T.let(
821
+ :kes,
822
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
823
+ )
824
+ KGS =
825
+ T.let(
826
+ :kgs,
827
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
828
+ )
829
+ KHR =
830
+ T.let(
831
+ :khr,
832
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
833
+ )
834
+ KMF =
835
+ T.let(
836
+ :kmf,
837
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
838
+ )
839
+ KRW =
840
+ T.let(
841
+ :krw,
842
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
843
+ )
844
+ KYD =
845
+ T.let(
846
+ :kyd,
847
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
848
+ )
849
+ KZT =
850
+ T.let(
851
+ :kzt,
852
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
853
+ )
854
+ LBP =
855
+ T.let(
856
+ :lbp,
857
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
858
+ )
859
+ LKR =
860
+ T.let(
861
+ :lkr,
862
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
863
+ )
864
+ LRD =
865
+ T.let(
866
+ :lrd,
867
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
868
+ )
869
+ LSL =
870
+ T.let(
871
+ :lsl,
872
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
873
+ )
874
+ MAD =
875
+ T.let(
876
+ :mad,
877
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
878
+ )
879
+ MDL =
880
+ T.let(
881
+ :mdl,
882
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
883
+ )
884
+ MGA =
885
+ T.let(
886
+ :mga,
887
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
888
+ )
889
+ MKD =
890
+ T.let(
891
+ :mkd,
892
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
893
+ )
894
+ MMK =
895
+ T.let(
896
+ :mmk,
897
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
898
+ )
899
+ MNT =
900
+ T.let(
901
+ :mnt,
902
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
903
+ )
904
+ MOP =
905
+ T.let(
906
+ :mop,
907
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
908
+ )
909
+ MRO =
910
+ T.let(
911
+ :mro,
912
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
913
+ )
914
+ MVR =
915
+ T.let(
916
+ :mvr,
917
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
918
+ )
919
+ MWK =
920
+ T.let(
921
+ :mwk,
922
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
923
+ )
924
+ MXN =
925
+ T.let(
926
+ :mxn,
927
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
928
+ )
929
+ MYR =
930
+ T.let(
931
+ :myr,
932
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
933
+ )
934
+ MZN =
935
+ T.let(
936
+ :mzn,
937
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
938
+ )
939
+ NAD =
940
+ T.let(
941
+ :nad,
942
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
943
+ )
944
+ NGN =
945
+ T.let(
946
+ :ngn,
947
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
948
+ )
949
+ NOK =
950
+ T.let(
951
+ :nok,
952
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
953
+ )
954
+ NPR =
955
+ T.let(
956
+ :npr,
957
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
958
+ )
959
+ NZD =
960
+ T.let(
961
+ :nzd,
962
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
963
+ )
964
+ PGK =
965
+ T.let(
966
+ :pgk,
967
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
968
+ )
969
+ PHP =
970
+ T.let(
971
+ :php,
972
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
973
+ )
974
+ PKR =
975
+ T.let(
976
+ :pkr,
977
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
978
+ )
979
+ PLN =
980
+ T.let(
981
+ :pln,
982
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
983
+ )
984
+ QAR =
985
+ T.let(
986
+ :qar,
987
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
988
+ )
989
+ RON =
990
+ T.let(
991
+ :ron,
992
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
993
+ )
994
+ RSD =
995
+ T.let(
996
+ :rsd,
997
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
998
+ )
999
+ RUB =
1000
+ T.let(
1001
+ :rub,
1002
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1003
+ )
1004
+ RWF =
1005
+ T.let(
1006
+ :rwf,
1007
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1008
+ )
1009
+ SAR =
1010
+ T.let(
1011
+ :sar,
1012
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1013
+ )
1014
+ SBD =
1015
+ T.let(
1016
+ :sbd,
1017
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1018
+ )
1019
+ SCR =
1020
+ T.let(
1021
+ :scr,
1022
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1023
+ )
1024
+ SEK =
1025
+ T.let(
1026
+ :sek,
1027
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1028
+ )
1029
+ SGD =
1030
+ T.let(
1031
+ :sgd,
1032
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1033
+ )
1034
+ SLE =
1035
+ T.let(
1036
+ :sle,
1037
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1038
+ )
1039
+ SLL =
1040
+ T.let(
1041
+ :sll,
1042
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1043
+ )
1044
+ SOS =
1045
+ T.let(
1046
+ :sos,
1047
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1048
+ )
1049
+ SZL =
1050
+ T.let(
1051
+ :szl,
1052
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1053
+ )
1054
+ THB =
1055
+ T.let(
1056
+ :thb,
1057
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1058
+ )
1059
+ TJS =
1060
+ T.let(
1061
+ :tjs,
1062
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1063
+ )
1064
+ TOP =
1065
+ T.let(
1066
+ :top,
1067
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1068
+ )
1069
+ TRY =
1070
+ T.let(
1071
+ :try,
1072
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1073
+ )
1074
+ TTD =
1075
+ T.let(
1076
+ :ttd,
1077
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1078
+ )
1079
+ TZS =
1080
+ T.let(
1081
+ :tzs,
1082
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1083
+ )
1084
+ UAH =
1085
+ T.let(
1086
+ :uah,
1087
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1088
+ )
1089
+ UZS =
1090
+ T.let(
1091
+ :uzs,
1092
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1093
+ )
1094
+ VND =
1095
+ T.let(
1096
+ :vnd,
1097
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1098
+ )
1099
+ VUV =
1100
+ T.let(
1101
+ :vuv,
1102
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1103
+ )
1104
+ WST =
1105
+ T.let(
1106
+ :wst,
1107
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1108
+ )
1109
+ XAF =
1110
+ T.let(
1111
+ :xaf,
1112
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1113
+ )
1114
+ XCD =
1115
+ T.let(
1116
+ :xcd,
1117
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1118
+ )
1119
+ YER =
1120
+ T.let(
1121
+ :yer,
1122
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1123
+ )
1124
+ ZAR =
1125
+ T.let(
1126
+ :zar,
1127
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1128
+ )
1129
+ ZMW =
1130
+ T.let(
1131
+ :zmw,
1132
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1133
+ )
1134
+ CLP =
1135
+ T.let(
1136
+ :clp,
1137
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1138
+ )
1139
+ DJF =
1140
+ T.let(
1141
+ :djf,
1142
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1143
+ )
1144
+ GNF =
1145
+ T.let(
1146
+ :gnf,
1147
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1148
+ )
1149
+ UGX =
1150
+ T.let(
1151
+ :ugx,
1152
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1153
+ )
1154
+ PYG =
1155
+ T.let(
1156
+ :pyg,
1157
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1158
+ )
1159
+ XOF =
1160
+ T.let(
1161
+ :xof,
1162
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1163
+ )
1164
+ XPF =
1165
+ T.let(
1166
+ :xpf,
1167
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1168
+ )
1169
+
1170
+ sig do
1171
+ override.returns(
1172
+ T::Array[
1173
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency::TaggedSymbol
1174
+ ]
1175
+ )
1176
+ end
1177
+ def self.values
1178
+ end
1179
+ end
1180
+ end
1181
+ end
1182
+ end
1183
+
1184
+ class BillingInformation < Stigg::Internal::Type::BaseModel
1185
+ OrHash =
1186
+ T.type_alias do
1187
+ T.any(
1188
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation,
1189
+ Stigg::Internal::AnyHash
1190
+ )
1191
+ end
1192
+
1193
+ # Physical address
1194
+ sig do
1195
+ returns(
1196
+ T.nilable(
1197
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress
1198
+ )
1199
+ )
1200
+ end
1201
+ attr_reader :billing_address
1202
+
1203
+ sig do
1204
+ params(
1205
+ billing_address:
1206
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress::OrHash
1207
+ ).void
1208
+ end
1209
+ attr_writer :billing_address
1210
+
1211
+ sig { returns(T.nilable(String)) }
1212
+ attr_reader :charge_on_behalf_of_account
1213
+
1214
+ sig { params(charge_on_behalf_of_account: String).void }
1215
+ attr_writer :charge_on_behalf_of_account
1216
+
1217
+ sig { returns(T.nilable(String)) }
1218
+ attr_reader :coupon_id
1219
+
1220
+ sig { params(coupon_id: String).void }
1221
+ attr_writer :coupon_id
1222
+
1223
+ sig { returns(T.nilable(String)) }
1224
+ attr_reader :integration_id
1225
+
1226
+ sig { params(integration_id: String).void }
1227
+ attr_writer :integration_id
1228
+
1229
+ sig { returns(T.nilable(Float)) }
1230
+ attr_reader :invoice_days_until_due
1231
+
1232
+ sig { params(invoice_days_until_due: Float).void }
1233
+ attr_writer :invoice_days_until_due
1234
+
1235
+ sig { returns(T.nilable(T::Boolean)) }
1236
+ attr_reader :is_backdated
1237
+
1238
+ sig { params(is_backdated: T::Boolean).void }
1239
+ attr_writer :is_backdated
1240
+
1241
+ sig { returns(T.nilable(T::Boolean)) }
1242
+ attr_reader :is_invoice_paid
1243
+
1244
+ sig { params(is_invoice_paid: T::Boolean).void }
1245
+ attr_writer :is_invoice_paid
1246
+
1247
+ # Additional metadata for the subscription
1248
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
1249
+ attr_reader :metadata
1250
+
1251
+ sig { params(metadata: T::Hash[Symbol, T.anything]).void }
1252
+ attr_writer :metadata
1253
+
1254
+ sig do
1255
+ returns(
1256
+ T.nilable(
1257
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::OrSymbol
1258
+ )
1259
+ )
1260
+ end
1261
+ attr_reader :proration_behavior
1262
+
1263
+ sig do
1264
+ params(
1265
+ proration_behavior:
1266
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::OrSymbol
1267
+ ).void
1268
+ end
1269
+ attr_writer :proration_behavior
1270
+
1271
+ sig do
1272
+ returns(
1273
+ T.nilable(
1274
+ T::Array[
1275
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID
1276
+ ]
1277
+ )
1278
+ )
1279
+ end
1280
+ attr_reader :tax_ids
1281
+
1282
+ sig do
1283
+ params(
1284
+ tax_ids:
1285
+ T::Array[
1286
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID::OrHash
1287
+ ]
1288
+ ).void
1289
+ end
1290
+ attr_writer :tax_ids
1291
+
1292
+ sig { returns(T.nilable(Float)) }
1293
+ attr_reader :tax_percentage
1294
+
1295
+ sig { params(tax_percentage: Float).void }
1296
+ attr_writer :tax_percentage
1297
+
1298
+ sig { returns(T.nilable(T::Array[String])) }
1299
+ attr_reader :tax_rate_ids
1300
+
1301
+ sig { params(tax_rate_ids: T::Array[String]).void }
1302
+ attr_writer :tax_rate_ids
1303
+
1304
+ sig do
1305
+ params(
1306
+ billing_address:
1307
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress::OrHash,
1308
+ charge_on_behalf_of_account: String,
1309
+ coupon_id: String,
1310
+ integration_id: String,
1311
+ invoice_days_until_due: Float,
1312
+ is_backdated: T::Boolean,
1313
+ is_invoice_paid: T::Boolean,
1314
+ metadata: T::Hash[Symbol, T.anything],
1315
+ proration_behavior:
1316
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::OrSymbol,
1317
+ tax_ids:
1318
+ T::Array[
1319
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID::OrHash
1320
+ ],
1321
+ tax_percentage: Float,
1322
+ tax_rate_ids: T::Array[String]
1323
+ ).returns(T.attached_class)
1324
+ end
1325
+ def self.new(
1326
+ # Physical address
1327
+ billing_address: nil,
1328
+ charge_on_behalf_of_account: nil,
1329
+ coupon_id: nil,
1330
+ integration_id: nil,
1331
+ invoice_days_until_due: nil,
1332
+ is_backdated: nil,
1333
+ is_invoice_paid: nil,
1334
+ # Additional metadata for the subscription
1335
+ metadata: nil,
1336
+ proration_behavior: nil,
1337
+ tax_ids: nil,
1338
+ tax_percentage: nil,
1339
+ tax_rate_ids: nil
1340
+ )
1341
+ end
1342
+
1343
+ sig do
1344
+ override.returns(
1345
+ {
1346
+ billing_address:
1347
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress,
1348
+ charge_on_behalf_of_account: String,
1349
+ coupon_id: String,
1350
+ integration_id: String,
1351
+ invoice_days_until_due: Float,
1352
+ is_backdated: T::Boolean,
1353
+ is_invoice_paid: T::Boolean,
1354
+ metadata: T::Hash[Symbol, T.anything],
1355
+ proration_behavior:
1356
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::OrSymbol,
1357
+ tax_ids:
1358
+ T::Array[
1359
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID
1360
+ ],
1361
+ tax_percentage: Float,
1362
+ tax_rate_ids: T::Array[String]
1363
+ }
1364
+ )
1365
+ end
1366
+ def to_hash
1367
+ end
1368
+
1369
+ class BillingAddress < Stigg::Internal::Type::BaseModel
1370
+ OrHash =
1371
+ T.type_alias do
1372
+ T.any(
1373
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress,
1374
+ Stigg::Internal::AnyHash
1375
+ )
1376
+ end
1377
+
1378
+ # City name
1379
+ sig { returns(T.nilable(String)) }
1380
+ attr_reader :city
1381
+
1382
+ sig { params(city: String).void }
1383
+ attr_writer :city
1384
+
1385
+ # Country code or name
1386
+ sig { returns(T.nilable(String)) }
1387
+ attr_reader :country
1388
+
1389
+ sig { params(country: String).void }
1390
+ attr_writer :country
1391
+
1392
+ # Street address line 1
1393
+ sig { returns(T.nilable(String)) }
1394
+ attr_reader :line1
1395
+
1396
+ sig { params(line1: String).void }
1397
+ attr_writer :line1
1398
+
1399
+ # Street address line 2
1400
+ sig { returns(T.nilable(String)) }
1401
+ attr_reader :line2
1402
+
1403
+ sig { params(line2: String).void }
1404
+ attr_writer :line2
1405
+
1406
+ # Postal or ZIP code
1407
+ sig { returns(T.nilable(String)) }
1408
+ attr_reader :postal_code
1409
+
1410
+ sig { params(postal_code: String).void }
1411
+ attr_writer :postal_code
1412
+
1413
+ # State or province
1414
+ sig { returns(T.nilable(String)) }
1415
+ attr_reader :state
1416
+
1417
+ sig { params(state: String).void }
1418
+ attr_writer :state
1419
+
1420
+ # Physical address
1421
+ sig do
1422
+ params(
1423
+ city: String,
1424
+ country: String,
1425
+ line1: String,
1426
+ line2: String,
1427
+ postal_code: String,
1428
+ state: String
1429
+ ).returns(T.attached_class)
1430
+ end
1431
+ def self.new(
1432
+ # City name
1433
+ city: nil,
1434
+ # Country code or name
1435
+ country: nil,
1436
+ # Street address line 1
1437
+ line1: nil,
1438
+ # Street address line 2
1439
+ line2: nil,
1440
+ # Postal or ZIP code
1441
+ postal_code: nil,
1442
+ # State or province
1443
+ state: nil
1444
+ )
1445
+ end
1446
+
1447
+ sig do
1448
+ override.returns(
1449
+ {
1450
+ city: String,
1451
+ country: String,
1452
+ line1: String,
1453
+ line2: String,
1454
+ postal_code: String,
1455
+ state: String
1456
+ }
1457
+ )
1458
+ end
1459
+ def to_hash
1460
+ end
1461
+ end
1462
+
1463
+ module ProrationBehavior
1464
+ extend Stigg::Internal::Type::Enum
1465
+
1466
+ TaggedSymbol =
1467
+ T.type_alias do
1468
+ T.all(
1469
+ Symbol,
1470
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior
1471
+ )
1472
+ end
1473
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1474
+
1475
+ INVOICE_IMMEDIATELY =
1476
+ T.let(
1477
+ :INVOICE_IMMEDIATELY,
1478
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::TaggedSymbol
1479
+ )
1480
+ CREATE_PRORATIONS =
1481
+ T.let(
1482
+ :CREATE_PRORATIONS,
1483
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::TaggedSymbol
1484
+ )
1485
+ NONE =
1486
+ T.let(
1487
+ :NONE,
1488
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::TaggedSymbol
1489
+ )
1490
+
1491
+ sig do
1492
+ override.returns(
1493
+ T::Array[
1494
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior::TaggedSymbol
1495
+ ]
1496
+ )
1497
+ end
1498
+ def self.values
1499
+ end
1500
+ end
1501
+
1502
+ class TaxID < Stigg::Internal::Type::BaseModel
1503
+ OrHash =
1504
+ T.type_alias do
1505
+ T.any(
1506
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID,
1507
+ Stigg::Internal::AnyHash
1508
+ )
1509
+ end
1510
+
1511
+ sig { returns(String) }
1512
+ attr_accessor :type
1513
+
1514
+ sig { returns(String) }
1515
+ attr_accessor :value
1516
+
1517
+ sig do
1518
+ params(type: String, value: String).returns(T.attached_class)
1519
+ end
1520
+ def self.new(type:, value:)
1521
+ end
1522
+
1523
+ sig { override.returns({ type: String, value: String }) }
1524
+ def to_hash
1525
+ end
1526
+ end
1527
+ end
1528
+
1529
+ module BillingPeriod
1530
+ extend Stigg::Internal::Type::Enum
1531
+
1532
+ TaggedSymbol =
1533
+ T.type_alias do
1534
+ T.all(Symbol, Stigg::V1::SubscriptionUpdateParams::BillingPeriod)
1535
+ end
1536
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1537
+
1538
+ MONTHLY =
1539
+ T.let(
1540
+ :MONTHLY,
1541
+ Stigg::V1::SubscriptionUpdateParams::BillingPeriod::TaggedSymbol
1542
+ )
1543
+ ANNUALLY =
1544
+ T.let(
1545
+ :ANNUALLY,
1546
+ Stigg::V1::SubscriptionUpdateParams::BillingPeriod::TaggedSymbol
1547
+ )
1548
+
1549
+ sig do
1550
+ override.returns(
1551
+ T::Array[
1552
+ Stigg::V1::SubscriptionUpdateParams::BillingPeriod::TaggedSymbol
1553
+ ]
1554
+ )
1555
+ end
1556
+ def self.values
1557
+ end
1558
+ end
1559
+
1560
+ class Budget < Stigg::Internal::Type::BaseModel
1561
+ OrHash =
1562
+ T.type_alias do
1563
+ T.any(
1564
+ Stigg::V1::SubscriptionUpdateParams::Budget,
1565
+ Stigg::Internal::AnyHash
1566
+ )
1567
+ end
1568
+
1569
+ sig { returns(T::Boolean) }
1570
+ attr_accessor :has_soft_limit
1571
+
1572
+ sig { returns(Float) }
1573
+ attr_accessor :limit
1574
+
1575
+ sig do
1576
+ params(has_soft_limit: T::Boolean, limit: Float).returns(
1577
+ T.attached_class
1578
+ )
1579
+ end
1580
+ def self.new(has_soft_limit:, limit:)
1581
+ end
1582
+
1583
+ sig { override.returns({ has_soft_limit: T::Boolean, limit: Float }) }
1584
+ def to_hash
1585
+ end
1586
+ end
1587
+
1588
+ class Charge < Stigg::Internal::Type::BaseModel
1589
+ OrHash =
1590
+ T.type_alias do
1591
+ T.any(
1592
+ Stigg::V1::SubscriptionUpdateParams::Charge,
1593
+ Stigg::Internal::AnyHash
1594
+ )
1595
+ end
1596
+
1597
+ # Charge ID
1598
+ sig { returns(String) }
1599
+ attr_accessor :id
1600
+
1601
+ sig { returns(Float) }
1602
+ attr_accessor :quantity
1603
+
1604
+ sig do
1605
+ returns(Stigg::V1::SubscriptionUpdateParams::Charge::Type::OrSymbol)
1606
+ end
1607
+ attr_accessor :type
1608
+
1609
+ sig do
1610
+ params(
1611
+ id: String,
1612
+ quantity: Float,
1613
+ type: Stigg::V1::SubscriptionUpdateParams::Charge::Type::OrSymbol
1614
+ ).returns(T.attached_class)
1615
+ end
1616
+ def self.new(
1617
+ # Charge ID
1618
+ id:,
1619
+ quantity:,
1620
+ type:
1621
+ )
1622
+ end
1623
+
1624
+ sig do
1625
+ override.returns(
1626
+ {
1627
+ id: String,
1628
+ quantity: Float,
1629
+ type:
1630
+ Stigg::V1::SubscriptionUpdateParams::Charge::Type::OrSymbol
1631
+ }
1632
+ )
1633
+ end
1634
+ def to_hash
1635
+ end
1636
+
1637
+ module Type
1638
+ extend Stigg::Internal::Type::Enum
1639
+
1640
+ TaggedSymbol =
1641
+ T.type_alias do
1642
+ T.all(Symbol, Stigg::V1::SubscriptionUpdateParams::Charge::Type)
1643
+ end
1644
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1645
+
1646
+ FEATURE =
1647
+ T.let(
1648
+ :FEATURE,
1649
+ Stigg::V1::SubscriptionUpdateParams::Charge::Type::TaggedSymbol
1650
+ )
1651
+ CREDIT =
1652
+ T.let(
1653
+ :CREDIT,
1654
+ Stigg::V1::SubscriptionUpdateParams::Charge::Type::TaggedSymbol
1655
+ )
1656
+
1657
+ sig do
1658
+ override.returns(
1659
+ T::Array[
1660
+ Stigg::V1::SubscriptionUpdateParams::Charge::Type::TaggedSymbol
1661
+ ]
1662
+ )
1663
+ end
1664
+ def self.values
1665
+ end
1666
+ end
1667
+ end
1668
+
1669
+ class MinimumSpend < Stigg::Internal::Type::BaseModel
1670
+ OrHash =
1671
+ T.type_alias do
1672
+ T.any(
1673
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend,
1674
+ Stigg::Internal::AnyHash
1675
+ )
1676
+ end
1677
+
1678
+ sig do
1679
+ returns(
1680
+ T.nilable(
1681
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum
1682
+ )
1683
+ )
1684
+ end
1685
+ attr_reader :minimum
1686
+
1687
+ sig do
1688
+ params(
1689
+ minimum:
1690
+ T.nilable(
1691
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::OrHash
1692
+ )
1693
+ ).void
1694
+ end
1695
+ attr_writer :minimum
1696
+
1697
+ sig do
1698
+ params(
1699
+ minimum:
1700
+ T.nilable(
1701
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::OrHash
1702
+ )
1703
+ ).returns(T.attached_class)
1704
+ end
1705
+ def self.new(minimum: nil)
1706
+ end
1707
+
1708
+ sig do
1709
+ override.returns(
1710
+ {
1711
+ minimum:
1712
+ T.nilable(
1713
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum
1714
+ )
1715
+ }
1716
+ )
1717
+ end
1718
+ def to_hash
1719
+ end
1720
+
1721
+ class Minimum < Stigg::Internal::Type::BaseModel
1722
+ OrHash =
1723
+ T.type_alias do
1724
+ T.any(
1725
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum,
1726
+ Stigg::Internal::AnyHash
1727
+ )
1728
+ end
1729
+
1730
+ sig { returns(Float) }
1731
+ attr_accessor :amount
1732
+
1733
+ sig do
1734
+ returns(
1735
+ T.nilable(
1736
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::OrSymbol
1737
+ )
1738
+ )
1739
+ end
1740
+ attr_reader :currency
1741
+
1742
+ sig do
1743
+ params(
1744
+ currency:
1745
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::OrSymbol
1746
+ ).void
1747
+ end
1748
+ attr_writer :currency
1749
+
1750
+ sig do
1751
+ params(
1752
+ amount: Float,
1753
+ currency:
1754
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::OrSymbol
1755
+ ).returns(T.attached_class)
1756
+ end
1757
+ def self.new(amount:, currency: nil)
1758
+ end
1759
+
1760
+ sig do
1761
+ override.returns(
1762
+ {
1763
+ amount: Float,
1764
+ currency:
1765
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::OrSymbol
1766
+ }
1767
+ )
1768
+ end
1769
+ def to_hash
1770
+ end
1771
+
1772
+ module Currency
1773
+ extend Stigg::Internal::Type::Enum
1774
+
1775
+ TaggedSymbol =
1776
+ T.type_alias do
1777
+ T.all(
1778
+ Symbol,
1779
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency
1780
+ )
1781
+ end
1782
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1783
+
1784
+ USD =
1785
+ T.let(
1786
+ :usd,
1787
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1788
+ )
1789
+ AED =
1790
+ T.let(
1791
+ :aed,
1792
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1793
+ )
1794
+ ALL =
1795
+ T.let(
1796
+ :all,
1797
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1798
+ )
1799
+ AMD =
1800
+ T.let(
1801
+ :amd,
1802
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1803
+ )
1804
+ ANG =
1805
+ T.let(
1806
+ :ang,
1807
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1808
+ )
1809
+ AUD =
1810
+ T.let(
1811
+ :aud,
1812
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1813
+ )
1814
+ AWG =
1815
+ T.let(
1816
+ :awg,
1817
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1818
+ )
1819
+ AZN =
1820
+ T.let(
1821
+ :azn,
1822
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1823
+ )
1824
+ BAM =
1825
+ T.let(
1826
+ :bam,
1827
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1828
+ )
1829
+ BBD =
1830
+ T.let(
1831
+ :bbd,
1832
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1833
+ )
1834
+ BDT =
1835
+ T.let(
1836
+ :bdt,
1837
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1838
+ )
1839
+ BGN =
1840
+ T.let(
1841
+ :bgn,
1842
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1843
+ )
1844
+ BIF =
1845
+ T.let(
1846
+ :bif,
1847
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1848
+ )
1849
+ BMD =
1850
+ T.let(
1851
+ :bmd,
1852
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1853
+ )
1854
+ BND =
1855
+ T.let(
1856
+ :bnd,
1857
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1858
+ )
1859
+ BSD =
1860
+ T.let(
1861
+ :bsd,
1862
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1863
+ )
1864
+ BWP =
1865
+ T.let(
1866
+ :bwp,
1867
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1868
+ )
1869
+ BYN =
1870
+ T.let(
1871
+ :byn,
1872
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1873
+ )
1874
+ BZD =
1875
+ T.let(
1876
+ :bzd,
1877
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1878
+ )
1879
+ BRL =
1880
+ T.let(
1881
+ :brl,
1882
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1883
+ )
1884
+ CAD =
1885
+ T.let(
1886
+ :cad,
1887
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1888
+ )
1889
+ CDF =
1890
+ T.let(
1891
+ :cdf,
1892
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1893
+ )
1894
+ CHF =
1895
+ T.let(
1896
+ :chf,
1897
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1898
+ )
1899
+ CNY =
1900
+ T.let(
1901
+ :cny,
1902
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1903
+ )
1904
+ CZK =
1905
+ T.let(
1906
+ :czk,
1907
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1908
+ )
1909
+ DKK =
1910
+ T.let(
1911
+ :dkk,
1912
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1913
+ )
1914
+ DOP =
1915
+ T.let(
1916
+ :dop,
1917
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1918
+ )
1919
+ DZD =
1920
+ T.let(
1921
+ :dzd,
1922
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1923
+ )
1924
+ EGP =
1925
+ T.let(
1926
+ :egp,
1927
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1928
+ )
1929
+ ETB =
1930
+ T.let(
1931
+ :etb,
1932
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1933
+ )
1934
+ EUR =
1935
+ T.let(
1936
+ :eur,
1937
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1938
+ )
1939
+ FJD =
1940
+ T.let(
1941
+ :fjd,
1942
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1943
+ )
1944
+ GBP =
1945
+ T.let(
1946
+ :gbp,
1947
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1948
+ )
1949
+ GEL =
1950
+ T.let(
1951
+ :gel,
1952
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1953
+ )
1954
+ GIP =
1955
+ T.let(
1956
+ :gip,
1957
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1958
+ )
1959
+ GMD =
1960
+ T.let(
1961
+ :gmd,
1962
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1963
+ )
1964
+ GYD =
1965
+ T.let(
1966
+ :gyd,
1967
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1968
+ )
1969
+ HKD =
1970
+ T.let(
1971
+ :hkd,
1972
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1973
+ )
1974
+ HRK =
1975
+ T.let(
1976
+ :hrk,
1977
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1978
+ )
1979
+ HTG =
1980
+ T.let(
1981
+ :htg,
1982
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1983
+ )
1984
+ IDR =
1985
+ T.let(
1986
+ :idr,
1987
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1988
+ )
1989
+ ILS =
1990
+ T.let(
1991
+ :ils,
1992
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1993
+ )
1994
+ INR =
1995
+ T.let(
1996
+ :inr,
1997
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
1998
+ )
1999
+ ISK =
2000
+ T.let(
2001
+ :isk,
2002
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2003
+ )
2004
+ JMD =
2005
+ T.let(
2006
+ :jmd,
2007
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2008
+ )
2009
+ JPY =
2010
+ T.let(
2011
+ :jpy,
2012
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2013
+ )
2014
+ KES =
2015
+ T.let(
2016
+ :kes,
2017
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2018
+ )
2019
+ KGS =
2020
+ T.let(
2021
+ :kgs,
2022
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2023
+ )
2024
+ KHR =
2025
+ T.let(
2026
+ :khr,
2027
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2028
+ )
2029
+ KMF =
2030
+ T.let(
2031
+ :kmf,
2032
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2033
+ )
2034
+ KRW =
2035
+ T.let(
2036
+ :krw,
2037
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2038
+ )
2039
+ KYD =
2040
+ T.let(
2041
+ :kyd,
2042
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2043
+ )
2044
+ KZT =
2045
+ T.let(
2046
+ :kzt,
2047
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2048
+ )
2049
+ LBP =
2050
+ T.let(
2051
+ :lbp,
2052
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2053
+ )
2054
+ LKR =
2055
+ T.let(
2056
+ :lkr,
2057
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2058
+ )
2059
+ LRD =
2060
+ T.let(
2061
+ :lrd,
2062
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2063
+ )
2064
+ LSL =
2065
+ T.let(
2066
+ :lsl,
2067
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2068
+ )
2069
+ MAD =
2070
+ T.let(
2071
+ :mad,
2072
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2073
+ )
2074
+ MDL =
2075
+ T.let(
2076
+ :mdl,
2077
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2078
+ )
2079
+ MGA =
2080
+ T.let(
2081
+ :mga,
2082
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2083
+ )
2084
+ MKD =
2085
+ T.let(
2086
+ :mkd,
2087
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2088
+ )
2089
+ MMK =
2090
+ T.let(
2091
+ :mmk,
2092
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2093
+ )
2094
+ MNT =
2095
+ T.let(
2096
+ :mnt,
2097
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2098
+ )
2099
+ MOP =
2100
+ T.let(
2101
+ :mop,
2102
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2103
+ )
2104
+ MRO =
2105
+ T.let(
2106
+ :mro,
2107
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2108
+ )
2109
+ MVR =
2110
+ T.let(
2111
+ :mvr,
2112
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2113
+ )
2114
+ MWK =
2115
+ T.let(
2116
+ :mwk,
2117
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2118
+ )
2119
+ MXN =
2120
+ T.let(
2121
+ :mxn,
2122
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2123
+ )
2124
+ MYR =
2125
+ T.let(
2126
+ :myr,
2127
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2128
+ )
2129
+ MZN =
2130
+ T.let(
2131
+ :mzn,
2132
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2133
+ )
2134
+ NAD =
2135
+ T.let(
2136
+ :nad,
2137
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2138
+ )
2139
+ NGN =
2140
+ T.let(
2141
+ :ngn,
2142
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2143
+ )
2144
+ NOK =
2145
+ T.let(
2146
+ :nok,
2147
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2148
+ )
2149
+ NPR =
2150
+ T.let(
2151
+ :npr,
2152
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2153
+ )
2154
+ NZD =
2155
+ T.let(
2156
+ :nzd,
2157
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2158
+ )
2159
+ PGK =
2160
+ T.let(
2161
+ :pgk,
2162
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2163
+ )
2164
+ PHP =
2165
+ T.let(
2166
+ :php,
2167
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2168
+ )
2169
+ PKR =
2170
+ T.let(
2171
+ :pkr,
2172
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2173
+ )
2174
+ PLN =
2175
+ T.let(
2176
+ :pln,
2177
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2178
+ )
2179
+ QAR =
2180
+ T.let(
2181
+ :qar,
2182
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2183
+ )
2184
+ RON =
2185
+ T.let(
2186
+ :ron,
2187
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2188
+ )
2189
+ RSD =
2190
+ T.let(
2191
+ :rsd,
2192
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2193
+ )
2194
+ RUB =
2195
+ T.let(
2196
+ :rub,
2197
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2198
+ )
2199
+ RWF =
2200
+ T.let(
2201
+ :rwf,
2202
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2203
+ )
2204
+ SAR =
2205
+ T.let(
2206
+ :sar,
2207
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2208
+ )
2209
+ SBD =
2210
+ T.let(
2211
+ :sbd,
2212
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2213
+ )
2214
+ SCR =
2215
+ T.let(
2216
+ :scr,
2217
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2218
+ )
2219
+ SEK =
2220
+ T.let(
2221
+ :sek,
2222
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2223
+ )
2224
+ SGD =
2225
+ T.let(
2226
+ :sgd,
2227
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2228
+ )
2229
+ SLE =
2230
+ T.let(
2231
+ :sle,
2232
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2233
+ )
2234
+ SLL =
2235
+ T.let(
2236
+ :sll,
2237
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2238
+ )
2239
+ SOS =
2240
+ T.let(
2241
+ :sos,
2242
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2243
+ )
2244
+ SZL =
2245
+ T.let(
2246
+ :szl,
2247
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2248
+ )
2249
+ THB =
2250
+ T.let(
2251
+ :thb,
2252
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2253
+ )
2254
+ TJS =
2255
+ T.let(
2256
+ :tjs,
2257
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2258
+ )
2259
+ TOP =
2260
+ T.let(
2261
+ :top,
2262
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2263
+ )
2264
+ TRY =
2265
+ T.let(
2266
+ :try,
2267
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2268
+ )
2269
+ TTD =
2270
+ T.let(
2271
+ :ttd,
2272
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2273
+ )
2274
+ TZS =
2275
+ T.let(
2276
+ :tzs,
2277
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2278
+ )
2279
+ UAH =
2280
+ T.let(
2281
+ :uah,
2282
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2283
+ )
2284
+ UZS =
2285
+ T.let(
2286
+ :uzs,
2287
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2288
+ )
2289
+ VND =
2290
+ T.let(
2291
+ :vnd,
2292
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2293
+ )
2294
+ VUV =
2295
+ T.let(
2296
+ :vuv,
2297
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2298
+ )
2299
+ WST =
2300
+ T.let(
2301
+ :wst,
2302
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2303
+ )
2304
+ XAF =
2305
+ T.let(
2306
+ :xaf,
2307
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2308
+ )
2309
+ XCD =
2310
+ T.let(
2311
+ :xcd,
2312
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2313
+ )
2314
+ YER =
2315
+ T.let(
2316
+ :yer,
2317
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2318
+ )
2319
+ ZAR =
2320
+ T.let(
2321
+ :zar,
2322
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2323
+ )
2324
+ ZMW =
2325
+ T.let(
2326
+ :zmw,
2327
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2328
+ )
2329
+ CLP =
2330
+ T.let(
2331
+ :clp,
2332
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2333
+ )
2334
+ DJF =
2335
+ T.let(
2336
+ :djf,
2337
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2338
+ )
2339
+ GNF =
2340
+ T.let(
2341
+ :gnf,
2342
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2343
+ )
2344
+ UGX =
2345
+ T.let(
2346
+ :ugx,
2347
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2348
+ )
2349
+ PYG =
2350
+ T.let(
2351
+ :pyg,
2352
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2353
+ )
2354
+ XOF =
2355
+ T.let(
2356
+ :xof,
2357
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2358
+ )
2359
+ XPF =
2360
+ T.let(
2361
+ :xpf,
2362
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2363
+ )
2364
+
2365
+ sig do
2366
+ override.returns(
2367
+ T::Array[
2368
+ Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency::TaggedSymbol
2369
+ ]
2370
+ )
2371
+ end
2372
+ def self.values
2373
+ end
2374
+ end
2375
+ end
2376
+ end
2377
+
2378
+ class PriceOverride < Stigg::Internal::Type::BaseModel
2379
+ OrHash =
2380
+ T.type_alias do
2381
+ T.any(
2382
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride,
2383
+ Stigg::Internal::AnyHash
2384
+ )
2385
+ end
2386
+
2387
+ # Feature ID
2388
+ sig { returns(String) }
2389
+ attr_accessor :feature_id
2390
+
2391
+ sig do
2392
+ returns(
2393
+ T.nilable(
2394
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price
2395
+ )
2396
+ )
2397
+ end
2398
+ attr_reader :price
2399
+
2400
+ sig do
2401
+ params(
2402
+ price:
2403
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::OrHash
2404
+ ).void
2405
+ end
2406
+ attr_writer :price
2407
+
2408
+ sig do
2409
+ params(
2410
+ feature_id: String,
2411
+ price:
2412
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::OrHash
2413
+ ).returns(T.attached_class)
2414
+ end
2415
+ def self.new(
2416
+ # Feature ID
2417
+ feature_id:,
2418
+ price: nil
2419
+ )
2420
+ end
2421
+
2422
+ sig do
2423
+ override.returns(
2424
+ {
2425
+ feature_id: String,
2426
+ price: Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price
2427
+ }
2428
+ )
2429
+ end
2430
+ def to_hash
2431
+ end
2432
+
2433
+ class Price < Stigg::Internal::Type::BaseModel
2434
+ OrHash =
2435
+ T.type_alias do
2436
+ T.any(
2437
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price,
2438
+ Stigg::Internal::AnyHash
2439
+ )
2440
+ end
2441
+
2442
+ sig { returns(Float) }
2443
+ attr_accessor :amount
2444
+
2445
+ sig do
2446
+ returns(
2447
+ T.nilable(
2448
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::OrSymbol
2449
+ )
2450
+ )
2451
+ end
2452
+ attr_reader :currency
2453
+
2454
+ sig do
2455
+ params(
2456
+ currency:
2457
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::OrSymbol
2458
+ ).void
2459
+ end
2460
+ attr_writer :currency
2461
+
2462
+ sig do
2463
+ params(
2464
+ amount: Float,
2465
+ currency:
2466
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::OrSymbol
2467
+ ).returns(T.attached_class)
2468
+ end
2469
+ def self.new(amount:, currency: nil)
2470
+ end
2471
+
2472
+ sig do
2473
+ override.returns(
2474
+ {
2475
+ amount: Float,
2476
+ currency:
2477
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::OrSymbol
2478
+ }
2479
+ )
2480
+ end
2481
+ def to_hash
2482
+ end
2483
+
2484
+ module Currency
2485
+ extend Stigg::Internal::Type::Enum
2486
+
2487
+ TaggedSymbol =
2488
+ T.type_alias do
2489
+ T.all(
2490
+ Symbol,
2491
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency
2492
+ )
2493
+ end
2494
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2495
+
2496
+ USD =
2497
+ T.let(
2498
+ :usd,
2499
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2500
+ )
2501
+ AED =
2502
+ T.let(
2503
+ :aed,
2504
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2505
+ )
2506
+ ALL =
2507
+ T.let(
2508
+ :all,
2509
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2510
+ )
2511
+ AMD =
2512
+ T.let(
2513
+ :amd,
2514
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2515
+ )
2516
+ ANG =
2517
+ T.let(
2518
+ :ang,
2519
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2520
+ )
2521
+ AUD =
2522
+ T.let(
2523
+ :aud,
2524
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2525
+ )
2526
+ AWG =
2527
+ T.let(
2528
+ :awg,
2529
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2530
+ )
2531
+ AZN =
2532
+ T.let(
2533
+ :azn,
2534
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2535
+ )
2536
+ BAM =
2537
+ T.let(
2538
+ :bam,
2539
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2540
+ )
2541
+ BBD =
2542
+ T.let(
2543
+ :bbd,
2544
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2545
+ )
2546
+ BDT =
2547
+ T.let(
2548
+ :bdt,
2549
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2550
+ )
2551
+ BGN =
2552
+ T.let(
2553
+ :bgn,
2554
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2555
+ )
2556
+ BIF =
2557
+ T.let(
2558
+ :bif,
2559
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2560
+ )
2561
+ BMD =
2562
+ T.let(
2563
+ :bmd,
2564
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2565
+ )
2566
+ BND =
2567
+ T.let(
2568
+ :bnd,
2569
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2570
+ )
2571
+ BSD =
2572
+ T.let(
2573
+ :bsd,
2574
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2575
+ )
2576
+ BWP =
2577
+ T.let(
2578
+ :bwp,
2579
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2580
+ )
2581
+ BYN =
2582
+ T.let(
2583
+ :byn,
2584
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2585
+ )
2586
+ BZD =
2587
+ T.let(
2588
+ :bzd,
2589
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2590
+ )
2591
+ BRL =
2592
+ T.let(
2593
+ :brl,
2594
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2595
+ )
2596
+ CAD =
2597
+ T.let(
2598
+ :cad,
2599
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2600
+ )
2601
+ CDF =
2602
+ T.let(
2603
+ :cdf,
2604
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2605
+ )
2606
+ CHF =
2607
+ T.let(
2608
+ :chf,
2609
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2610
+ )
2611
+ CNY =
2612
+ T.let(
2613
+ :cny,
2614
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2615
+ )
2616
+ CZK =
2617
+ T.let(
2618
+ :czk,
2619
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2620
+ )
2621
+ DKK =
2622
+ T.let(
2623
+ :dkk,
2624
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2625
+ )
2626
+ DOP =
2627
+ T.let(
2628
+ :dop,
2629
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2630
+ )
2631
+ DZD =
2632
+ T.let(
2633
+ :dzd,
2634
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2635
+ )
2636
+ EGP =
2637
+ T.let(
2638
+ :egp,
2639
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2640
+ )
2641
+ ETB =
2642
+ T.let(
2643
+ :etb,
2644
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2645
+ )
2646
+ EUR =
2647
+ T.let(
2648
+ :eur,
2649
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2650
+ )
2651
+ FJD =
2652
+ T.let(
2653
+ :fjd,
2654
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2655
+ )
2656
+ GBP =
2657
+ T.let(
2658
+ :gbp,
2659
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2660
+ )
2661
+ GEL =
2662
+ T.let(
2663
+ :gel,
2664
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2665
+ )
2666
+ GIP =
2667
+ T.let(
2668
+ :gip,
2669
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2670
+ )
2671
+ GMD =
2672
+ T.let(
2673
+ :gmd,
2674
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2675
+ )
2676
+ GYD =
2677
+ T.let(
2678
+ :gyd,
2679
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2680
+ )
2681
+ HKD =
2682
+ T.let(
2683
+ :hkd,
2684
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2685
+ )
2686
+ HRK =
2687
+ T.let(
2688
+ :hrk,
2689
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2690
+ )
2691
+ HTG =
2692
+ T.let(
2693
+ :htg,
2694
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2695
+ )
2696
+ IDR =
2697
+ T.let(
2698
+ :idr,
2699
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2700
+ )
2701
+ ILS =
2702
+ T.let(
2703
+ :ils,
2704
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2705
+ )
2706
+ INR =
2707
+ T.let(
2708
+ :inr,
2709
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2710
+ )
2711
+ ISK =
2712
+ T.let(
2713
+ :isk,
2714
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2715
+ )
2716
+ JMD =
2717
+ T.let(
2718
+ :jmd,
2719
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2720
+ )
2721
+ JPY =
2722
+ T.let(
2723
+ :jpy,
2724
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2725
+ )
2726
+ KES =
2727
+ T.let(
2728
+ :kes,
2729
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2730
+ )
2731
+ KGS =
2732
+ T.let(
2733
+ :kgs,
2734
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2735
+ )
2736
+ KHR =
2737
+ T.let(
2738
+ :khr,
2739
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2740
+ )
2741
+ KMF =
2742
+ T.let(
2743
+ :kmf,
2744
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2745
+ )
2746
+ KRW =
2747
+ T.let(
2748
+ :krw,
2749
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2750
+ )
2751
+ KYD =
2752
+ T.let(
2753
+ :kyd,
2754
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2755
+ )
2756
+ KZT =
2757
+ T.let(
2758
+ :kzt,
2759
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2760
+ )
2761
+ LBP =
2762
+ T.let(
2763
+ :lbp,
2764
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2765
+ )
2766
+ LKR =
2767
+ T.let(
2768
+ :lkr,
2769
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2770
+ )
2771
+ LRD =
2772
+ T.let(
2773
+ :lrd,
2774
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2775
+ )
2776
+ LSL =
2777
+ T.let(
2778
+ :lsl,
2779
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2780
+ )
2781
+ MAD =
2782
+ T.let(
2783
+ :mad,
2784
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2785
+ )
2786
+ MDL =
2787
+ T.let(
2788
+ :mdl,
2789
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2790
+ )
2791
+ MGA =
2792
+ T.let(
2793
+ :mga,
2794
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2795
+ )
2796
+ MKD =
2797
+ T.let(
2798
+ :mkd,
2799
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2800
+ )
2801
+ MMK =
2802
+ T.let(
2803
+ :mmk,
2804
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2805
+ )
2806
+ MNT =
2807
+ T.let(
2808
+ :mnt,
2809
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2810
+ )
2811
+ MOP =
2812
+ T.let(
2813
+ :mop,
2814
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2815
+ )
2816
+ MRO =
2817
+ T.let(
2818
+ :mro,
2819
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2820
+ )
2821
+ MVR =
2822
+ T.let(
2823
+ :mvr,
2824
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2825
+ )
2826
+ MWK =
2827
+ T.let(
2828
+ :mwk,
2829
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2830
+ )
2831
+ MXN =
2832
+ T.let(
2833
+ :mxn,
2834
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2835
+ )
2836
+ MYR =
2837
+ T.let(
2838
+ :myr,
2839
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2840
+ )
2841
+ MZN =
2842
+ T.let(
2843
+ :mzn,
2844
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2845
+ )
2846
+ NAD =
2847
+ T.let(
2848
+ :nad,
2849
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2850
+ )
2851
+ NGN =
2852
+ T.let(
2853
+ :ngn,
2854
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2855
+ )
2856
+ NOK =
2857
+ T.let(
2858
+ :nok,
2859
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2860
+ )
2861
+ NPR =
2862
+ T.let(
2863
+ :npr,
2864
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2865
+ )
2866
+ NZD =
2867
+ T.let(
2868
+ :nzd,
2869
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2870
+ )
2871
+ PGK =
2872
+ T.let(
2873
+ :pgk,
2874
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2875
+ )
2876
+ PHP =
2877
+ T.let(
2878
+ :php,
2879
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2880
+ )
2881
+ PKR =
2882
+ T.let(
2883
+ :pkr,
2884
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2885
+ )
2886
+ PLN =
2887
+ T.let(
2888
+ :pln,
2889
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2890
+ )
2891
+ QAR =
2892
+ T.let(
2893
+ :qar,
2894
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2895
+ )
2896
+ RON =
2897
+ T.let(
2898
+ :ron,
2899
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2900
+ )
2901
+ RSD =
2902
+ T.let(
2903
+ :rsd,
2904
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2905
+ )
2906
+ RUB =
2907
+ T.let(
2908
+ :rub,
2909
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2910
+ )
2911
+ RWF =
2912
+ T.let(
2913
+ :rwf,
2914
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2915
+ )
2916
+ SAR =
2917
+ T.let(
2918
+ :sar,
2919
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2920
+ )
2921
+ SBD =
2922
+ T.let(
2923
+ :sbd,
2924
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2925
+ )
2926
+ SCR =
2927
+ T.let(
2928
+ :scr,
2929
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2930
+ )
2931
+ SEK =
2932
+ T.let(
2933
+ :sek,
2934
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2935
+ )
2936
+ SGD =
2937
+ T.let(
2938
+ :sgd,
2939
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2940
+ )
2941
+ SLE =
2942
+ T.let(
2943
+ :sle,
2944
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2945
+ )
2946
+ SLL =
2947
+ T.let(
2948
+ :sll,
2949
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2950
+ )
2951
+ SOS =
2952
+ T.let(
2953
+ :sos,
2954
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2955
+ )
2956
+ SZL =
2957
+ T.let(
2958
+ :szl,
2959
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2960
+ )
2961
+ THB =
2962
+ T.let(
2963
+ :thb,
2964
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2965
+ )
2966
+ TJS =
2967
+ T.let(
2968
+ :tjs,
2969
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2970
+ )
2971
+ TOP =
2972
+ T.let(
2973
+ :top,
2974
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2975
+ )
2976
+ TRY =
2977
+ T.let(
2978
+ :try,
2979
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2980
+ )
2981
+ TTD =
2982
+ T.let(
2983
+ :ttd,
2984
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2985
+ )
2986
+ TZS =
2987
+ T.let(
2988
+ :tzs,
2989
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2990
+ )
2991
+ UAH =
2992
+ T.let(
2993
+ :uah,
2994
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
2995
+ )
2996
+ UZS =
2997
+ T.let(
2998
+ :uzs,
2999
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3000
+ )
3001
+ VND =
3002
+ T.let(
3003
+ :vnd,
3004
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3005
+ )
3006
+ VUV =
3007
+ T.let(
3008
+ :vuv,
3009
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3010
+ )
3011
+ WST =
3012
+ T.let(
3013
+ :wst,
3014
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3015
+ )
3016
+ XAF =
3017
+ T.let(
3018
+ :xaf,
3019
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3020
+ )
3021
+ XCD =
3022
+ T.let(
3023
+ :xcd,
3024
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3025
+ )
3026
+ YER =
3027
+ T.let(
3028
+ :yer,
3029
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3030
+ )
3031
+ ZAR =
3032
+ T.let(
3033
+ :zar,
3034
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3035
+ )
3036
+ ZMW =
3037
+ T.let(
3038
+ :zmw,
3039
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3040
+ )
3041
+ CLP =
3042
+ T.let(
3043
+ :clp,
3044
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3045
+ )
3046
+ DJF =
3047
+ T.let(
3048
+ :djf,
3049
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3050
+ )
3051
+ GNF =
3052
+ T.let(
3053
+ :gnf,
3054
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3055
+ )
3056
+ UGX =
3057
+ T.let(
3058
+ :ugx,
3059
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3060
+ )
3061
+ PYG =
3062
+ T.let(
3063
+ :pyg,
3064
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3065
+ )
3066
+ XOF =
3067
+ T.let(
3068
+ :xof,
3069
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3070
+ )
3071
+ XPF =
3072
+ T.let(
3073
+ :xpf,
3074
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3075
+ )
3076
+
3077
+ sig do
3078
+ override.returns(
3079
+ T::Array[
3080
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency::TaggedSymbol
3081
+ ]
3082
+ )
3083
+ end
3084
+ def self.values
3085
+ end
3086
+ end
3087
+ end
3088
+ end
3089
+
3090
+ module ScheduleStrategy
3091
+ extend Stigg::Internal::Type::Enum
3092
+
3093
+ TaggedSymbol =
3094
+ T.type_alias do
3095
+ T.all(
3096
+ Symbol,
3097
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy
3098
+ )
3099
+ end
3100
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3101
+
3102
+ END_OF_BILLING_PERIOD =
3103
+ T.let(
3104
+ :END_OF_BILLING_PERIOD,
3105
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::TaggedSymbol
3106
+ )
3107
+ END_OF_BILLING_MONTH =
3108
+ T.let(
3109
+ :END_OF_BILLING_MONTH,
3110
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::TaggedSymbol
3111
+ )
3112
+ IMMEDIATE =
3113
+ T.let(
3114
+ :IMMEDIATE,
3115
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::TaggedSymbol
3116
+ )
3117
+
3118
+ sig do
3119
+ override.returns(
3120
+ T::Array[
3121
+ Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy::TaggedSymbol
3122
+ ]
3123
+ )
3124
+ end
3125
+ def self.values
3126
+ end
3127
+ end
3128
+
3129
+ class SubscriptionEntitlement < Stigg::Internal::Type::BaseModel
3130
+ OrHash =
3131
+ T.type_alias do
3132
+ T.any(
3133
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement,
3134
+ Stigg::Internal::AnyHash
3135
+ )
3136
+ end
3137
+
3138
+ sig { returns(T.nilable(String)) }
3139
+ attr_reader :id
3140
+
3141
+ sig { params(id: String).void }
3142
+ attr_writer :id
3143
+
3144
+ sig { returns(T.nilable(String)) }
3145
+ attr_reader :feature_id
3146
+
3147
+ sig { params(feature_id: String).void }
3148
+ attr_writer :feature_id
3149
+
3150
+ sig { returns(T.nilable(T::Boolean)) }
3151
+ attr_reader :has_soft_limit
3152
+
3153
+ sig { params(has_soft_limit: T::Boolean).void }
3154
+ attr_writer :has_soft_limit
3155
+
3156
+ sig { returns(T.nilable(T::Boolean)) }
3157
+ attr_reader :has_unlimited_usage
3158
+
3159
+ sig { params(has_unlimited_usage: T::Boolean).void }
3160
+ attr_writer :has_unlimited_usage
3161
+
3162
+ sig do
3163
+ returns(
3164
+ T.nilable(
3165
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration
3166
+ )
3167
+ )
3168
+ end
3169
+ attr_reader :monthly_reset_period_configuration
3170
+
3171
+ sig do
3172
+ params(
3173
+ monthly_reset_period_configuration:
3174
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::OrHash
3175
+ ).void
3176
+ end
3177
+ attr_writer :monthly_reset_period_configuration
3178
+
3179
+ sig do
3180
+ returns(
3181
+ T.nilable(
3182
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::OrSymbol
3183
+ )
3184
+ )
3185
+ end
3186
+ attr_reader :reset_period
3187
+
3188
+ sig do
3189
+ params(
3190
+ reset_period:
3191
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::OrSymbol
3192
+ ).void
3193
+ end
3194
+ attr_writer :reset_period
3195
+
3196
+ sig { returns(T.nilable(Float)) }
3197
+ attr_reader :usage_limit
3198
+
3199
+ sig { params(usage_limit: Float).void }
3200
+ attr_writer :usage_limit
3201
+
3202
+ sig do
3203
+ returns(
3204
+ T.nilable(
3205
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration
3206
+ )
3207
+ )
3208
+ end
3209
+ attr_reader :weekly_reset_period_configuration
3210
+
3211
+ sig do
3212
+ params(
3213
+ weekly_reset_period_configuration:
3214
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::OrHash
3215
+ ).void
3216
+ end
3217
+ attr_writer :weekly_reset_period_configuration
3218
+
3219
+ sig do
3220
+ returns(
3221
+ T.nilable(
3222
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
3223
+ )
3224
+ )
3225
+ end
3226
+ attr_reader :yearly_reset_period_configuration
3227
+
3228
+ sig do
3229
+ params(
3230
+ yearly_reset_period_configuration:
3231
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::OrHash
3232
+ ).void
3233
+ end
3234
+ attr_writer :yearly_reset_period_configuration
3235
+
3236
+ sig do
3237
+ params(
3238
+ id: String,
3239
+ feature_id: String,
3240
+ has_soft_limit: T::Boolean,
3241
+ has_unlimited_usage: T::Boolean,
3242
+ monthly_reset_period_configuration:
3243
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::OrHash,
3244
+ reset_period:
3245
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::OrSymbol,
3246
+ usage_limit: Float,
3247
+ weekly_reset_period_configuration:
3248
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::OrHash,
3249
+ yearly_reset_period_configuration:
3250
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::OrHash
3251
+ ).returns(T.attached_class)
3252
+ end
3253
+ def self.new(
3254
+ id: nil,
3255
+ feature_id: nil,
3256
+ has_soft_limit: nil,
3257
+ has_unlimited_usage: nil,
3258
+ monthly_reset_period_configuration: nil,
3259
+ reset_period: nil,
3260
+ usage_limit: nil,
3261
+ weekly_reset_period_configuration: nil,
3262
+ yearly_reset_period_configuration: nil
3263
+ )
3264
+ end
3265
+
3266
+ sig do
3267
+ override.returns(
3268
+ {
3269
+ id: String,
3270
+ feature_id: String,
3271
+ has_soft_limit: T::Boolean,
3272
+ has_unlimited_usage: T::Boolean,
3273
+ monthly_reset_period_configuration:
3274
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration,
3275
+ reset_period:
3276
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::OrSymbol,
3277
+ usage_limit: Float,
3278
+ weekly_reset_period_configuration:
3279
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration,
3280
+ yearly_reset_period_configuration:
3281
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
3282
+ }
3283
+ )
3284
+ end
3285
+ def to_hash
3286
+ end
3287
+
3288
+ class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
3289
+ OrHash =
3290
+ T.type_alias do
3291
+ T.any(
3292
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration,
3293
+ Stigg::Internal::AnyHash
3294
+ )
3295
+ end
3296
+
3297
+ sig do
3298
+ returns(
3299
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
3300
+ )
3301
+ end
3302
+ attr_accessor :according_to
3303
+
3304
+ sig do
3305
+ params(
3306
+ according_to:
3307
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
3308
+ ).returns(T.attached_class)
3309
+ end
3310
+ def self.new(according_to:)
3311
+ end
3312
+
3313
+ sig do
3314
+ override.returns(
3315
+ {
3316
+ according_to:
3317
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
3318
+ }
3319
+ )
3320
+ end
3321
+ def to_hash
3322
+ end
3323
+
3324
+ module AccordingTo
3325
+ extend Stigg::Internal::Type::Enum
3326
+
3327
+ TaggedSymbol =
3328
+ T.type_alias do
3329
+ T.all(
3330
+ Symbol,
3331
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
3332
+ )
3333
+ end
3334
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3335
+
3336
+ SUBSCRIPTION_START =
3337
+ T.let(
3338
+ :SubscriptionStart,
3339
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3340
+ )
3341
+ START_OF_THE_MONTH =
3342
+ T.let(
3343
+ :StartOfTheMonth,
3344
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3345
+ )
3346
+
3347
+ sig do
3348
+ override.returns(
3349
+ T::Array[
3350
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3351
+ ]
3352
+ )
3353
+ end
3354
+ def self.values
3355
+ end
3356
+ end
3357
+ end
3358
+
3359
+ module ResetPeriod
3360
+ extend Stigg::Internal::Type::Enum
3361
+
3362
+ TaggedSymbol =
3363
+ T.type_alias do
3364
+ T.all(
3365
+ Symbol,
3366
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod
3367
+ )
3368
+ end
3369
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3370
+
3371
+ YEAR =
3372
+ T.let(
3373
+ :YEAR,
3374
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::TaggedSymbol
3375
+ )
3376
+ MONTH =
3377
+ T.let(
3378
+ :MONTH,
3379
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::TaggedSymbol
3380
+ )
3381
+ WEEK =
3382
+ T.let(
3383
+ :WEEK,
3384
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::TaggedSymbol
3385
+ )
3386
+ DAY =
3387
+ T.let(
3388
+ :DAY,
3389
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::TaggedSymbol
3390
+ )
3391
+ HOUR =
3392
+ T.let(
3393
+ :HOUR,
3394
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::TaggedSymbol
3395
+ )
3396
+
3397
+ sig do
3398
+ override.returns(
3399
+ T::Array[
3400
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod::TaggedSymbol
3401
+ ]
3402
+ )
3403
+ end
3404
+ def self.values
3405
+ end
3406
+ end
3407
+
3408
+ class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
3409
+ OrHash =
3410
+ T.type_alias do
3411
+ T.any(
3412
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration,
3413
+ Stigg::Internal::AnyHash
3414
+ )
3415
+ end
3416
+
3417
+ sig do
3418
+ returns(
3419
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
3420
+ )
3421
+ end
3422
+ attr_accessor :according_to
3423
+
3424
+ sig do
3425
+ params(
3426
+ according_to:
3427
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
3428
+ ).returns(T.attached_class)
3429
+ end
3430
+ def self.new(according_to:)
3431
+ end
3432
+
3433
+ sig do
3434
+ override.returns(
3435
+ {
3436
+ according_to:
3437
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
3438
+ }
3439
+ )
3440
+ end
3441
+ def to_hash
3442
+ end
3443
+
3444
+ module AccordingTo
3445
+ extend Stigg::Internal::Type::Enum
3446
+
3447
+ TaggedSymbol =
3448
+ T.type_alias do
3449
+ T.all(
3450
+ Symbol,
3451
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
3452
+ )
3453
+ end
3454
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3455
+
3456
+ SUBSCRIPTION_START =
3457
+ T.let(
3458
+ :SubscriptionStart,
3459
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3460
+ )
3461
+ EVERY_SUNDAY =
3462
+ T.let(
3463
+ :EverySunday,
3464
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3465
+ )
3466
+ EVERY_MONDAY =
3467
+ T.let(
3468
+ :EveryMonday,
3469
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3470
+ )
3471
+ EVERY_TUESDAY =
3472
+ T.let(
3473
+ :EveryTuesday,
3474
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3475
+ )
3476
+ EVERY_WEDNESDAY =
3477
+ T.let(
3478
+ :EveryWednesday,
3479
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3480
+ )
3481
+ EVERY_THURSDAY =
3482
+ T.let(
3483
+ :EveryThursday,
3484
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3485
+ )
3486
+ EVERY_FRIDAY =
3487
+ T.let(
3488
+ :EveryFriday,
3489
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3490
+ )
3491
+ EVERY_SATURDAY =
3492
+ T.let(
3493
+ :EverySaturday,
3494
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3495
+ )
3496
+
3497
+ sig do
3498
+ override.returns(
3499
+ T::Array[
3500
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3501
+ ]
3502
+ )
3503
+ end
3504
+ def self.values
3505
+ end
3506
+ end
3507
+ end
3508
+
3509
+ class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
3510
+ OrHash =
3511
+ T.type_alias do
3512
+ T.any(
3513
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration,
3514
+ Stigg::Internal::AnyHash
3515
+ )
3516
+ end
3517
+
3518
+ sig do
3519
+ returns(
3520
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
3521
+ )
3522
+ end
3523
+ attr_accessor :according_to
3524
+
3525
+ sig do
3526
+ params(
3527
+ according_to:
3528
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
3529
+ ).returns(T.attached_class)
3530
+ end
3531
+ def self.new(according_to:)
3532
+ end
3533
+
3534
+ sig do
3535
+ override.returns(
3536
+ {
3537
+ according_to:
3538
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
3539
+ }
3540
+ )
3541
+ end
3542
+ def to_hash
3543
+ end
3544
+
3545
+ module AccordingTo
3546
+ extend Stigg::Internal::Type::Enum
3547
+
3548
+ TaggedSymbol =
3549
+ T.type_alias do
3550
+ T.all(
3551
+ Symbol,
3552
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo
3553
+ )
3554
+ end
3555
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3556
+
3557
+ SUBSCRIPTION_START =
3558
+ T.let(
3559
+ :SubscriptionStart,
3560
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3561
+ )
3562
+
3563
+ sig do
3564
+ override.returns(
3565
+ T::Array[
3566
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
3567
+ ]
3568
+ )
3569
+ end
3570
+ def self.values
3571
+ end
3572
+ end
3573
+ end
3574
+ end
3575
+ end
3576
+ end
3577
+ end
3578
+ end