orb-billing 0.11.0 → 0.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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/orb/internal/type/union.rb +3 -8
  5. data/lib/orb/internal/util.rb +8 -9
  6. data/lib/orb/models/amount_discount.rb +65 -1
  7. data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +1437 -15
  8. data/lib/orb/models/beta_create_plan_version_params.rb +1435 -15
  9. data/lib/orb/models/percentage_discount.rb +65 -1
  10. data/lib/orb/models/subscription_create_params.rb +1435 -15
  11. data/lib/orb/models/subscription_price_intervals_params.rb +715 -5
  12. data/lib/orb/models/subscription_redeem_coupon_params.rb +17 -9
  13. data/lib/orb/models/subscription_schedule_plan_change_params.rb +1435 -15
  14. data/lib/orb/models/trial_discount.rb +65 -1
  15. data/lib/orb/models/usage_discount.rb +65 -1
  16. data/lib/orb/resources/subscriptions.rb +5 -3
  17. data/lib/orb/version.rb +1 -1
  18. data/rbi/orb/internal/util.rbi +2 -0
  19. data/rbi/orb/models/amount_discount.rbi +117 -0
  20. data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +6145 -3045
  21. data/rbi/orb/models/beta_create_plan_version_params.rbi +6096 -2996
  22. data/rbi/orb/models/percentage_discount.rbi +131 -0
  23. data/rbi/orb/models/subscription_create_params.rbi +6037 -2937
  24. data/rbi/orb/models/subscription_price_intervals_params.rbi +1633 -83
  25. data/rbi/orb/models/subscription_redeem_coupon_params.rbi +16 -8
  26. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +6948 -3848
  27. data/rbi/orb/models/trial_discount.rbi +109 -0
  28. data/rbi/orb/models/usage_discount.rbi +109 -0
  29. data/rbi/orb/resources/subscriptions.rbi +6 -3
  30. data/sig/orb/models/amount_discount.rbs +58 -0
  31. data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1130 -20
  32. data/sig/orb/models/beta_create_plan_version_params.rbs +1130 -20
  33. data/sig/orb/models/percentage_discount.rbs +58 -0
  34. data/sig/orb/models/subscription_create_params.rbs +1130 -20
  35. data/sig/orb/models/subscription_price_intervals_params.rbs +565 -10
  36. data/sig/orb/models/subscription_redeem_coupon_params.rbs +11 -6
  37. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1130 -20
  38. data/sig/orb/models/trial_discount.rbs +58 -0
  39. data/sig/orb/models/usage_discount.rbs +58 -0
  40. data/sig/orb/resources/subscriptions.rbs +2 -1
  41. metadata +2 -2
@@ -92,8 +92,13 @@ module Orb
92
92
  {
93
93
  adjustment_type: :percentage_discount,
94
94
  percentage_discount: Float,
95
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
96
+ applies_to_item_ids: ::Array[String]?,
95
97
  applies_to_price_ids: ::Array[String]?,
96
- is_invoice_level: bool
98
+ currency: String?,
99
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
100
+ is_invoice_level: bool,
101
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
97
102
  }
98
103
 
99
104
  class PercentageDiscount < Orb::Internal::Type::BaseModel
@@ -101,33 +106,144 @@ module Orb
101
106
 
102
107
  attr_accessor percentage_discount: Float
103
108
 
109
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?
110
+
111
+ attr_accessor applies_to_item_ids: ::Array[String]?
112
+
104
113
  attr_accessor applies_to_price_ids: ::Array[String]?
105
114
 
115
+ attr_accessor currency: String?
116
+
117
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?
118
+
106
119
  attr_reader is_invoice_level: bool?
107
120
 
108
121
  def is_invoice_level=: (bool) -> bool
109
122
 
123
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
124
+
110
125
  def initialize: (
111
126
  percentage_discount: Float,
127
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
128
+ ?applies_to_item_ids: ::Array[String]?,
112
129
  ?applies_to_price_ids: ::Array[String]?,
130
+ ?currency: String?,
131
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
113
132
  ?is_invoice_level: bool,
133
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?,
114
134
  ?adjustment_type: :percentage_discount
115
135
  ) -> void
116
136
 
117
137
  def to_hash: -> {
118
138
  adjustment_type: :percentage_discount,
119
139
  percentage_discount: Float,
140
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
141
+ applies_to_item_ids: ::Array[String]?,
120
142
  applies_to_price_ids: ::Array[String]?,
121
- is_invoice_level: bool
143
+ currency: String?,
144
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
145
+ is_invoice_level: bool,
146
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
122
147
  }
148
+
149
+ type applies_to_all = true
150
+
151
+ module AppliesToAll
152
+ extend Orb::Internal::Type::Enum
153
+
154
+ TRUE: true
155
+
156
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all]
157
+ end
158
+
159
+ type filter =
160
+ {
161
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
162
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
163
+ values: ::Array[String]
164
+ }
165
+
166
+ class Filter < Orb::Internal::Type::BaseModel
167
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field
168
+
169
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator
170
+
171
+ attr_accessor values: ::Array[String]
172
+
173
+ def initialize: (
174
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
175
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
176
+ values: ::Array[String]
177
+ ) -> void
178
+
179
+ def to_hash: -> {
180
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
181
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
182
+ values: ::Array[String]
183
+ }
184
+
185
+ type field =
186
+ :price_id
187
+ | :item_id
188
+ | :price_type
189
+ | :currency
190
+ | :pricing_unit_id
191
+
192
+ module Field
193
+ extend Orb::Internal::Type::Enum
194
+
195
+ PRICE_ID: :price_id
196
+ ITEM_ID: :item_id
197
+ PRICE_TYPE: :price_type
198
+ CURRENCY: :currency
199
+ PRICING_UNIT_ID: :pricing_unit_id
200
+
201
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field]
202
+ end
203
+
204
+ type operator = :includes | :excludes
205
+
206
+ module Operator
207
+ extend Orb::Internal::Type::Enum
208
+
209
+ INCLUDES: :includes
210
+ EXCLUDES: :excludes
211
+
212
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator]
213
+ end
214
+ end
215
+
216
+ type price_type =
217
+ :usage
218
+ | :fixed_in_advance
219
+ | :fixed_in_arrears
220
+ | :fixed
221
+ | :in_arrears
222
+
223
+ module PriceType
224
+ extend Orb::Internal::Type::Enum
225
+
226
+ USAGE: :usage
227
+ FIXED_IN_ADVANCE: :fixed_in_advance
228
+ FIXED_IN_ARREARS: :fixed_in_arrears
229
+ FIXED: :fixed
230
+ IN_ARREARS: :in_arrears
231
+
232
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type]
233
+ end
123
234
  end
124
235
 
125
236
  type usage_discount =
126
237
  {
127
238
  adjustment_type: :usage_discount,
128
239
  usage_discount: Float,
240
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
241
+ applies_to_item_ids: ::Array[String]?,
129
242
  applies_to_price_ids: ::Array[String]?,
130
- is_invoice_level: bool
243
+ currency: String?,
244
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
245
+ is_invoice_level: bool,
246
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
131
247
  }
132
248
 
133
249
  class UsageDiscount < Orb::Internal::Type::BaseModel
@@ -135,33 +251,144 @@ module Orb
135
251
 
136
252
  attr_accessor usage_discount: Float
137
253
 
254
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?
255
+
256
+ attr_accessor applies_to_item_ids: ::Array[String]?
257
+
138
258
  attr_accessor applies_to_price_ids: ::Array[String]?
139
259
 
260
+ attr_accessor currency: String?
261
+
262
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?
263
+
140
264
  attr_reader is_invoice_level: bool?
141
265
 
142
266
  def is_invoice_level=: (bool) -> bool
143
267
 
268
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
269
+
144
270
  def initialize: (
145
271
  usage_discount: Float,
272
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
273
+ ?applies_to_item_ids: ::Array[String]?,
146
274
  ?applies_to_price_ids: ::Array[String]?,
275
+ ?currency: String?,
276
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
147
277
  ?is_invoice_level: bool,
278
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?,
148
279
  ?adjustment_type: :usage_discount
149
280
  ) -> void
150
281
 
151
282
  def to_hash: -> {
152
283
  adjustment_type: :usage_discount,
153
284
  usage_discount: Float,
285
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
286
+ applies_to_item_ids: ::Array[String]?,
154
287
  applies_to_price_ids: ::Array[String]?,
155
- is_invoice_level: bool
288
+ currency: String?,
289
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
290
+ is_invoice_level: bool,
291
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
156
292
  }
293
+
294
+ type applies_to_all = true
295
+
296
+ module AppliesToAll
297
+ extend Orb::Internal::Type::Enum
298
+
299
+ TRUE: true
300
+
301
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all]
302
+ end
303
+
304
+ type filter =
305
+ {
306
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
307
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
308
+ values: ::Array[String]
309
+ }
310
+
311
+ class Filter < Orb::Internal::Type::BaseModel
312
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field
313
+
314
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator
315
+
316
+ attr_accessor values: ::Array[String]
317
+
318
+ def initialize: (
319
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
320
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
321
+ values: ::Array[String]
322
+ ) -> void
323
+
324
+ def to_hash: -> {
325
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
326
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
327
+ values: ::Array[String]
328
+ }
329
+
330
+ type field =
331
+ :price_id
332
+ | :item_id
333
+ | :price_type
334
+ | :currency
335
+ | :pricing_unit_id
336
+
337
+ module Field
338
+ extend Orb::Internal::Type::Enum
339
+
340
+ PRICE_ID: :price_id
341
+ ITEM_ID: :item_id
342
+ PRICE_TYPE: :price_type
343
+ CURRENCY: :currency
344
+ PRICING_UNIT_ID: :pricing_unit_id
345
+
346
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field]
347
+ end
348
+
349
+ type operator = :includes | :excludes
350
+
351
+ module Operator
352
+ extend Orb::Internal::Type::Enum
353
+
354
+ INCLUDES: :includes
355
+ EXCLUDES: :excludes
356
+
357
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator]
358
+ end
359
+ end
360
+
361
+ type price_type =
362
+ :usage
363
+ | :fixed_in_advance
364
+ | :fixed_in_arrears
365
+ | :fixed
366
+ | :in_arrears
367
+
368
+ module PriceType
369
+ extend Orb::Internal::Type::Enum
370
+
371
+ USAGE: :usage
372
+ FIXED_IN_ADVANCE: :fixed_in_advance
373
+ FIXED_IN_ARREARS: :fixed_in_arrears
374
+ FIXED: :fixed
375
+ IN_ARREARS: :in_arrears
376
+
377
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type]
378
+ end
157
379
  end
158
380
 
159
381
  type amount_discount =
160
382
  {
161
383
  adjustment_type: :amount_discount,
162
384
  amount_discount: String,
385
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
386
+ applies_to_item_ids: ::Array[String]?,
163
387
  applies_to_price_ids: ::Array[String]?,
164
- is_invoice_level: bool
388
+ currency: String?,
389
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
390
+ is_invoice_level: bool,
391
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
165
392
  }
166
393
 
167
394
  class AmountDiscount < Orb::Internal::Type::BaseModel
@@ -169,25 +396,131 @@ module Orb
169
396
 
170
397
  attr_accessor amount_discount: String
171
398
 
399
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?
400
+
401
+ attr_accessor applies_to_item_ids: ::Array[String]?
402
+
172
403
  attr_accessor applies_to_price_ids: ::Array[String]?
173
404
 
405
+ attr_accessor currency: String?
406
+
407
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?
408
+
174
409
  attr_reader is_invoice_level: bool?
175
410
 
176
411
  def is_invoice_level=: (bool) -> bool
177
412
 
413
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
414
+
178
415
  def initialize: (
179
416
  amount_discount: String,
417
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
418
+ ?applies_to_item_ids: ::Array[String]?,
180
419
  ?applies_to_price_ids: ::Array[String]?,
420
+ ?currency: String?,
421
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
181
422
  ?is_invoice_level: bool,
423
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?,
182
424
  ?adjustment_type: :amount_discount
183
425
  ) -> void
184
426
 
185
427
  def to_hash: -> {
186
428
  adjustment_type: :amount_discount,
187
429
  amount_discount: String,
430
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
431
+ applies_to_item_ids: ::Array[String]?,
188
432
  applies_to_price_ids: ::Array[String]?,
189
- is_invoice_level: bool
433
+ currency: String?,
434
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
435
+ is_invoice_level: bool,
436
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
190
437
  }
438
+
439
+ type applies_to_all = true
440
+
441
+ module AppliesToAll
442
+ extend Orb::Internal::Type::Enum
443
+
444
+ TRUE: true
445
+
446
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all]
447
+ end
448
+
449
+ type filter =
450
+ {
451
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
452
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
453
+ values: ::Array[String]
454
+ }
455
+
456
+ class Filter < Orb::Internal::Type::BaseModel
457
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field
458
+
459
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator
460
+
461
+ attr_accessor values: ::Array[String]
462
+
463
+ def initialize: (
464
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
465
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
466
+ values: ::Array[String]
467
+ ) -> void
468
+
469
+ def to_hash: -> {
470
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
471
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
472
+ values: ::Array[String]
473
+ }
474
+
475
+ type field =
476
+ :price_id
477
+ | :item_id
478
+ | :price_type
479
+ | :currency
480
+ | :pricing_unit_id
481
+
482
+ module Field
483
+ extend Orb::Internal::Type::Enum
484
+
485
+ PRICE_ID: :price_id
486
+ ITEM_ID: :item_id
487
+ PRICE_TYPE: :price_type
488
+ CURRENCY: :currency
489
+ PRICING_UNIT_ID: :pricing_unit_id
490
+
491
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field]
492
+ end
493
+
494
+ type operator = :includes | :excludes
495
+
496
+ module Operator
497
+ extend Orb::Internal::Type::Enum
498
+
499
+ INCLUDES: :includes
500
+ EXCLUDES: :excludes
501
+
502
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator]
503
+ end
504
+ end
505
+
506
+ type price_type =
507
+ :usage
508
+ | :fixed_in_advance
509
+ | :fixed_in_arrears
510
+ | :fixed
511
+ | :in_arrears
512
+
513
+ module PriceType
514
+ extend Orb::Internal::Type::Enum
515
+
516
+ USAGE: :usage
517
+ FIXED_IN_ADVANCE: :fixed_in_advance
518
+ FIXED_IN_ARREARS: :fixed_in_arrears
519
+ FIXED: :fixed
520
+ IN_ARREARS: :in_arrears
521
+
522
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type]
523
+ end
191
524
  end
192
525
 
193
526
  type minimum =
@@ -195,8 +528,13 @@ module Orb
195
528
  adjustment_type: :minimum,
196
529
  item_id: String,
197
530
  minimum_amount: String,
531
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
532
+ applies_to_item_ids: ::Array[String]?,
198
533
  applies_to_price_ids: ::Array[String]?,
199
- is_invoice_level: bool
534
+ currency: String?,
535
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?,
536
+ is_invoice_level: bool,
537
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?
200
538
  }
201
539
 
202
540
  class Minimum < Orb::Internal::Type::BaseModel
@@ -206,17 +544,32 @@ module Orb
206
544
 
207
545
  attr_accessor minimum_amount: String
208
546
 
547
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?
548
+
549
+ attr_accessor applies_to_item_ids: ::Array[String]?
550
+
209
551
  attr_accessor applies_to_price_ids: ::Array[String]?
210
552
 
553
+ attr_accessor currency: String?
554
+
555
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?
556
+
211
557
  attr_reader is_invoice_level: bool?
212
558
 
213
559
  def is_invoice_level=: (bool) -> bool
214
560
 
561
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?
562
+
215
563
  def initialize: (
216
564
  item_id: String,
217
565
  minimum_amount: String,
566
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
567
+ ?applies_to_item_ids: ::Array[String]?,
218
568
  ?applies_to_price_ids: ::Array[String]?,
569
+ ?currency: String?,
570
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?,
219
571
  ?is_invoice_level: bool,
572
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?,
220
573
  ?adjustment_type: :minimum
221
574
  ) -> void
222
575
 
@@ -224,17 +577,113 @@ module Orb
224
577
  adjustment_type: :minimum,
225
578
  item_id: String,
226
579
  minimum_amount: String,
580
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
581
+ applies_to_item_ids: ::Array[String]?,
227
582
  applies_to_price_ids: ::Array[String]?,
228
- is_invoice_level: bool
583
+ currency: String?,
584
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?,
585
+ is_invoice_level: bool,
586
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?
229
587
  }
588
+
589
+ type applies_to_all = true
590
+
591
+ module AppliesToAll
592
+ extend Orb::Internal::Type::Enum
593
+
594
+ TRUE: true
595
+
596
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all]
597
+ end
598
+
599
+ type filter =
600
+ {
601
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field,
602
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
603
+ values: ::Array[String]
604
+ }
605
+
606
+ class Filter < Orb::Internal::Type::BaseModel
607
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field
608
+
609
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator
610
+
611
+ attr_accessor values: ::Array[String]
612
+
613
+ def initialize: (
614
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field,
615
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
616
+ values: ::Array[String]
617
+ ) -> void
618
+
619
+ def to_hash: -> {
620
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field,
621
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
622
+ values: ::Array[String]
623
+ }
624
+
625
+ type field =
626
+ :price_id
627
+ | :item_id
628
+ | :price_type
629
+ | :currency
630
+ | :pricing_unit_id
631
+
632
+ module Field
633
+ extend Orb::Internal::Type::Enum
634
+
635
+ PRICE_ID: :price_id
636
+ ITEM_ID: :item_id
637
+ PRICE_TYPE: :price_type
638
+ CURRENCY: :currency
639
+ PRICING_UNIT_ID: :pricing_unit_id
640
+
641
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field]
642
+ end
643
+
644
+ type operator = :includes | :excludes
645
+
646
+ module Operator
647
+ extend Orb::Internal::Type::Enum
648
+
649
+ INCLUDES: :includes
650
+ EXCLUDES: :excludes
651
+
652
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator]
653
+ end
654
+ end
655
+
656
+ type price_type =
657
+ :usage
658
+ | :fixed_in_advance
659
+ | :fixed_in_arrears
660
+ | :fixed
661
+ | :in_arrears
662
+
663
+ module PriceType
664
+ extend Orb::Internal::Type::Enum
665
+
666
+ USAGE: :usage
667
+ FIXED_IN_ADVANCE: :fixed_in_advance
668
+ FIXED_IN_ARREARS: :fixed_in_arrears
669
+ FIXED: :fixed
670
+ IN_ARREARS: :in_arrears
671
+
672
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type]
673
+ end
230
674
  end
231
675
 
232
676
  type maximum =
233
677
  {
234
678
  adjustment_type: :maximum,
235
679
  maximum_amount: String,
680
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
681
+ applies_to_item_ids: ::Array[String]?,
236
682
  applies_to_price_ids: ::Array[String]?,
237
- is_invoice_level: bool
683
+ currency: String?,
684
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?,
685
+ is_invoice_level: bool,
686
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?
238
687
  }
239
688
 
240
689
  class Maximum < Orb::Internal::Type::BaseModel
@@ -242,25 +691,131 @@ module Orb
242
691
 
243
692
  attr_accessor maximum_amount: String
244
693
 
694
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?
695
+
696
+ attr_accessor applies_to_item_ids: ::Array[String]?
697
+
245
698
  attr_accessor applies_to_price_ids: ::Array[String]?
246
699
 
700
+ attr_accessor currency: String?
701
+
702
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?
703
+
247
704
  attr_reader is_invoice_level: bool?
248
705
 
249
706
  def is_invoice_level=: (bool) -> bool
250
707
 
708
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?
709
+
251
710
  def initialize: (
252
711
  maximum_amount: String,
712
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
713
+ ?applies_to_item_ids: ::Array[String]?,
253
714
  ?applies_to_price_ids: ::Array[String]?,
715
+ ?currency: String?,
716
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?,
254
717
  ?is_invoice_level: bool,
718
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?,
255
719
  ?adjustment_type: :maximum
256
720
  ) -> void
257
721
 
258
722
  def to_hash: -> {
259
723
  adjustment_type: :maximum,
260
724
  maximum_amount: String,
725
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
726
+ applies_to_item_ids: ::Array[String]?,
261
727
  applies_to_price_ids: ::Array[String]?,
262
- is_invoice_level: bool
728
+ currency: String?,
729
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?,
730
+ is_invoice_level: bool,
731
+ price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?
263
732
  }
733
+
734
+ type applies_to_all = true
735
+
736
+ module AppliesToAll
737
+ extend Orb::Internal::Type::Enum
738
+
739
+ TRUE: true
740
+
741
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all]
742
+ end
743
+
744
+ type filter =
745
+ {
746
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field,
747
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
748
+ values: ::Array[String]
749
+ }
750
+
751
+ class Filter < Orb::Internal::Type::BaseModel
752
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field
753
+
754
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator
755
+
756
+ attr_accessor values: ::Array[String]
757
+
758
+ def initialize: (
759
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field,
760
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
761
+ values: ::Array[String]
762
+ ) -> void
763
+
764
+ def to_hash: -> {
765
+ field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field,
766
+ operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
767
+ values: ::Array[String]
768
+ }
769
+
770
+ type field =
771
+ :price_id
772
+ | :item_id
773
+ | :price_type
774
+ | :currency
775
+ | :pricing_unit_id
776
+
777
+ module Field
778
+ extend Orb::Internal::Type::Enum
779
+
780
+ PRICE_ID: :price_id
781
+ ITEM_ID: :item_id
782
+ PRICE_TYPE: :price_type
783
+ CURRENCY: :currency
784
+ PRICING_UNIT_ID: :pricing_unit_id
785
+
786
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field]
787
+ end
788
+
789
+ type operator = :includes | :excludes
790
+
791
+ module Operator
792
+ extend Orb::Internal::Type::Enum
793
+
794
+ INCLUDES: :includes
795
+ EXCLUDES: :excludes
796
+
797
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator]
798
+ end
799
+ end
800
+
801
+ type price_type =
802
+ :usage
803
+ | :fixed_in_advance
804
+ | :fixed_in_arrears
805
+ | :fixed
806
+ | :in_arrears
807
+
808
+ module PriceType
809
+ extend Orb::Internal::Type::Enum
810
+
811
+ USAGE: :usage
812
+ FIXED_IN_ADVANCE: :fixed_in_advance
813
+ FIXED_IN_ARREARS: :fixed_in_arrears
814
+ FIXED: :fixed
815
+ IN_ARREARS: :in_arrears
816
+
817
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type]
818
+ end
264
819
  end
265
820
 
266
821
  def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::adjustment]
@@ -6552,8 +7107,13 @@ module Orb
6552
7107
  {
6553
7108
  adjustment_type: :percentage_discount,
6554
7109
  percentage_discount: Float,
7110
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
7111
+ applies_to_item_ids: ::Array[String]?,
6555
7112
  applies_to_price_ids: ::Array[String]?,
6556
- is_invoice_level: bool
7113
+ currency: String?,
7114
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
7115
+ is_invoice_level: bool,
7116
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
6557
7117
  }
6558
7118
 
6559
7119
  class PercentageDiscount < Orb::Internal::Type::BaseModel
@@ -6561,33 +7121,144 @@ module Orb
6561
7121
 
6562
7122
  attr_accessor percentage_discount: Float
6563
7123
 
7124
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?
7125
+
7126
+ attr_accessor applies_to_item_ids: ::Array[String]?
7127
+
6564
7128
  attr_accessor applies_to_price_ids: ::Array[String]?
6565
7129
 
7130
+ attr_accessor currency: String?
7131
+
7132
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?
7133
+
6566
7134
  attr_reader is_invoice_level: bool?
6567
7135
 
6568
7136
  def is_invoice_level=: (bool) -> bool
6569
7137
 
7138
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
7139
+
6570
7140
  def initialize: (
6571
7141
  percentage_discount: Float,
7142
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
7143
+ ?applies_to_item_ids: ::Array[String]?,
6572
7144
  ?applies_to_price_ids: ::Array[String]?,
7145
+ ?currency: String?,
7146
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
6573
7147
  ?is_invoice_level: bool,
7148
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?,
6574
7149
  ?adjustment_type: :percentage_discount
6575
7150
  ) -> void
6576
7151
 
6577
7152
  def to_hash: -> {
6578
7153
  adjustment_type: :percentage_discount,
6579
7154
  percentage_discount: Float,
7155
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
7156
+ applies_to_item_ids: ::Array[String]?,
6580
7157
  applies_to_price_ids: ::Array[String]?,
6581
- is_invoice_level: bool
7158
+ currency: String?,
7159
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
7160
+ is_invoice_level: bool,
7161
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
6582
7162
  }
7163
+
7164
+ type applies_to_all = true
7165
+
7166
+ module AppliesToAll
7167
+ extend Orb::Internal::Type::Enum
7168
+
7169
+ TRUE: true
7170
+
7171
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all]
7172
+ end
7173
+
7174
+ type filter =
7175
+ {
7176
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
7177
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
7178
+ values: ::Array[String]
7179
+ }
7180
+
7181
+ class Filter < Orb::Internal::Type::BaseModel
7182
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field
7183
+
7184
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator
7185
+
7186
+ attr_accessor values: ::Array[String]
7187
+
7188
+ def initialize: (
7189
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
7190
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
7191
+ values: ::Array[String]
7192
+ ) -> void
7193
+
7194
+ def to_hash: -> {
7195
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
7196
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
7197
+ values: ::Array[String]
7198
+ }
7199
+
7200
+ type field =
7201
+ :price_id
7202
+ | :item_id
7203
+ | :price_type
7204
+ | :currency
7205
+ | :pricing_unit_id
7206
+
7207
+ module Field
7208
+ extend Orb::Internal::Type::Enum
7209
+
7210
+ PRICE_ID: :price_id
7211
+ ITEM_ID: :item_id
7212
+ PRICE_TYPE: :price_type
7213
+ CURRENCY: :currency
7214
+ PRICING_UNIT_ID: :pricing_unit_id
7215
+
7216
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field]
7217
+ end
7218
+
7219
+ type operator = :includes | :excludes
7220
+
7221
+ module Operator
7222
+ extend Orb::Internal::Type::Enum
7223
+
7224
+ INCLUDES: :includes
7225
+ EXCLUDES: :excludes
7226
+
7227
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator]
7228
+ end
7229
+ end
7230
+
7231
+ type price_type =
7232
+ :usage
7233
+ | :fixed_in_advance
7234
+ | :fixed_in_arrears
7235
+ | :fixed
7236
+ | :in_arrears
7237
+
7238
+ module PriceType
7239
+ extend Orb::Internal::Type::Enum
7240
+
7241
+ USAGE: :usage
7242
+ FIXED_IN_ADVANCE: :fixed_in_advance
7243
+ FIXED_IN_ARREARS: :fixed_in_arrears
7244
+ FIXED: :fixed
7245
+ IN_ARREARS: :in_arrears
7246
+
7247
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type]
7248
+ end
6583
7249
  end
6584
7250
 
6585
7251
  type usage_discount =
6586
7252
  {
6587
7253
  adjustment_type: :usage_discount,
6588
7254
  usage_discount: Float,
7255
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
7256
+ applies_to_item_ids: ::Array[String]?,
6589
7257
  applies_to_price_ids: ::Array[String]?,
6590
- is_invoice_level: bool
7258
+ currency: String?,
7259
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
7260
+ is_invoice_level: bool,
7261
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
6591
7262
  }
6592
7263
 
6593
7264
  class UsageDiscount < Orb::Internal::Type::BaseModel
@@ -6595,33 +7266,144 @@ module Orb
6595
7266
 
6596
7267
  attr_accessor usage_discount: Float
6597
7268
 
7269
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?
7270
+
7271
+ attr_accessor applies_to_item_ids: ::Array[String]?
7272
+
6598
7273
  attr_accessor applies_to_price_ids: ::Array[String]?
6599
7274
 
7275
+ attr_accessor currency: String?
7276
+
7277
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?
7278
+
6600
7279
  attr_reader is_invoice_level: bool?
6601
7280
 
6602
7281
  def is_invoice_level=: (bool) -> bool
6603
7282
 
7283
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
7284
+
6604
7285
  def initialize: (
6605
7286
  usage_discount: Float,
7287
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
7288
+ ?applies_to_item_ids: ::Array[String]?,
6606
7289
  ?applies_to_price_ids: ::Array[String]?,
7290
+ ?currency: String?,
7291
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
6607
7292
  ?is_invoice_level: bool,
7293
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?,
6608
7294
  ?adjustment_type: :usage_discount
6609
7295
  ) -> void
6610
7296
 
6611
7297
  def to_hash: -> {
6612
7298
  adjustment_type: :usage_discount,
6613
7299
  usage_discount: Float,
7300
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
7301
+ applies_to_item_ids: ::Array[String]?,
6614
7302
  applies_to_price_ids: ::Array[String]?,
6615
- is_invoice_level: bool
7303
+ currency: String?,
7304
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
7305
+ is_invoice_level: bool,
7306
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
6616
7307
  }
7308
+
7309
+ type applies_to_all = true
7310
+
7311
+ module AppliesToAll
7312
+ extend Orb::Internal::Type::Enum
7313
+
7314
+ TRUE: true
7315
+
7316
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all]
7317
+ end
7318
+
7319
+ type filter =
7320
+ {
7321
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
7322
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
7323
+ values: ::Array[String]
7324
+ }
7325
+
7326
+ class Filter < Orb::Internal::Type::BaseModel
7327
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field
7328
+
7329
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator
7330
+
7331
+ attr_accessor values: ::Array[String]
7332
+
7333
+ def initialize: (
7334
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
7335
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
7336
+ values: ::Array[String]
7337
+ ) -> void
7338
+
7339
+ def to_hash: -> {
7340
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
7341
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
7342
+ values: ::Array[String]
7343
+ }
7344
+
7345
+ type field =
7346
+ :price_id
7347
+ | :item_id
7348
+ | :price_type
7349
+ | :currency
7350
+ | :pricing_unit_id
7351
+
7352
+ module Field
7353
+ extend Orb::Internal::Type::Enum
7354
+
7355
+ PRICE_ID: :price_id
7356
+ ITEM_ID: :item_id
7357
+ PRICE_TYPE: :price_type
7358
+ CURRENCY: :currency
7359
+ PRICING_UNIT_ID: :pricing_unit_id
7360
+
7361
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field]
7362
+ end
7363
+
7364
+ type operator = :includes | :excludes
7365
+
7366
+ module Operator
7367
+ extend Orb::Internal::Type::Enum
7368
+
7369
+ INCLUDES: :includes
7370
+ EXCLUDES: :excludes
7371
+
7372
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator]
7373
+ end
7374
+ end
7375
+
7376
+ type price_type =
7377
+ :usage
7378
+ | :fixed_in_advance
7379
+ | :fixed_in_arrears
7380
+ | :fixed
7381
+ | :in_arrears
7382
+
7383
+ module PriceType
7384
+ extend Orb::Internal::Type::Enum
7385
+
7386
+ USAGE: :usage
7387
+ FIXED_IN_ADVANCE: :fixed_in_advance
7388
+ FIXED_IN_ARREARS: :fixed_in_arrears
7389
+ FIXED: :fixed
7390
+ IN_ARREARS: :in_arrears
7391
+
7392
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type]
7393
+ end
6617
7394
  end
6618
7395
 
6619
7396
  type amount_discount =
6620
7397
  {
6621
7398
  adjustment_type: :amount_discount,
6622
7399
  amount_discount: String,
7400
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
7401
+ applies_to_item_ids: ::Array[String]?,
6623
7402
  applies_to_price_ids: ::Array[String]?,
6624
- is_invoice_level: bool
7403
+ currency: String?,
7404
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
7405
+ is_invoice_level: bool,
7406
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
6625
7407
  }
6626
7408
 
6627
7409
  class AmountDiscount < Orb::Internal::Type::BaseModel
@@ -6629,25 +7411,131 @@ module Orb
6629
7411
 
6630
7412
  attr_accessor amount_discount: String
6631
7413
 
7414
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?
7415
+
7416
+ attr_accessor applies_to_item_ids: ::Array[String]?
7417
+
6632
7418
  attr_accessor applies_to_price_ids: ::Array[String]?
6633
7419
 
7420
+ attr_accessor currency: String?
7421
+
7422
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?
7423
+
6634
7424
  attr_reader is_invoice_level: bool?
6635
7425
 
6636
7426
  def is_invoice_level=: (bool) -> bool
6637
7427
 
7428
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
7429
+
6638
7430
  def initialize: (
6639
7431
  amount_discount: String,
7432
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
7433
+ ?applies_to_item_ids: ::Array[String]?,
6640
7434
  ?applies_to_price_ids: ::Array[String]?,
7435
+ ?currency: String?,
7436
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
6641
7437
  ?is_invoice_level: bool,
7438
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?,
6642
7439
  ?adjustment_type: :amount_discount
6643
7440
  ) -> void
6644
7441
 
6645
7442
  def to_hash: -> {
6646
7443
  adjustment_type: :amount_discount,
6647
7444
  amount_discount: String,
7445
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
7446
+ applies_to_item_ids: ::Array[String]?,
6648
7447
  applies_to_price_ids: ::Array[String]?,
6649
- is_invoice_level: bool
7448
+ currency: String?,
7449
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
7450
+ is_invoice_level: bool,
7451
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
6650
7452
  }
7453
+
7454
+ type applies_to_all = true
7455
+
7456
+ module AppliesToAll
7457
+ extend Orb::Internal::Type::Enum
7458
+
7459
+ TRUE: true
7460
+
7461
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all]
7462
+ end
7463
+
7464
+ type filter =
7465
+ {
7466
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
7467
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
7468
+ values: ::Array[String]
7469
+ }
7470
+
7471
+ class Filter < Orb::Internal::Type::BaseModel
7472
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field
7473
+
7474
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator
7475
+
7476
+ attr_accessor values: ::Array[String]
7477
+
7478
+ def initialize: (
7479
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
7480
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
7481
+ values: ::Array[String]
7482
+ ) -> void
7483
+
7484
+ def to_hash: -> {
7485
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
7486
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
7487
+ values: ::Array[String]
7488
+ }
7489
+
7490
+ type field =
7491
+ :price_id
7492
+ | :item_id
7493
+ | :price_type
7494
+ | :currency
7495
+ | :pricing_unit_id
7496
+
7497
+ module Field
7498
+ extend Orb::Internal::Type::Enum
7499
+
7500
+ PRICE_ID: :price_id
7501
+ ITEM_ID: :item_id
7502
+ PRICE_TYPE: :price_type
7503
+ CURRENCY: :currency
7504
+ PRICING_UNIT_ID: :pricing_unit_id
7505
+
7506
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field]
7507
+ end
7508
+
7509
+ type operator = :includes | :excludes
7510
+
7511
+ module Operator
7512
+ extend Orb::Internal::Type::Enum
7513
+
7514
+ INCLUDES: :includes
7515
+ EXCLUDES: :excludes
7516
+
7517
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator]
7518
+ end
7519
+ end
7520
+
7521
+ type price_type =
7522
+ :usage
7523
+ | :fixed_in_advance
7524
+ | :fixed_in_arrears
7525
+ | :fixed
7526
+ | :in_arrears
7527
+
7528
+ module PriceType
7529
+ extend Orb::Internal::Type::Enum
7530
+
7531
+ USAGE: :usage
7532
+ FIXED_IN_ADVANCE: :fixed_in_advance
7533
+ FIXED_IN_ARREARS: :fixed_in_arrears
7534
+ FIXED: :fixed
7535
+ IN_ARREARS: :in_arrears
7536
+
7537
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type]
7538
+ end
6651
7539
  end
6652
7540
 
6653
7541
  type minimum =
@@ -6655,8 +7543,13 @@ module Orb
6655
7543
  adjustment_type: :minimum,
6656
7544
  item_id: String,
6657
7545
  minimum_amount: String,
7546
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
7547
+ applies_to_item_ids: ::Array[String]?,
6658
7548
  applies_to_price_ids: ::Array[String]?,
6659
- is_invoice_level: bool
7549
+ currency: String?,
7550
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
7551
+ is_invoice_level: bool,
7552
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
6660
7553
  }
6661
7554
 
6662
7555
  class Minimum < Orb::Internal::Type::BaseModel
@@ -6666,17 +7559,32 @@ module Orb
6666
7559
 
6667
7560
  attr_accessor minimum_amount: String
6668
7561
 
7562
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?
7563
+
7564
+ attr_accessor applies_to_item_ids: ::Array[String]?
7565
+
6669
7566
  attr_accessor applies_to_price_ids: ::Array[String]?
6670
7567
 
7568
+ attr_accessor currency: String?
7569
+
7570
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?
7571
+
6671
7572
  attr_reader is_invoice_level: bool?
6672
7573
 
6673
7574
  def is_invoice_level=: (bool) -> bool
6674
7575
 
7576
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
7577
+
6675
7578
  def initialize: (
6676
7579
  item_id: String,
6677
7580
  minimum_amount: String,
7581
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
7582
+ ?applies_to_item_ids: ::Array[String]?,
6678
7583
  ?applies_to_price_ids: ::Array[String]?,
7584
+ ?currency: String?,
7585
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
6679
7586
  ?is_invoice_level: bool,
7587
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?,
6680
7588
  ?adjustment_type: :minimum
6681
7589
  ) -> void
6682
7590
 
@@ -6684,17 +7592,113 @@ module Orb
6684
7592
  adjustment_type: :minimum,
6685
7593
  item_id: String,
6686
7594
  minimum_amount: String,
7595
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
7596
+ applies_to_item_ids: ::Array[String]?,
6687
7597
  applies_to_price_ids: ::Array[String]?,
6688
- is_invoice_level: bool
7598
+ currency: String?,
7599
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
7600
+ is_invoice_level: bool,
7601
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
6689
7602
  }
7603
+
7604
+ type applies_to_all = true
7605
+
7606
+ module AppliesToAll
7607
+ extend Orb::Internal::Type::Enum
7608
+
7609
+ TRUE: true
7610
+
7611
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all]
7612
+ end
7613
+
7614
+ type filter =
7615
+ {
7616
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
7617
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
7618
+ values: ::Array[String]
7619
+ }
7620
+
7621
+ class Filter < Orb::Internal::Type::BaseModel
7622
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field
7623
+
7624
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator
7625
+
7626
+ attr_accessor values: ::Array[String]
7627
+
7628
+ def initialize: (
7629
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
7630
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
7631
+ values: ::Array[String]
7632
+ ) -> void
7633
+
7634
+ def to_hash: -> {
7635
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
7636
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
7637
+ values: ::Array[String]
7638
+ }
7639
+
7640
+ type field =
7641
+ :price_id
7642
+ | :item_id
7643
+ | :price_type
7644
+ | :currency
7645
+ | :pricing_unit_id
7646
+
7647
+ module Field
7648
+ extend Orb::Internal::Type::Enum
7649
+
7650
+ PRICE_ID: :price_id
7651
+ ITEM_ID: :item_id
7652
+ PRICE_TYPE: :price_type
7653
+ CURRENCY: :currency
7654
+ PRICING_UNIT_ID: :pricing_unit_id
7655
+
7656
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field]
7657
+ end
7658
+
7659
+ type operator = :includes | :excludes
7660
+
7661
+ module Operator
7662
+ extend Orb::Internal::Type::Enum
7663
+
7664
+ INCLUDES: :includes
7665
+ EXCLUDES: :excludes
7666
+
7667
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator]
7668
+ end
7669
+ end
7670
+
7671
+ type price_type =
7672
+ :usage
7673
+ | :fixed_in_advance
7674
+ | :fixed_in_arrears
7675
+ | :fixed
7676
+ | :in_arrears
7677
+
7678
+ module PriceType
7679
+ extend Orb::Internal::Type::Enum
7680
+
7681
+ USAGE: :usage
7682
+ FIXED_IN_ADVANCE: :fixed_in_advance
7683
+ FIXED_IN_ARREARS: :fixed_in_arrears
7684
+ FIXED: :fixed
7685
+ IN_ARREARS: :in_arrears
7686
+
7687
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type]
7688
+ end
6690
7689
  end
6691
7690
 
6692
7691
  type maximum =
6693
7692
  {
6694
7693
  adjustment_type: :maximum,
6695
7694
  maximum_amount: String,
7695
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
7696
+ applies_to_item_ids: ::Array[String]?,
6696
7697
  applies_to_price_ids: ::Array[String]?,
6697
- is_invoice_level: bool
7698
+ currency: String?,
7699
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
7700
+ is_invoice_level: bool,
7701
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
6698
7702
  }
6699
7703
 
6700
7704
  class Maximum < Orb::Internal::Type::BaseModel
@@ -6702,25 +7706,131 @@ module Orb
6702
7706
 
6703
7707
  attr_accessor maximum_amount: String
6704
7708
 
7709
+ attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?
7710
+
7711
+ attr_accessor applies_to_item_ids: ::Array[String]?
7712
+
6705
7713
  attr_accessor applies_to_price_ids: ::Array[String]?
6706
7714
 
7715
+ attr_accessor currency: String?
7716
+
7717
+ attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?
7718
+
6707
7719
  attr_reader is_invoice_level: bool?
6708
7720
 
6709
7721
  def is_invoice_level=: (bool) -> bool
6710
7722
 
7723
+ attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
7724
+
6711
7725
  def initialize: (
6712
7726
  maximum_amount: String,
7727
+ ?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
7728
+ ?applies_to_item_ids: ::Array[String]?,
6713
7729
  ?applies_to_price_ids: ::Array[String]?,
7730
+ ?currency: String?,
7731
+ ?filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
6714
7732
  ?is_invoice_level: bool,
7733
+ ?price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?,
6715
7734
  ?adjustment_type: :maximum
6716
7735
  ) -> void
6717
7736
 
6718
7737
  def to_hash: -> {
6719
7738
  adjustment_type: :maximum,
6720
7739
  maximum_amount: String,
7740
+ applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
7741
+ applies_to_item_ids: ::Array[String]?,
6721
7742
  applies_to_price_ids: ::Array[String]?,
6722
- is_invoice_level: bool
7743
+ currency: String?,
7744
+ filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
7745
+ is_invoice_level: bool,
7746
+ price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
6723
7747
  }
7748
+
7749
+ type applies_to_all = true
7750
+
7751
+ module AppliesToAll
7752
+ extend Orb::Internal::Type::Enum
7753
+
7754
+ TRUE: true
7755
+
7756
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all]
7757
+ end
7758
+
7759
+ type filter =
7760
+ {
7761
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
7762
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
7763
+ values: ::Array[String]
7764
+ }
7765
+
7766
+ class Filter < Orb::Internal::Type::BaseModel
7767
+ attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field
7768
+
7769
+ attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator
7770
+
7771
+ attr_accessor values: ::Array[String]
7772
+
7773
+ def initialize: (
7774
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
7775
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
7776
+ values: ::Array[String]
7777
+ ) -> void
7778
+
7779
+ def to_hash: -> {
7780
+ field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
7781
+ operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
7782
+ values: ::Array[String]
7783
+ }
7784
+
7785
+ type field =
7786
+ :price_id
7787
+ | :item_id
7788
+ | :price_type
7789
+ | :currency
7790
+ | :pricing_unit_id
7791
+
7792
+ module Field
7793
+ extend Orb::Internal::Type::Enum
7794
+
7795
+ PRICE_ID: :price_id
7796
+ ITEM_ID: :item_id
7797
+ PRICE_TYPE: :price_type
7798
+ CURRENCY: :currency
7799
+ PRICING_UNIT_ID: :pricing_unit_id
7800
+
7801
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field]
7802
+ end
7803
+
7804
+ type operator = :includes | :excludes
7805
+
7806
+ module Operator
7807
+ extend Orb::Internal::Type::Enum
7808
+
7809
+ INCLUDES: :includes
7810
+ EXCLUDES: :excludes
7811
+
7812
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator]
7813
+ end
7814
+ end
7815
+
7816
+ type price_type =
7817
+ :usage
7818
+ | :fixed_in_advance
7819
+ | :fixed_in_arrears
7820
+ | :fixed
7821
+ | :in_arrears
7822
+
7823
+ module PriceType
7824
+ extend Orb::Internal::Type::Enum
7825
+
7826
+ USAGE: :usage
7827
+ FIXED_IN_ADVANCE: :fixed_in_advance
7828
+ FIXED_IN_ARREARS: :fixed_in_arrears
7829
+ FIXED: :fixed
7830
+ IN_ARREARS: :in_arrears
7831
+
7832
+ def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type]
7833
+ end
6724
7834
  end
6725
7835
 
6726
7836
  def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment]
OSZAR »