stigg 0.1.0.pre.alpha.2 → 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 (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/internal/type/base_model.rb +2 -2
  5. data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +24 -24
  6. data/lib/stigg/models/v1/customer_import_params.rb +75 -0
  7. data/lib/stigg/models/v1/customer_import_response.rb +35 -0
  8. data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +16 -16
  9. data/lib/stigg/models/v1/customer_response.rb +1 -1
  10. data/lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb +296 -0
  11. data/lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb +341 -0
  12. data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +24 -0
  13. data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb +342 -0
  14. data/lib/stigg/models/v1/event_report_params.rb +91 -0
  15. data/lib/stigg/models/v1/event_report_response.rb +25 -0
  16. data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +30 -29
  17. data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
  18. data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
  19. data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
  20. data/lib/stigg/models/v1/{subscription_create_params.rb → subscription_provision_params.rb} +118 -118
  21. data/lib/stigg/models/v1/{subscription_create_response.rb → subscription_provision_response.rb} +76 -75
  22. data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
  23. data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +7 -5
  24. data/lib/stigg/models/v1/usage_history_params.rb +54 -0
  25. data/lib/stigg/models/v1/usage_history_response.rb +155 -0
  26. data/lib/stigg/models/v1/usage_report_params.rb +114 -0
  27. data/lib/stigg/models/v1/usage_report_response.rb +120 -0
  28. data/lib/stigg/models.rb +0 -4
  29. data/lib/stigg/resources/v1/coupons.rb +4 -4
  30. data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +69 -0
  31. data/lib/stigg/resources/v1/customers.rb +59 -37
  32. data/lib/stigg/resources/v1/events.rb +38 -0
  33. data/lib/stigg/resources/v1/subscriptions/future_update.rb +4 -4
  34. data/lib/stigg/resources/v1/subscriptions.rb +166 -64
  35. data/lib/stigg/resources/v1/usage.rb +79 -0
  36. data/lib/stigg/resources/v1.rb +6 -42
  37. data/lib/stigg/version.rb +1 -1
  38. data/lib/stigg.rb +25 -16
  39. data/rbi/stigg/models/v1/{coupon_create_response.rbi → coupon.rbi} +156 -252
  40. data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
  41. data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
  42. data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +35 -35
  43. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi +640 -0
  44. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
  45. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +42 -0
  46. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
  47. data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
  48. data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
  49. data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +66 -117
  50. data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
  51. data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
  52. data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
  53. data/rbi/stigg/models/v1/{subscription_create_params.rbi → subscription_provision_params.rbi} +794 -773
  54. data/rbi/stigg/models/v1/{subscription_create_response.rbi → subscription_provision_response.rbi} +481 -481
  55. data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
  56. data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +9 -16
  57. data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
  58. data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
  59. data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
  60. data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
  61. data/rbi/stigg/models.rbi +0 -4
  62. data/rbi/stigg/resources/v1/coupons.rbi +2 -2
  63. data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +57 -0
  64. data/rbi/stigg/resources/v1/customers.rbi +53 -36
  65. data/rbi/stigg/resources/v1/events.rbi +28 -0
  66. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +2 -6
  67. data/rbi/stigg/resources/v1/subscriptions.rbi +179 -74
  68. data/rbi/stigg/resources/v1/usage.rbi +57 -0
  69. data/rbi/stigg/resources/v1.rbi +4 -26
  70. data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
  71. data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
  72. data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
  73. data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
  74. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs +234 -0
  75. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
  76. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +27 -0
  77. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
  78. data/sig/stigg/models/v1/event_report_params.rbs +82 -0
  79. data/sig/stigg/models/v1/event_report_response.rbs +15 -0
  80. data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +36 -41
  81. data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
  82. data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
  83. data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
  84. data/sig/stigg/models/v1/{subscription_create_params.rbs → subscription_provision_params.rbs} +200 -200
  85. data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs} +106 -106
  86. data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
  87. data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
  88. data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
  89. data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
  90. data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
  91. data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
  92. data/sig/stigg/models.rbs +0 -4
  93. data/sig/stigg/resources/v1/coupons.rbs +2 -2
  94. data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +23 -0
  95. data/sig/stigg/resources/v1/customers.rbs +17 -12
  96. data/sig/stigg/resources/v1/events.rbs +14 -0
  97. data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
  98. data/sig/stigg/resources/v1/subscriptions.rbs +65 -32
  99. data/sig/stigg/resources/v1/usage.rbs +24 -0
  100. data/sig/stigg/resources/v1.rbs +2 -8
  101. metadata +77 -50
  102. data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -322
  103. data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -314
  104. data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -314
  105. data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -314
  106. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -34
  107. data/lib/stigg/models/v1_create_event_params.rb +0 -89
  108. data/lib/stigg/models/v1_create_event_response.rb +0 -23
  109. data/lib/stigg/models/v1_create_usage_params.rb +0 -112
  110. data/lib/stigg/models/v1_create_usage_response.rb +0 -118
  111. data/lib/stigg/resources/v1/customers/usage.rb +0 -18
  112. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -987
  113. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -618
  114. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -618
  115. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -618
  116. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -80
  117. data/rbi/stigg/models/v1_create_event_params.rbi +0 -161
  118. data/rbi/stigg/models/v1_create_event_response.rbi +0 -30
  119. data/rbi/stigg/models/v1_create_usage_params.rbi +0 -217
  120. data/rbi/stigg/models/v1_create_usage_response.rbi +0 -157
  121. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -16
  122. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
  123. data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -255
  124. data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -255
  125. data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -255
  126. data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
  127. data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
  128. data/sig/stigg/models/v1_create_event_params.rbs +0 -80
  129. data/sig/stigg/models/v1_create_event_response.rbs +0 -13
  130. data/sig/stigg/models/v1_create_usage_params.rbs +0 -100
  131. data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
  132. data/sig/stigg/resources/v1/customers/usage.rbs +0 -11
@@ -0,0 +1,1544 @@
1
+ module Stigg
2
+ module Models
3
+ module V1
4
+ type subscription_update_params =
5
+ {
6
+ addons: ::Array[Stigg::V1::SubscriptionUpdateParams::Addon],
7
+ applied_coupon: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon,
8
+ await_payment_confirmation: bool,
9
+ billing_information: Stigg::V1::SubscriptionUpdateParams::BillingInformation,
10
+ billing_period: Stigg::Models::V1::SubscriptionUpdateParams::billing_period,
11
+ budget: Stigg::V1::SubscriptionUpdateParams::Budget?,
12
+ charges: ::Array[Stigg::V1::SubscriptionUpdateParams::Charge],
13
+ metadata: ::Hash[Symbol, String],
14
+ minimum_spend: Stigg::V1::SubscriptionUpdateParams::MinimumSpend?,
15
+ price_overrides: ::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride],
16
+ promotion_code: String,
17
+ schedule_strategy: Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy,
18
+ subscription_entitlements: ::Array[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement],
19
+ trial_end_date: Time
20
+ }
21
+ & Stigg::Internal::Type::request_parameters
22
+
23
+ class SubscriptionUpdateParams < Stigg::Internal::Type::BaseModel
24
+ extend Stigg::Internal::Type::RequestParameters::Converter
25
+ include Stigg::Internal::Type::RequestParameters
26
+
27
+ attr_reader addons: ::Array[Stigg::V1::SubscriptionUpdateParams::Addon]?
28
+
29
+ def addons=: (
30
+ ::Array[Stigg::V1::SubscriptionUpdateParams::Addon]
31
+ ) -> ::Array[Stigg::V1::SubscriptionUpdateParams::Addon]
32
+
33
+ attr_reader applied_coupon: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon?
34
+
35
+ def applied_coupon=: (
36
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon
37
+ ) -> Stigg::V1::SubscriptionUpdateParams::AppliedCoupon
38
+
39
+ attr_reader await_payment_confirmation: bool?
40
+
41
+ def await_payment_confirmation=: (bool) -> bool
42
+
43
+ attr_reader billing_information: Stigg::V1::SubscriptionUpdateParams::BillingInformation?
44
+
45
+ def billing_information=: (
46
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation
47
+ ) -> Stigg::V1::SubscriptionUpdateParams::BillingInformation
48
+
49
+ attr_reader billing_period: Stigg::Models::V1::SubscriptionUpdateParams::billing_period?
50
+
51
+ def billing_period=: (
52
+ Stigg::Models::V1::SubscriptionUpdateParams::billing_period
53
+ ) -> Stigg::Models::V1::SubscriptionUpdateParams::billing_period
54
+
55
+ attr_accessor budget: Stigg::V1::SubscriptionUpdateParams::Budget?
56
+
57
+ attr_reader charges: ::Array[Stigg::V1::SubscriptionUpdateParams::Charge]?
58
+
59
+ def charges=: (
60
+ ::Array[Stigg::V1::SubscriptionUpdateParams::Charge]
61
+ ) -> ::Array[Stigg::V1::SubscriptionUpdateParams::Charge]
62
+
63
+ attr_reader metadata: ::Hash[Symbol, String]?
64
+
65
+ def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
66
+
67
+ attr_accessor minimum_spend: Stigg::V1::SubscriptionUpdateParams::MinimumSpend?
68
+
69
+ attr_reader price_overrides: ::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride]?
70
+
71
+ def price_overrides=: (
72
+ ::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride]
73
+ ) -> ::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride]
74
+
75
+ attr_reader promotion_code: String?
76
+
77
+ def promotion_code=: (String) -> String
78
+
79
+ attr_reader schedule_strategy: Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy?
80
+
81
+ def schedule_strategy=: (
82
+ Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy
83
+ ) -> Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy
84
+
85
+ attr_reader subscription_entitlements: ::Array[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement]?
86
+
87
+ def subscription_entitlements=: (
88
+ ::Array[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement]
89
+ ) -> ::Array[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement]
90
+
91
+ attr_reader trial_end_date: Time?
92
+
93
+ def trial_end_date=: (Time) -> Time
94
+
95
+ def initialize: (
96
+ ?addons: ::Array[Stigg::V1::SubscriptionUpdateParams::Addon],
97
+ ?applied_coupon: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon,
98
+ ?await_payment_confirmation: bool,
99
+ ?billing_information: Stigg::V1::SubscriptionUpdateParams::BillingInformation,
100
+ ?billing_period: Stigg::Models::V1::SubscriptionUpdateParams::billing_period,
101
+ ?budget: Stigg::V1::SubscriptionUpdateParams::Budget?,
102
+ ?charges: ::Array[Stigg::V1::SubscriptionUpdateParams::Charge],
103
+ ?metadata: ::Hash[Symbol, String],
104
+ ?minimum_spend: Stigg::V1::SubscriptionUpdateParams::MinimumSpend?,
105
+ ?price_overrides: ::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride],
106
+ ?promotion_code: String,
107
+ ?schedule_strategy: Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy,
108
+ ?subscription_entitlements: ::Array[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement],
109
+ ?trial_end_date: Time,
110
+ ?request_options: Stigg::request_opts
111
+ ) -> void
112
+
113
+ def to_hash: -> {
114
+ addons: ::Array[Stigg::V1::SubscriptionUpdateParams::Addon],
115
+ applied_coupon: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon,
116
+ await_payment_confirmation: bool,
117
+ billing_information: Stigg::V1::SubscriptionUpdateParams::BillingInformation,
118
+ billing_period: Stigg::Models::V1::SubscriptionUpdateParams::billing_period,
119
+ budget: Stigg::V1::SubscriptionUpdateParams::Budget?,
120
+ charges: ::Array[Stigg::V1::SubscriptionUpdateParams::Charge],
121
+ metadata: ::Hash[Symbol, String],
122
+ minimum_spend: Stigg::V1::SubscriptionUpdateParams::MinimumSpend?,
123
+ price_overrides: ::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride],
124
+ promotion_code: String,
125
+ schedule_strategy: Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy,
126
+ subscription_entitlements: ::Array[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement],
127
+ trial_end_date: Time,
128
+ request_options: Stigg::RequestOptions
129
+ }
130
+
131
+ type addon = { addon_id: String, quantity: Float }
132
+
133
+ class Addon < Stigg::Internal::Type::BaseModel
134
+ attr_accessor addon_id: String
135
+
136
+ attr_accessor quantity: Float
137
+
138
+ def initialize: (addon_id: String, quantity: Float) -> void
139
+
140
+ def to_hash: -> { addon_id: String, quantity: Float }
141
+ end
142
+
143
+ type applied_coupon =
144
+ {
145
+ billing_coupon_id: String,
146
+ configuration: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration,
147
+ coupon_id: String,
148
+ discount: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount,
149
+ promotion_code: String?
150
+ }
151
+
152
+ class AppliedCoupon < Stigg::Internal::Type::BaseModel
153
+ attr_reader billing_coupon_id: String?
154
+
155
+ def billing_coupon_id=: (String) -> String
156
+
157
+ attr_reader configuration: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration?
158
+
159
+ def configuration=: (
160
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration
161
+ ) -> Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration
162
+
163
+ attr_reader coupon_id: String?
164
+
165
+ def coupon_id=: (String) -> String
166
+
167
+ attr_reader discount: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount?
168
+
169
+ def discount=: (
170
+ Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount
171
+ ) -> Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount
172
+
173
+ attr_accessor promotion_code: String?
174
+
175
+ def initialize: (
176
+ ?billing_coupon_id: String,
177
+ ?configuration: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration,
178
+ ?coupon_id: String,
179
+ ?discount: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount,
180
+ ?promotion_code: String?
181
+ ) -> void
182
+
183
+ def to_hash: -> {
184
+ billing_coupon_id: String,
185
+ configuration: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration,
186
+ coupon_id: String,
187
+ discount: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount,
188
+ promotion_code: String?
189
+ }
190
+
191
+ type configuration = { start_date: Time }
192
+
193
+ class Configuration < Stigg::Internal::Type::BaseModel
194
+ attr_reader start_date: Time?
195
+
196
+ def start_date=: (Time) -> Time
197
+
198
+ def initialize: (?start_date: Time) -> void
199
+
200
+ def to_hash: -> { start_date: Time }
201
+ end
202
+
203
+ type discount =
204
+ {
205
+ amounts_off: ::Array[Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff]?,
206
+ description: String,
207
+ duration_in_months: Float,
208
+ name: String,
209
+ percent_off: Float
210
+ }
211
+
212
+ class Discount < Stigg::Internal::Type::BaseModel
213
+ attr_accessor amounts_off: ::Array[Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff]?
214
+
215
+ attr_reader description: String?
216
+
217
+ def description=: (String) -> String
218
+
219
+ attr_reader duration_in_months: Float?
220
+
221
+ def duration_in_months=: (Float) -> Float
222
+
223
+ attr_reader name: String?
224
+
225
+ def name=: (String) -> String
226
+
227
+ attr_reader percent_off: Float?
228
+
229
+ def percent_off=: (Float) -> Float
230
+
231
+ def initialize: (
232
+ ?amounts_off: ::Array[Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff]?,
233
+ ?description: String,
234
+ ?duration_in_months: Float,
235
+ ?name: String,
236
+ ?percent_off: Float
237
+ ) -> void
238
+
239
+ def to_hash: -> {
240
+ amounts_off: ::Array[Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff]?,
241
+ description: String,
242
+ duration_in_months: Float,
243
+ name: String,
244
+ percent_off: Float
245
+ }
246
+
247
+ type amounts_off =
248
+ {
249
+ amount: Float,
250
+ currency: Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::currency
251
+ }
252
+
253
+ class AmountsOff < Stigg::Internal::Type::BaseModel
254
+ attr_accessor amount: Float
255
+
256
+ attr_reader currency: Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::currency?
257
+
258
+ def currency=: (
259
+ Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::currency
260
+ ) -> Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::currency
261
+
262
+ def initialize: (
263
+ amount: Float,
264
+ ?currency: Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::currency
265
+ ) -> void
266
+
267
+ def to_hash: -> {
268
+ amount: Float,
269
+ currency: Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::currency
270
+ }
271
+
272
+ type currency =
273
+ :usd
274
+ | :aed
275
+ | :all
276
+ | :amd
277
+ | :ang
278
+ | :aud
279
+ | :awg
280
+ | :azn
281
+ | :bam
282
+ | :bbd
283
+ | :bdt
284
+ | :bgn
285
+ | :bif
286
+ | :bmd
287
+ | :bnd
288
+ | :bsd
289
+ | :bwp
290
+ | :byn
291
+ | :bzd
292
+ | :brl
293
+ | :cad
294
+ | :cdf
295
+ | :chf
296
+ | :cny
297
+ | :czk
298
+ | :dkk
299
+ | :dop
300
+ | :dzd
301
+ | :egp
302
+ | :etb
303
+ | :eur
304
+ | :fjd
305
+ | :gbp
306
+ | :gel
307
+ | :gip
308
+ | :gmd
309
+ | :gyd
310
+ | :hkd
311
+ | :hrk
312
+ | :htg
313
+ | :idr
314
+ | :ils
315
+ | :inr
316
+ | :isk
317
+ | :jmd
318
+ | :jpy
319
+ | :kes
320
+ | :kgs
321
+ | :khr
322
+ | :kmf
323
+ | :krw
324
+ | :kyd
325
+ | :kzt
326
+ | :lbp
327
+ | :lkr
328
+ | :lrd
329
+ | :lsl
330
+ | :mad
331
+ | :mdl
332
+ | :mga
333
+ | :mkd
334
+ | :mmk
335
+ | :mnt
336
+ | :mop
337
+ | :mro
338
+ | :mvr
339
+ | :mwk
340
+ | :mxn
341
+ | :myr
342
+ | :mzn
343
+ | :nad
344
+ | :ngn
345
+ | :nok
346
+ | :npr
347
+ | :nzd
348
+ | :pgk
349
+ | :php
350
+ | :pkr
351
+ | :pln
352
+ | :qar
353
+ | :ron
354
+ | :rsd
355
+ | :rub
356
+ | :rwf
357
+ | :sar
358
+ | :sbd
359
+ | :scr
360
+ | :sek
361
+ | :sgd
362
+ | :sle
363
+ | :sll
364
+ | :sos
365
+ | :szl
366
+ | :thb
367
+ | :tjs
368
+ | :top
369
+ | :try
370
+ | :ttd
371
+ | :tzs
372
+ | :uah
373
+ | :uzs
374
+ | :vnd
375
+ | :vuv
376
+ | :wst
377
+ | :xaf
378
+ | :xcd
379
+ | :yer
380
+ | :zar
381
+ | :zmw
382
+ | :clp
383
+ | :djf
384
+ | :gnf
385
+ | :ugx
386
+ | :pyg
387
+ | :xof
388
+ | :xpf
389
+
390
+ module Currency
391
+ extend Stigg::Internal::Type::Enum
392
+
393
+ USD: :usd
394
+ AED: :aed
395
+ ALL: :all
396
+ AMD: :amd
397
+ ANG: :ang
398
+ AUD: :aud
399
+ AWG: :awg
400
+ AZN: :azn
401
+ BAM: :bam
402
+ BBD: :bbd
403
+ BDT: :bdt
404
+ BGN: :bgn
405
+ BIF: :bif
406
+ BMD: :bmd
407
+ BND: :bnd
408
+ BSD: :bsd
409
+ BWP: :bwp
410
+ BYN: :byn
411
+ BZD: :bzd
412
+ BRL: :brl
413
+ CAD: :cad
414
+ CDF: :cdf
415
+ CHF: :chf
416
+ CNY: :cny
417
+ CZK: :czk
418
+ DKK: :dkk
419
+ DOP: :dop
420
+ DZD: :dzd
421
+ EGP: :egp
422
+ ETB: :etb
423
+ EUR: :eur
424
+ FJD: :fjd
425
+ GBP: :gbp
426
+ GEL: :gel
427
+ GIP: :gip
428
+ GMD: :gmd
429
+ GYD: :gyd
430
+ HKD: :hkd
431
+ HRK: :hrk
432
+ HTG: :htg
433
+ IDR: :idr
434
+ ILS: :ils
435
+ INR: :inr
436
+ ISK: :isk
437
+ JMD: :jmd
438
+ JPY: :jpy
439
+ KES: :kes
440
+ KGS: :kgs
441
+ KHR: :khr
442
+ KMF: :kmf
443
+ KRW: :krw
444
+ KYD: :kyd
445
+ KZT: :kzt
446
+ LBP: :lbp
447
+ LKR: :lkr
448
+ LRD: :lrd
449
+ LSL: :lsl
450
+ MAD: :mad
451
+ MDL: :mdl
452
+ MGA: :mga
453
+ MKD: :mkd
454
+ MMK: :mmk
455
+ MNT: :mnt
456
+ MOP: :mop
457
+ MRO: :mro
458
+ MVR: :mvr
459
+ MWK: :mwk
460
+ MXN: :mxn
461
+ MYR: :myr
462
+ MZN: :mzn
463
+ NAD: :nad
464
+ NGN: :ngn
465
+ NOK: :nok
466
+ NPR: :npr
467
+ NZD: :nzd
468
+ PGK: :pgk
469
+ PHP: :php
470
+ PKR: :pkr
471
+ PLN: :pln
472
+ QAR: :qar
473
+ RON: :ron
474
+ RSD: :rsd
475
+ RUB: :rub
476
+ RWF: :rwf
477
+ SAR: :sar
478
+ SBD: :sbd
479
+ SCR: :scr
480
+ SEK: :sek
481
+ SGD: :sgd
482
+ SLE: :sle
483
+ SLL: :sll
484
+ SOS: :sos
485
+ SZL: :szl
486
+ THB: :thb
487
+ TJS: :tjs
488
+ TOP: :top
489
+ TRY: :try
490
+ TTD: :ttd
491
+ TZS: :tzs
492
+ UAH: :uah
493
+ UZS: :uzs
494
+ VND: :vnd
495
+ VUV: :vuv
496
+ WST: :wst
497
+ XAF: :xaf
498
+ XCD: :xcd
499
+ YER: :yer
500
+ ZAR: :zar
501
+ ZMW: :zmw
502
+ CLP: :clp
503
+ DJF: :djf
504
+ GNF: :gnf
505
+ UGX: :ugx
506
+ PYG: :pyg
507
+ XOF: :xof
508
+ XPF: :xpf
509
+
510
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::currency]
511
+ end
512
+ end
513
+ end
514
+ end
515
+
516
+ type billing_information =
517
+ {
518
+ billing_address: Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress,
519
+ charge_on_behalf_of_account: String,
520
+ coupon_id: String,
521
+ integration_id: String,
522
+ invoice_days_until_due: Float,
523
+ is_backdated: bool,
524
+ is_invoice_paid: bool,
525
+ metadata: ::Hash[Symbol, top],
526
+ proration_behavior: Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::proration_behavior,
527
+ tax_ids: ::Array[Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID],
528
+ tax_percentage: Float,
529
+ tax_rate_ids: ::Array[String]
530
+ }
531
+
532
+ class BillingInformation < Stigg::Internal::Type::BaseModel
533
+ attr_reader billing_address: Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress?
534
+
535
+ def billing_address=: (
536
+ Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress
537
+ ) -> Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress
538
+
539
+ attr_reader charge_on_behalf_of_account: String?
540
+
541
+ def charge_on_behalf_of_account=: (String) -> String
542
+
543
+ attr_reader coupon_id: String?
544
+
545
+ def coupon_id=: (String) -> String
546
+
547
+ attr_reader integration_id: String?
548
+
549
+ def integration_id=: (String) -> String
550
+
551
+ attr_reader invoice_days_until_due: Float?
552
+
553
+ def invoice_days_until_due=: (Float) -> Float
554
+
555
+ attr_reader is_backdated: bool?
556
+
557
+ def is_backdated=: (bool) -> bool
558
+
559
+ attr_reader is_invoice_paid: bool?
560
+
561
+ def is_invoice_paid=: (bool) -> bool
562
+
563
+ attr_reader metadata: ::Hash[Symbol, top]?
564
+
565
+ def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
566
+
567
+ attr_reader proration_behavior: Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::proration_behavior?
568
+
569
+ def proration_behavior=: (
570
+ Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::proration_behavior
571
+ ) -> Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::proration_behavior
572
+
573
+ attr_reader tax_ids: ::Array[Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID]?
574
+
575
+ def tax_ids=: (
576
+ ::Array[Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID]
577
+ ) -> ::Array[Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID]
578
+
579
+ attr_reader tax_percentage: Float?
580
+
581
+ def tax_percentage=: (Float) -> Float
582
+
583
+ attr_reader tax_rate_ids: ::Array[String]?
584
+
585
+ def tax_rate_ids=: (::Array[String]) -> ::Array[String]
586
+
587
+ def initialize: (
588
+ ?billing_address: Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress,
589
+ ?charge_on_behalf_of_account: String,
590
+ ?coupon_id: String,
591
+ ?integration_id: String,
592
+ ?invoice_days_until_due: Float,
593
+ ?is_backdated: bool,
594
+ ?is_invoice_paid: bool,
595
+ ?metadata: ::Hash[Symbol, top],
596
+ ?proration_behavior: Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::proration_behavior,
597
+ ?tax_ids: ::Array[Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID],
598
+ ?tax_percentage: Float,
599
+ ?tax_rate_ids: ::Array[String]
600
+ ) -> void
601
+
602
+ def to_hash: -> {
603
+ billing_address: Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress,
604
+ charge_on_behalf_of_account: String,
605
+ coupon_id: String,
606
+ integration_id: String,
607
+ invoice_days_until_due: Float,
608
+ is_backdated: bool,
609
+ is_invoice_paid: bool,
610
+ metadata: ::Hash[Symbol, top],
611
+ proration_behavior: Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::proration_behavior,
612
+ tax_ids: ::Array[Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID],
613
+ tax_percentage: Float,
614
+ tax_rate_ids: ::Array[String]
615
+ }
616
+
617
+ type billing_address =
618
+ {
619
+ city: String,
620
+ country: String,
621
+ :line1 => String,
622
+ :line2 => String,
623
+ postal_code: String,
624
+ state: String
625
+ }
626
+
627
+ class BillingAddress < Stigg::Internal::Type::BaseModel
628
+ attr_reader city: String?
629
+
630
+ def city=: (String) -> String
631
+
632
+ attr_reader country: String?
633
+
634
+ def country=: (String) -> String
635
+
636
+ attr_reader line1: String?
637
+
638
+ def line1=: (String) -> String
639
+
640
+ attr_reader line2: String?
641
+
642
+ def line2=: (String) -> String
643
+
644
+ attr_reader postal_code: String?
645
+
646
+ def postal_code=: (String) -> String
647
+
648
+ attr_reader state: String?
649
+
650
+ def state=: (String) -> String
651
+
652
+ def initialize: (
653
+ ?city: String,
654
+ ?country: String,
655
+ ?line1: String,
656
+ ?line2: String,
657
+ ?postal_code: String,
658
+ ?state: String
659
+ ) -> void
660
+
661
+ def to_hash: -> {
662
+ city: String,
663
+ country: String,
664
+ :line1 => String,
665
+ :line2 => String,
666
+ postal_code: String,
667
+ state: String
668
+ }
669
+ end
670
+
671
+ type proration_behavior =
672
+ :INVOICE_IMMEDIATELY | :CREATE_PRORATIONS | :NONE
673
+
674
+ module ProrationBehavior
675
+ extend Stigg::Internal::Type::Enum
676
+
677
+ INVOICE_IMMEDIATELY: :INVOICE_IMMEDIATELY
678
+ CREATE_PRORATIONS: :CREATE_PRORATIONS
679
+ NONE: :NONE
680
+
681
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::proration_behavior]
682
+ end
683
+
684
+ type tax_id = { type: String, value: String }
685
+
686
+ class TaxID < Stigg::Internal::Type::BaseModel
687
+ attr_accessor type: String
688
+
689
+ attr_accessor value: String
690
+
691
+ def initialize: (type: String, value: String) -> void
692
+
693
+ def to_hash: -> { type: String, value: String }
694
+ end
695
+ end
696
+
697
+ type billing_period = :MONTHLY | :ANNUALLY
698
+
699
+ module BillingPeriod
700
+ extend Stigg::Internal::Type::Enum
701
+
702
+ MONTHLY: :MONTHLY
703
+ ANNUALLY: :ANNUALLY
704
+
705
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::billing_period]
706
+ end
707
+
708
+ type budget = { has_soft_limit: bool, limit: Float }
709
+
710
+ class Budget < Stigg::Internal::Type::BaseModel
711
+ attr_accessor has_soft_limit: bool
712
+
713
+ attr_accessor limit: Float
714
+
715
+ def initialize: (has_soft_limit: bool, limit: Float) -> void
716
+
717
+ def to_hash: -> { has_soft_limit: bool, limit: Float }
718
+ end
719
+
720
+ type charge =
721
+ {
722
+ id: String,
723
+ quantity: Float,
724
+ type: Stigg::Models::V1::SubscriptionUpdateParams::Charge::type_
725
+ }
726
+
727
+ class Charge < Stigg::Internal::Type::BaseModel
728
+ attr_accessor id: String
729
+
730
+ attr_accessor quantity: Float
731
+
732
+ attr_accessor type: Stigg::Models::V1::SubscriptionUpdateParams::Charge::type_
733
+
734
+ def initialize: (
735
+ id: String,
736
+ quantity: Float,
737
+ type: Stigg::Models::V1::SubscriptionUpdateParams::Charge::type_
738
+ ) -> void
739
+
740
+ def to_hash: -> {
741
+ id: String,
742
+ quantity: Float,
743
+ type: Stigg::Models::V1::SubscriptionUpdateParams::Charge::type_
744
+ }
745
+
746
+ type type_ = :FEATURE | :CREDIT
747
+
748
+ module Type
749
+ extend Stigg::Internal::Type::Enum
750
+
751
+ FEATURE: :FEATURE
752
+ CREDIT: :CREDIT
753
+
754
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::Charge::type_]
755
+ end
756
+ end
757
+
758
+ type minimum_spend =
759
+ {
760
+ minimum: Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum?
761
+ }
762
+
763
+ class MinimumSpend < Stigg::Internal::Type::BaseModel
764
+ attr_accessor minimum: Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum?
765
+
766
+ def initialize: (
767
+ ?minimum: Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum?
768
+ ) -> void
769
+
770
+ def to_hash: -> {
771
+ minimum: Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum?
772
+ }
773
+
774
+ type minimum =
775
+ {
776
+ amount: Float,
777
+ currency: Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::currency
778
+ }
779
+
780
+ class Minimum < Stigg::Internal::Type::BaseModel
781
+ attr_accessor amount: Float
782
+
783
+ attr_reader currency: Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::currency?
784
+
785
+ def currency=: (
786
+ Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::currency
787
+ ) -> Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::currency
788
+
789
+ def initialize: (
790
+ amount: Float,
791
+ ?currency: Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::currency
792
+ ) -> void
793
+
794
+ def to_hash: -> {
795
+ amount: Float,
796
+ currency: Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::currency
797
+ }
798
+
799
+ type currency =
800
+ :usd
801
+ | :aed
802
+ | :all
803
+ | :amd
804
+ | :ang
805
+ | :aud
806
+ | :awg
807
+ | :azn
808
+ | :bam
809
+ | :bbd
810
+ | :bdt
811
+ | :bgn
812
+ | :bif
813
+ | :bmd
814
+ | :bnd
815
+ | :bsd
816
+ | :bwp
817
+ | :byn
818
+ | :bzd
819
+ | :brl
820
+ | :cad
821
+ | :cdf
822
+ | :chf
823
+ | :cny
824
+ | :czk
825
+ | :dkk
826
+ | :dop
827
+ | :dzd
828
+ | :egp
829
+ | :etb
830
+ | :eur
831
+ | :fjd
832
+ | :gbp
833
+ | :gel
834
+ | :gip
835
+ | :gmd
836
+ | :gyd
837
+ | :hkd
838
+ | :hrk
839
+ | :htg
840
+ | :idr
841
+ | :ils
842
+ | :inr
843
+ | :isk
844
+ | :jmd
845
+ | :jpy
846
+ | :kes
847
+ | :kgs
848
+ | :khr
849
+ | :kmf
850
+ | :krw
851
+ | :kyd
852
+ | :kzt
853
+ | :lbp
854
+ | :lkr
855
+ | :lrd
856
+ | :lsl
857
+ | :mad
858
+ | :mdl
859
+ | :mga
860
+ | :mkd
861
+ | :mmk
862
+ | :mnt
863
+ | :mop
864
+ | :mro
865
+ | :mvr
866
+ | :mwk
867
+ | :mxn
868
+ | :myr
869
+ | :mzn
870
+ | :nad
871
+ | :ngn
872
+ | :nok
873
+ | :npr
874
+ | :nzd
875
+ | :pgk
876
+ | :php
877
+ | :pkr
878
+ | :pln
879
+ | :qar
880
+ | :ron
881
+ | :rsd
882
+ | :rub
883
+ | :rwf
884
+ | :sar
885
+ | :sbd
886
+ | :scr
887
+ | :sek
888
+ | :sgd
889
+ | :sle
890
+ | :sll
891
+ | :sos
892
+ | :szl
893
+ | :thb
894
+ | :tjs
895
+ | :top
896
+ | :try
897
+ | :ttd
898
+ | :tzs
899
+ | :uah
900
+ | :uzs
901
+ | :vnd
902
+ | :vuv
903
+ | :wst
904
+ | :xaf
905
+ | :xcd
906
+ | :yer
907
+ | :zar
908
+ | :zmw
909
+ | :clp
910
+ | :djf
911
+ | :gnf
912
+ | :ugx
913
+ | :pyg
914
+ | :xof
915
+ | :xpf
916
+
917
+ module Currency
918
+ extend Stigg::Internal::Type::Enum
919
+
920
+ USD: :usd
921
+ AED: :aed
922
+ ALL: :all
923
+ AMD: :amd
924
+ ANG: :ang
925
+ AUD: :aud
926
+ AWG: :awg
927
+ AZN: :azn
928
+ BAM: :bam
929
+ BBD: :bbd
930
+ BDT: :bdt
931
+ BGN: :bgn
932
+ BIF: :bif
933
+ BMD: :bmd
934
+ BND: :bnd
935
+ BSD: :bsd
936
+ BWP: :bwp
937
+ BYN: :byn
938
+ BZD: :bzd
939
+ BRL: :brl
940
+ CAD: :cad
941
+ CDF: :cdf
942
+ CHF: :chf
943
+ CNY: :cny
944
+ CZK: :czk
945
+ DKK: :dkk
946
+ DOP: :dop
947
+ DZD: :dzd
948
+ EGP: :egp
949
+ ETB: :etb
950
+ EUR: :eur
951
+ FJD: :fjd
952
+ GBP: :gbp
953
+ GEL: :gel
954
+ GIP: :gip
955
+ GMD: :gmd
956
+ GYD: :gyd
957
+ HKD: :hkd
958
+ HRK: :hrk
959
+ HTG: :htg
960
+ IDR: :idr
961
+ ILS: :ils
962
+ INR: :inr
963
+ ISK: :isk
964
+ JMD: :jmd
965
+ JPY: :jpy
966
+ KES: :kes
967
+ KGS: :kgs
968
+ KHR: :khr
969
+ KMF: :kmf
970
+ KRW: :krw
971
+ KYD: :kyd
972
+ KZT: :kzt
973
+ LBP: :lbp
974
+ LKR: :lkr
975
+ LRD: :lrd
976
+ LSL: :lsl
977
+ MAD: :mad
978
+ MDL: :mdl
979
+ MGA: :mga
980
+ MKD: :mkd
981
+ MMK: :mmk
982
+ MNT: :mnt
983
+ MOP: :mop
984
+ MRO: :mro
985
+ MVR: :mvr
986
+ MWK: :mwk
987
+ MXN: :mxn
988
+ MYR: :myr
989
+ MZN: :mzn
990
+ NAD: :nad
991
+ NGN: :ngn
992
+ NOK: :nok
993
+ NPR: :npr
994
+ NZD: :nzd
995
+ PGK: :pgk
996
+ PHP: :php
997
+ PKR: :pkr
998
+ PLN: :pln
999
+ QAR: :qar
1000
+ RON: :ron
1001
+ RSD: :rsd
1002
+ RUB: :rub
1003
+ RWF: :rwf
1004
+ SAR: :sar
1005
+ SBD: :sbd
1006
+ SCR: :scr
1007
+ SEK: :sek
1008
+ SGD: :sgd
1009
+ SLE: :sle
1010
+ SLL: :sll
1011
+ SOS: :sos
1012
+ SZL: :szl
1013
+ THB: :thb
1014
+ TJS: :tjs
1015
+ TOP: :top
1016
+ TRY: :try
1017
+ TTD: :ttd
1018
+ TZS: :tzs
1019
+ UAH: :uah
1020
+ UZS: :uzs
1021
+ VND: :vnd
1022
+ VUV: :vuv
1023
+ WST: :wst
1024
+ XAF: :xaf
1025
+ XCD: :xcd
1026
+ YER: :yer
1027
+ ZAR: :zar
1028
+ ZMW: :zmw
1029
+ CLP: :clp
1030
+ DJF: :djf
1031
+ GNF: :gnf
1032
+ UGX: :ugx
1033
+ PYG: :pyg
1034
+ XOF: :xof
1035
+ XPF: :xpf
1036
+
1037
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::currency]
1038
+ end
1039
+ end
1040
+ end
1041
+
1042
+ type price_override =
1043
+ {
1044
+ feature_id: String,
1045
+ price: Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price
1046
+ }
1047
+
1048
+ class PriceOverride < Stigg::Internal::Type::BaseModel
1049
+ attr_accessor feature_id: String
1050
+
1051
+ attr_reader price: Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price?
1052
+
1053
+ def price=: (
1054
+ Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price
1055
+ ) -> Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price
1056
+
1057
+ def initialize: (
1058
+ feature_id: String,
1059
+ ?price: Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price
1060
+ ) -> void
1061
+
1062
+ def to_hash: -> {
1063
+ feature_id: String,
1064
+ price: Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price
1065
+ }
1066
+
1067
+ type price =
1068
+ {
1069
+ amount: Float,
1070
+ currency: Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::currency
1071
+ }
1072
+
1073
+ class Price < Stigg::Internal::Type::BaseModel
1074
+ attr_accessor amount: Float
1075
+
1076
+ attr_reader currency: Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::currency?
1077
+
1078
+ def currency=: (
1079
+ Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::currency
1080
+ ) -> Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::currency
1081
+
1082
+ def initialize: (
1083
+ amount: Float,
1084
+ ?currency: Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::currency
1085
+ ) -> void
1086
+
1087
+ def to_hash: -> {
1088
+ amount: Float,
1089
+ currency: Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::currency
1090
+ }
1091
+
1092
+ type currency =
1093
+ :usd
1094
+ | :aed
1095
+ | :all
1096
+ | :amd
1097
+ | :ang
1098
+ | :aud
1099
+ | :awg
1100
+ | :azn
1101
+ | :bam
1102
+ | :bbd
1103
+ | :bdt
1104
+ | :bgn
1105
+ | :bif
1106
+ | :bmd
1107
+ | :bnd
1108
+ | :bsd
1109
+ | :bwp
1110
+ | :byn
1111
+ | :bzd
1112
+ | :brl
1113
+ | :cad
1114
+ | :cdf
1115
+ | :chf
1116
+ | :cny
1117
+ | :czk
1118
+ | :dkk
1119
+ | :dop
1120
+ | :dzd
1121
+ | :egp
1122
+ | :etb
1123
+ | :eur
1124
+ | :fjd
1125
+ | :gbp
1126
+ | :gel
1127
+ | :gip
1128
+ | :gmd
1129
+ | :gyd
1130
+ | :hkd
1131
+ | :hrk
1132
+ | :htg
1133
+ | :idr
1134
+ | :ils
1135
+ | :inr
1136
+ | :isk
1137
+ | :jmd
1138
+ | :jpy
1139
+ | :kes
1140
+ | :kgs
1141
+ | :khr
1142
+ | :kmf
1143
+ | :krw
1144
+ | :kyd
1145
+ | :kzt
1146
+ | :lbp
1147
+ | :lkr
1148
+ | :lrd
1149
+ | :lsl
1150
+ | :mad
1151
+ | :mdl
1152
+ | :mga
1153
+ | :mkd
1154
+ | :mmk
1155
+ | :mnt
1156
+ | :mop
1157
+ | :mro
1158
+ | :mvr
1159
+ | :mwk
1160
+ | :mxn
1161
+ | :myr
1162
+ | :mzn
1163
+ | :nad
1164
+ | :ngn
1165
+ | :nok
1166
+ | :npr
1167
+ | :nzd
1168
+ | :pgk
1169
+ | :php
1170
+ | :pkr
1171
+ | :pln
1172
+ | :qar
1173
+ | :ron
1174
+ | :rsd
1175
+ | :rub
1176
+ | :rwf
1177
+ | :sar
1178
+ | :sbd
1179
+ | :scr
1180
+ | :sek
1181
+ | :sgd
1182
+ | :sle
1183
+ | :sll
1184
+ | :sos
1185
+ | :szl
1186
+ | :thb
1187
+ | :tjs
1188
+ | :top
1189
+ | :try
1190
+ | :ttd
1191
+ | :tzs
1192
+ | :uah
1193
+ | :uzs
1194
+ | :vnd
1195
+ | :vuv
1196
+ | :wst
1197
+ | :xaf
1198
+ | :xcd
1199
+ | :yer
1200
+ | :zar
1201
+ | :zmw
1202
+ | :clp
1203
+ | :djf
1204
+ | :gnf
1205
+ | :ugx
1206
+ | :pyg
1207
+ | :xof
1208
+ | :xpf
1209
+
1210
+ module Currency
1211
+ extend Stigg::Internal::Type::Enum
1212
+
1213
+ USD: :usd
1214
+ AED: :aed
1215
+ ALL: :all
1216
+ AMD: :amd
1217
+ ANG: :ang
1218
+ AUD: :aud
1219
+ AWG: :awg
1220
+ AZN: :azn
1221
+ BAM: :bam
1222
+ BBD: :bbd
1223
+ BDT: :bdt
1224
+ BGN: :bgn
1225
+ BIF: :bif
1226
+ BMD: :bmd
1227
+ BND: :bnd
1228
+ BSD: :bsd
1229
+ BWP: :bwp
1230
+ BYN: :byn
1231
+ BZD: :bzd
1232
+ BRL: :brl
1233
+ CAD: :cad
1234
+ CDF: :cdf
1235
+ CHF: :chf
1236
+ CNY: :cny
1237
+ CZK: :czk
1238
+ DKK: :dkk
1239
+ DOP: :dop
1240
+ DZD: :dzd
1241
+ EGP: :egp
1242
+ ETB: :etb
1243
+ EUR: :eur
1244
+ FJD: :fjd
1245
+ GBP: :gbp
1246
+ GEL: :gel
1247
+ GIP: :gip
1248
+ GMD: :gmd
1249
+ GYD: :gyd
1250
+ HKD: :hkd
1251
+ HRK: :hrk
1252
+ HTG: :htg
1253
+ IDR: :idr
1254
+ ILS: :ils
1255
+ INR: :inr
1256
+ ISK: :isk
1257
+ JMD: :jmd
1258
+ JPY: :jpy
1259
+ KES: :kes
1260
+ KGS: :kgs
1261
+ KHR: :khr
1262
+ KMF: :kmf
1263
+ KRW: :krw
1264
+ KYD: :kyd
1265
+ KZT: :kzt
1266
+ LBP: :lbp
1267
+ LKR: :lkr
1268
+ LRD: :lrd
1269
+ LSL: :lsl
1270
+ MAD: :mad
1271
+ MDL: :mdl
1272
+ MGA: :mga
1273
+ MKD: :mkd
1274
+ MMK: :mmk
1275
+ MNT: :mnt
1276
+ MOP: :mop
1277
+ MRO: :mro
1278
+ MVR: :mvr
1279
+ MWK: :mwk
1280
+ MXN: :mxn
1281
+ MYR: :myr
1282
+ MZN: :mzn
1283
+ NAD: :nad
1284
+ NGN: :ngn
1285
+ NOK: :nok
1286
+ NPR: :npr
1287
+ NZD: :nzd
1288
+ PGK: :pgk
1289
+ PHP: :php
1290
+ PKR: :pkr
1291
+ PLN: :pln
1292
+ QAR: :qar
1293
+ RON: :ron
1294
+ RSD: :rsd
1295
+ RUB: :rub
1296
+ RWF: :rwf
1297
+ SAR: :sar
1298
+ SBD: :sbd
1299
+ SCR: :scr
1300
+ SEK: :sek
1301
+ SGD: :sgd
1302
+ SLE: :sle
1303
+ SLL: :sll
1304
+ SOS: :sos
1305
+ SZL: :szl
1306
+ THB: :thb
1307
+ TJS: :tjs
1308
+ TOP: :top
1309
+ TRY: :try
1310
+ TTD: :ttd
1311
+ TZS: :tzs
1312
+ UAH: :uah
1313
+ UZS: :uzs
1314
+ VND: :vnd
1315
+ VUV: :vuv
1316
+ WST: :wst
1317
+ XAF: :xaf
1318
+ XCD: :xcd
1319
+ YER: :yer
1320
+ ZAR: :zar
1321
+ ZMW: :zmw
1322
+ CLP: :clp
1323
+ DJF: :djf
1324
+ GNF: :gnf
1325
+ UGX: :ugx
1326
+ PYG: :pyg
1327
+ XOF: :xof
1328
+ XPF: :xpf
1329
+
1330
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::currency]
1331
+ end
1332
+ end
1333
+ end
1334
+
1335
+ type schedule_strategy =
1336
+ :END_OF_BILLING_PERIOD | :END_OF_BILLING_MONTH | :IMMEDIATE
1337
+
1338
+ module ScheduleStrategy
1339
+ extend Stigg::Internal::Type::Enum
1340
+
1341
+ END_OF_BILLING_PERIOD: :END_OF_BILLING_PERIOD
1342
+ END_OF_BILLING_MONTH: :END_OF_BILLING_MONTH
1343
+ IMMEDIATE: :IMMEDIATE
1344
+
1345
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy]
1346
+ end
1347
+
1348
+ type subscription_entitlement =
1349
+ {
1350
+ id: String,
1351
+ feature_id: String,
1352
+ has_soft_limit: bool,
1353
+ has_unlimited_usage: bool,
1354
+ monthly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration,
1355
+ reset_period: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::reset_period,
1356
+ usage_limit: Float,
1357
+ weekly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration,
1358
+ yearly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
1359
+ }
1360
+
1361
+ class SubscriptionEntitlement < Stigg::Internal::Type::BaseModel
1362
+ attr_reader id: String?
1363
+
1364
+ def id=: (String) -> String
1365
+
1366
+ attr_reader feature_id: String?
1367
+
1368
+ def feature_id=: (String) -> String
1369
+
1370
+ attr_reader has_soft_limit: bool?
1371
+
1372
+ def has_soft_limit=: (bool) -> bool
1373
+
1374
+ attr_reader has_unlimited_usage: bool?
1375
+
1376
+ def has_unlimited_usage=: (bool) -> bool
1377
+
1378
+ attr_reader monthly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration?
1379
+
1380
+ def monthly_reset_period_configuration=: (
1381
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration
1382
+ ) -> Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration
1383
+
1384
+ attr_reader reset_period: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::reset_period?
1385
+
1386
+ def reset_period=: (
1387
+ Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::reset_period
1388
+ ) -> Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::reset_period
1389
+
1390
+ attr_reader usage_limit: Float?
1391
+
1392
+ def usage_limit=: (Float) -> Float
1393
+
1394
+ attr_reader weekly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration?
1395
+
1396
+ def weekly_reset_period_configuration=: (
1397
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration
1398
+ ) -> Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration
1399
+
1400
+ attr_reader yearly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration?
1401
+
1402
+ def yearly_reset_period_configuration=: (
1403
+ Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
1404
+ ) -> Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
1405
+
1406
+ def initialize: (
1407
+ ?id: String,
1408
+ ?feature_id: String,
1409
+ ?has_soft_limit: bool,
1410
+ ?has_unlimited_usage: bool,
1411
+ ?monthly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration,
1412
+ ?reset_period: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::reset_period,
1413
+ ?usage_limit: Float,
1414
+ ?weekly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration,
1415
+ ?yearly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
1416
+ ) -> void
1417
+
1418
+ def to_hash: -> {
1419
+ id: String,
1420
+ feature_id: String,
1421
+ has_soft_limit: bool,
1422
+ has_unlimited_usage: bool,
1423
+ monthly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration,
1424
+ reset_period: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::reset_period,
1425
+ usage_limit: Float,
1426
+ weekly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration,
1427
+ yearly_reset_period_configuration: Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
1428
+ }
1429
+
1430
+ type monthly_reset_period_configuration =
1431
+ {
1432
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::according_to
1433
+ }
1434
+
1435
+ class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
1436
+ attr_accessor according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::according_to
1437
+
1438
+ def initialize: (
1439
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::according_to
1440
+ ) -> void
1441
+
1442
+ def to_hash: -> {
1443
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::according_to
1444
+ }
1445
+
1446
+ type according_to = :SubscriptionStart | :StartOfTheMonth
1447
+
1448
+ module AccordingTo
1449
+ extend Stigg::Internal::Type::Enum
1450
+
1451
+ SUBSCRIPTION_START: :SubscriptionStart
1452
+ START_OF_THE_MONTH: :StartOfTheMonth
1453
+
1454
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::according_to]
1455
+ end
1456
+ end
1457
+
1458
+ type reset_period = :YEAR | :MONTH | :WEEK | :DAY | :HOUR
1459
+
1460
+ module ResetPeriod
1461
+ extend Stigg::Internal::Type::Enum
1462
+
1463
+ YEAR: :YEAR
1464
+ MONTH: :MONTH
1465
+ WEEK: :WEEK
1466
+ DAY: :DAY
1467
+ HOUR: :HOUR
1468
+
1469
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::reset_period]
1470
+ end
1471
+
1472
+ type weekly_reset_period_configuration =
1473
+ {
1474
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::according_to
1475
+ }
1476
+
1477
+ class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
1478
+ attr_accessor according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::according_to
1479
+
1480
+ def initialize: (
1481
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::according_to
1482
+ ) -> void
1483
+
1484
+ def to_hash: -> {
1485
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::according_to
1486
+ }
1487
+
1488
+ type according_to =
1489
+ :SubscriptionStart
1490
+ | :EverySunday
1491
+ | :EveryMonday
1492
+ | :EveryTuesday
1493
+ | :EveryWednesday
1494
+ | :EveryThursday
1495
+ | :EveryFriday
1496
+ | :EverySaturday
1497
+
1498
+ module AccordingTo
1499
+ extend Stigg::Internal::Type::Enum
1500
+
1501
+ SUBSCRIPTION_START: :SubscriptionStart
1502
+ EVERY_SUNDAY: :EverySunday
1503
+ EVERY_MONDAY: :EveryMonday
1504
+ EVERY_TUESDAY: :EveryTuesday
1505
+ EVERY_WEDNESDAY: :EveryWednesday
1506
+ EVERY_THURSDAY: :EveryThursday
1507
+ EVERY_FRIDAY: :EveryFriday
1508
+ EVERY_SATURDAY: :EverySaturday
1509
+
1510
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::according_to]
1511
+ end
1512
+ end
1513
+
1514
+ type yearly_reset_period_configuration =
1515
+ {
1516
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::according_to
1517
+ }
1518
+
1519
+ class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
1520
+ attr_accessor according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::according_to
1521
+
1522
+ def initialize: (
1523
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::according_to
1524
+ ) -> void
1525
+
1526
+ def to_hash: -> {
1527
+ according_to: Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::according_to
1528
+ }
1529
+
1530
+ type according_to = :SubscriptionStart
1531
+
1532
+ module AccordingTo
1533
+ extend Stigg::Internal::Type::Enum
1534
+
1535
+ SUBSCRIPTION_START: :SubscriptionStart
1536
+
1537
+ def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::according_to]
1538
+ end
1539
+ end
1540
+ end
1541
+ end
1542
+ end
1543
+ end
1544
+ end