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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/union.rb +3 -8
- data/lib/orb/internal/util.rb +8 -9
- data/lib/orb/models/amount_discount.rb +65 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +1437 -15
- data/lib/orb/models/beta_create_plan_version_params.rb +1435 -15
- data/lib/orb/models/percentage_discount.rb +65 -1
- data/lib/orb/models/subscription_create_params.rb +1435 -15
- data/lib/orb/models/subscription_price_intervals_params.rb +715 -5
- data/lib/orb/models/subscription_redeem_coupon_params.rb +17 -9
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1435 -15
- data/lib/orb/models/trial_discount.rb +65 -1
- data/lib/orb/models/usage_discount.rb +65 -1
- data/lib/orb/resources/subscriptions.rb +5 -3
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/internal/util.rbi +2 -0
- data/rbi/orb/models/amount_discount.rbi +117 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +6145 -3045
- data/rbi/orb/models/beta_create_plan_version_params.rbi +6096 -2996
- data/rbi/orb/models/percentage_discount.rbi +131 -0
- data/rbi/orb/models/subscription_create_params.rbi +6037 -2937
- data/rbi/orb/models/subscription_price_intervals_params.rbi +1633 -83
- data/rbi/orb/models/subscription_redeem_coupon_params.rbi +16 -8
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +6948 -3848
- data/rbi/orb/models/trial_discount.rbi +109 -0
- data/rbi/orb/models/usage_discount.rbi +109 -0
- data/rbi/orb/resources/subscriptions.rbi +6 -3
- data/sig/orb/models/amount_discount.rbs +58 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1130 -20
- data/sig/orb/models/beta_create_plan_version_params.rbs +1130 -20
- data/sig/orb/models/percentage_discount.rbs +58 -0
- data/sig/orb/models/subscription_create_params.rbs +1130 -20
- data/sig/orb/models/subscription_price_intervals_params.rbs +565 -10
- data/sig/orb/models/subscription_redeem_coupon_params.rbs +11 -6
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1130 -20
- data/sig/orb/models/trial_discount.rbs +58 -0
- data/sig/orb/models/usage_discount.rbs +58 -0
- data/sig/orb/resources/subscriptions.rbs +2 -1
- metadata +2 -2
@@ -205,8 +205,13 @@ module Orb
|
|
205
205
|
{
|
206
206
|
adjustment_type: :percentage_discount,
|
207
207
|
percentage_discount: Float,
|
208
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
209
|
+
applies_to_item_ids: ::Array[String]?,
|
208
210
|
applies_to_price_ids: ::Array[String]?,
|
209
|
-
|
211
|
+
currency: String?,
|
212
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
213
|
+
is_invoice_level: bool,
|
214
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
|
210
215
|
}
|
211
216
|
|
212
217
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
@@ -214,33 +219,144 @@ module Orb
|
|
214
219
|
|
215
220
|
attr_accessor percentage_discount: Float
|
216
221
|
|
222
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?
|
223
|
+
|
224
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
225
|
+
|
217
226
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
218
227
|
|
228
|
+
attr_accessor currency: String?
|
229
|
+
|
230
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?
|
231
|
+
|
219
232
|
attr_reader is_invoice_level: bool?
|
220
233
|
|
221
234
|
def is_invoice_level=: (bool) -> bool
|
222
235
|
|
236
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
|
237
|
+
|
223
238
|
def initialize: (
|
224
239
|
percentage_discount: Float,
|
240
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
241
|
+
?applies_to_item_ids: ::Array[String]?,
|
225
242
|
?applies_to_price_ids: ::Array[String]?,
|
243
|
+
?currency: String?,
|
244
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
226
245
|
?is_invoice_level: bool,
|
246
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?,
|
227
247
|
?adjustment_type: :percentage_discount
|
228
248
|
) -> void
|
229
249
|
|
230
250
|
def to_hash: -> {
|
231
251
|
adjustment_type: :percentage_discount,
|
232
252
|
percentage_discount: Float,
|
253
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
254
|
+
applies_to_item_ids: ::Array[String]?,
|
233
255
|
applies_to_price_ids: ::Array[String]?,
|
234
|
-
|
256
|
+
currency: String?,
|
257
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
258
|
+
is_invoice_level: bool,
|
259
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
|
235
260
|
}
|
261
|
+
|
262
|
+
type applies_to_all = true
|
263
|
+
|
264
|
+
module AppliesToAll
|
265
|
+
extend Orb::Internal::Type::Enum
|
266
|
+
|
267
|
+
TRUE: true
|
268
|
+
|
269
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all]
|
270
|
+
end
|
271
|
+
|
272
|
+
type filter =
|
273
|
+
{
|
274
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
275
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
276
|
+
values: ::Array[String]
|
277
|
+
}
|
278
|
+
|
279
|
+
class Filter < Orb::Internal::Type::BaseModel
|
280
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field
|
281
|
+
|
282
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator
|
283
|
+
|
284
|
+
attr_accessor values: ::Array[String]
|
285
|
+
|
286
|
+
def initialize: (
|
287
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
288
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
289
|
+
values: ::Array[String]
|
290
|
+
) -> void
|
291
|
+
|
292
|
+
def to_hash: -> {
|
293
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
294
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
295
|
+
values: ::Array[String]
|
296
|
+
}
|
297
|
+
|
298
|
+
type field =
|
299
|
+
:price_id
|
300
|
+
| :item_id
|
301
|
+
| :price_type
|
302
|
+
| :currency
|
303
|
+
| :pricing_unit_id
|
304
|
+
|
305
|
+
module Field
|
306
|
+
extend Orb::Internal::Type::Enum
|
307
|
+
|
308
|
+
PRICE_ID: :price_id
|
309
|
+
ITEM_ID: :item_id
|
310
|
+
PRICE_TYPE: :price_type
|
311
|
+
CURRENCY: :currency
|
312
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
313
|
+
|
314
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field]
|
315
|
+
end
|
316
|
+
|
317
|
+
type operator = :includes | :excludes
|
318
|
+
|
319
|
+
module Operator
|
320
|
+
extend Orb::Internal::Type::Enum
|
321
|
+
|
322
|
+
INCLUDES: :includes
|
323
|
+
EXCLUDES: :excludes
|
324
|
+
|
325
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator]
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
type price_type =
|
330
|
+
:usage
|
331
|
+
| :fixed_in_advance
|
332
|
+
| :fixed_in_arrears
|
333
|
+
| :fixed
|
334
|
+
| :in_arrears
|
335
|
+
|
336
|
+
module PriceType
|
337
|
+
extend Orb::Internal::Type::Enum
|
338
|
+
|
339
|
+
USAGE: :usage
|
340
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
341
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
342
|
+
FIXED: :fixed
|
343
|
+
IN_ARREARS: :in_arrears
|
344
|
+
|
345
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::price_type]
|
346
|
+
end
|
236
347
|
end
|
237
348
|
|
238
349
|
type usage_discount =
|
239
350
|
{
|
240
351
|
adjustment_type: :usage_discount,
|
241
352
|
usage_discount: Float,
|
353
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
354
|
+
applies_to_item_ids: ::Array[String]?,
|
242
355
|
applies_to_price_ids: ::Array[String]?,
|
243
|
-
|
356
|
+
currency: String?,
|
357
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
|
358
|
+
is_invoice_level: bool,
|
359
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
|
244
360
|
}
|
245
361
|
|
246
362
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
@@ -248,33 +364,144 @@ module Orb
|
|
248
364
|
|
249
365
|
attr_accessor usage_discount: Float
|
250
366
|
|
367
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?
|
368
|
+
|
369
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
370
|
+
|
251
371
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
252
372
|
|
373
|
+
attr_accessor currency: String?
|
374
|
+
|
375
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?
|
376
|
+
|
253
377
|
attr_reader is_invoice_level: bool?
|
254
378
|
|
255
379
|
def is_invoice_level=: (bool) -> bool
|
256
380
|
|
381
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
|
382
|
+
|
257
383
|
def initialize: (
|
258
384
|
usage_discount: Float,
|
385
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
386
|
+
?applies_to_item_ids: ::Array[String]?,
|
259
387
|
?applies_to_price_ids: ::Array[String]?,
|
388
|
+
?currency: String?,
|
389
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
|
260
390
|
?is_invoice_level: bool,
|
391
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::price_type?,
|
261
392
|
?adjustment_type: :usage_discount
|
262
393
|
) -> void
|
263
394
|
|
264
395
|
def to_hash: -> {
|
265
396
|
adjustment_type: :usage_discount,
|
266
397
|
usage_discount: Float,
|
398
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
399
|
+
applies_to_item_ids: ::Array[String]?,
|
267
400
|
applies_to_price_ids: ::Array[String]?,
|
268
|
-
|
401
|
+
currency: String?,
|
402
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
|
403
|
+
is_invoice_level: bool,
|
404
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
|
269
405
|
}
|
406
|
+
|
407
|
+
type applies_to_all = true
|
408
|
+
|
409
|
+
module AppliesToAll
|
410
|
+
extend Orb::Internal::Type::Enum
|
411
|
+
|
412
|
+
TRUE: true
|
413
|
+
|
414
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all]
|
415
|
+
end
|
416
|
+
|
417
|
+
type filter =
|
418
|
+
{
|
419
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
|
420
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
421
|
+
values: ::Array[String]
|
422
|
+
}
|
423
|
+
|
424
|
+
class Filter < Orb::Internal::Type::BaseModel
|
425
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field
|
426
|
+
|
427
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator
|
428
|
+
|
429
|
+
attr_accessor values: ::Array[String]
|
430
|
+
|
431
|
+
def initialize: (
|
432
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
|
433
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
434
|
+
values: ::Array[String]
|
435
|
+
) -> void
|
436
|
+
|
437
|
+
def to_hash: -> {
|
438
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
|
439
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
440
|
+
values: ::Array[String]
|
441
|
+
}
|
442
|
+
|
443
|
+
type field =
|
444
|
+
:price_id
|
445
|
+
| :item_id
|
446
|
+
| :price_type
|
447
|
+
| :currency
|
448
|
+
| :pricing_unit_id
|
449
|
+
|
450
|
+
module Field
|
451
|
+
extend Orb::Internal::Type::Enum
|
452
|
+
|
453
|
+
PRICE_ID: :price_id
|
454
|
+
ITEM_ID: :item_id
|
455
|
+
PRICE_TYPE: :price_type
|
456
|
+
CURRENCY: :currency
|
457
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
458
|
+
|
459
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field]
|
460
|
+
end
|
461
|
+
|
462
|
+
type operator = :includes | :excludes
|
463
|
+
|
464
|
+
module Operator
|
465
|
+
extend Orb::Internal::Type::Enum
|
466
|
+
|
467
|
+
INCLUDES: :includes
|
468
|
+
EXCLUDES: :excludes
|
469
|
+
|
470
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator]
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
type price_type =
|
475
|
+
:usage
|
476
|
+
| :fixed_in_advance
|
477
|
+
| :fixed_in_arrears
|
478
|
+
| :fixed
|
479
|
+
| :in_arrears
|
480
|
+
|
481
|
+
module PriceType
|
482
|
+
extend Orb::Internal::Type::Enum
|
483
|
+
|
484
|
+
USAGE: :usage
|
485
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
486
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
487
|
+
FIXED: :fixed
|
488
|
+
IN_ARREARS: :in_arrears
|
489
|
+
|
490
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::price_type]
|
491
|
+
end
|
270
492
|
end
|
271
493
|
|
272
494
|
type amount_discount =
|
273
495
|
{
|
274
496
|
adjustment_type: :amount_discount,
|
275
497
|
amount_discount: String,
|
498
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
499
|
+
applies_to_item_ids: ::Array[String]?,
|
276
500
|
applies_to_price_ids: ::Array[String]?,
|
277
|
-
|
501
|
+
currency: String?,
|
502
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
|
503
|
+
is_invoice_level: bool,
|
504
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
|
278
505
|
}
|
279
506
|
|
280
507
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
@@ -282,25 +509,131 @@ module Orb
|
|
282
509
|
|
283
510
|
attr_accessor amount_discount: String
|
284
511
|
|
512
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?
|
513
|
+
|
514
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
515
|
+
|
285
516
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
286
517
|
|
518
|
+
attr_accessor currency: String?
|
519
|
+
|
520
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?
|
521
|
+
|
287
522
|
attr_reader is_invoice_level: bool?
|
288
523
|
|
289
524
|
def is_invoice_level=: (bool) -> bool
|
290
525
|
|
526
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
|
527
|
+
|
291
528
|
def initialize: (
|
292
529
|
amount_discount: String,
|
530
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
531
|
+
?applies_to_item_ids: ::Array[String]?,
|
293
532
|
?applies_to_price_ids: ::Array[String]?,
|
533
|
+
?currency: String?,
|
534
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
|
294
535
|
?is_invoice_level: bool,
|
536
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::price_type?,
|
295
537
|
?adjustment_type: :amount_discount
|
296
538
|
) -> void
|
297
539
|
|
298
540
|
def to_hash: -> {
|
299
541
|
adjustment_type: :amount_discount,
|
300
542
|
amount_discount: String,
|
543
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
544
|
+
applies_to_item_ids: ::Array[String]?,
|
301
545
|
applies_to_price_ids: ::Array[String]?,
|
302
|
-
|
546
|
+
currency: String?,
|
547
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
|
548
|
+
is_invoice_level: bool,
|
549
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
|
303
550
|
}
|
551
|
+
|
552
|
+
type applies_to_all = true
|
553
|
+
|
554
|
+
module AppliesToAll
|
555
|
+
extend Orb::Internal::Type::Enum
|
556
|
+
|
557
|
+
TRUE: true
|
558
|
+
|
559
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all]
|
560
|
+
end
|
561
|
+
|
562
|
+
type filter =
|
563
|
+
{
|
564
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
|
565
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
566
|
+
values: ::Array[String]
|
567
|
+
}
|
568
|
+
|
569
|
+
class Filter < Orb::Internal::Type::BaseModel
|
570
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field
|
571
|
+
|
572
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator
|
573
|
+
|
574
|
+
attr_accessor values: ::Array[String]
|
575
|
+
|
576
|
+
def initialize: (
|
577
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
|
578
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
579
|
+
values: ::Array[String]
|
580
|
+
) -> void
|
581
|
+
|
582
|
+
def to_hash: -> {
|
583
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
|
584
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
585
|
+
values: ::Array[String]
|
586
|
+
}
|
587
|
+
|
588
|
+
type field =
|
589
|
+
:price_id
|
590
|
+
| :item_id
|
591
|
+
| :price_type
|
592
|
+
| :currency
|
593
|
+
| :pricing_unit_id
|
594
|
+
|
595
|
+
module Field
|
596
|
+
extend Orb::Internal::Type::Enum
|
597
|
+
|
598
|
+
PRICE_ID: :price_id
|
599
|
+
ITEM_ID: :item_id
|
600
|
+
PRICE_TYPE: :price_type
|
601
|
+
CURRENCY: :currency
|
602
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
603
|
+
|
604
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field]
|
605
|
+
end
|
606
|
+
|
607
|
+
type operator = :includes | :excludes
|
608
|
+
|
609
|
+
module Operator
|
610
|
+
extend Orb::Internal::Type::Enum
|
611
|
+
|
612
|
+
INCLUDES: :includes
|
613
|
+
EXCLUDES: :excludes
|
614
|
+
|
615
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator]
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
619
|
+
type price_type =
|
620
|
+
:usage
|
621
|
+
| :fixed_in_advance
|
622
|
+
| :fixed_in_arrears
|
623
|
+
| :fixed
|
624
|
+
| :in_arrears
|
625
|
+
|
626
|
+
module PriceType
|
627
|
+
extend Orb::Internal::Type::Enum
|
628
|
+
|
629
|
+
USAGE: :usage
|
630
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
631
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
632
|
+
FIXED: :fixed
|
633
|
+
IN_ARREARS: :in_arrears
|
634
|
+
|
635
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::price_type]
|
636
|
+
end
|
304
637
|
end
|
305
638
|
|
306
639
|
type minimum =
|
@@ -308,8 +641,13 @@ module Orb
|
|
308
641
|
adjustment_type: :minimum,
|
309
642
|
item_id: String,
|
310
643
|
minimum_amount: String,
|
644
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
|
645
|
+
applies_to_item_ids: ::Array[String]?,
|
311
646
|
applies_to_price_ids: ::Array[String]?,
|
312
|
-
|
647
|
+
currency: String?,
|
648
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter]?,
|
649
|
+
is_invoice_level: bool,
|
650
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::price_type?
|
313
651
|
}
|
314
652
|
|
315
653
|
class Minimum < Orb::Internal::Type::BaseModel
|
@@ -319,17 +657,32 @@ module Orb
|
|
319
657
|
|
320
658
|
attr_accessor minimum_amount: String
|
321
659
|
|
660
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::applies_to_all?
|
661
|
+
|
662
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
663
|
+
|
322
664
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
323
665
|
|
666
|
+
attr_accessor currency: String?
|
667
|
+
|
668
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter]?
|
669
|
+
|
324
670
|
attr_reader is_invoice_level: bool?
|
325
671
|
|
326
672
|
def is_invoice_level=: (bool) -> bool
|
327
673
|
|
674
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::price_type?
|
675
|
+
|
328
676
|
def initialize: (
|
329
677
|
item_id: String,
|
330
678
|
minimum_amount: String,
|
679
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
|
680
|
+
?applies_to_item_ids: ::Array[String]?,
|
331
681
|
?applies_to_price_ids: ::Array[String]?,
|
682
|
+
?currency: String?,
|
683
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter]?,
|
332
684
|
?is_invoice_level: bool,
|
685
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::price_type?,
|
333
686
|
?adjustment_type: :minimum
|
334
687
|
) -> void
|
335
688
|
|
@@ -337,17 +690,113 @@ module Orb
|
|
337
690
|
adjustment_type: :minimum,
|
338
691
|
item_id: String,
|
339
692
|
minimum_amount: String,
|
693
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
|
694
|
+
applies_to_item_ids: ::Array[String]?,
|
340
695
|
applies_to_price_ids: ::Array[String]?,
|
341
|
-
|
696
|
+
currency: String?,
|
697
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter]?,
|
698
|
+
is_invoice_level: bool,
|
699
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::price_type?
|
342
700
|
}
|
701
|
+
|
702
|
+
type applies_to_all = true
|
703
|
+
|
704
|
+
module AppliesToAll
|
705
|
+
extend Orb::Internal::Type::Enum
|
706
|
+
|
707
|
+
TRUE: true
|
708
|
+
|
709
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::applies_to_all]
|
710
|
+
end
|
711
|
+
|
712
|
+
type filter =
|
713
|
+
{
|
714
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::field,
|
715
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
|
716
|
+
values: ::Array[String]
|
717
|
+
}
|
718
|
+
|
719
|
+
class Filter < Orb::Internal::Type::BaseModel
|
720
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::field
|
721
|
+
|
722
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::operator
|
723
|
+
|
724
|
+
attr_accessor values: ::Array[String]
|
725
|
+
|
726
|
+
def initialize: (
|
727
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::field,
|
728
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
|
729
|
+
values: ::Array[String]
|
730
|
+
) -> void
|
731
|
+
|
732
|
+
def to_hash: -> {
|
733
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::field,
|
734
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
|
735
|
+
values: ::Array[String]
|
736
|
+
}
|
737
|
+
|
738
|
+
type field =
|
739
|
+
:price_id
|
740
|
+
| :item_id
|
741
|
+
| :price_type
|
742
|
+
| :currency
|
743
|
+
| :pricing_unit_id
|
744
|
+
|
745
|
+
module Field
|
746
|
+
extend Orb::Internal::Type::Enum
|
747
|
+
|
748
|
+
PRICE_ID: :price_id
|
749
|
+
ITEM_ID: :item_id
|
750
|
+
PRICE_TYPE: :price_type
|
751
|
+
CURRENCY: :currency
|
752
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
753
|
+
|
754
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::field]
|
755
|
+
end
|
756
|
+
|
757
|
+
type operator = :includes | :excludes
|
758
|
+
|
759
|
+
module Operator
|
760
|
+
extend Orb::Internal::Type::Enum
|
761
|
+
|
762
|
+
INCLUDES: :includes
|
763
|
+
EXCLUDES: :excludes
|
764
|
+
|
765
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::Filter::operator]
|
766
|
+
end
|
767
|
+
end
|
768
|
+
|
769
|
+
type price_type =
|
770
|
+
:usage
|
771
|
+
| :fixed_in_advance
|
772
|
+
| :fixed_in_arrears
|
773
|
+
| :fixed
|
774
|
+
| :in_arrears
|
775
|
+
|
776
|
+
module PriceType
|
777
|
+
extend Orb::Internal::Type::Enum
|
778
|
+
|
779
|
+
USAGE: :usage
|
780
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
781
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
782
|
+
FIXED: :fixed
|
783
|
+
IN_ARREARS: :in_arrears
|
784
|
+
|
785
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::price_type]
|
786
|
+
end
|
343
787
|
end
|
344
788
|
|
345
789
|
type maximum =
|
346
790
|
{
|
347
791
|
adjustment_type: :maximum,
|
348
792
|
maximum_amount: String,
|
793
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
|
794
|
+
applies_to_item_ids: ::Array[String]?,
|
349
795
|
applies_to_price_ids: ::Array[String]?,
|
350
|
-
|
796
|
+
currency: String?,
|
797
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter]?,
|
798
|
+
is_invoice_level: bool,
|
799
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::price_type?
|
351
800
|
}
|
352
801
|
|
353
802
|
class Maximum < Orb::Internal::Type::BaseModel
|
@@ -355,25 +804,131 @@ module Orb
|
|
355
804
|
|
356
805
|
attr_accessor maximum_amount: String
|
357
806
|
|
807
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::applies_to_all?
|
808
|
+
|
809
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
810
|
+
|
358
811
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
359
812
|
|
813
|
+
attr_accessor currency: String?
|
814
|
+
|
815
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter]?
|
816
|
+
|
360
817
|
attr_reader is_invoice_level: bool?
|
361
818
|
|
362
819
|
def is_invoice_level=: (bool) -> bool
|
363
820
|
|
821
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::price_type?
|
822
|
+
|
364
823
|
def initialize: (
|
365
824
|
maximum_amount: String,
|
825
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
|
826
|
+
?applies_to_item_ids: ::Array[String]?,
|
366
827
|
?applies_to_price_ids: ::Array[String]?,
|
828
|
+
?currency: String?,
|
829
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter]?,
|
367
830
|
?is_invoice_level: bool,
|
831
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::price_type?,
|
368
832
|
?adjustment_type: :maximum
|
369
833
|
) -> void
|
370
834
|
|
371
835
|
def to_hash: -> {
|
372
836
|
adjustment_type: :maximum,
|
373
837
|
maximum_amount: String,
|
838
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
|
839
|
+
applies_to_item_ids: ::Array[String]?,
|
374
840
|
applies_to_price_ids: ::Array[String]?,
|
375
|
-
|
841
|
+
currency: String?,
|
842
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter]?,
|
843
|
+
is_invoice_level: bool,
|
844
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::price_type?
|
376
845
|
}
|
846
|
+
|
847
|
+
type applies_to_all = true
|
848
|
+
|
849
|
+
module AppliesToAll
|
850
|
+
extend Orb::Internal::Type::Enum
|
851
|
+
|
852
|
+
TRUE: true
|
853
|
+
|
854
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::applies_to_all]
|
855
|
+
end
|
856
|
+
|
857
|
+
type filter =
|
858
|
+
{
|
859
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::field,
|
860
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
|
861
|
+
values: ::Array[String]
|
862
|
+
}
|
863
|
+
|
864
|
+
class Filter < Orb::Internal::Type::BaseModel
|
865
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::field
|
866
|
+
|
867
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::operator
|
868
|
+
|
869
|
+
attr_accessor values: ::Array[String]
|
870
|
+
|
871
|
+
def initialize: (
|
872
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::field,
|
873
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
|
874
|
+
values: ::Array[String]
|
875
|
+
) -> void
|
876
|
+
|
877
|
+
def to_hash: -> {
|
878
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::field,
|
879
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
|
880
|
+
values: ::Array[String]
|
881
|
+
}
|
882
|
+
|
883
|
+
type field =
|
884
|
+
:price_id
|
885
|
+
| :item_id
|
886
|
+
| :price_type
|
887
|
+
| :currency
|
888
|
+
| :pricing_unit_id
|
889
|
+
|
890
|
+
module Field
|
891
|
+
extend Orb::Internal::Type::Enum
|
892
|
+
|
893
|
+
PRICE_ID: :price_id
|
894
|
+
ITEM_ID: :item_id
|
895
|
+
PRICE_TYPE: :price_type
|
896
|
+
CURRENCY: :currency
|
897
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
898
|
+
|
899
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::field]
|
900
|
+
end
|
901
|
+
|
902
|
+
type operator = :includes | :excludes
|
903
|
+
|
904
|
+
module Operator
|
905
|
+
extend Orb::Internal::Type::Enum
|
906
|
+
|
907
|
+
INCLUDES: :includes
|
908
|
+
EXCLUDES: :excludes
|
909
|
+
|
910
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::Filter::operator]
|
911
|
+
end
|
912
|
+
end
|
913
|
+
|
914
|
+
type price_type =
|
915
|
+
:usage
|
916
|
+
| :fixed_in_advance
|
917
|
+
| :fixed_in_arrears
|
918
|
+
| :fixed
|
919
|
+
| :in_arrears
|
920
|
+
|
921
|
+
module PriceType
|
922
|
+
extend Orb::Internal::Type::Enum
|
923
|
+
|
924
|
+
USAGE: :usage
|
925
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
926
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
927
|
+
FIXED: :fixed
|
928
|
+
IN_ARREARS: :in_arrears
|
929
|
+
|
930
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::price_type]
|
931
|
+
end
|
377
932
|
end
|
378
933
|
|
379
934
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment]
|
@@ -6908,8 +7463,13 @@ module Orb
|
|
6908
7463
|
{
|
6909
7464
|
adjustment_type: :percentage_discount,
|
6910
7465
|
percentage_discount: Float,
|
7466
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
7467
|
+
applies_to_item_ids: ::Array[String]?,
|
6911
7468
|
applies_to_price_ids: ::Array[String]?,
|
6912
|
-
|
7469
|
+
currency: String?,
|
7470
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
7471
|
+
is_invoice_level: bool,
|
7472
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
|
6913
7473
|
}
|
6914
7474
|
|
6915
7475
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
@@ -6917,33 +7477,144 @@ module Orb
|
|
6917
7477
|
|
6918
7478
|
attr_accessor percentage_discount: Float
|
6919
7479
|
|
7480
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?
|
7481
|
+
|
7482
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7483
|
+
|
6920
7484
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6921
7485
|
|
7486
|
+
attr_accessor currency: String?
|
7487
|
+
|
7488
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?
|
7489
|
+
|
6922
7490
|
attr_reader is_invoice_level: bool?
|
6923
7491
|
|
6924
7492
|
def is_invoice_level=: (bool) -> bool
|
6925
7493
|
|
7494
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
|
7495
|
+
|
6926
7496
|
def initialize: (
|
6927
7497
|
percentage_discount: Float,
|
7498
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
7499
|
+
?applies_to_item_ids: ::Array[String]?,
|
6928
7500
|
?applies_to_price_ids: ::Array[String]?,
|
7501
|
+
?currency: String?,
|
7502
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
6929
7503
|
?is_invoice_level: bool,
|
7504
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?,
|
6930
7505
|
?adjustment_type: :percentage_discount
|
6931
7506
|
) -> void
|
6932
7507
|
|
6933
7508
|
def to_hash: -> {
|
6934
7509
|
adjustment_type: :percentage_discount,
|
6935
7510
|
percentage_discount: Float,
|
7511
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
7512
|
+
applies_to_item_ids: ::Array[String]?,
|
6936
7513
|
applies_to_price_ids: ::Array[String]?,
|
6937
|
-
|
7514
|
+
currency: String?,
|
7515
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
7516
|
+
is_invoice_level: bool,
|
7517
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
|
6938
7518
|
}
|
7519
|
+
|
7520
|
+
type applies_to_all = true
|
7521
|
+
|
7522
|
+
module AppliesToAll
|
7523
|
+
extend Orb::Internal::Type::Enum
|
7524
|
+
|
7525
|
+
TRUE: true
|
7526
|
+
|
7527
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all]
|
7528
|
+
end
|
7529
|
+
|
7530
|
+
type filter =
|
7531
|
+
{
|
7532
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
7533
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
7534
|
+
values: ::Array[String]
|
7535
|
+
}
|
7536
|
+
|
7537
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7538
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field
|
7539
|
+
|
7540
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator
|
7541
|
+
|
7542
|
+
attr_accessor values: ::Array[String]
|
7543
|
+
|
7544
|
+
def initialize: (
|
7545
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
7546
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
7547
|
+
values: ::Array[String]
|
7548
|
+
) -> void
|
7549
|
+
|
7550
|
+
def to_hash: -> {
|
7551
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
7552
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
7553
|
+
values: ::Array[String]
|
7554
|
+
}
|
7555
|
+
|
7556
|
+
type field =
|
7557
|
+
:price_id
|
7558
|
+
| :item_id
|
7559
|
+
| :price_type
|
7560
|
+
| :currency
|
7561
|
+
| :pricing_unit_id
|
7562
|
+
|
7563
|
+
module Field
|
7564
|
+
extend Orb::Internal::Type::Enum
|
7565
|
+
|
7566
|
+
PRICE_ID: :price_id
|
7567
|
+
ITEM_ID: :item_id
|
7568
|
+
PRICE_TYPE: :price_type
|
7569
|
+
CURRENCY: :currency
|
7570
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7571
|
+
|
7572
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field]
|
7573
|
+
end
|
7574
|
+
|
7575
|
+
type operator = :includes | :excludes
|
7576
|
+
|
7577
|
+
module Operator
|
7578
|
+
extend Orb::Internal::Type::Enum
|
7579
|
+
|
7580
|
+
INCLUDES: :includes
|
7581
|
+
EXCLUDES: :excludes
|
7582
|
+
|
7583
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator]
|
7584
|
+
end
|
7585
|
+
end
|
7586
|
+
|
7587
|
+
type price_type =
|
7588
|
+
:usage
|
7589
|
+
| :fixed_in_advance
|
7590
|
+
| :fixed_in_arrears
|
7591
|
+
| :fixed
|
7592
|
+
| :in_arrears
|
7593
|
+
|
7594
|
+
module PriceType
|
7595
|
+
extend Orb::Internal::Type::Enum
|
7596
|
+
|
7597
|
+
USAGE: :usage
|
7598
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7599
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7600
|
+
FIXED: :fixed
|
7601
|
+
IN_ARREARS: :in_arrears
|
7602
|
+
|
7603
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type]
|
7604
|
+
end
|
6939
7605
|
end
|
6940
7606
|
|
6941
7607
|
type usage_discount =
|
6942
7608
|
{
|
6943
7609
|
adjustment_type: :usage_discount,
|
6944
7610
|
usage_discount: Float,
|
7611
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
7612
|
+
applies_to_item_ids: ::Array[String]?,
|
6945
7613
|
applies_to_price_ids: ::Array[String]?,
|
6946
|
-
|
7614
|
+
currency: String?,
|
7615
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
|
7616
|
+
is_invoice_level: bool,
|
7617
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
|
6947
7618
|
}
|
6948
7619
|
|
6949
7620
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
@@ -6951,33 +7622,144 @@ module Orb
|
|
6951
7622
|
|
6952
7623
|
attr_accessor usage_discount: Float
|
6953
7624
|
|
7625
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?
|
7626
|
+
|
7627
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7628
|
+
|
6954
7629
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6955
7630
|
|
7631
|
+
attr_accessor currency: String?
|
7632
|
+
|
7633
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?
|
7634
|
+
|
6956
7635
|
attr_reader is_invoice_level: bool?
|
6957
7636
|
|
6958
7637
|
def is_invoice_level=: (bool) -> bool
|
6959
7638
|
|
7639
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
|
7640
|
+
|
6960
7641
|
def initialize: (
|
6961
7642
|
usage_discount: Float,
|
7643
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
7644
|
+
?applies_to_item_ids: ::Array[String]?,
|
6962
7645
|
?applies_to_price_ids: ::Array[String]?,
|
7646
|
+
?currency: String?,
|
7647
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
|
6963
7648
|
?is_invoice_level: bool,
|
7649
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?,
|
6964
7650
|
?adjustment_type: :usage_discount
|
6965
7651
|
) -> void
|
6966
7652
|
|
6967
7653
|
def to_hash: -> {
|
6968
7654
|
adjustment_type: :usage_discount,
|
6969
7655
|
usage_discount: Float,
|
7656
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
7657
|
+
applies_to_item_ids: ::Array[String]?,
|
6970
7658
|
applies_to_price_ids: ::Array[String]?,
|
6971
|
-
|
7659
|
+
currency: String?,
|
7660
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
|
7661
|
+
is_invoice_level: bool,
|
7662
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
|
6972
7663
|
}
|
7664
|
+
|
7665
|
+
type applies_to_all = true
|
7666
|
+
|
7667
|
+
module AppliesToAll
|
7668
|
+
extend Orb::Internal::Type::Enum
|
7669
|
+
|
7670
|
+
TRUE: true
|
7671
|
+
|
7672
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all]
|
7673
|
+
end
|
7674
|
+
|
7675
|
+
type filter =
|
7676
|
+
{
|
7677
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
|
7678
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
7679
|
+
values: ::Array[String]
|
7680
|
+
}
|
7681
|
+
|
7682
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7683
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field
|
7684
|
+
|
7685
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator
|
7686
|
+
|
7687
|
+
attr_accessor values: ::Array[String]
|
7688
|
+
|
7689
|
+
def initialize: (
|
7690
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
|
7691
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
7692
|
+
values: ::Array[String]
|
7693
|
+
) -> void
|
7694
|
+
|
7695
|
+
def to_hash: -> {
|
7696
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
|
7697
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
7698
|
+
values: ::Array[String]
|
7699
|
+
}
|
7700
|
+
|
7701
|
+
type field =
|
7702
|
+
:price_id
|
7703
|
+
| :item_id
|
7704
|
+
| :price_type
|
7705
|
+
| :currency
|
7706
|
+
| :pricing_unit_id
|
7707
|
+
|
7708
|
+
module Field
|
7709
|
+
extend Orb::Internal::Type::Enum
|
7710
|
+
|
7711
|
+
PRICE_ID: :price_id
|
7712
|
+
ITEM_ID: :item_id
|
7713
|
+
PRICE_TYPE: :price_type
|
7714
|
+
CURRENCY: :currency
|
7715
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7716
|
+
|
7717
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field]
|
7718
|
+
end
|
7719
|
+
|
7720
|
+
type operator = :includes | :excludes
|
7721
|
+
|
7722
|
+
module Operator
|
7723
|
+
extend Orb::Internal::Type::Enum
|
7724
|
+
|
7725
|
+
INCLUDES: :includes
|
7726
|
+
EXCLUDES: :excludes
|
7727
|
+
|
7728
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator]
|
7729
|
+
end
|
7730
|
+
end
|
7731
|
+
|
7732
|
+
type price_type =
|
7733
|
+
:usage
|
7734
|
+
| :fixed_in_advance
|
7735
|
+
| :fixed_in_arrears
|
7736
|
+
| :fixed
|
7737
|
+
| :in_arrears
|
7738
|
+
|
7739
|
+
module PriceType
|
7740
|
+
extend Orb::Internal::Type::Enum
|
7741
|
+
|
7742
|
+
USAGE: :usage
|
7743
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7744
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7745
|
+
FIXED: :fixed
|
7746
|
+
IN_ARREARS: :in_arrears
|
7747
|
+
|
7748
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type]
|
7749
|
+
end
|
6973
7750
|
end
|
6974
7751
|
|
6975
7752
|
type amount_discount =
|
6976
7753
|
{
|
6977
7754
|
adjustment_type: :amount_discount,
|
6978
7755
|
amount_discount: String,
|
7756
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
7757
|
+
applies_to_item_ids: ::Array[String]?,
|
6979
7758
|
applies_to_price_ids: ::Array[String]?,
|
6980
|
-
|
7759
|
+
currency: String?,
|
7760
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
|
7761
|
+
is_invoice_level: bool,
|
7762
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
|
6981
7763
|
}
|
6982
7764
|
|
6983
7765
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
@@ -6985,25 +7767,131 @@ module Orb
|
|
6985
7767
|
|
6986
7768
|
attr_accessor amount_discount: String
|
6987
7769
|
|
7770
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?
|
7771
|
+
|
7772
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7773
|
+
|
6988
7774
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6989
7775
|
|
7776
|
+
attr_accessor currency: String?
|
7777
|
+
|
7778
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?
|
7779
|
+
|
6990
7780
|
attr_reader is_invoice_level: bool?
|
6991
7781
|
|
6992
7782
|
def is_invoice_level=: (bool) -> bool
|
6993
7783
|
|
7784
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
|
7785
|
+
|
6994
7786
|
def initialize: (
|
6995
7787
|
amount_discount: String,
|
7788
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
7789
|
+
?applies_to_item_ids: ::Array[String]?,
|
6996
7790
|
?applies_to_price_ids: ::Array[String]?,
|
7791
|
+
?currency: String?,
|
7792
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
|
6997
7793
|
?is_invoice_level: bool,
|
7794
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?,
|
6998
7795
|
?adjustment_type: :amount_discount
|
6999
7796
|
) -> void
|
7000
7797
|
|
7001
7798
|
def to_hash: -> {
|
7002
7799
|
adjustment_type: :amount_discount,
|
7003
7800
|
amount_discount: String,
|
7801
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
7802
|
+
applies_to_item_ids: ::Array[String]?,
|
7004
7803
|
applies_to_price_ids: ::Array[String]?,
|
7005
|
-
|
7804
|
+
currency: String?,
|
7805
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
|
7806
|
+
is_invoice_level: bool,
|
7807
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
|
7006
7808
|
}
|
7809
|
+
|
7810
|
+
type applies_to_all = true
|
7811
|
+
|
7812
|
+
module AppliesToAll
|
7813
|
+
extend Orb::Internal::Type::Enum
|
7814
|
+
|
7815
|
+
TRUE: true
|
7816
|
+
|
7817
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all]
|
7818
|
+
end
|
7819
|
+
|
7820
|
+
type filter =
|
7821
|
+
{
|
7822
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
|
7823
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
7824
|
+
values: ::Array[String]
|
7825
|
+
}
|
7826
|
+
|
7827
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7828
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field
|
7829
|
+
|
7830
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator
|
7831
|
+
|
7832
|
+
attr_accessor values: ::Array[String]
|
7833
|
+
|
7834
|
+
def initialize: (
|
7835
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
|
7836
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
7837
|
+
values: ::Array[String]
|
7838
|
+
) -> void
|
7839
|
+
|
7840
|
+
def to_hash: -> {
|
7841
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
|
7842
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
7843
|
+
values: ::Array[String]
|
7844
|
+
}
|
7845
|
+
|
7846
|
+
type field =
|
7847
|
+
:price_id
|
7848
|
+
| :item_id
|
7849
|
+
| :price_type
|
7850
|
+
| :currency
|
7851
|
+
| :pricing_unit_id
|
7852
|
+
|
7853
|
+
module Field
|
7854
|
+
extend Orb::Internal::Type::Enum
|
7855
|
+
|
7856
|
+
PRICE_ID: :price_id
|
7857
|
+
ITEM_ID: :item_id
|
7858
|
+
PRICE_TYPE: :price_type
|
7859
|
+
CURRENCY: :currency
|
7860
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7861
|
+
|
7862
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field]
|
7863
|
+
end
|
7864
|
+
|
7865
|
+
type operator = :includes | :excludes
|
7866
|
+
|
7867
|
+
module Operator
|
7868
|
+
extend Orb::Internal::Type::Enum
|
7869
|
+
|
7870
|
+
INCLUDES: :includes
|
7871
|
+
EXCLUDES: :excludes
|
7872
|
+
|
7873
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator]
|
7874
|
+
end
|
7875
|
+
end
|
7876
|
+
|
7877
|
+
type price_type =
|
7878
|
+
:usage
|
7879
|
+
| :fixed_in_advance
|
7880
|
+
| :fixed_in_arrears
|
7881
|
+
| :fixed
|
7882
|
+
| :in_arrears
|
7883
|
+
|
7884
|
+
module PriceType
|
7885
|
+
extend Orb::Internal::Type::Enum
|
7886
|
+
|
7887
|
+
USAGE: :usage
|
7888
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7889
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7890
|
+
FIXED: :fixed
|
7891
|
+
IN_ARREARS: :in_arrears
|
7892
|
+
|
7893
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type]
|
7894
|
+
end
|
7007
7895
|
end
|
7008
7896
|
|
7009
7897
|
type minimum =
|
@@ -7011,8 +7899,13 @@ module Orb
|
|
7011
7899
|
adjustment_type: :minimum,
|
7012
7900
|
item_id: String,
|
7013
7901
|
minimum_amount: String,
|
7902
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
|
7903
|
+
applies_to_item_ids: ::Array[String]?,
|
7014
7904
|
applies_to_price_ids: ::Array[String]?,
|
7015
|
-
|
7905
|
+
currency: String?,
|
7906
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
|
7907
|
+
is_invoice_level: bool,
|
7908
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
|
7016
7909
|
}
|
7017
7910
|
|
7018
7911
|
class Minimum < Orb::Internal::Type::BaseModel
|
@@ -7022,17 +7915,32 @@ module Orb
|
|
7022
7915
|
|
7023
7916
|
attr_accessor minimum_amount: String
|
7024
7917
|
|
7918
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?
|
7919
|
+
|
7920
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7921
|
+
|
7025
7922
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
7026
7923
|
|
7924
|
+
attr_accessor currency: String?
|
7925
|
+
|
7926
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?
|
7927
|
+
|
7027
7928
|
attr_reader is_invoice_level: bool?
|
7028
7929
|
|
7029
7930
|
def is_invoice_level=: (bool) -> bool
|
7030
7931
|
|
7932
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
|
7933
|
+
|
7031
7934
|
def initialize: (
|
7032
7935
|
item_id: String,
|
7033
7936
|
minimum_amount: String,
|
7937
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
|
7938
|
+
?applies_to_item_ids: ::Array[String]?,
|
7034
7939
|
?applies_to_price_ids: ::Array[String]?,
|
7940
|
+
?currency: String?,
|
7941
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
|
7035
7942
|
?is_invoice_level: bool,
|
7943
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::price_type?,
|
7036
7944
|
?adjustment_type: :minimum
|
7037
7945
|
) -> void
|
7038
7946
|
|
@@ -7040,17 +7948,113 @@ module Orb
|
|
7040
7948
|
adjustment_type: :minimum,
|
7041
7949
|
item_id: String,
|
7042
7950
|
minimum_amount: String,
|
7951
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
|
7952
|
+
applies_to_item_ids: ::Array[String]?,
|
7043
7953
|
applies_to_price_ids: ::Array[String]?,
|
7044
|
-
|
7954
|
+
currency: String?,
|
7955
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
|
7956
|
+
is_invoice_level: bool,
|
7957
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
|
7045
7958
|
}
|
7959
|
+
|
7960
|
+
type applies_to_all = true
|
7961
|
+
|
7962
|
+
module AppliesToAll
|
7963
|
+
extend Orb::Internal::Type::Enum
|
7964
|
+
|
7965
|
+
TRUE: true
|
7966
|
+
|
7967
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all]
|
7968
|
+
end
|
7969
|
+
|
7970
|
+
type filter =
|
7971
|
+
{
|
7972
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
|
7973
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
|
7974
|
+
values: ::Array[String]
|
7975
|
+
}
|
7976
|
+
|
7977
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7978
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field
|
7979
|
+
|
7980
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator
|
7981
|
+
|
7982
|
+
attr_accessor values: ::Array[String]
|
7983
|
+
|
7984
|
+
def initialize: (
|
7985
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
|
7986
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
|
7987
|
+
values: ::Array[String]
|
7988
|
+
) -> void
|
7989
|
+
|
7990
|
+
def to_hash: -> {
|
7991
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
|
7992
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
|
7993
|
+
values: ::Array[String]
|
7994
|
+
}
|
7995
|
+
|
7996
|
+
type field =
|
7997
|
+
:price_id
|
7998
|
+
| :item_id
|
7999
|
+
| :price_type
|
8000
|
+
| :currency
|
8001
|
+
| :pricing_unit_id
|
8002
|
+
|
8003
|
+
module Field
|
8004
|
+
extend Orb::Internal::Type::Enum
|
8005
|
+
|
8006
|
+
PRICE_ID: :price_id
|
8007
|
+
ITEM_ID: :item_id
|
8008
|
+
PRICE_TYPE: :price_type
|
8009
|
+
CURRENCY: :currency
|
8010
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
8011
|
+
|
8012
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field]
|
8013
|
+
end
|
8014
|
+
|
8015
|
+
type operator = :includes | :excludes
|
8016
|
+
|
8017
|
+
module Operator
|
8018
|
+
extend Orb::Internal::Type::Enum
|
8019
|
+
|
8020
|
+
INCLUDES: :includes
|
8021
|
+
EXCLUDES: :excludes
|
8022
|
+
|
8023
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator]
|
8024
|
+
end
|
8025
|
+
end
|
8026
|
+
|
8027
|
+
type price_type =
|
8028
|
+
:usage
|
8029
|
+
| :fixed_in_advance
|
8030
|
+
| :fixed_in_arrears
|
8031
|
+
| :fixed
|
8032
|
+
| :in_arrears
|
8033
|
+
|
8034
|
+
module PriceType
|
8035
|
+
extend Orb::Internal::Type::Enum
|
8036
|
+
|
8037
|
+
USAGE: :usage
|
8038
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
8039
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
8040
|
+
FIXED: :fixed
|
8041
|
+
IN_ARREARS: :in_arrears
|
8042
|
+
|
8043
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::price_type]
|
8044
|
+
end
|
7046
8045
|
end
|
7047
8046
|
|
7048
8047
|
type maximum =
|
7049
8048
|
{
|
7050
8049
|
adjustment_type: :maximum,
|
7051
8050
|
maximum_amount: String,
|
8051
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
|
8052
|
+
applies_to_item_ids: ::Array[String]?,
|
7052
8053
|
applies_to_price_ids: ::Array[String]?,
|
7053
|
-
|
8054
|
+
currency: String?,
|
8055
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
|
8056
|
+
is_invoice_level: bool,
|
8057
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
|
7054
8058
|
}
|
7055
8059
|
|
7056
8060
|
class Maximum < Orb::Internal::Type::BaseModel
|
@@ -7058,25 +8062,131 @@ module Orb
|
|
7058
8062
|
|
7059
8063
|
attr_accessor maximum_amount: String
|
7060
8064
|
|
8065
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?
|
8066
|
+
|
8067
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
8068
|
+
|
7061
8069
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
7062
8070
|
|
8071
|
+
attr_accessor currency: String?
|
8072
|
+
|
8073
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?
|
8074
|
+
|
7063
8075
|
attr_reader is_invoice_level: bool?
|
7064
8076
|
|
7065
8077
|
def is_invoice_level=: (bool) -> bool
|
7066
8078
|
|
8079
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
|
8080
|
+
|
7067
8081
|
def initialize: (
|
7068
8082
|
maximum_amount: String,
|
8083
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
|
8084
|
+
?applies_to_item_ids: ::Array[String]?,
|
7069
8085
|
?applies_to_price_ids: ::Array[String]?,
|
8086
|
+
?currency: String?,
|
8087
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
|
7070
8088
|
?is_invoice_level: bool,
|
8089
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::price_type?,
|
7071
8090
|
?adjustment_type: :maximum
|
7072
8091
|
) -> void
|
7073
8092
|
|
7074
8093
|
def to_hash: -> {
|
7075
8094
|
adjustment_type: :maximum,
|
7076
8095
|
maximum_amount: String,
|
8096
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
|
8097
|
+
applies_to_item_ids: ::Array[String]?,
|
7077
8098
|
applies_to_price_ids: ::Array[String]?,
|
7078
|
-
|
8099
|
+
currency: String?,
|
8100
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
|
8101
|
+
is_invoice_level: bool,
|
8102
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
|
7079
8103
|
}
|
8104
|
+
|
8105
|
+
type applies_to_all = true
|
8106
|
+
|
8107
|
+
module AppliesToAll
|
8108
|
+
extend Orb::Internal::Type::Enum
|
8109
|
+
|
8110
|
+
TRUE: true
|
8111
|
+
|
8112
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all]
|
8113
|
+
end
|
8114
|
+
|
8115
|
+
type filter =
|
8116
|
+
{
|
8117
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
|
8118
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
|
8119
|
+
values: ::Array[String]
|
8120
|
+
}
|
8121
|
+
|
8122
|
+
class Filter < Orb::Internal::Type::BaseModel
|
8123
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field
|
8124
|
+
|
8125
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator
|
8126
|
+
|
8127
|
+
attr_accessor values: ::Array[String]
|
8128
|
+
|
8129
|
+
def initialize: (
|
8130
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
|
8131
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
|
8132
|
+
values: ::Array[String]
|
8133
|
+
) -> void
|
8134
|
+
|
8135
|
+
def to_hash: -> {
|
8136
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
|
8137
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
|
8138
|
+
values: ::Array[String]
|
8139
|
+
}
|
8140
|
+
|
8141
|
+
type field =
|
8142
|
+
:price_id
|
8143
|
+
| :item_id
|
8144
|
+
| :price_type
|
8145
|
+
| :currency
|
8146
|
+
| :pricing_unit_id
|
8147
|
+
|
8148
|
+
module Field
|
8149
|
+
extend Orb::Internal::Type::Enum
|
8150
|
+
|
8151
|
+
PRICE_ID: :price_id
|
8152
|
+
ITEM_ID: :item_id
|
8153
|
+
PRICE_TYPE: :price_type
|
8154
|
+
CURRENCY: :currency
|
8155
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
8156
|
+
|
8157
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field]
|
8158
|
+
end
|
8159
|
+
|
8160
|
+
type operator = :includes | :excludes
|
8161
|
+
|
8162
|
+
module Operator
|
8163
|
+
extend Orb::Internal::Type::Enum
|
8164
|
+
|
8165
|
+
INCLUDES: :includes
|
8166
|
+
EXCLUDES: :excludes
|
8167
|
+
|
8168
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator]
|
8169
|
+
end
|
8170
|
+
end
|
8171
|
+
|
8172
|
+
type price_type =
|
8173
|
+
:usage
|
8174
|
+
| :fixed_in_advance
|
8175
|
+
| :fixed_in_arrears
|
8176
|
+
| :fixed
|
8177
|
+
| :in_arrears
|
8178
|
+
|
8179
|
+
module PriceType
|
8180
|
+
extend Orb::Internal::Type::Enum
|
8181
|
+
|
8182
|
+
USAGE: :usage
|
8183
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
8184
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
8185
|
+
FIXED: :fixed
|
8186
|
+
IN_ARREARS: :in_arrears
|
8187
|
+
|
8188
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::price_type]
|
8189
|
+
end
|
7080
8190
|
end
|
7081
8191
|
|
7082
8192
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment]
|