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