dodopayments 2.11.1 → 2.12.0

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/dodopayments/models/balance_ledger_entry.rb +1 -0
  5. data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +1 -0
  6. data/lib/dodopayments/models/discount.rb +4 -8
  7. data/lib/dodopayments/models/discount_create_params.rb +5 -9
  8. data/lib/dodopayments/models/discount_detail.rb +2 -2
  9. data/lib/dodopayments/models/discount_list_params.rb +2 -2
  10. data/lib/dodopayments/models/discount_update_params.rb +5 -8
  11. data/lib/dodopayments/models/payment.rb +11 -1
  12. data/lib/dodopayments/models/product_collection.rb +131 -1
  13. data/lib/dodopayments/models/product_collection_create_params.rb +123 -1
  14. data/lib/dodopayments/models/product_collection_update_params.rb +123 -1
  15. data/lib/dodopayments/resources/discounts.rb +5 -5
  16. data/lib/dodopayments/resources/product_collections.rb +28 -2
  17. data/lib/dodopayments/version.rb +1 -1
  18. data/rbi/dodopayments/models/balance_ledger_entry.rbi +5 -0
  19. data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +5 -0
  20. data/rbi/dodopayments/models/discount.rbi +4 -12
  21. data/rbi/dodopayments/models/discount_create_params.rbi +6 -14
  22. data/rbi/dodopayments/models/discount_detail.rbi +2 -2
  23. data/rbi/dodopayments/models/discount_list_params.rbi +2 -2
  24. data/rbi/dodopayments/models/discount_update_params.rbi +6 -12
  25. data/rbi/dodopayments/models/payment.rbi +12 -0
  26. data/rbi/dodopayments/models/product_collection.rbi +307 -3
  27. data/rbi/dodopayments/models/product_collection_create_params.rbi +310 -0
  28. data/rbi/dodopayments/models/product_collection_update_params.rbi +310 -0
  29. data/rbi/dodopayments/resources/discounts.rbi +7 -14
  30. data/rbi/dodopayments/resources/product_collections.rbi +70 -0
  31. data/sig/dodopayments/models/balance_ledger_entry.rbs +2 -0
  32. data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +2 -0
  33. data/sig/dodopayments/models/payment.rbs +5 -0
  34. data/sig/dodopayments/models/product_collection.rbs +95 -3
  35. data/sig/dodopayments/models/product_collection_create_params.rbs +93 -1
  36. data/sig/dodopayments/models/product_collection_update_params.rbs +93 -1
  37. data/sig/dodopayments/resources/product_collections.rbs +10 -0
  38. metadata +1 -1
@@ -45,10 +45,65 @@ module Dodopayments
45
45
  sig { returns(T.nilable(String)) }
46
46
  attr_accessor :description
47
47
 
48
+ # Default effective_at setting for subscription plan downgrades (null = inherit
49
+ # from business)
50
+ sig do
51
+ returns(
52
+ T.nilable(
53
+ Dodopayments::ProductCollection::EffectiveAtOnDowngrade::TaggedSymbol
54
+ )
55
+ )
56
+ end
57
+ attr_accessor :effective_at_on_downgrade
58
+
59
+ # Default effective_at setting for subscription plan upgrades (null = inherit from
60
+ # business)
61
+ sig do
62
+ returns(
63
+ T.nilable(
64
+ Dodopayments::ProductCollection::EffectiveAtOnUpgrade::TaggedSymbol
65
+ )
66
+ )
67
+ end
68
+ attr_accessor :effective_at_on_upgrade
69
+
48
70
  # URL of the collection image
49
71
  sig { returns(T.nilable(String)) }
50
72
  attr_accessor :image
51
73
 
74
+ # Default behavior for subscription plan changes on payment failure (null =
75
+ # inherit from business)
76
+ sig do
77
+ returns(
78
+ T.nilable(
79
+ Dodopayments::ProductCollection::OnPaymentFailure::TaggedSymbol
80
+ )
81
+ )
82
+ end
83
+ attr_accessor :on_payment_failure
84
+
85
+ # Default proration billing mode for subscription plan downgrades (null = inherit
86
+ # from business)
87
+ sig do
88
+ returns(
89
+ T.nilable(
90
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::TaggedSymbol
91
+ )
92
+ )
93
+ end
94
+ attr_accessor :proration_billing_mode_on_downgrade
95
+
96
+ # Default proration billing mode for subscription plan upgrades (null = inherit
97
+ # from business)
98
+ sig do
99
+ returns(
100
+ T.nilable(
101
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::TaggedSymbol
102
+ )
103
+ )
104
+ end
105
+ attr_accessor :proration_billing_mode_on_upgrade
106
+
52
107
  sig do
53
108
  params(
54
109
  id: String,
@@ -61,7 +116,27 @@ module Dodopayments
61
116
  name: String,
62
117
  updated_at: Time,
63
118
  description: T.nilable(String),
64
- image: T.nilable(String)
119
+ effective_at_on_downgrade:
120
+ T.nilable(
121
+ Dodopayments::ProductCollection::EffectiveAtOnDowngrade::OrSymbol
122
+ ),
123
+ effective_at_on_upgrade:
124
+ T.nilable(
125
+ Dodopayments::ProductCollection::EffectiveAtOnUpgrade::OrSymbol
126
+ ),
127
+ image: T.nilable(String),
128
+ on_payment_failure:
129
+ T.nilable(
130
+ Dodopayments::ProductCollection::OnPaymentFailure::OrSymbol
131
+ ),
132
+ proration_billing_mode_on_downgrade:
133
+ T.nilable(
134
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::OrSymbol
135
+ ),
136
+ proration_billing_mode_on_upgrade:
137
+ T.nilable(
138
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::OrSymbol
139
+ )
65
140
  ).returns(T.attached_class)
66
141
  end
67
142
  def self.new(
@@ -79,8 +154,23 @@ module Dodopayments
79
154
  updated_at:,
80
155
  # Description of the collection
81
156
  description: nil,
157
+ # Default effective_at setting for subscription plan downgrades (null = inherit
158
+ # from business)
159
+ effective_at_on_downgrade: nil,
160
+ # Default effective_at setting for subscription plan upgrades (null = inherit from
161
+ # business)
162
+ effective_at_on_upgrade: nil,
82
163
  # URL of the collection image
83
- image: nil
164
+ image: nil,
165
+ # Default behavior for subscription plan changes on payment failure (null =
166
+ # inherit from business)
167
+ on_payment_failure: nil,
168
+ # Default proration billing mode for subscription plan downgrades (null = inherit
169
+ # from business)
170
+ proration_billing_mode_on_downgrade: nil,
171
+ # Default proration billing mode for subscription plan upgrades (null = inherit
172
+ # from business)
173
+ proration_billing_mode_on_upgrade: nil
84
174
  )
85
175
  end
86
176
 
@@ -97,12 +187,226 @@ module Dodopayments
97
187
  name: String,
98
188
  updated_at: Time,
99
189
  description: T.nilable(String),
100
- image: T.nilable(String)
190
+ effective_at_on_downgrade:
191
+ T.nilable(
192
+ Dodopayments::ProductCollection::EffectiveAtOnDowngrade::TaggedSymbol
193
+ ),
194
+ effective_at_on_upgrade:
195
+ T.nilable(
196
+ Dodopayments::ProductCollection::EffectiveAtOnUpgrade::TaggedSymbol
197
+ ),
198
+ image: T.nilable(String),
199
+ on_payment_failure:
200
+ T.nilable(
201
+ Dodopayments::ProductCollection::OnPaymentFailure::TaggedSymbol
202
+ ),
203
+ proration_billing_mode_on_downgrade:
204
+ T.nilable(
205
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::TaggedSymbol
206
+ ),
207
+ proration_billing_mode_on_upgrade:
208
+ T.nilable(
209
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::TaggedSymbol
210
+ )
101
211
  }
102
212
  )
103
213
  end
104
214
  def to_hash
105
215
  end
216
+
217
+ # Default effective_at setting for subscription plan downgrades (null = inherit
218
+ # from business)
219
+ module EffectiveAtOnDowngrade
220
+ extend Dodopayments::Internal::Type::Enum
221
+
222
+ TaggedSymbol =
223
+ T.type_alias do
224
+ T.all(
225
+ Symbol,
226
+ Dodopayments::ProductCollection::EffectiveAtOnDowngrade
227
+ )
228
+ end
229
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
230
+
231
+ IMMEDIATELY =
232
+ T.let(
233
+ :immediately,
234
+ Dodopayments::ProductCollection::EffectiveAtOnDowngrade::TaggedSymbol
235
+ )
236
+ NEXT_BILLING_DATE =
237
+ T.let(
238
+ :next_billing_date,
239
+ Dodopayments::ProductCollection::EffectiveAtOnDowngrade::TaggedSymbol
240
+ )
241
+
242
+ sig do
243
+ override.returns(
244
+ T::Array[
245
+ Dodopayments::ProductCollection::EffectiveAtOnDowngrade::TaggedSymbol
246
+ ]
247
+ )
248
+ end
249
+ def self.values
250
+ end
251
+ end
252
+
253
+ # Default effective_at setting for subscription plan upgrades (null = inherit from
254
+ # business)
255
+ module EffectiveAtOnUpgrade
256
+ extend Dodopayments::Internal::Type::Enum
257
+
258
+ TaggedSymbol =
259
+ T.type_alias do
260
+ T.all(Symbol, Dodopayments::ProductCollection::EffectiveAtOnUpgrade)
261
+ end
262
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
263
+
264
+ IMMEDIATELY =
265
+ T.let(
266
+ :immediately,
267
+ Dodopayments::ProductCollection::EffectiveAtOnUpgrade::TaggedSymbol
268
+ )
269
+ NEXT_BILLING_DATE =
270
+ T.let(
271
+ :next_billing_date,
272
+ Dodopayments::ProductCollection::EffectiveAtOnUpgrade::TaggedSymbol
273
+ )
274
+
275
+ sig do
276
+ override.returns(
277
+ T::Array[
278
+ Dodopayments::ProductCollection::EffectiveAtOnUpgrade::TaggedSymbol
279
+ ]
280
+ )
281
+ end
282
+ def self.values
283
+ end
284
+ end
285
+
286
+ # Default behavior for subscription plan changes on payment failure (null =
287
+ # inherit from business)
288
+ module OnPaymentFailure
289
+ extend Dodopayments::Internal::Type::Enum
290
+
291
+ TaggedSymbol =
292
+ T.type_alias do
293
+ T.all(Symbol, Dodopayments::ProductCollection::OnPaymentFailure)
294
+ end
295
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
296
+
297
+ PREVENT_CHANGE =
298
+ T.let(
299
+ :prevent_change,
300
+ Dodopayments::ProductCollection::OnPaymentFailure::TaggedSymbol
301
+ )
302
+ APPLY_CHANGE =
303
+ T.let(
304
+ :apply_change,
305
+ Dodopayments::ProductCollection::OnPaymentFailure::TaggedSymbol
306
+ )
307
+
308
+ sig do
309
+ override.returns(
310
+ T::Array[
311
+ Dodopayments::ProductCollection::OnPaymentFailure::TaggedSymbol
312
+ ]
313
+ )
314
+ end
315
+ def self.values
316
+ end
317
+ end
318
+
319
+ # Default proration billing mode for subscription plan downgrades (null = inherit
320
+ # from business)
321
+ module ProrationBillingModeOnDowngrade
322
+ extend Dodopayments::Internal::Type::Enum
323
+
324
+ TaggedSymbol =
325
+ T.type_alias do
326
+ T.all(
327
+ Symbol,
328
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade
329
+ )
330
+ end
331
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
332
+
333
+ PRORATED_IMMEDIATELY =
334
+ T.let(
335
+ :prorated_immediately,
336
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::TaggedSymbol
337
+ )
338
+ FULL_IMMEDIATELY =
339
+ T.let(
340
+ :full_immediately,
341
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::TaggedSymbol
342
+ )
343
+ DIFFERENCE_IMMEDIATELY =
344
+ T.let(
345
+ :difference_immediately,
346
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::TaggedSymbol
347
+ )
348
+ DO_NOT_BILL =
349
+ T.let(
350
+ :do_not_bill,
351
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::TaggedSymbol
352
+ )
353
+
354
+ sig do
355
+ override.returns(
356
+ T::Array[
357
+ Dodopayments::ProductCollection::ProrationBillingModeOnDowngrade::TaggedSymbol
358
+ ]
359
+ )
360
+ end
361
+ def self.values
362
+ end
363
+ end
364
+
365
+ # Default proration billing mode for subscription plan upgrades (null = inherit
366
+ # from business)
367
+ module ProrationBillingModeOnUpgrade
368
+ extend Dodopayments::Internal::Type::Enum
369
+
370
+ TaggedSymbol =
371
+ T.type_alias do
372
+ T.all(
373
+ Symbol,
374
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade
375
+ )
376
+ end
377
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
378
+
379
+ PRORATED_IMMEDIATELY =
380
+ T.let(
381
+ :prorated_immediately,
382
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::TaggedSymbol
383
+ )
384
+ FULL_IMMEDIATELY =
385
+ T.let(
386
+ :full_immediately,
387
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::TaggedSymbol
388
+ )
389
+ DIFFERENCE_IMMEDIATELY =
390
+ T.let(
391
+ :difference_immediately,
392
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::TaggedSymbol
393
+ )
394
+ DO_NOT_BILL =
395
+ T.let(
396
+ :do_not_bill,
397
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::TaggedSymbol
398
+ )
399
+
400
+ sig do
401
+ override.returns(
402
+ T::Array[
403
+ Dodopayments::ProductCollection::ProrationBillingModeOnUpgrade::TaggedSymbol
404
+ ]
405
+ )
406
+ end
407
+ def self.values
408
+ end
409
+ end
106
410
  end
107
411
  end
108
412
  end
@@ -36,6 +36,61 @@ module Dodopayments
36
36
  sig { returns(T.nilable(String)) }
37
37
  attr_accessor :description
38
38
 
39
+ # Default effective_at setting for subscription plan downgrades (NULL = inherit
40
+ # from business)
41
+ sig do
42
+ returns(
43
+ T.nilable(
44
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnDowngrade::OrSymbol
45
+ )
46
+ )
47
+ end
48
+ attr_accessor :effective_at_on_downgrade
49
+
50
+ # Default effective_at setting for subscription plan upgrades (NULL = inherit from
51
+ # business)
52
+ sig do
53
+ returns(
54
+ T.nilable(
55
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnUpgrade::OrSymbol
56
+ )
57
+ )
58
+ end
59
+ attr_accessor :effective_at_on_upgrade
60
+
61
+ # Default behavior for subscription plan changes on payment failure (NULL =
62
+ # inherit from business)
63
+ sig do
64
+ returns(
65
+ T.nilable(
66
+ Dodopayments::ProductCollectionCreateParams::OnPaymentFailure::OrSymbol
67
+ )
68
+ )
69
+ end
70
+ attr_accessor :on_payment_failure
71
+
72
+ # Default proration billing mode for subscription plan downgrades (NULL = inherit
73
+ # from business)
74
+ sig do
75
+ returns(
76
+ T.nilable(
77
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::OrSymbol
78
+ )
79
+ )
80
+ end
81
+ attr_accessor :proration_billing_mode_on_downgrade
82
+
83
+ # Default proration billing mode for subscription plan upgrades (NULL = inherit
84
+ # from business)
85
+ sig do
86
+ returns(
87
+ T.nilable(
88
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::OrSymbol
89
+ )
90
+ )
91
+ end
92
+ attr_accessor :proration_billing_mode_on_upgrade
93
+
39
94
  sig do
40
95
  params(
41
96
  groups:
@@ -45,6 +100,26 @@ module Dodopayments
45
100
  name: String,
46
101
  brand_id: T.nilable(String),
47
102
  description: T.nilable(String),
103
+ effective_at_on_downgrade:
104
+ T.nilable(
105
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnDowngrade::OrSymbol
106
+ ),
107
+ effective_at_on_upgrade:
108
+ T.nilable(
109
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnUpgrade::OrSymbol
110
+ ),
111
+ on_payment_failure:
112
+ T.nilable(
113
+ Dodopayments::ProductCollectionCreateParams::OnPaymentFailure::OrSymbol
114
+ ),
115
+ proration_billing_mode_on_downgrade:
116
+ T.nilable(
117
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::OrSymbol
118
+ ),
119
+ proration_billing_mode_on_upgrade:
120
+ T.nilable(
121
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::OrSymbol
122
+ ),
48
123
  request_options: Dodopayments::RequestOptions::OrHash
49
124
  ).returns(T.attached_class)
50
125
  end
@@ -57,6 +132,21 @@ module Dodopayments
57
132
  brand_id: nil,
58
133
  # Optional description of the product collection
59
134
  description: nil,
135
+ # Default effective_at setting for subscription plan downgrades (NULL = inherit
136
+ # from business)
137
+ effective_at_on_downgrade: nil,
138
+ # Default effective_at setting for subscription plan upgrades (NULL = inherit from
139
+ # business)
140
+ effective_at_on_upgrade: nil,
141
+ # Default behavior for subscription plan changes on payment failure (NULL =
142
+ # inherit from business)
143
+ on_payment_failure: nil,
144
+ # Default proration billing mode for subscription plan downgrades (NULL = inherit
145
+ # from business)
146
+ proration_billing_mode_on_downgrade: nil,
147
+ # Default proration billing mode for subscription plan upgrades (NULL = inherit
148
+ # from business)
149
+ proration_billing_mode_on_upgrade: nil,
60
150
  request_options: {}
61
151
  )
62
152
  end
@@ -71,12 +161,232 @@ module Dodopayments
71
161
  name: String,
72
162
  brand_id: T.nilable(String),
73
163
  description: T.nilable(String),
164
+ effective_at_on_downgrade:
165
+ T.nilable(
166
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnDowngrade::OrSymbol
167
+ ),
168
+ effective_at_on_upgrade:
169
+ T.nilable(
170
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnUpgrade::OrSymbol
171
+ ),
172
+ on_payment_failure:
173
+ T.nilable(
174
+ Dodopayments::ProductCollectionCreateParams::OnPaymentFailure::OrSymbol
175
+ ),
176
+ proration_billing_mode_on_downgrade:
177
+ T.nilable(
178
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::OrSymbol
179
+ ),
180
+ proration_billing_mode_on_upgrade:
181
+ T.nilable(
182
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::OrSymbol
183
+ ),
74
184
  request_options: Dodopayments::RequestOptions
75
185
  }
76
186
  )
77
187
  end
78
188
  def to_hash
79
189
  end
190
+
191
+ # Default effective_at setting for subscription plan downgrades (NULL = inherit
192
+ # from business)
193
+ module EffectiveAtOnDowngrade
194
+ extend Dodopayments::Internal::Type::Enum
195
+
196
+ TaggedSymbol =
197
+ T.type_alias do
198
+ T.all(
199
+ Symbol,
200
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnDowngrade
201
+ )
202
+ end
203
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
204
+
205
+ IMMEDIATELY =
206
+ T.let(
207
+ :immediately,
208
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnDowngrade::TaggedSymbol
209
+ )
210
+ NEXT_BILLING_DATE =
211
+ T.let(
212
+ :next_billing_date,
213
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnDowngrade::TaggedSymbol
214
+ )
215
+
216
+ sig do
217
+ override.returns(
218
+ T::Array[
219
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnDowngrade::TaggedSymbol
220
+ ]
221
+ )
222
+ end
223
+ def self.values
224
+ end
225
+ end
226
+
227
+ # Default effective_at setting for subscription plan upgrades (NULL = inherit from
228
+ # business)
229
+ module EffectiveAtOnUpgrade
230
+ extend Dodopayments::Internal::Type::Enum
231
+
232
+ TaggedSymbol =
233
+ T.type_alias do
234
+ T.all(
235
+ Symbol,
236
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnUpgrade
237
+ )
238
+ end
239
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
240
+
241
+ IMMEDIATELY =
242
+ T.let(
243
+ :immediately,
244
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnUpgrade::TaggedSymbol
245
+ )
246
+ NEXT_BILLING_DATE =
247
+ T.let(
248
+ :next_billing_date,
249
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnUpgrade::TaggedSymbol
250
+ )
251
+
252
+ sig do
253
+ override.returns(
254
+ T::Array[
255
+ Dodopayments::ProductCollectionCreateParams::EffectiveAtOnUpgrade::TaggedSymbol
256
+ ]
257
+ )
258
+ end
259
+ def self.values
260
+ end
261
+ end
262
+
263
+ # Default behavior for subscription plan changes on payment failure (NULL =
264
+ # inherit from business)
265
+ module OnPaymentFailure
266
+ extend Dodopayments::Internal::Type::Enum
267
+
268
+ TaggedSymbol =
269
+ T.type_alias do
270
+ T.all(
271
+ Symbol,
272
+ Dodopayments::ProductCollectionCreateParams::OnPaymentFailure
273
+ )
274
+ end
275
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
276
+
277
+ PREVENT_CHANGE =
278
+ T.let(
279
+ :prevent_change,
280
+ Dodopayments::ProductCollectionCreateParams::OnPaymentFailure::TaggedSymbol
281
+ )
282
+ APPLY_CHANGE =
283
+ T.let(
284
+ :apply_change,
285
+ Dodopayments::ProductCollectionCreateParams::OnPaymentFailure::TaggedSymbol
286
+ )
287
+
288
+ sig do
289
+ override.returns(
290
+ T::Array[
291
+ Dodopayments::ProductCollectionCreateParams::OnPaymentFailure::TaggedSymbol
292
+ ]
293
+ )
294
+ end
295
+ def self.values
296
+ end
297
+ end
298
+
299
+ # Default proration billing mode for subscription plan downgrades (NULL = inherit
300
+ # from business)
301
+ module ProrationBillingModeOnDowngrade
302
+ extend Dodopayments::Internal::Type::Enum
303
+
304
+ TaggedSymbol =
305
+ T.type_alias do
306
+ T.all(
307
+ Symbol,
308
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade
309
+ )
310
+ end
311
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
312
+
313
+ PRORATED_IMMEDIATELY =
314
+ T.let(
315
+ :prorated_immediately,
316
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::TaggedSymbol
317
+ )
318
+ FULL_IMMEDIATELY =
319
+ T.let(
320
+ :full_immediately,
321
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::TaggedSymbol
322
+ )
323
+ DIFFERENCE_IMMEDIATELY =
324
+ T.let(
325
+ :difference_immediately,
326
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::TaggedSymbol
327
+ )
328
+ DO_NOT_BILL =
329
+ T.let(
330
+ :do_not_bill,
331
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::TaggedSymbol
332
+ )
333
+
334
+ sig do
335
+ override.returns(
336
+ T::Array[
337
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnDowngrade::TaggedSymbol
338
+ ]
339
+ )
340
+ end
341
+ def self.values
342
+ end
343
+ end
344
+
345
+ # Default proration billing mode for subscription plan upgrades (NULL = inherit
346
+ # from business)
347
+ module ProrationBillingModeOnUpgrade
348
+ extend Dodopayments::Internal::Type::Enum
349
+
350
+ TaggedSymbol =
351
+ T.type_alias do
352
+ T.all(
353
+ Symbol,
354
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade
355
+ )
356
+ end
357
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
358
+
359
+ PRORATED_IMMEDIATELY =
360
+ T.let(
361
+ :prorated_immediately,
362
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::TaggedSymbol
363
+ )
364
+ FULL_IMMEDIATELY =
365
+ T.let(
366
+ :full_immediately,
367
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::TaggedSymbol
368
+ )
369
+ DIFFERENCE_IMMEDIATELY =
370
+ T.let(
371
+ :difference_immediately,
372
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::TaggedSymbol
373
+ )
374
+ DO_NOT_BILL =
375
+ T.let(
376
+ :do_not_bill,
377
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::TaggedSymbol
378
+ )
379
+
380
+ sig do
381
+ override.returns(
382
+ T::Array[
383
+ Dodopayments::ProductCollectionCreateParams::ProrationBillingModeOnUpgrade::TaggedSymbol
384
+ ]
385
+ )
386
+ end
387
+ def self.values
388
+ end
389
+ end
80
390
  end
81
391
  end
82
392
  end