orb-billing 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/orb/models/alert.rb +4 -2
- data/lib/orb/models/alert_update_params.rb +5 -3
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +530 -6
- data/lib/orb/models/beta_create_plan_version_params.rb +526 -6
- data/lib/orb/models/changed_subscription_resources.rb +5 -5
- data/lib/orb/models/invoice.rb +5 -5
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +5 -5
- data/lib/orb/models/invoice_issue_summary_response.rb +3 -3
- data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
- data/lib/orb/models/invoice_list_summary_response.rb +3 -3
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +2 -2
- data/lib/orb/models/plan_create_params.rb +259 -3
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/price.rb +433 -1
- data/lib/orb/models/price_create_params.rb +244 -3
- data/lib/orb/models/price_evaluate_multiple_params.rb +255 -3
- data/lib/orb/models/price_evaluate_preview_events_params.rb +255 -3
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription_create_params.rb +521 -6
- data/lib/orb/models/subscription_price_intervals_params.rb +251 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +530 -6
- data/lib/orb/resources/alerts.rb +5 -2
- data/lib/orb/resources/customers/costs.rb +20 -0
- data/lib/orb/resources/licenses/external_licenses.rb +7 -0
- data/lib/orb/resources/licenses/usage.rb +3 -0
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/resources/subscriptions.rb +39 -6
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/alert.rbi +6 -2
- data/rbi/orb/models/alert_update_params.rbi +8 -4
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2789 -1903
- data/rbi/orb/models/beta_create_plan_version_params.rbi +2788 -1902
- data/rbi/orb/models/changed_subscription_resources.rbi +7 -6
- data/rbi/orb/models/invoice.rbi +7 -6
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +7 -6
- data/rbi/orb/models/invoice_issue_summary_response.rbi +6 -6
- data/rbi/orb/models/invoice_line_item_create_response.rbi +1 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +6 -6
- data/rbi/orb/models/per_price_cost.rbi +1 -0
- data/rbi/orb/models/plan.rbi +1 -0
- data/rbi/orb/models/plan_create_params.rbi +443 -0
- data/rbi/orb/models/plan_version.rbi +1 -0
- data/rbi/orb/models/price.rbi +766 -0
- data/rbi/orb/models/price_create_params.rbi +431 -0
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +431 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +431 -0
- data/rbi/orb/models/price_interval.rbi +1 -0
- data/rbi/orb/models/subscription_create_params.rbi +2489 -1603
- data/rbi/orb/models/subscription_price_intervals_params.rbi +431 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2483 -1597
- data/rbi/orb/resources/alerts.rbi +8 -3
- data/rbi/orb/resources/customers/costs.rbi +20 -0
- data/rbi/orb/resources/licenses/external_licenses.rbi +7 -0
- data/rbi/orb/resources/licenses/usage.rbi +3 -0
- data/rbi/orb/resources/prices.rbi +1 -0
- data/rbi/orb/resources/subscriptions.rbi +39 -6
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +366 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +366 -0
- data/sig/orb/models/plan_create_params.rbs +183 -0
- data/sig/orb/models/price.rbs +327 -0
- data/sig/orb/models/price_create_params.rbs +173 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +178 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +178 -0
- data/sig/orb/models/subscription_create_params.rbs +366 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +178 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +366 -0
- metadata +2 -2
|
@@ -461,6 +461,7 @@ module Orb
|
|
|
461
461
|
| Orb::NewSubscriptionTieredPackagePrice
|
|
462
462
|
| Orb::NewSubscriptionTieredWithMinimumPrice
|
|
463
463
|
| Orb::NewSubscriptionGroupedTieredPrice
|
|
464
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix
|
|
464
465
|
| Orb::NewSubscriptionTieredPackageWithMinimumPrice
|
|
465
466
|
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
466
467
|
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
@@ -672,6 +673,188 @@ module Orb
|
|
|
672
673
|
end
|
|
673
674
|
end
|
|
674
675
|
|
|
676
|
+
type grouped_tiered_matrix =
|
|
677
|
+
{
|
|
678
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::cadence,
|
|
679
|
+
grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
|
|
680
|
+
item_id: String,
|
|
681
|
+
model_type: :grouped_tiered_matrix,
|
|
682
|
+
name: String,
|
|
683
|
+
billable_metric_id: String?,
|
|
684
|
+
billed_in_advance: bool?,
|
|
685
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
686
|
+
conversion_rate: Float?,
|
|
687
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
688
|
+
currency: String?,
|
|
689
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
690
|
+
external_price_id: String?,
|
|
691
|
+
fixed_price_quantity: Float?,
|
|
692
|
+
invoice_grouping_key: String?,
|
|
693
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
694
|
+
license_type_id: String?,
|
|
695
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
696
|
+
reference_id: String?
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
class GroupedTieredMatrix < Orb::Internal::Type::BaseModel
|
|
700
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::cadence
|
|
701
|
+
|
|
702
|
+
attr_accessor grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig
|
|
703
|
+
|
|
704
|
+
attr_accessor item_id: String
|
|
705
|
+
|
|
706
|
+
attr_accessor model_type: :grouped_tiered_matrix
|
|
707
|
+
|
|
708
|
+
attr_accessor name: String
|
|
709
|
+
|
|
710
|
+
attr_accessor billable_metric_id: String?
|
|
711
|
+
|
|
712
|
+
attr_accessor billed_in_advance: bool?
|
|
713
|
+
|
|
714
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
715
|
+
|
|
716
|
+
attr_accessor conversion_rate: Float?
|
|
717
|
+
|
|
718
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
719
|
+
|
|
720
|
+
attr_accessor currency: String?
|
|
721
|
+
|
|
722
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
723
|
+
|
|
724
|
+
attr_accessor external_price_id: String?
|
|
725
|
+
|
|
726
|
+
attr_accessor fixed_price_quantity: Float?
|
|
727
|
+
|
|
728
|
+
attr_accessor invoice_grouping_key: String?
|
|
729
|
+
|
|
730
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
731
|
+
|
|
732
|
+
attr_accessor license_type_id: String?
|
|
733
|
+
|
|
734
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
735
|
+
|
|
736
|
+
attr_accessor reference_id: String?
|
|
737
|
+
|
|
738
|
+
def initialize: (
|
|
739
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::cadence,
|
|
740
|
+
grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
|
|
741
|
+
item_id: String,
|
|
742
|
+
name: String,
|
|
743
|
+
?billable_metric_id: String?,
|
|
744
|
+
?billed_in_advance: bool?,
|
|
745
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
746
|
+
?conversion_rate: Float?,
|
|
747
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
748
|
+
?currency: String?,
|
|
749
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
750
|
+
?external_price_id: String?,
|
|
751
|
+
?fixed_price_quantity: Float?,
|
|
752
|
+
?invoice_grouping_key: String?,
|
|
753
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
754
|
+
?license_type_id: String?,
|
|
755
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
756
|
+
?reference_id: String?,
|
|
757
|
+
?model_type: :grouped_tiered_matrix
|
|
758
|
+
) -> void
|
|
759
|
+
|
|
760
|
+
def to_hash: -> {
|
|
761
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::cadence,
|
|
762
|
+
grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
|
|
763
|
+
item_id: String,
|
|
764
|
+
model_type: :grouped_tiered_matrix,
|
|
765
|
+
name: String,
|
|
766
|
+
billable_metric_id: String?,
|
|
767
|
+
billed_in_advance: bool?,
|
|
768
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
769
|
+
conversion_rate: Float?,
|
|
770
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
771
|
+
currency: String?,
|
|
772
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
773
|
+
external_price_id: String?,
|
|
774
|
+
fixed_price_quantity: Float?,
|
|
775
|
+
invoice_grouping_key: String?,
|
|
776
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
777
|
+
license_type_id: String?,
|
|
778
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
779
|
+
reference_id: String?
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
type cadence =
|
|
783
|
+
:annual
|
|
784
|
+
| :semi_annual
|
|
785
|
+
| :monthly
|
|
786
|
+
| :quarterly
|
|
787
|
+
| :one_time
|
|
788
|
+
| :custom
|
|
789
|
+
|
|
790
|
+
module Cadence
|
|
791
|
+
extend Orb::Internal::Type::Enum
|
|
792
|
+
|
|
793
|
+
ANNUAL: :annual
|
|
794
|
+
SEMI_ANNUAL: :semi_annual
|
|
795
|
+
MONTHLY: :monthly
|
|
796
|
+
QUARTERLY: :quarterly
|
|
797
|
+
ONE_TIME: :one_time
|
|
798
|
+
CUSTOM: :custom
|
|
799
|
+
|
|
800
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::cadence]
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
type grouped_tiered_matrix_config =
|
|
804
|
+
{
|
|
805
|
+
default_unit_amount: String,
|
|
806
|
+
dimension: String,
|
|
807
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
|
|
811
|
+
attr_accessor default_unit_amount: String
|
|
812
|
+
|
|
813
|
+
attr_accessor dimension: String
|
|
814
|
+
|
|
815
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
816
|
+
|
|
817
|
+
def initialize: (
|
|
818
|
+
default_unit_amount: String,
|
|
819
|
+
dimension: String,
|
|
820
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
821
|
+
) -> void
|
|
822
|
+
|
|
823
|
+
def to_hash: -> {
|
|
824
|
+
default_unit_amount: String,
|
|
825
|
+
dimension: String,
|
|
826
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
type tier =
|
|
830
|
+
{
|
|
831
|
+
dimension_value: String,
|
|
832
|
+
tier_lower_bound: String,
|
|
833
|
+
unit_amount: String
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
837
|
+
attr_accessor dimension_value: String
|
|
838
|
+
|
|
839
|
+
attr_accessor tier_lower_bound: String
|
|
840
|
+
|
|
841
|
+
attr_accessor unit_amount: String
|
|
842
|
+
|
|
843
|
+
def initialize: (
|
|
844
|
+
dimension_value: String,
|
|
845
|
+
tier_lower_bound: String,
|
|
846
|
+
unit_amount: String
|
|
847
|
+
) -> void
|
|
848
|
+
|
|
849
|
+
def to_hash: -> {
|
|
850
|
+
dimension_value: String,
|
|
851
|
+
tier_lower_bound: String,
|
|
852
|
+
unit_amount: String
|
|
853
|
+
}
|
|
854
|
+
end
|
|
855
|
+
end
|
|
856
|
+
end
|
|
857
|
+
|
|
675
858
|
type matrix_with_threshold_discounts =
|
|
676
859
|
{
|
|
677
860
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
@@ -2381,6 +2564,7 @@ module Orb
|
|
|
2381
2564
|
| Orb::NewSubscriptionTieredPackagePrice
|
|
2382
2565
|
| Orb::NewSubscriptionTieredWithMinimumPrice
|
|
2383
2566
|
| Orb::NewSubscriptionGroupedTieredPrice
|
|
2567
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix
|
|
2384
2568
|
| Orb::NewSubscriptionTieredPackageWithMinimumPrice
|
|
2385
2569
|
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
2386
2570
|
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
@@ -2592,6 +2776,188 @@ module Orb
|
|
|
2592
2776
|
end
|
|
2593
2777
|
end
|
|
2594
2778
|
|
|
2779
|
+
type grouped_tiered_matrix =
|
|
2780
|
+
{
|
|
2781
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::cadence,
|
|
2782
|
+
grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
|
|
2783
|
+
item_id: String,
|
|
2784
|
+
model_type: :grouped_tiered_matrix,
|
|
2785
|
+
name: String,
|
|
2786
|
+
billable_metric_id: String?,
|
|
2787
|
+
billed_in_advance: bool?,
|
|
2788
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2789
|
+
conversion_rate: Float?,
|
|
2790
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2791
|
+
currency: String?,
|
|
2792
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2793
|
+
external_price_id: String?,
|
|
2794
|
+
fixed_price_quantity: Float?,
|
|
2795
|
+
invoice_grouping_key: String?,
|
|
2796
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2797
|
+
license_type_id: String?,
|
|
2798
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2799
|
+
reference_id: String?
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
class GroupedTieredMatrix < Orb::Internal::Type::BaseModel
|
|
2803
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::cadence
|
|
2804
|
+
|
|
2805
|
+
attr_accessor grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig
|
|
2806
|
+
|
|
2807
|
+
attr_accessor item_id: String
|
|
2808
|
+
|
|
2809
|
+
attr_accessor model_type: :grouped_tiered_matrix
|
|
2810
|
+
|
|
2811
|
+
attr_accessor name: String
|
|
2812
|
+
|
|
2813
|
+
attr_accessor billable_metric_id: String?
|
|
2814
|
+
|
|
2815
|
+
attr_accessor billed_in_advance: bool?
|
|
2816
|
+
|
|
2817
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2818
|
+
|
|
2819
|
+
attr_accessor conversion_rate: Float?
|
|
2820
|
+
|
|
2821
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2822
|
+
|
|
2823
|
+
attr_accessor currency: String?
|
|
2824
|
+
|
|
2825
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2826
|
+
|
|
2827
|
+
attr_accessor external_price_id: String?
|
|
2828
|
+
|
|
2829
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2830
|
+
|
|
2831
|
+
attr_accessor invoice_grouping_key: String?
|
|
2832
|
+
|
|
2833
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2834
|
+
|
|
2835
|
+
attr_accessor license_type_id: String?
|
|
2836
|
+
|
|
2837
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2838
|
+
|
|
2839
|
+
attr_accessor reference_id: String?
|
|
2840
|
+
|
|
2841
|
+
def initialize: (
|
|
2842
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::cadence,
|
|
2843
|
+
grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
|
|
2844
|
+
item_id: String,
|
|
2845
|
+
name: String,
|
|
2846
|
+
?billable_metric_id: String?,
|
|
2847
|
+
?billed_in_advance: bool?,
|
|
2848
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2849
|
+
?conversion_rate: Float?,
|
|
2850
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2851
|
+
?currency: String?,
|
|
2852
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2853
|
+
?external_price_id: String?,
|
|
2854
|
+
?fixed_price_quantity: Float?,
|
|
2855
|
+
?invoice_grouping_key: String?,
|
|
2856
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2857
|
+
?license_type_id: String?,
|
|
2858
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2859
|
+
?reference_id: String?,
|
|
2860
|
+
?model_type: :grouped_tiered_matrix
|
|
2861
|
+
) -> void
|
|
2862
|
+
|
|
2863
|
+
def to_hash: -> {
|
|
2864
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::cadence,
|
|
2865
|
+
grouped_tiered_matrix_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
|
|
2866
|
+
item_id: String,
|
|
2867
|
+
model_type: :grouped_tiered_matrix,
|
|
2868
|
+
name: String,
|
|
2869
|
+
billable_metric_id: String?,
|
|
2870
|
+
billed_in_advance: bool?,
|
|
2871
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2872
|
+
conversion_rate: Float?,
|
|
2873
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2874
|
+
currency: String?,
|
|
2875
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2876
|
+
external_price_id: String?,
|
|
2877
|
+
fixed_price_quantity: Float?,
|
|
2878
|
+
invoice_grouping_key: String?,
|
|
2879
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2880
|
+
license_type_id: String?,
|
|
2881
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2882
|
+
reference_id: String?
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
type cadence =
|
|
2886
|
+
:annual
|
|
2887
|
+
| :semi_annual
|
|
2888
|
+
| :monthly
|
|
2889
|
+
| :quarterly
|
|
2890
|
+
| :one_time
|
|
2891
|
+
| :custom
|
|
2892
|
+
|
|
2893
|
+
module Cadence
|
|
2894
|
+
extend Orb::Internal::Type::Enum
|
|
2895
|
+
|
|
2896
|
+
ANNUAL: :annual
|
|
2897
|
+
SEMI_ANNUAL: :semi_annual
|
|
2898
|
+
MONTHLY: :monthly
|
|
2899
|
+
QUARTERLY: :quarterly
|
|
2900
|
+
ONE_TIME: :one_time
|
|
2901
|
+
CUSTOM: :custom
|
|
2902
|
+
|
|
2903
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::cadence]
|
|
2904
|
+
end
|
|
2905
|
+
|
|
2906
|
+
type grouped_tiered_matrix_config =
|
|
2907
|
+
{
|
|
2908
|
+
default_unit_amount: String,
|
|
2909
|
+
dimension: String,
|
|
2910
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
|
|
2914
|
+
attr_accessor default_unit_amount: String
|
|
2915
|
+
|
|
2916
|
+
attr_accessor dimension: String
|
|
2917
|
+
|
|
2918
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
2919
|
+
|
|
2920
|
+
def initialize: (
|
|
2921
|
+
default_unit_amount: String,
|
|
2922
|
+
dimension: String,
|
|
2923
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
2924
|
+
) -> void
|
|
2925
|
+
|
|
2926
|
+
def to_hash: -> {
|
|
2927
|
+
default_unit_amount: String,
|
|
2928
|
+
dimension: String,
|
|
2929
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier]
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
type tier =
|
|
2933
|
+
{
|
|
2934
|
+
dimension_value: String,
|
|
2935
|
+
tier_lower_bound: String,
|
|
2936
|
+
unit_amount: String
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2940
|
+
attr_accessor dimension_value: String
|
|
2941
|
+
|
|
2942
|
+
attr_accessor tier_lower_bound: String
|
|
2943
|
+
|
|
2944
|
+
attr_accessor unit_amount: String
|
|
2945
|
+
|
|
2946
|
+
def initialize: (
|
|
2947
|
+
dimension_value: String,
|
|
2948
|
+
tier_lower_bound: String,
|
|
2949
|
+
unit_amount: String
|
|
2950
|
+
) -> void
|
|
2951
|
+
|
|
2952
|
+
def to_hash: -> {
|
|
2953
|
+
dimension_value: String,
|
|
2954
|
+
tier_lower_bound: String,
|
|
2955
|
+
unit_amount: String
|
|
2956
|
+
}
|
|
2957
|
+
end
|
|
2958
|
+
end
|
|
2959
|
+
end
|
|
2960
|
+
|
|
2595
2961
|
type matrix_with_threshold_discounts =
|
|
2596
2962
|
{
|
|
2597
2963
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orb-billing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -1407,7 +1407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1407
1407
|
- !ruby/object:Gem::Version
|
|
1408
1408
|
version: '0'
|
|
1409
1409
|
requirements: []
|
|
1410
|
-
rubygems_version: 4.0.
|
|
1410
|
+
rubygems_version: 4.0.18
|
|
1411
1411
|
specification_version: 4
|
|
1412
1412
|
summary: Ruby library to access the Orb API
|
|
1413
1413
|
test_files: []
|