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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/orb/internal/type/array_of.rb +8 -0
  5. data/lib/orb/internal/type/base_model.rb +7 -0
  6. data/lib/orb/internal/type/boolean.rb +8 -0
  7. data/lib/orb/internal/type/enum.rb +12 -0
  8. data/lib/orb/internal/type/file_input.rb +7 -0
  9. data/lib/orb/internal/type/hash_of.rb +8 -0
  10. data/lib/orb/internal/type/union.rb +12 -0
  11. data/lib/orb/internal/type/unknown.rb +8 -0
  12. data/lib/orb/internal/util.rb +45 -0
  13. data/lib/orb/models/coupon.rb +0 -4
  14. data/lib/orb/models/coupon_create_params.rb +0 -6
  15. data/lib/orb/models/customer_create_params.rb +0 -9
  16. data/lib/orb/models/customer_update_by_external_id_params.rb +0 -9
  17. data/lib/orb/models/customer_update_params.rb +0 -9
  18. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -14
  19. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -14
  20. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -14
  21. data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -14
  22. data/lib/orb/models/discount.rb +0 -6
  23. data/lib/orb/models/evaluate_price_group.rb +0 -4
  24. data/lib/orb/models/invoice.rb +0 -22
  25. data/lib/orb/models/invoice_fetch_upcoming_response.rb +0 -22
  26. data/lib/orb/models/invoice_level_discount.rb +0 -4
  27. data/lib/orb/models/invoice_line_item_create_response.rb +0 -22
  28. data/lib/orb/models/plan.rb +0 -12
  29. data/lib/orb/models/plan_create_params.rb +0 -32
  30. data/lib/orb/models/price.rb +0 -35
  31. data/lib/orb/models/subscription.rb +0 -22
  32. data/lib/orb/models/subscription_cancel_response.rb +0 -22
  33. data/lib/orb/models/subscription_change_apply_response.rb +0 -22
  34. data/lib/orb/models/subscription_change_cancel_response.rb +0 -22
  35. data/lib/orb/models/subscription_change_retrieve_response.rb +0 -22
  36. data/lib/orb/models/subscription_create_params.rb +0 -88
  37. data/lib/orb/models/subscription_create_response.rb +0 -22
  38. data/lib/orb/models/subscription_price_intervals_params.rb +0 -89
  39. data/lib/orb/models/subscription_price_intervals_response.rb +0 -22
  40. data/lib/orb/models/subscription_schedule_plan_change_params.rb +0 -88
  41. data/lib/orb/models/subscription_schedule_plan_change_response.rb +0 -22
  42. data/lib/orb/models/subscription_trigger_phase_response.rb +0 -22
  43. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +0 -22
  44. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +0 -22
  45. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +0 -22
  46. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +0 -22
  47. data/lib/orb/models/subscription_update_trial_response.rb +0 -22
  48. data/lib/orb/models/subscription_usage.rb +0 -9
  49. data/lib/orb/models.rb +30 -16
  50. data/lib/orb/version.rb +1 -1
  51. data/rbi/orb/internal/type/array_of.rbi +6 -0
  52. data/rbi/orb/internal/type/base_model.rbi +5 -0
  53. data/rbi/orb/internal/type/boolean.rbi +6 -0
  54. data/rbi/orb/internal/type/enum.rbi +5 -0
  55. data/rbi/orb/internal/type/file_input.rbi +5 -0
  56. data/rbi/orb/internal/type/hash_of.rbi +6 -0
  57. data/rbi/orb/internal/type/union.rbi +5 -0
  58. data/rbi/orb/internal/type/unknown.rbi +6 -0
  59. data/rbi/orb/internal/util.rbi +30 -0
  60. data/rbi/orb/models/coupon.rbi +2 -2
  61. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +2 -65
  62. data/rbi/orb/models/customers/cost_list_response.rbi +2 -65
  63. data/rbi/orb/models/evaluate_price_group.rbi +7 -3
  64. data/rbi/orb/models/invoice.rbi +10 -149
  65. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +10 -133
  66. data/rbi/orb/models/invoice_line_item_create_response.rbi +8 -114
  67. data/rbi/orb/models/plan.rbi +8 -134
  68. data/rbi/orb/models/price.rbi +56 -588
  69. data/rbi/orb/models/subscription.rbi +6 -99
  70. data/rbi/orb/models/subscription_cancel_response.rbi +6 -89
  71. data/rbi/orb/models/subscription_change_apply_response.rbi +6 -89
  72. data/rbi/orb/models/subscription_change_cancel_response.rbi +6 -89
  73. data/rbi/orb/models/subscription_change_retrieve_response.rbi +6 -89
  74. data/rbi/orb/models/subscription_create_response.rbi +6 -89
  75. data/rbi/orb/models/subscription_fetch_costs_response.rbi +2 -65
  76. data/rbi/orb/models/subscription_price_intervals_params.rbi +72 -26
  77. data/rbi/orb/models/subscription_price_intervals_response.rbi +6 -89
  78. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +6 -89
  79. data/rbi/orb/models/subscription_trigger_phase_response.rbi +6 -89
  80. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +6 -89
  81. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +6 -89
  82. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +6 -89
  83. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +6 -89
  84. data/rbi/orb/models/subscription_update_trial_params.rbi +3 -14
  85. data/rbi/orb/models/subscription_update_trial_response.rbi +6 -89
  86. data/rbi/orb/resources/customers/credits/ledger.rbi +4 -36
  87. data/rbi/orb/resources/prices/external_price_id.rbi +2 -64
  88. data/rbi/orb/resources/prices.rbi +4 -130
  89. data/rbi/orb/resources/subscriptions.rbi +2 -10
  90. data/sig/orb/internal/type/array_of.rbs +3 -0
  91. data/sig/orb/internal/type/base_model.rbs +2 -0
  92. data/sig/orb/internal/type/boolean.rbs +3 -0
  93. data/sig/orb/internal/type/enum.rbs +2 -0
  94. data/sig/orb/internal/type/file_input.rbs +2 -0
  95. data/sig/orb/internal/type/hash_of.rbs +3 -0
  96. data/sig/orb/internal/type/union.rbs +2 -0
  97. data/sig/orb/internal/type/unknown.rbs +3 -0
  98. data/sig/orb/internal/util.rbs +12 -0
  99. metadata +1 -1
@@ -106,11 +106,7 @@ module Orb
106
106
  sig do
107
107
  returns(
108
108
  T::Array[
109
- T.any(
110
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount,
111
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage,
112
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage
113
- )
109
+ Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants
114
110
  ]
115
111
  )
116
112
  end
@@ -446,11 +442,7 @@ module Orb
446
442
  default_invoice_memo: T.nilable(String),
447
443
  discount_intervals:
448
444
  T::Array[
449
- T.any(
450
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount,
451
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage,
452
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage
453
- )
445
+ Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants
454
446
  ],
455
447
  end_date: T.nilable(Time),
456
448
  fixed_fee_quantity_schedule:
@@ -510,13 +502,7 @@ module Orb
510
502
 
511
503
  sig do
512
504
  returns(
513
- T.any(
514
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount,
515
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount,
516
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
517
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum,
518
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum
519
- )
505
+ Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants
520
506
  )
521
507
  end
522
508
  attr_accessor :adjustment
@@ -566,13 +552,7 @@ module Orb
566
552
  {
567
553
  id: String,
568
554
  adjustment:
569
- T.any(
570
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount,
571
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount,
572
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
573
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum,
574
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum
575
- ),
555
+ Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants,
576
556
  applies_to_price_interval_ids: T::Array[String],
577
557
  end_date: T.nilable(Time),
578
558
  start_date: Time
@@ -1606,40 +1586,7 @@ module Orb
1606
1586
  #
1607
1587
  # For more on the types of prices, see
1608
1588
  # [the core concepts documentation](/core-concepts#plan-and-price)
1609
- sig do
1610
- returns(
1611
- T.any(
1612
- Orb::Price::Unit,
1613
- Orb::Price::Package,
1614
- Orb::Price::Matrix,
1615
- Orb::Price::Tiered,
1616
- Orb::Price::TieredBps,
1617
- Orb::Price::Bps,
1618
- Orb::Price::BulkBps,
1619
- Orb::Price::Bulk,
1620
- Orb::Price::ThresholdTotalAmount,
1621
- Orb::Price::TieredPackage,
1622
- Orb::Price::GroupedTiered,
1623
- Orb::Price::TieredWithMinimum,
1624
- Orb::Price::TieredPackageWithMinimum,
1625
- Orb::Price::PackageWithAllocation,
1626
- Orb::Price::UnitWithPercent,
1627
- Orb::Price::MatrixWithAllocation,
1628
- Orb::Price::TieredWithProration,
1629
- Orb::Price::UnitWithProration,
1630
- Orb::Price::GroupedAllocation,
1631
- Orb::Price::GroupedWithProratedMinimum,
1632
- Orb::Price::GroupedWithMeteredMinimum,
1633
- Orb::Price::MatrixWithDisplayName,
1634
- Orb::Price::BulkWithProration,
1635
- Orb::Price::GroupedTieredPackage,
1636
- Orb::Price::MaxGroupTieredPackage,
1637
- Orb::Price::ScalableMatrixWithUnitPricing,
1638
- Orb::Price::ScalableMatrixWithTieredPricing,
1639
- Orb::Price::CumulativeGroupedBulk
1640
- )
1641
- )
1642
- end
1589
+ sig { returns(Orb::Price::Variants) }
1643
1590
  attr_accessor :price
1644
1591
 
1645
1592
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1759,37 +1706,7 @@ module Orb
1759
1706
  Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition
1760
1707
  ]
1761
1708
  ),
1762
- price:
1763
- T.any(
1764
- Orb::Price::Unit,
1765
- Orb::Price::Package,
1766
- Orb::Price::Matrix,
1767
- Orb::Price::Tiered,
1768
- Orb::Price::TieredBps,
1769
- Orb::Price::Bps,
1770
- Orb::Price::BulkBps,
1771
- Orb::Price::Bulk,
1772
- Orb::Price::ThresholdTotalAmount,
1773
- Orb::Price::TieredPackage,
1774
- Orb::Price::GroupedTiered,
1775
- Orb::Price::TieredWithMinimum,
1776
- Orb::Price::TieredPackageWithMinimum,
1777
- Orb::Price::PackageWithAllocation,
1778
- Orb::Price::UnitWithPercent,
1779
- Orb::Price::MatrixWithAllocation,
1780
- Orb::Price::TieredWithProration,
1781
- Orb::Price::UnitWithProration,
1782
- Orb::Price::GroupedAllocation,
1783
- Orb::Price::GroupedWithProratedMinimum,
1784
- Orb::Price::GroupedWithMeteredMinimum,
1785
- Orb::Price::MatrixWithDisplayName,
1786
- Orb::Price::BulkWithProration,
1787
- Orb::Price::GroupedTieredPackage,
1788
- Orb::Price::MaxGroupTieredPackage,
1789
- Orb::Price::ScalableMatrixWithUnitPricing,
1790
- Orb::Price::ScalableMatrixWithTieredPricing,
1791
- Orb::Price::CumulativeGroupedBulk
1792
- ),
1709
+ price: Orb::Price::Variants,
1793
1710
  start_date: Time,
1794
1711
  usage_customer_ids: T.nilable(T::Array[String])
1795
1712
  }
@@ -106,11 +106,7 @@ module Orb
106
106
  sig do
107
107
  returns(
108
108
  T::Array[
109
- T.any(
110
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount,
111
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage,
112
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage
113
- )
109
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants
114
110
  ]
115
111
  )
116
112
  end
@@ -446,11 +442,7 @@ module Orb
446
442
  default_invoice_memo: T.nilable(String),
447
443
  discount_intervals:
448
444
  T::Array[
449
- T.any(
450
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount,
451
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage,
452
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage
453
- )
445
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants
454
446
  ],
455
447
  end_date: T.nilable(Time),
456
448
  fixed_fee_quantity_schedule:
@@ -510,13 +502,7 @@ module Orb
510
502
 
511
503
  sig do
512
504
  returns(
513
- T.any(
514
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount,
515
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount,
516
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
517
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum,
518
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum
519
- )
505
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants
520
506
  )
521
507
  end
522
508
  attr_accessor :adjustment
@@ -566,13 +552,7 @@ module Orb
566
552
  {
567
553
  id: String,
568
554
  adjustment:
569
- T.any(
570
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount,
571
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount,
572
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
573
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum,
574
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum
575
- ),
555
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants,
576
556
  applies_to_price_interval_ids: T::Array[String],
577
557
  end_date: T.nilable(Time),
578
558
  start_date: Time
@@ -1606,40 +1586,7 @@ module Orb
1606
1586
  #
1607
1587
  # For more on the types of prices, see
1608
1588
  # [the core concepts documentation](/core-concepts#plan-and-price)
1609
- sig do
1610
- returns(
1611
- T.any(
1612
- Orb::Price::Unit,
1613
- Orb::Price::Package,
1614
- Orb::Price::Matrix,
1615
- Orb::Price::Tiered,
1616
- Orb::Price::TieredBps,
1617
- Orb::Price::Bps,
1618
- Orb::Price::BulkBps,
1619
- Orb::Price::Bulk,
1620
- Orb::Price::ThresholdTotalAmount,
1621
- Orb::Price::TieredPackage,
1622
- Orb::Price::GroupedTiered,
1623
- Orb::Price::TieredWithMinimum,
1624
- Orb::Price::TieredPackageWithMinimum,
1625
- Orb::Price::PackageWithAllocation,
1626
- Orb::Price::UnitWithPercent,
1627
- Orb::Price::MatrixWithAllocation,
1628
- Orb::Price::TieredWithProration,
1629
- Orb::Price::UnitWithProration,
1630
- Orb::Price::GroupedAllocation,
1631
- Orb::Price::GroupedWithProratedMinimum,
1632
- Orb::Price::GroupedWithMeteredMinimum,
1633
- Orb::Price::MatrixWithDisplayName,
1634
- Orb::Price::BulkWithProration,
1635
- Orb::Price::GroupedTieredPackage,
1636
- Orb::Price::MaxGroupTieredPackage,
1637
- Orb::Price::ScalableMatrixWithUnitPricing,
1638
- Orb::Price::ScalableMatrixWithTieredPricing,
1639
- Orb::Price::CumulativeGroupedBulk
1640
- )
1641
- )
1642
- end
1589
+ sig { returns(Orb::Price::Variants) }
1643
1590
  attr_accessor :price
1644
1591
 
1645
1592
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1759,37 +1706,7 @@ module Orb
1759
1706
  Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition
1760
1707
  ]
1761
1708
  ),
1762
- price:
1763
- T.any(
1764
- Orb::Price::Unit,
1765
- Orb::Price::Package,
1766
- Orb::Price::Matrix,
1767
- Orb::Price::Tiered,
1768
- Orb::Price::TieredBps,
1769
- Orb::Price::Bps,
1770
- Orb::Price::BulkBps,
1771
- Orb::Price::Bulk,
1772
- Orb::Price::ThresholdTotalAmount,
1773
- Orb::Price::TieredPackage,
1774
- Orb::Price::GroupedTiered,
1775
- Orb::Price::TieredWithMinimum,
1776
- Orb::Price::TieredPackageWithMinimum,
1777
- Orb::Price::PackageWithAllocation,
1778
- Orb::Price::UnitWithPercent,
1779
- Orb::Price::MatrixWithAllocation,
1780
- Orb::Price::TieredWithProration,
1781
- Orb::Price::UnitWithProration,
1782
- Orb::Price::GroupedAllocation,
1783
- Orb::Price::GroupedWithProratedMinimum,
1784
- Orb::Price::GroupedWithMeteredMinimum,
1785
- Orb::Price::MatrixWithDisplayName,
1786
- Orb::Price::BulkWithProration,
1787
- Orb::Price::GroupedTieredPackage,
1788
- Orb::Price::MaxGroupTieredPackage,
1789
- Orb::Price::ScalableMatrixWithUnitPricing,
1790
- Orb::Price::ScalableMatrixWithTieredPricing,
1791
- Orb::Price::CumulativeGroupedBulk
1792
- ),
1709
+ price: Orb::Price::Variants,
1793
1710
  start_date: Time,
1794
1711
  usage_customer_ids: T.nilable(T::Array[String])
1795
1712
  }
@@ -106,11 +106,7 @@ module Orb
106
106
  sig do
107
107
  returns(
108
108
  T::Array[
109
- T.any(
110
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount,
111
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage,
112
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage
113
- )
109
+ Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Variants
114
110
  ]
115
111
  )
116
112
  end
@@ -442,11 +438,7 @@ module Orb
442
438
  default_invoice_memo: T.nilable(String),
443
439
  discount_intervals:
444
440
  T::Array[
445
- T.any(
446
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount,
447
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage,
448
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage
449
- )
441
+ Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Variants
450
442
  ],
451
443
  end_date: T.nilable(Time),
452
444
  fixed_fee_quantity_schedule:
@@ -506,13 +498,7 @@ module Orb
506
498
 
507
499
  sig do
508
500
  returns(
509
- T.any(
510
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount,
511
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount,
512
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
513
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum,
514
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum
515
- )
501
+ Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Variants
516
502
  )
517
503
  end
518
504
  attr_accessor :adjustment
@@ -562,13 +548,7 @@ module Orb
562
548
  {
563
549
  id: String,
564
550
  adjustment:
565
- T.any(
566
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount,
567
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount,
568
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
569
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum,
570
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum
571
- ),
551
+ Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Variants,
572
552
  applies_to_price_interval_ids: T::Array[String],
573
553
  end_date: T.nilable(Time),
574
554
  start_date: Time
@@ -1602,40 +1582,7 @@ module Orb
1602
1582
  #
1603
1583
  # For more on the types of prices, see
1604
1584
  # [the core concepts documentation](/core-concepts#plan-and-price)
1605
- sig do
1606
- returns(
1607
- T.any(
1608
- Orb::Price::Unit,
1609
- Orb::Price::Package,
1610
- Orb::Price::Matrix,
1611
- Orb::Price::Tiered,
1612
- Orb::Price::TieredBps,
1613
- Orb::Price::Bps,
1614
- Orb::Price::BulkBps,
1615
- Orb::Price::Bulk,
1616
- Orb::Price::ThresholdTotalAmount,
1617
- Orb::Price::TieredPackage,
1618
- Orb::Price::GroupedTiered,
1619
- Orb::Price::TieredWithMinimum,
1620
- Orb::Price::TieredPackageWithMinimum,
1621
- Orb::Price::PackageWithAllocation,
1622
- Orb::Price::UnitWithPercent,
1623
- Orb::Price::MatrixWithAllocation,
1624
- Orb::Price::TieredWithProration,
1625
- Orb::Price::UnitWithProration,
1626
- Orb::Price::GroupedAllocation,
1627
- Orb::Price::GroupedWithProratedMinimum,
1628
- Orb::Price::GroupedWithMeteredMinimum,
1629
- Orb::Price::MatrixWithDisplayName,
1630
- Orb::Price::BulkWithProration,
1631
- Orb::Price::GroupedTieredPackage,
1632
- Orb::Price::MaxGroupTieredPackage,
1633
- Orb::Price::ScalableMatrixWithUnitPricing,
1634
- Orb::Price::ScalableMatrixWithTieredPricing,
1635
- Orb::Price::CumulativeGroupedBulk
1636
- )
1637
- )
1638
- end
1585
+ sig { returns(Orb::Price::Variants) }
1639
1586
  attr_accessor :price
1640
1587
 
1641
1588
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1755,37 +1702,7 @@ module Orb
1755
1702
  Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition
1756
1703
  ]
1757
1704
  ),
1758
- price:
1759
- T.any(
1760
- Orb::Price::Unit,
1761
- Orb::Price::Package,
1762
- Orb::Price::Matrix,
1763
- Orb::Price::Tiered,
1764
- Orb::Price::TieredBps,
1765
- Orb::Price::Bps,
1766
- Orb::Price::BulkBps,
1767
- Orb::Price::Bulk,
1768
- Orb::Price::ThresholdTotalAmount,
1769
- Orb::Price::TieredPackage,
1770
- Orb::Price::GroupedTiered,
1771
- Orb::Price::TieredWithMinimum,
1772
- Orb::Price::TieredPackageWithMinimum,
1773
- Orb::Price::PackageWithAllocation,
1774
- Orb::Price::UnitWithPercent,
1775
- Orb::Price::MatrixWithAllocation,
1776
- Orb::Price::TieredWithProration,
1777
- Orb::Price::UnitWithProration,
1778
- Orb::Price::GroupedAllocation,
1779
- Orb::Price::GroupedWithProratedMinimum,
1780
- Orb::Price::GroupedWithMeteredMinimum,
1781
- Orb::Price::MatrixWithDisplayName,
1782
- Orb::Price::BulkWithProration,
1783
- Orb::Price::GroupedTieredPackage,
1784
- Orb::Price::MaxGroupTieredPackage,
1785
- Orb::Price::ScalableMatrixWithUnitPricing,
1786
- Orb::Price::ScalableMatrixWithTieredPricing,
1787
- Orb::Price::CumulativeGroupedBulk
1788
- ),
1705
+ price: Orb::Price::Variants,
1789
1706
  start_date: Time,
1790
1707
  usage_customer_ids: T.nilable(T::Array[String])
1791
1708
  }
@@ -106,11 +106,7 @@ module Orb
106
106
  sig do
107
107
  returns(
108
108
  T::Array[
109
- T.any(
110
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount,
111
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage,
112
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage
113
- )
109
+ Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Variants
114
110
  ]
115
111
  )
116
112
  end
@@ -448,11 +444,7 @@ module Orb
448
444
  default_invoice_memo: T.nilable(String),
449
445
  discount_intervals:
450
446
  T::Array[
451
- T.any(
452
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount,
453
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage,
454
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage
455
- )
447
+ Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Variants
456
448
  ],
457
449
  end_date: T.nilable(Time),
458
450
  fixed_fee_quantity_schedule:
@@ -512,13 +504,7 @@ module Orb
512
504
 
513
505
  sig do
514
506
  returns(
515
- T.any(
516
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount,
517
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount,
518
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
519
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum,
520
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum
521
- )
507
+ Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Variants
522
508
  )
523
509
  end
524
510
  attr_accessor :adjustment
@@ -568,13 +554,7 @@ module Orb
568
554
  {
569
555
  id: String,
570
556
  adjustment:
571
- T.any(
572
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount,
573
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount,
574
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
575
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum,
576
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum
577
- ),
557
+ Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Variants,
578
558
  applies_to_price_interval_ids: T::Array[String],
579
559
  end_date: T.nilable(Time),
580
560
  start_date: Time
@@ -1608,40 +1588,7 @@ module Orb
1608
1588
  #
1609
1589
  # For more on the types of prices, see
1610
1590
  # [the core concepts documentation](/core-concepts#plan-and-price)
1611
- sig do
1612
- returns(
1613
- T.any(
1614
- Orb::Price::Unit,
1615
- Orb::Price::Package,
1616
- Orb::Price::Matrix,
1617
- Orb::Price::Tiered,
1618
- Orb::Price::TieredBps,
1619
- Orb::Price::Bps,
1620
- Orb::Price::BulkBps,
1621
- Orb::Price::Bulk,
1622
- Orb::Price::ThresholdTotalAmount,
1623
- Orb::Price::TieredPackage,
1624
- Orb::Price::GroupedTiered,
1625
- Orb::Price::TieredWithMinimum,
1626
- Orb::Price::TieredPackageWithMinimum,
1627
- Orb::Price::PackageWithAllocation,
1628
- Orb::Price::UnitWithPercent,
1629
- Orb::Price::MatrixWithAllocation,
1630
- Orb::Price::TieredWithProration,
1631
- Orb::Price::UnitWithProration,
1632
- Orb::Price::GroupedAllocation,
1633
- Orb::Price::GroupedWithProratedMinimum,
1634
- Orb::Price::GroupedWithMeteredMinimum,
1635
- Orb::Price::MatrixWithDisplayName,
1636
- Orb::Price::BulkWithProration,
1637
- Orb::Price::GroupedTieredPackage,
1638
- Orb::Price::MaxGroupTieredPackage,
1639
- Orb::Price::ScalableMatrixWithUnitPricing,
1640
- Orb::Price::ScalableMatrixWithTieredPricing,
1641
- Orb::Price::CumulativeGroupedBulk
1642
- )
1643
- )
1644
- end
1591
+ sig { returns(Orb::Price::Variants) }
1645
1592
  attr_accessor :price
1646
1593
 
1647
1594
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1761,37 +1708,7 @@ module Orb
1761
1708
  Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition
1762
1709
  ]
1763
1710
  ),
1764
- price:
1765
- T.any(
1766
- Orb::Price::Unit,
1767
- Orb::Price::Package,
1768
- Orb::Price::Matrix,
1769
- Orb::Price::Tiered,
1770
- Orb::Price::TieredBps,
1771
- Orb::Price::Bps,
1772
- Orb::Price::BulkBps,
1773
- Orb::Price::Bulk,
1774
- Orb::Price::ThresholdTotalAmount,
1775
- Orb::Price::TieredPackage,
1776
- Orb::Price::GroupedTiered,
1777
- Orb::Price::TieredWithMinimum,
1778
- Orb::Price::TieredPackageWithMinimum,
1779
- Orb::Price::PackageWithAllocation,
1780
- Orb::Price::UnitWithPercent,
1781
- Orb::Price::MatrixWithAllocation,
1782
- Orb::Price::TieredWithProration,
1783
- Orb::Price::UnitWithProration,
1784
- Orb::Price::GroupedAllocation,
1785
- Orb::Price::GroupedWithProratedMinimum,
1786
- Orb::Price::GroupedWithMeteredMinimum,
1787
- Orb::Price::MatrixWithDisplayName,
1788
- Orb::Price::BulkWithProration,
1789
- Orb::Price::GroupedTieredPackage,
1790
- Orb::Price::MaxGroupTieredPackage,
1791
- Orb::Price::ScalableMatrixWithUnitPricing,
1792
- Orb::Price::ScalableMatrixWithTieredPricing,
1793
- Orb::Price::CumulativeGroupedBulk
1794
- ),
1711
+ price: Orb::Price::Variants,
1795
1712
  start_date: Time,
1796
1713
  usage_customer_ids: T.nilable(T::Array[String])
1797
1714
  }
@@ -106,11 +106,7 @@ module Orb
106
106
  sig do
107
107
  returns(
108
108
  T::Array[
109
- T.any(
110
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
111
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
112
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage
113
- )
109
+ Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants
114
110
  ]
115
111
  )
116
112
  end
@@ -448,11 +444,7 @@ module Orb
448
444
  default_invoice_memo: T.nilable(String),
449
445
  discount_intervals:
450
446
  T::Array[
451
- T.any(
452
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
453
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
454
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage
455
- )
447
+ Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants
456
448
  ],
457
449
  end_date: T.nilable(Time),
458
450
  fixed_fee_quantity_schedule:
@@ -512,13 +504,7 @@ module Orb
512
504
 
513
505
  sig do
514
506
  returns(
515
- T.any(
516
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
517
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
518
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
519
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
520
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum
521
- )
507
+ Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants
522
508
  )
523
509
  end
524
510
  attr_accessor :adjustment
@@ -568,13 +554,7 @@ module Orb
568
554
  {
569
555
  id: String,
570
556
  adjustment:
571
- T.any(
572
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
573
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
574
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
575
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
576
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum
577
- ),
557
+ Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants,
578
558
  applies_to_price_interval_ids: T::Array[String],
579
559
  end_date: T.nilable(Time),
580
560
  start_date: Time
@@ -1608,40 +1588,7 @@ module Orb
1608
1588
  #
1609
1589
  # For more on the types of prices, see
1610
1590
  # [the core concepts documentation](/core-concepts#plan-and-price)
1611
- sig do
1612
- returns(
1613
- T.any(
1614
- Orb::Price::Unit,
1615
- Orb::Price::Package,
1616
- Orb::Price::Matrix,
1617
- Orb::Price::Tiered,
1618
- Orb::Price::TieredBps,
1619
- Orb::Price::Bps,
1620
- Orb::Price::BulkBps,
1621
- Orb::Price::Bulk,
1622
- Orb::Price::ThresholdTotalAmount,
1623
- Orb::Price::TieredPackage,
1624
- Orb::Price::GroupedTiered,
1625
- Orb::Price::TieredWithMinimum,
1626
- Orb::Price::TieredPackageWithMinimum,
1627
- Orb::Price::PackageWithAllocation,
1628
- Orb::Price::UnitWithPercent,
1629
- Orb::Price::MatrixWithAllocation,
1630
- Orb::Price::TieredWithProration,
1631
- Orb::Price::UnitWithProration,
1632
- Orb::Price::GroupedAllocation,
1633
- Orb::Price::GroupedWithProratedMinimum,
1634
- Orb::Price::GroupedWithMeteredMinimum,
1635
- Orb::Price::MatrixWithDisplayName,
1636
- Orb::Price::BulkWithProration,
1637
- Orb::Price::GroupedTieredPackage,
1638
- Orb::Price::MaxGroupTieredPackage,
1639
- Orb::Price::ScalableMatrixWithUnitPricing,
1640
- Orb::Price::ScalableMatrixWithTieredPricing,
1641
- Orb::Price::CumulativeGroupedBulk
1642
- )
1643
- )
1644
- end
1591
+ sig { returns(Orb::Price::Variants) }
1645
1592
  attr_accessor :price
1646
1593
 
1647
1594
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1761,37 +1708,7 @@ module Orb
1761
1708
  Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition
1762
1709
  ]
1763
1710
  ),
1764
- price:
1765
- T.any(
1766
- Orb::Price::Unit,
1767
- Orb::Price::Package,
1768
- Orb::Price::Matrix,
1769
- Orb::Price::Tiered,
1770
- Orb::Price::TieredBps,
1771
- Orb::Price::Bps,
1772
- Orb::Price::BulkBps,
1773
- Orb::Price::Bulk,
1774
- Orb::Price::ThresholdTotalAmount,
1775
- Orb::Price::TieredPackage,
1776
- Orb::Price::GroupedTiered,
1777
- Orb::Price::TieredWithMinimum,
1778
- Orb::Price::TieredPackageWithMinimum,
1779
- Orb::Price::PackageWithAllocation,
1780
- Orb::Price::UnitWithPercent,
1781
- Orb::Price::MatrixWithAllocation,
1782
- Orb::Price::TieredWithProration,
1783
- Orb::Price::UnitWithProration,
1784
- Orb::Price::GroupedAllocation,
1785
- Orb::Price::GroupedWithProratedMinimum,
1786
- Orb::Price::GroupedWithMeteredMinimum,
1787
- Orb::Price::MatrixWithDisplayName,
1788
- Orb::Price::BulkWithProration,
1789
- Orb::Price::GroupedTieredPackage,
1790
- Orb::Price::MaxGroupTieredPackage,
1791
- Orb::Price::ScalableMatrixWithUnitPricing,
1792
- Orb::Price::ScalableMatrixWithTieredPricing,
1793
- Orb::Price::CumulativeGroupedBulk
1794
- ),
1711
+ price: Orb::Price::Variants,
1795
1712
  start_date: Time,
1796
1713
  usage_customer_ids: T.nilable(T::Array[String])
1797
1714
  }