orb-billing 0.5.1 → 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 +14 -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 +1 -1
@@ -245,11 +245,7 @@ module Orb
|
|
245
245
|
sig do
|
246
246
|
returns(
|
247
247
|
T::Array[
|
248
|
-
|
249
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount,
|
250
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage,
|
251
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage
|
252
|
-
)
|
248
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Variants
|
253
249
|
]
|
254
250
|
)
|
255
251
|
end
|
@@ -587,11 +583,7 @@ module Orb
|
|
587
583
|
default_invoice_memo: T.nilable(String),
|
588
584
|
discount_intervals:
|
589
585
|
T::Array[
|
590
|
-
|
591
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount,
|
592
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage,
|
593
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage
|
594
|
-
)
|
586
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Variants
|
595
587
|
],
|
596
588
|
end_date: T.nilable(Time),
|
597
589
|
fixed_fee_quantity_schedule:
|
@@ -651,13 +643,7 @@ module Orb
|
|
651
643
|
|
652
644
|
sig do
|
653
645
|
returns(
|
654
|
-
|
655
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
656
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
657
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
658
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
659
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
660
|
-
)
|
646
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Variants
|
661
647
|
)
|
662
648
|
end
|
663
649
|
attr_accessor :adjustment
|
@@ -707,13 +693,7 @@ module Orb
|
|
707
693
|
{
|
708
694
|
id: String,
|
709
695
|
adjustment:
|
710
|
-
|
711
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
712
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
713
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
714
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
715
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
716
|
-
),
|
696
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Variants,
|
717
697
|
applies_to_price_interval_ids: T::Array[String],
|
718
698
|
end_date: T.nilable(Time),
|
719
699
|
start_date: Time
|
@@ -1747,40 +1727,7 @@ module Orb
|
|
1747
1727
|
#
|
1748
1728
|
# For more on the types of prices, see
|
1749
1729
|
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1750
|
-
sig
|
1751
|
-
returns(
|
1752
|
-
T.any(
|
1753
|
-
Orb::Price::Unit,
|
1754
|
-
Orb::Price::Package,
|
1755
|
-
Orb::Price::Matrix,
|
1756
|
-
Orb::Price::Tiered,
|
1757
|
-
Orb::Price::TieredBps,
|
1758
|
-
Orb::Price::Bps,
|
1759
|
-
Orb::Price::BulkBps,
|
1760
|
-
Orb::Price::Bulk,
|
1761
|
-
Orb::Price::ThresholdTotalAmount,
|
1762
|
-
Orb::Price::TieredPackage,
|
1763
|
-
Orb::Price::GroupedTiered,
|
1764
|
-
Orb::Price::TieredWithMinimum,
|
1765
|
-
Orb::Price::TieredPackageWithMinimum,
|
1766
|
-
Orb::Price::PackageWithAllocation,
|
1767
|
-
Orb::Price::UnitWithPercent,
|
1768
|
-
Orb::Price::MatrixWithAllocation,
|
1769
|
-
Orb::Price::TieredWithProration,
|
1770
|
-
Orb::Price::UnitWithProration,
|
1771
|
-
Orb::Price::GroupedAllocation,
|
1772
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1773
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1774
|
-
Orb::Price::MatrixWithDisplayName,
|
1775
|
-
Orb::Price::BulkWithProration,
|
1776
|
-
Orb::Price::GroupedTieredPackage,
|
1777
|
-
Orb::Price::MaxGroupTieredPackage,
|
1778
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1779
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1780
|
-
Orb::Price::CumulativeGroupedBulk
|
1781
|
-
)
|
1782
|
-
)
|
1783
|
-
end
|
1730
|
+
sig { returns(Orb::Price::Variants) }
|
1784
1731
|
attr_accessor :price
|
1785
1732
|
|
1786
1733
|
# The start date of the price interval. This is the date that Orb starts billing
|
@@ -1900,37 +1847,7 @@ module Orb
|
|
1900
1847
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1901
1848
|
]
|
1902
1849
|
),
|
1903
|
-
price:
|
1904
|
-
T.any(
|
1905
|
-
Orb::Price::Unit,
|
1906
|
-
Orb::Price::Package,
|
1907
|
-
Orb::Price::Matrix,
|
1908
|
-
Orb::Price::Tiered,
|
1909
|
-
Orb::Price::TieredBps,
|
1910
|
-
Orb::Price::Bps,
|
1911
|
-
Orb::Price::BulkBps,
|
1912
|
-
Orb::Price::Bulk,
|
1913
|
-
Orb::Price::ThresholdTotalAmount,
|
1914
|
-
Orb::Price::TieredPackage,
|
1915
|
-
Orb::Price::GroupedTiered,
|
1916
|
-
Orb::Price::TieredWithMinimum,
|
1917
|
-
Orb::Price::TieredPackageWithMinimum,
|
1918
|
-
Orb::Price::PackageWithAllocation,
|
1919
|
-
Orb::Price::UnitWithPercent,
|
1920
|
-
Orb::Price::MatrixWithAllocation,
|
1921
|
-
Orb::Price::TieredWithProration,
|
1922
|
-
Orb::Price::UnitWithProration,
|
1923
|
-
Orb::Price::GroupedAllocation,
|
1924
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1925
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1926
|
-
Orb::Price::MatrixWithDisplayName,
|
1927
|
-
Orb::Price::BulkWithProration,
|
1928
|
-
Orb::Price::GroupedTieredPackage,
|
1929
|
-
Orb::Price::MaxGroupTieredPackage,
|
1930
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1931
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1932
|
-
Orb::Price::CumulativeGroupedBulk
|
1933
|
-
),
|
1850
|
+
price: Orb::Price::Variants,
|
1934
1851
|
start_date: Time,
|
1935
1852
|
usage_customer_ids: T.nilable(T::Array[String])
|
1936
1853
|
}
|
@@ -101,11 +101,7 @@ module Orb
|
|
101
101
|
sig do
|
102
102
|
returns(
|
103
103
|
T::Array[
|
104
|
-
|
105
|
-
Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount,
|
106
|
-
Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage,
|
107
|
-
Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage
|
108
|
-
)
|
104
|
+
Orb::Models::SubscriptionCreateResponse::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::SubscriptionCreateResponse::DiscountInterval::Amount,
|
430
|
-
Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage,
|
431
|
-
Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage
|
432
|
-
)
|
424
|
+
Orb::Models::SubscriptionCreateResponse::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::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
491
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
492
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
493
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum,
|
494
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum
|
495
|
-
)
|
481
|
+
Orb::Models::SubscriptionCreateResponse::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::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
547
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
548
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
549
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum,
|
550
|
-
Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum
|
551
|
-
),
|
531
|
+
Orb::Models::SubscriptionCreateResponse::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::SubscriptionCreateResponse::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
|
}
|
@@ -115,40 +115,7 @@ module Orb
|
|
115
115
|
end
|
116
116
|
|
117
117
|
# The price object
|
118
|
-
sig
|
119
|
-
returns(
|
120
|
-
T.any(
|
121
|
-
Orb::Price::Unit,
|
122
|
-
Orb::Price::Package,
|
123
|
-
Orb::Price::Matrix,
|
124
|
-
Orb::Price::Tiered,
|
125
|
-
Orb::Price::TieredBps,
|
126
|
-
Orb::Price::Bps,
|
127
|
-
Orb::Price::BulkBps,
|
128
|
-
Orb::Price::Bulk,
|
129
|
-
Orb::Price::ThresholdTotalAmount,
|
130
|
-
Orb::Price::TieredPackage,
|
131
|
-
Orb::Price::GroupedTiered,
|
132
|
-
Orb::Price::TieredWithMinimum,
|
133
|
-
Orb::Price::TieredPackageWithMinimum,
|
134
|
-
Orb::Price::PackageWithAllocation,
|
135
|
-
Orb::Price::UnitWithPercent,
|
136
|
-
Orb::Price::MatrixWithAllocation,
|
137
|
-
Orb::Price::TieredWithProration,
|
138
|
-
Orb::Price::UnitWithProration,
|
139
|
-
Orb::Price::GroupedAllocation,
|
140
|
-
Orb::Price::GroupedWithProratedMinimum,
|
141
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
142
|
-
Orb::Price::MatrixWithDisplayName,
|
143
|
-
Orb::Price::BulkWithProration,
|
144
|
-
Orb::Price::GroupedTieredPackage,
|
145
|
-
Orb::Price::MaxGroupTieredPackage,
|
146
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
147
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
148
|
-
Orb::Price::CumulativeGroupedBulk
|
149
|
-
)
|
150
|
-
)
|
151
|
-
end
|
118
|
+
sig { returns(Orb::Price::Variants) }
|
152
119
|
attr_accessor :price
|
153
120
|
|
154
121
|
# The price the cost is associated with
|
@@ -223,37 +190,7 @@ module Orb
|
|
223
190
|
sig do
|
224
191
|
override.returns(
|
225
192
|
{
|
226
|
-
price:
|
227
|
-
T.any(
|
228
|
-
Orb::Price::Unit,
|
229
|
-
Orb::Price::Package,
|
230
|
-
Orb::Price::Matrix,
|
231
|
-
Orb::Price::Tiered,
|
232
|
-
Orb::Price::TieredBps,
|
233
|
-
Orb::Price::Bps,
|
234
|
-
Orb::Price::BulkBps,
|
235
|
-
Orb::Price::Bulk,
|
236
|
-
Orb::Price::ThresholdTotalAmount,
|
237
|
-
Orb::Price::TieredPackage,
|
238
|
-
Orb::Price::GroupedTiered,
|
239
|
-
Orb::Price::TieredWithMinimum,
|
240
|
-
Orb::Price::TieredPackageWithMinimum,
|
241
|
-
Orb::Price::PackageWithAllocation,
|
242
|
-
Orb::Price::UnitWithPercent,
|
243
|
-
Orb::Price::MatrixWithAllocation,
|
244
|
-
Orb::Price::TieredWithProration,
|
245
|
-
Orb::Price::UnitWithProration,
|
246
|
-
Orb::Price::GroupedAllocation,
|
247
|
-
Orb::Price::GroupedWithProratedMinimum,
|
248
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
249
|
-
Orb::Price::MatrixWithDisplayName,
|
250
|
-
Orb::Price::BulkWithProration,
|
251
|
-
Orb::Price::GroupedTieredPackage,
|
252
|
-
Orb::Price::MaxGroupTieredPackage,
|
253
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
254
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
255
|
-
Orb::Price::CumulativeGroupedBulk
|
256
|
-
),
|
193
|
+
price: Orb::Price::Variants,
|
257
194
|
price_id: String,
|
258
195
|
subtotal: String,
|
259
196
|
total: String,
|
@@ -146,7 +146,11 @@ module Orb
|
|
146
146
|
|
147
147
|
# The start date of the price interval. This is the date that the price will start
|
148
148
|
# billing on the subscription.
|
149
|
-
sig
|
149
|
+
sig do
|
150
|
+
returns(
|
151
|
+
Orb::SubscriptionPriceIntervalsParams::Add::StartDate::Variants
|
152
|
+
)
|
153
|
+
end
|
150
154
|
attr_accessor :start_date
|
151
155
|
|
152
156
|
# The definition of a new allocation price to create and add to the subscription.
|
@@ -189,7 +193,9 @@ module Orb
|
|
189
193
|
# billing on the subscription.
|
190
194
|
sig do
|
191
195
|
returns(
|
192
|
-
T.nilable(
|
196
|
+
T.nilable(
|
197
|
+
Orb::SubscriptionPriceIntervalsParams::Add::EndDate::Variants
|
198
|
+
)
|
193
199
|
)
|
194
200
|
end
|
195
201
|
attr_accessor :end_date
|
@@ -281,7 +287,8 @@ module Orb
|
|
281
287
|
|
282
288
|
sig do
|
283
289
|
params(
|
284
|
-
start_date:
|
290
|
+
start_date:
|
291
|
+
Orb::SubscriptionPriceIntervalsParams::Add::StartDate::Variants,
|
285
292
|
allocation_price:
|
286
293
|
T.nilable(
|
287
294
|
Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::OrHash
|
@@ -297,7 +304,9 @@ module Orb
|
|
297
304
|
]
|
298
305
|
),
|
299
306
|
end_date:
|
300
|
-
T.nilable(
|
307
|
+
T.nilable(
|
308
|
+
Orb::SubscriptionPriceIntervalsParams::Add::EndDate::Variants
|
309
|
+
),
|
301
310
|
external_price_id: T.nilable(String),
|
302
311
|
filter: T.nilable(String),
|
303
312
|
fixed_fee_quantity_transitions:
|
@@ -388,7 +397,8 @@ module Orb
|
|
388
397
|
sig do
|
389
398
|
override.returns(
|
390
399
|
{
|
391
|
-
start_date:
|
400
|
+
start_date:
|
401
|
+
Orb::SubscriptionPriceIntervalsParams::Add::StartDate::Variants,
|
392
402
|
allocation_price:
|
393
403
|
T.nilable(
|
394
404
|
Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice
|
@@ -404,7 +414,9 @@ module Orb
|
|
404
414
|
]
|
405
415
|
),
|
406
416
|
end_date:
|
407
|
-
T.nilable(
|
417
|
+
T.nilable(
|
418
|
+
Orb::SubscriptionPriceIntervalsParams::Add::EndDate::Variants
|
419
|
+
),
|
408
420
|
external_price_id: T.nilable(String),
|
409
421
|
filter: T.nilable(String),
|
410
422
|
fixed_fee_quantity_transitions:
|
@@ -13884,7 +13896,11 @@ module Orb
|
|
13884
13896
|
# will start affecting prices on the subscription. The adjustment will apply to
|
13885
13897
|
# invoice dates that overlap with this `start_date`. This `start_date` is treated
|
13886
13898
|
# as inclusive for in-advance prices, and exclusive for in-arrears prices.
|
13887
|
-
sig
|
13899
|
+
sig do
|
13900
|
+
returns(
|
13901
|
+
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants
|
13902
|
+
)
|
13903
|
+
end
|
13888
13904
|
attr_accessor :start_date
|
13889
13905
|
|
13890
13906
|
# The end date of the adjustment interval. This is the date that the adjustment
|
@@ -13893,7 +13909,9 @@ module Orb
|
|
13893
13909
|
# exclusive for in-advance prices, and inclusive for in-arrears prices.
|
13894
13910
|
sig do
|
13895
13911
|
returns(
|
13896
|
-
T.nilable(
|
13912
|
+
T.nilable(
|
13913
|
+
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate::Variants
|
13914
|
+
)
|
13897
13915
|
)
|
13898
13916
|
end
|
13899
13917
|
attr_accessor :end_date
|
@@ -13908,9 +13926,12 @@ module Orb
|
|
13908
13926
|
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum::OrHash,
|
13909
13927
|
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum::OrHash
|
13910
13928
|
),
|
13911
|
-
start_date:
|
13929
|
+
start_date:
|
13930
|
+
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants,
|
13912
13931
|
end_date:
|
13913
|
-
T.nilable(
|
13932
|
+
T.nilable(
|
13933
|
+
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate::Variants
|
13934
|
+
)
|
13914
13935
|
).returns(T.attached_class)
|
13915
13936
|
end
|
13916
13937
|
def self.new(
|
@@ -13940,9 +13961,12 @@ module Orb
|
|
13940
13961
|
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum,
|
13941
13962
|
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum
|
13942
13963
|
),
|
13943
|
-
start_date:
|
13964
|
+
start_date:
|
13965
|
+
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants,
|
13944
13966
|
end_date:
|
13945
|
-
T.nilable(
|
13967
|
+
T.nilable(
|
13968
|
+
Orb::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate::Variants
|
13969
|
+
)
|
13946
13970
|
}
|
13947
13971
|
)
|
13948
13972
|
end
|
@@ -14353,7 +14377,9 @@ module Orb
|
|
14353
14377
|
# will not be updated.
|
14354
14378
|
sig do
|
14355
14379
|
returns(
|
14356
|
-
T.nilable(
|
14380
|
+
T.nilable(
|
14381
|
+
Orb::SubscriptionPriceIntervalsParams::Edit::EndDate::Variants
|
14382
|
+
)
|
14357
14383
|
)
|
14358
14384
|
end
|
14359
14385
|
attr_accessor :end_date
|
@@ -14383,14 +14409,17 @@ module Orb
|
|
14383
14409
|
# will not be updated.
|
14384
14410
|
sig do
|
14385
14411
|
returns(
|
14386
|
-
T.nilable(
|
14412
|
+
T.nilable(
|
14413
|
+
Orb::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants
|
14414
|
+
)
|
14387
14415
|
)
|
14388
14416
|
end
|
14389
14417
|
attr_reader :start_date
|
14390
14418
|
|
14391
14419
|
sig do
|
14392
14420
|
params(
|
14393
|
-
start_date:
|
14421
|
+
start_date:
|
14422
|
+
Orb::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants
|
14394
14423
|
).void
|
14395
14424
|
end
|
14396
14425
|
attr_writer :start_date
|
@@ -14409,7 +14438,9 @@ module Orb
|
|
14409
14438
|
price_interval_id: String,
|
14410
14439
|
billing_cycle_day: T.nilable(Integer),
|
14411
14440
|
end_date:
|
14412
|
-
T.nilable(
|
14441
|
+
T.nilable(
|
14442
|
+
Orb::SubscriptionPriceIntervalsParams::Edit::EndDate::Variants
|
14443
|
+
),
|
14413
14444
|
filter: T.nilable(String),
|
14414
14445
|
fixed_fee_quantity_transitions:
|
14415
14446
|
T.nilable(
|
@@ -14417,7 +14448,8 @@ module Orb
|
|
14417
14448
|
Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition::OrHash
|
14418
14449
|
]
|
14419
14450
|
),
|
14420
|
-
start_date:
|
14451
|
+
start_date:
|
14452
|
+
Orb::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants,
|
14421
14453
|
usage_customer_ids: T.nilable(T::Array[String])
|
14422
14454
|
).returns(T.attached_class)
|
14423
14455
|
end
|
@@ -14459,7 +14491,9 @@ module Orb
|
|
14459
14491
|
price_interval_id: String,
|
14460
14492
|
billing_cycle_day: T.nilable(Integer),
|
14461
14493
|
end_date:
|
14462
|
-
T.nilable(
|
14494
|
+
T.nilable(
|
14495
|
+
Orb::SubscriptionPriceIntervalsParams::Edit::EndDate::Variants
|
14496
|
+
),
|
14463
14497
|
filter: T.nilable(String),
|
14464
14498
|
fixed_fee_quantity_transitions:
|
14465
14499
|
T.nilable(
|
@@ -14467,7 +14501,8 @@ module Orb
|
|
14467
14501
|
Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition
|
14468
14502
|
]
|
14469
14503
|
),
|
14470
|
-
start_date:
|
14504
|
+
start_date:
|
14505
|
+
Orb::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants,
|
14471
14506
|
usage_customer_ids: T.nilable(T::Array[String])
|
14472
14507
|
}
|
14473
14508
|
)
|
@@ -14570,7 +14605,9 @@ module Orb
|
|
14570
14605
|
# date will not be updated.
|
14571
14606
|
sig do
|
14572
14607
|
returns(
|
14573
|
-
T.nilable(
|
14608
|
+
T.nilable(
|
14609
|
+
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate::Variants
|
14610
|
+
)
|
14574
14611
|
)
|
14575
14612
|
end
|
14576
14613
|
attr_accessor :end_date
|
@@ -14579,14 +14616,17 @@ module Orb
|
|
14579
14616
|
# date will not be updated.
|
14580
14617
|
sig do
|
14581
14618
|
returns(
|
14582
|
-
T.nilable(
|
14619
|
+
T.nilable(
|
14620
|
+
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants
|
14621
|
+
)
|
14583
14622
|
)
|
14584
14623
|
end
|
14585
14624
|
attr_reader :start_date
|
14586
14625
|
|
14587
14626
|
sig do
|
14588
14627
|
params(
|
14589
|
-
start_date:
|
14628
|
+
start_date:
|
14629
|
+
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants
|
14590
14630
|
).void
|
14591
14631
|
end
|
14592
14632
|
attr_writer :start_date
|
@@ -14595,8 +14635,11 @@ module Orb
|
|
14595
14635
|
params(
|
14596
14636
|
adjustment_interval_id: String,
|
14597
14637
|
end_date:
|
14598
|
-
T.nilable(
|
14599
|
-
|
14638
|
+
T.nilable(
|
14639
|
+
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate::Variants
|
14640
|
+
),
|
14641
|
+
start_date:
|
14642
|
+
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants
|
14600
14643
|
).returns(T.attached_class)
|
14601
14644
|
end
|
14602
14645
|
def self.new(
|
@@ -14616,8 +14659,11 @@ module Orb
|
|
14616
14659
|
{
|
14617
14660
|
adjustment_interval_id: String,
|
14618
14661
|
end_date:
|
14619
|
-
T.nilable(
|
14620
|
-
|
14662
|
+
T.nilable(
|
14663
|
+
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate::Variants
|
14664
|
+
),
|
14665
|
+
start_date:
|
14666
|
+
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants
|
14621
14667
|
}
|
14622
14668
|
)
|
14623
14669
|
end
|