orb-billing 0.5.0 → 0.5.2
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 +23 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/array_of.rb +8 -0
- data/lib/orb/internal/type/base_model.rb +7 -0
- data/lib/orb/internal/type/boolean.rb +8 -0
- data/lib/orb/internal/type/enum.rb +12 -0
- data/lib/orb/internal/type/file_input.rb +7 -0
- data/lib/orb/internal/type/hash_of.rb +8 -0
- data/lib/orb/internal/type/union.rb +12 -0
- data/lib/orb/internal/type/unknown.rb +8 -0
- data/lib/orb/internal/util.rb +45 -0
- data/lib/orb/models/coupon.rb +0 -4
- data/lib/orb/models/coupon_create_params.rb +0 -6
- data/lib/orb/models/customer_create_params.rb +0 -9
- data/lib/orb/models/customer_update_by_external_id_params.rb +0 -9
- data/lib/orb/models/customer_update_params.rb +0 -9
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -14
- data/lib/orb/models/discount.rb +0 -6
- data/lib/orb/models/evaluate_price_group.rb +0 -4
- data/lib/orb/models/invoice.rb +0 -22
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +0 -22
- data/lib/orb/models/invoice_level_discount.rb +0 -4
- data/lib/orb/models/invoice_line_item_create_response.rb +0 -22
- data/lib/orb/models/plan.rb +0 -12
- data/lib/orb/models/plan_create_params.rb +0 -32
- data/lib/orb/models/price.rb +0 -35
- data/lib/orb/models/subscription.rb +0 -22
- data/lib/orb/models/subscription_cancel_response.rb +0 -22
- data/lib/orb/models/subscription_change_apply_response.rb +0 -22
- data/lib/orb/models/subscription_change_cancel_response.rb +0 -22
- data/lib/orb/models/subscription_change_retrieve_response.rb +0 -22
- data/lib/orb/models/subscription_create_params.rb +0 -88
- data/lib/orb/models/subscription_create_response.rb +0 -22
- data/lib/orb/models/subscription_price_intervals_params.rb +0 -89
- data/lib/orb/models/subscription_price_intervals_response.rb +0 -22
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +0 -88
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +0 -22
- data/lib/orb/models/subscription_trigger_phase_response.rb +0 -22
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +0 -22
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +0 -22
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +0 -22
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +0 -22
- data/lib/orb/models/subscription_update_trial_response.rb +0 -22
- data/lib/orb/models/subscription_usage.rb +0 -9
- data/lib/orb/models.rb +30 -16
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/internal/type/array_of.rbi +6 -0
- data/rbi/orb/internal/type/base_model.rbi +5 -0
- data/rbi/orb/internal/type/boolean.rbi +6 -0
- data/rbi/orb/internal/type/enum.rbi +5 -0
- data/rbi/orb/internal/type/file_input.rbi +5 -0
- data/rbi/orb/internal/type/hash_of.rbi +6 -0
- data/rbi/orb/internal/type/union.rbi +5 -0
- data/rbi/orb/internal/type/unknown.rbi +6 -0
- data/rbi/orb/internal/util.rbi +30 -0
- data/rbi/orb/models/coupon.rbi +2 -2
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +2 -65
- data/rbi/orb/models/customers/cost_list_response.rbi +2 -65
- data/rbi/orb/models/evaluate_price_group.rbi +7 -3
- data/rbi/orb/models/invoice.rbi +10 -149
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +10 -133
- data/rbi/orb/models/invoice_line_item_create_response.rbi +8 -114
- data/rbi/orb/models/plan.rbi +8 -134
- data/rbi/orb/models/price.rbi +56 -588
- data/rbi/orb/models/subscription.rbi +6 -99
- data/rbi/orb/models/subscription_cancel_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_apply_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_cancel_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +6 -89
- data/rbi/orb/models/subscription_create_response.rbi +6 -89
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +2 -65
- data/rbi/orb/models/subscription_price_intervals_params.rbi +72 -26
- data/rbi/orb/models/subscription_price_intervals_response.rbi +6 -89
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +6 -89
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +6 -89
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +6 -89
- data/rbi/orb/models/subscription_update_trial_params.rbi +3 -14
- data/rbi/orb/models/subscription_update_trial_response.rbi +6 -89
- data/rbi/orb/resources/customers/credits/ledger.rbi +4 -36
- data/rbi/orb/resources/prices/external_price_id.rbi +2 -64
- data/rbi/orb/resources/prices.rbi +4 -130
- data/rbi/orb/resources/subscriptions.rbi +2 -10
- data/sig/orb/internal/type/array_of.rbs +3 -0
- data/sig/orb/internal/type/base_model.rbs +2 -0
- data/sig/orb/internal/type/boolean.rbs +3 -0
- data/sig/orb/internal/type/enum.rbs +2 -0
- data/sig/orb/internal/type/file_input.rbs +2 -0
- data/sig/orb/internal/type/hash_of.rbs +3 -0
- data/sig/orb/internal/type/union.rbs +2 -0
- data/sig/orb/internal/type/unknown.rbs +3 -0
- data/sig/orb/internal/util.rbs +12 -0
- metadata +2 -2
@@ -87,17 +87,7 @@ module Orb
|
|
87
87
|
attr_accessor :default_invoice_memo
|
88
88
|
|
89
89
|
# The discount intervals for this subscription sorted by the start_date.
|
90
|
-
sig
|
91
|
-
returns(
|
92
|
-
T::Array[
|
93
|
-
T.any(
|
94
|
-
Orb::Subscription::DiscountInterval::Amount,
|
95
|
-
Orb::Subscription::DiscountInterval::Percentage,
|
96
|
-
Orb::Subscription::DiscountInterval::Usage
|
97
|
-
)
|
98
|
-
]
|
99
|
-
)
|
100
|
-
end
|
90
|
+
sig { returns(T::Array[Orb::Subscription::DiscountInterval::Variants]) }
|
101
91
|
attr_accessor :discount_intervals
|
102
92
|
|
103
93
|
# The date Orb stops billing for this subscription.
|
@@ -346,13 +336,7 @@ module Orb
|
|
346
336
|
customer: Orb::Customer,
|
347
337
|
default_invoice_memo: T.nilable(String),
|
348
338
|
discount_intervals:
|
349
|
-
T::Array[
|
350
|
-
T.any(
|
351
|
-
Orb::Subscription::DiscountInterval::Amount,
|
352
|
-
Orb::Subscription::DiscountInterval::Percentage,
|
353
|
-
Orb::Subscription::DiscountInterval::Usage
|
354
|
-
)
|
355
|
-
],
|
339
|
+
T::Array[Orb::Subscription::DiscountInterval::Variants],
|
356
340
|
end_date: T.nilable(Time),
|
357
341
|
fixed_fee_quantity_schedule:
|
358
342
|
T::Array[Orb::Subscription::FixedFeeQuantitySchedule],
|
@@ -385,15 +369,7 @@ module Orb
|
|
385
369
|
attr_accessor :id
|
386
370
|
|
387
371
|
sig do
|
388
|
-
returns(
|
389
|
-
T.any(
|
390
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
391
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
392
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
393
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
394
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::Maximum
|
395
|
-
)
|
396
|
-
)
|
372
|
+
returns(Orb::Subscription::AdjustmentInterval::Adjustment::Variants)
|
397
373
|
end
|
398
374
|
attr_accessor :adjustment
|
399
375
|
|
@@ -442,13 +418,7 @@ module Orb
|
|
442
418
|
{
|
443
419
|
id: String,
|
444
420
|
adjustment:
|
445
|
-
|
446
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
447
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
448
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
449
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
450
|
-
Orb::Subscription::AdjustmentInterval::Adjustment::Maximum
|
451
|
-
),
|
421
|
+
Orb::Subscription::AdjustmentInterval::Adjustment::Variants,
|
452
422
|
applies_to_price_interval_ids: T::Array[String],
|
453
423
|
end_date: T.nilable(Time),
|
454
424
|
start_date: Time
|
@@ -1471,40 +1441,7 @@ module Orb
|
|
1471
1441
|
#
|
1472
1442
|
# For more on the types of prices, see
|
1473
1443
|
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1474
|
-
sig
|
1475
|
-
returns(
|
1476
|
-
T.any(
|
1477
|
-
Orb::Price::Unit,
|
1478
|
-
Orb::Price::Package,
|
1479
|
-
Orb::Price::Matrix,
|
1480
|
-
Orb::Price::Tiered,
|
1481
|
-
Orb::Price::TieredBps,
|
1482
|
-
Orb::Price::Bps,
|
1483
|
-
Orb::Price::BulkBps,
|
1484
|
-
Orb::Price::Bulk,
|
1485
|
-
Orb::Price::ThresholdTotalAmount,
|
1486
|
-
Orb::Price::TieredPackage,
|
1487
|
-
Orb::Price::GroupedTiered,
|
1488
|
-
Orb::Price::TieredWithMinimum,
|
1489
|
-
Orb::Price::TieredPackageWithMinimum,
|
1490
|
-
Orb::Price::PackageWithAllocation,
|
1491
|
-
Orb::Price::UnitWithPercent,
|
1492
|
-
Orb::Price::MatrixWithAllocation,
|
1493
|
-
Orb::Price::TieredWithProration,
|
1494
|
-
Orb::Price::UnitWithProration,
|
1495
|
-
Orb::Price::GroupedAllocation,
|
1496
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1497
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1498
|
-
Orb::Price::MatrixWithDisplayName,
|
1499
|
-
Orb::Price::BulkWithProration,
|
1500
|
-
Orb::Price::GroupedTieredPackage,
|
1501
|
-
Orb::Price::MaxGroupTieredPackage,
|
1502
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1503
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1504
|
-
Orb::Price::CumulativeGroupedBulk
|
1505
|
-
)
|
1506
|
-
)
|
1507
|
-
end
|
1444
|
+
sig { returns(Orb::Price::Variants) }
|
1508
1445
|
attr_accessor :price
|
1509
1446
|
|
1510
1447
|
# The start date of the price interval. This is the date that Orb starts billing
|
@@ -1624,37 +1561,7 @@ module Orb
|
|
1624
1561
|
Orb::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1625
1562
|
]
|
1626
1563
|
),
|
1627
|
-
price:
|
1628
|
-
T.any(
|
1629
|
-
Orb::Price::Unit,
|
1630
|
-
Orb::Price::Package,
|
1631
|
-
Orb::Price::Matrix,
|
1632
|
-
Orb::Price::Tiered,
|
1633
|
-
Orb::Price::TieredBps,
|
1634
|
-
Orb::Price::Bps,
|
1635
|
-
Orb::Price::BulkBps,
|
1636
|
-
Orb::Price::Bulk,
|
1637
|
-
Orb::Price::ThresholdTotalAmount,
|
1638
|
-
Orb::Price::TieredPackage,
|
1639
|
-
Orb::Price::GroupedTiered,
|
1640
|
-
Orb::Price::TieredWithMinimum,
|
1641
|
-
Orb::Price::TieredPackageWithMinimum,
|
1642
|
-
Orb::Price::PackageWithAllocation,
|
1643
|
-
Orb::Price::UnitWithPercent,
|
1644
|
-
Orb::Price::MatrixWithAllocation,
|
1645
|
-
Orb::Price::TieredWithProration,
|
1646
|
-
Orb::Price::UnitWithProration,
|
1647
|
-
Orb::Price::GroupedAllocation,
|
1648
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1649
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1650
|
-
Orb::Price::MatrixWithDisplayName,
|
1651
|
-
Orb::Price::BulkWithProration,
|
1652
|
-
Orb::Price::GroupedTieredPackage,
|
1653
|
-
Orb::Price::MaxGroupTieredPackage,
|
1654
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1655
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1656
|
-
Orb::Price::CumulativeGroupedBulk
|
1657
|
-
),
|
1564
|
+
price: Orb::Price::Variants,
|
1658
1565
|
start_date: Time,
|
1659
1566
|
usage_customer_ids: T.nilable(T::Array[String])
|
1660
1567
|
}
|
@@ -101,11 +101,7 @@ module Orb
|
|
101
101
|
sig do
|
102
102
|
returns(
|
103
103
|
T::Array[
|
104
|
-
|
105
|
-
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount,
|
106
|
-
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage,
|
107
|
-
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage
|
108
|
-
)
|
104
|
+
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Variants
|
109
105
|
]
|
110
106
|
)
|
111
107
|
end
|
@@ -425,11 +421,7 @@ module Orb
|
|
425
421
|
default_invoice_memo: T.nilable(String),
|
426
422
|
discount_intervals:
|
427
423
|
T::Array[
|
428
|
-
|
429
|
-
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount,
|
430
|
-
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage,
|
431
|
-
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage
|
432
|
-
)
|
424
|
+
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Variants
|
433
425
|
],
|
434
426
|
end_date: T.nilable(Time),
|
435
427
|
fixed_fee_quantity_schedule:
|
@@ -486,13 +478,7 @@ module Orb
|
|
486
478
|
|
487
479
|
sig do
|
488
480
|
returns(
|
489
|
-
|
490
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
491
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
492
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
493
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum,
|
494
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum
|
495
|
-
)
|
481
|
+
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Variants
|
496
482
|
)
|
497
483
|
end
|
498
484
|
attr_accessor :adjustment
|
@@ -542,13 +528,7 @@ module Orb
|
|
542
528
|
{
|
543
529
|
id: String,
|
544
530
|
adjustment:
|
545
|
-
|
546
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
547
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
548
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
549
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum,
|
550
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum
|
551
|
-
),
|
531
|
+
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Variants,
|
552
532
|
applies_to_price_interval_ids: T::Array[String],
|
553
533
|
end_date: T.nilable(Time),
|
554
534
|
start_date: Time
|
@@ -1582,40 +1562,7 @@ module Orb
|
|
1582
1562
|
#
|
1583
1563
|
# For more on the types of prices, see
|
1584
1564
|
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1585
|
-
sig
|
1586
|
-
returns(
|
1587
|
-
T.any(
|
1588
|
-
Orb::Price::Unit,
|
1589
|
-
Orb::Price::Package,
|
1590
|
-
Orb::Price::Matrix,
|
1591
|
-
Orb::Price::Tiered,
|
1592
|
-
Orb::Price::TieredBps,
|
1593
|
-
Orb::Price::Bps,
|
1594
|
-
Orb::Price::BulkBps,
|
1595
|
-
Orb::Price::Bulk,
|
1596
|
-
Orb::Price::ThresholdTotalAmount,
|
1597
|
-
Orb::Price::TieredPackage,
|
1598
|
-
Orb::Price::GroupedTiered,
|
1599
|
-
Orb::Price::TieredWithMinimum,
|
1600
|
-
Orb::Price::TieredPackageWithMinimum,
|
1601
|
-
Orb::Price::PackageWithAllocation,
|
1602
|
-
Orb::Price::UnitWithPercent,
|
1603
|
-
Orb::Price::MatrixWithAllocation,
|
1604
|
-
Orb::Price::TieredWithProration,
|
1605
|
-
Orb::Price::UnitWithProration,
|
1606
|
-
Orb::Price::GroupedAllocation,
|
1607
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1608
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1609
|
-
Orb::Price::MatrixWithDisplayName,
|
1610
|
-
Orb::Price::BulkWithProration,
|
1611
|
-
Orb::Price::GroupedTieredPackage,
|
1612
|
-
Orb::Price::MaxGroupTieredPackage,
|
1613
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1614
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1615
|
-
Orb::Price::CumulativeGroupedBulk
|
1616
|
-
)
|
1617
|
-
)
|
1618
|
-
end
|
1565
|
+
sig { returns(Orb::Price::Variants) }
|
1619
1566
|
attr_accessor :price
|
1620
1567
|
|
1621
1568
|
# The start date of the price interval. This is the date that Orb starts billing
|
@@ -1735,37 +1682,7 @@ module Orb
|
|
1735
1682
|
Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition
|
1736
1683
|
]
|
1737
1684
|
),
|
1738
|
-
price:
|
1739
|
-
T.any(
|
1740
|
-
Orb::Price::Unit,
|
1741
|
-
Orb::Price::Package,
|
1742
|
-
Orb::Price::Matrix,
|
1743
|
-
Orb::Price::Tiered,
|
1744
|
-
Orb::Price::TieredBps,
|
1745
|
-
Orb::Price::Bps,
|
1746
|
-
Orb::Price::BulkBps,
|
1747
|
-
Orb::Price::Bulk,
|
1748
|
-
Orb::Price::ThresholdTotalAmount,
|
1749
|
-
Orb::Price::TieredPackage,
|
1750
|
-
Orb::Price::GroupedTiered,
|
1751
|
-
Orb::Price::TieredWithMinimum,
|
1752
|
-
Orb::Price::TieredPackageWithMinimum,
|
1753
|
-
Orb::Price::PackageWithAllocation,
|
1754
|
-
Orb::Price::UnitWithPercent,
|
1755
|
-
Orb::Price::MatrixWithAllocation,
|
1756
|
-
Orb::Price::TieredWithProration,
|
1757
|
-
Orb::Price::UnitWithProration,
|
1758
|
-
Orb::Price::GroupedAllocation,
|
1759
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1760
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1761
|
-
Orb::Price::MatrixWithDisplayName,
|
1762
|
-
Orb::Price::BulkWithProration,
|
1763
|
-
Orb::Price::GroupedTieredPackage,
|
1764
|
-
Orb::Price::MaxGroupTieredPackage,
|
1765
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1766
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1767
|
-
Orb::Price::CumulativeGroupedBulk
|
1768
|
-
),
|
1685
|
+
price: Orb::Price::Variants,
|
1769
1686
|
start_date: Time,
|
1770
1687
|
usage_customer_ids: T.nilable(T::Array[String])
|
1771
1688
|
}
|
@@ -240,11 +240,7 @@ module Orb
|
|
240
240
|
sig do
|
241
241
|
returns(
|
242
242
|
T::Array[
|
243
|
-
|
244
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
|
245
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
|
246
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
|
247
|
-
)
|
243
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Variants
|
248
244
|
]
|
249
245
|
)
|
250
246
|
end
|
@@ -582,11 +578,7 @@ module Orb
|
|
582
578
|
default_invoice_memo: T.nilable(String),
|
583
579
|
discount_intervals:
|
584
580
|
T::Array[
|
585
|
-
|
586
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
|
587
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
|
588
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
|
589
|
-
)
|
581
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Variants
|
590
582
|
],
|
591
583
|
end_date: T.nilable(Time),
|
592
584
|
fixed_fee_quantity_schedule:
|
@@ -646,13 +638,7 @@ module Orb
|
|
646
638
|
|
647
639
|
sig do
|
648
640
|
returns(
|
649
|
-
|
650
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
651
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
652
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
653
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
654
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
655
|
-
)
|
641
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Variants
|
656
642
|
)
|
657
643
|
end
|
658
644
|
attr_accessor :adjustment
|
@@ -702,13 +688,7 @@ module Orb
|
|
702
688
|
{
|
703
689
|
id: String,
|
704
690
|
adjustment:
|
705
|
-
|
706
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
707
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
708
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
709
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
710
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
711
|
-
),
|
691
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Variants,
|
712
692
|
applies_to_price_interval_ids: T::Array[String],
|
713
693
|
end_date: T.nilable(Time),
|
714
694
|
start_date: Time
|
@@ -1742,40 +1722,7 @@ module Orb
|
|
1742
1722
|
#
|
1743
1723
|
# For more on the types of prices, see
|
1744
1724
|
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1745
|
-
sig
|
1746
|
-
returns(
|
1747
|
-
T.any(
|
1748
|
-
Orb::Price::Unit,
|
1749
|
-
Orb::Price::Package,
|
1750
|
-
Orb::Price::Matrix,
|
1751
|
-
Orb::Price::Tiered,
|
1752
|
-
Orb::Price::TieredBps,
|
1753
|
-
Orb::Price::Bps,
|
1754
|
-
Orb::Price::BulkBps,
|
1755
|
-
Orb::Price::Bulk,
|
1756
|
-
Orb::Price::ThresholdTotalAmount,
|
1757
|
-
Orb::Price::TieredPackage,
|
1758
|
-
Orb::Price::GroupedTiered,
|
1759
|
-
Orb::Price::TieredWithMinimum,
|
1760
|
-
Orb::Price::TieredPackageWithMinimum,
|
1761
|
-
Orb::Price::PackageWithAllocation,
|
1762
|
-
Orb::Price::UnitWithPercent,
|
1763
|
-
Orb::Price::MatrixWithAllocation,
|
1764
|
-
Orb::Price::TieredWithProration,
|
1765
|
-
Orb::Price::UnitWithProration,
|
1766
|
-
Orb::Price::GroupedAllocation,
|
1767
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1768
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1769
|
-
Orb::Price::MatrixWithDisplayName,
|
1770
|
-
Orb::Price::BulkWithProration,
|
1771
|
-
Orb::Price::GroupedTieredPackage,
|
1772
|
-
Orb::Price::MaxGroupTieredPackage,
|
1773
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1774
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1775
|
-
Orb::Price::CumulativeGroupedBulk
|
1776
|
-
)
|
1777
|
-
)
|
1778
|
-
end
|
1725
|
+
sig { returns(Orb::Price::Variants) }
|
1779
1726
|
attr_accessor :price
|
1780
1727
|
|
1781
1728
|
# The start date of the price interval. This is the date that Orb starts billing
|
@@ -1895,37 +1842,7 @@ module Orb
|
|
1895
1842
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1896
1843
|
]
|
1897
1844
|
),
|
1898
|
-
price:
|
1899
|
-
T.any(
|
1900
|
-
Orb::Price::Unit,
|
1901
|
-
Orb::Price::Package,
|
1902
|
-
Orb::Price::Matrix,
|
1903
|
-
Orb::Price::Tiered,
|
1904
|
-
Orb::Price::TieredBps,
|
1905
|
-
Orb::Price::Bps,
|
1906
|
-
Orb::Price::BulkBps,
|
1907
|
-
Orb::Price::Bulk,
|
1908
|
-
Orb::Price::ThresholdTotalAmount,
|
1909
|
-
Orb::Price::TieredPackage,
|
1910
|
-
Orb::Price::GroupedTiered,
|
1911
|
-
Orb::Price::TieredWithMinimum,
|
1912
|
-
Orb::Price::TieredPackageWithMinimum,
|
1913
|
-
Orb::Price::PackageWithAllocation,
|
1914
|
-
Orb::Price::UnitWithPercent,
|
1915
|
-
Orb::Price::MatrixWithAllocation,
|
1916
|
-
Orb::Price::TieredWithProration,
|
1917
|
-
Orb::Price::UnitWithProration,
|
1918
|
-
Orb::Price::GroupedAllocation,
|
1919
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1920
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1921
|
-
Orb::Price::MatrixWithDisplayName,
|
1922
|
-
Orb::Price::BulkWithProration,
|
1923
|
-
Orb::Price::GroupedTieredPackage,
|
1924
|
-
Orb::Price::MaxGroupTieredPackage,
|
1925
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1926
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1927
|
-
Orb::Price::CumulativeGroupedBulk
|
1928
|
-
),
|
1845
|
+
price: Orb::Price::Variants,
|
1929
1846
|
start_date: Time,
|
1930
1847
|
usage_customer_ids: T.nilable(T::Array[String])
|
1931
1848
|
}
|
@@ -240,11 +240,7 @@ module Orb
|
|
240
240
|
sig do
|
241
241
|
returns(
|
242
242
|
T::Array[
|
243
|
-
|
244
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount,
|
245
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage,
|
246
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage
|
247
|
-
)
|
243
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Variants
|
248
244
|
]
|
249
245
|
)
|
250
246
|
end
|
@@ -582,11 +578,7 @@ module Orb
|
|
582
578
|
default_invoice_memo: T.nilable(String),
|
583
579
|
discount_intervals:
|
584
580
|
T::Array[
|
585
|
-
|
586
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount,
|
587
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage,
|
588
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage
|
589
|
-
)
|
581
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Variants
|
590
582
|
],
|
591
583
|
end_date: T.nilable(Time),
|
592
584
|
fixed_fee_quantity_schedule:
|
@@ -646,13 +638,7 @@ module Orb
|
|
646
638
|
|
647
639
|
sig do
|
648
640
|
returns(
|
649
|
-
|
650
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
651
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
652
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
653
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
654
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
655
|
-
)
|
641
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Variants
|
656
642
|
)
|
657
643
|
end
|
658
644
|
attr_accessor :adjustment
|
@@ -702,13 +688,7 @@ module Orb
|
|
702
688
|
{
|
703
689
|
id: String,
|
704
690
|
adjustment:
|
705
|
-
|
706
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
707
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
708
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
709
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
710
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
711
|
-
),
|
691
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Variants,
|
712
692
|
applies_to_price_interval_ids: T::Array[String],
|
713
693
|
end_date: T.nilable(Time),
|
714
694
|
start_date: Time
|
@@ -1742,40 +1722,7 @@ module Orb
|
|
1742
1722
|
#
|
1743
1723
|
# For more on the types of prices, see
|
1744
1724
|
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1745
|
-
sig
|
1746
|
-
returns(
|
1747
|
-
T.any(
|
1748
|
-
Orb::Price::Unit,
|
1749
|
-
Orb::Price::Package,
|
1750
|
-
Orb::Price::Matrix,
|
1751
|
-
Orb::Price::Tiered,
|
1752
|
-
Orb::Price::TieredBps,
|
1753
|
-
Orb::Price::Bps,
|
1754
|
-
Orb::Price::BulkBps,
|
1755
|
-
Orb::Price::Bulk,
|
1756
|
-
Orb::Price::ThresholdTotalAmount,
|
1757
|
-
Orb::Price::TieredPackage,
|
1758
|
-
Orb::Price::GroupedTiered,
|
1759
|
-
Orb::Price::TieredWithMinimum,
|
1760
|
-
Orb::Price::TieredPackageWithMinimum,
|
1761
|
-
Orb::Price::PackageWithAllocation,
|
1762
|
-
Orb::Price::UnitWithPercent,
|
1763
|
-
Orb::Price::MatrixWithAllocation,
|
1764
|
-
Orb::Price::TieredWithProration,
|
1765
|
-
Orb::Price::UnitWithProration,
|
1766
|
-
Orb::Price::GroupedAllocation,
|
1767
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1768
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1769
|
-
Orb::Price::MatrixWithDisplayName,
|
1770
|
-
Orb::Price::BulkWithProration,
|
1771
|
-
Orb::Price::GroupedTieredPackage,
|
1772
|
-
Orb::Price::MaxGroupTieredPackage,
|
1773
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1774
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1775
|
-
Orb::Price::CumulativeGroupedBulk
|
1776
|
-
)
|
1777
|
-
)
|
1778
|
-
end
|
1725
|
+
sig { returns(Orb::Price::Variants) }
|
1779
1726
|
attr_accessor :price
|
1780
1727
|
|
1781
1728
|
# The start date of the price interval. This is the date that Orb starts billing
|
@@ -1895,37 +1842,7 @@ module Orb
|
|
1895
1842
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1896
1843
|
]
|
1897
1844
|
),
|
1898
|
-
price:
|
1899
|
-
T.any(
|
1900
|
-
Orb::Price::Unit,
|
1901
|
-
Orb::Price::Package,
|
1902
|
-
Orb::Price::Matrix,
|
1903
|
-
Orb::Price::Tiered,
|
1904
|
-
Orb::Price::TieredBps,
|
1905
|
-
Orb::Price::Bps,
|
1906
|
-
Orb::Price::BulkBps,
|
1907
|
-
Orb::Price::Bulk,
|
1908
|
-
Orb::Price::ThresholdTotalAmount,
|
1909
|
-
Orb::Price::TieredPackage,
|
1910
|
-
Orb::Price::GroupedTiered,
|
1911
|
-
Orb::Price::TieredWithMinimum,
|
1912
|
-
Orb::Price::TieredPackageWithMinimum,
|
1913
|
-
Orb::Price::PackageWithAllocation,
|
1914
|
-
Orb::Price::UnitWithPercent,
|
1915
|
-
Orb::Price::MatrixWithAllocation,
|
1916
|
-
Orb::Price::TieredWithProration,
|
1917
|
-
Orb::Price::UnitWithProration,
|
1918
|
-
Orb::Price::GroupedAllocation,
|
1919
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1920
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1921
|
-
Orb::Price::MatrixWithDisplayName,
|
1922
|
-
Orb::Price::BulkWithProration,
|
1923
|
-
Orb::Price::GroupedTieredPackage,
|
1924
|
-
Orb::Price::MaxGroupTieredPackage,
|
1925
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1926
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1927
|
-
Orb::Price::CumulativeGroupedBulk
|
1928
|
-
),
|
1845
|
+
price: Orb::Price::Variants,
|
1929
1846
|
start_date: Time,
|
1930
1847
|
usage_customer_ids: T.nilable(T::Array[String])
|
1931
1848
|
}
|