orb-billing 1.0.1 → 1.2.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 +35 -0
- data/README.md +1 -1
- data/lib/orb/errors.rb +22 -0
- data/lib/orb/internal/type/array_of.rb +6 -1
- data/lib/orb/internal/type/base_model.rb +79 -25
- data/lib/orb/internal/type/boolean.rb +7 -1
- data/lib/orb/internal/type/converter.rb +42 -34
- data/lib/orb/internal/type/enum.rb +10 -2
- data/lib/orb/internal/type/file_input.rb +6 -1
- data/lib/orb/internal/type/hash_of.rb +6 -1
- data/lib/orb/internal/type/union.rb +12 -7
- data/lib/orb/internal/type/unknown.rb +7 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +4 -4
- data/lib/orb/models/invoice.rb +4 -1
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +4 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +4 -1
- data/lib/orb/models/monetary_amount_discount_adjustment.rb +10 -1
- data/lib/orb/models/monetary_maximum_adjustment.rb +10 -1
- data/lib/orb/models/monetary_minimum_adjustment.rb +10 -1
- data/lib/orb/models/monetary_percentage_discount_adjustment.rb +10 -1
- data/lib/orb/models/monetary_usage_discount_adjustment.rb +10 -1
- data/lib/orb/models/new_plan_bps_price.rb +10 -1
- data/lib/orb/models/new_plan_bulk_bps_price.rb +10 -1
- data/lib/orb/models/new_plan_bulk_price.rb +10 -1
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +10 -1
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +10 -1
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +10 -1
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +10 -1
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +10 -1
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +10 -1
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +10 -1
- data/lib/orb/models/new_plan_matrix_price.rb +10 -1
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +10 -1
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +10 -1
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +10 -1
- data/lib/orb/models/new_plan_package_price.rb +10 -1
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +10 -1
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +10 -1
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +10 -1
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +10 -1
- data/lib/orb/models/new_plan_tier_with_proration_price.rb +10 -1
- data/lib/orb/models/new_plan_tiered_bps_price.rb +10 -1
- data/lib/orb/models/new_plan_tiered_package_price.rb +10 -1
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +10 -1
- data/lib/orb/models/new_plan_tiered_price.rb +10 -1
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +10 -1
- data/lib/orb/models/new_plan_unit_price.rb +10 -1
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +10 -1
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +10 -1
- data/lib/orb/models/plan_create_params.rb +185 -37
- data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +10 -1
- data/lib/orb/models/plan_phase_maximum_adjustment.rb +10 -1
- data/lib/orb/models/plan_phase_minimum_adjustment.rb +10 -1
- data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +10 -1
- data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +10 -1
- data/lib/orb/models/price.rb +280 -28
- data/lib/orb/resources/customers/credits/ledger.rb +6 -6
- data/lib/orb/resources/plans.rb +6 -2
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/errors.rbi +16 -0
- data/rbi/orb/internal/type/boolean.rbi +2 -0
- data/rbi/orb/internal/type/converter.rbi +15 -15
- data/rbi/orb/internal/type/union.rbi +5 -0
- data/rbi/orb/internal/type/unknown.rbi +2 -0
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +3 -3
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +3 -3
- data/rbi/orb/models/invoice.rbi +2 -0
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +2 -0
- data/rbi/orb/models/invoice_line_item_create_response.rbi +2 -0
- data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +13 -3
- data/rbi/orb/models/monetary_maximum_adjustment.rbi +13 -3
- data/rbi/orb/models/monetary_minimum_adjustment.rbi +13 -3
- data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +13 -3
- data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +10 -0
- data/rbi/orb/models/new_plan_bps_price.rbi +13 -3
- data/rbi/orb/models/new_plan_bulk_bps_price.rbi +13 -3
- data/rbi/orb/models/new_plan_bulk_price.rbi +13 -3
- data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +13 -3
- data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +13 -3
- data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +13 -3
- data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +13 -3
- data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +13 -3
- data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +13 -3
- data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +13 -3
- data/rbi/orb/models/new_plan_matrix_price.rbi +13 -3
- data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +13 -3
- data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +13 -3
- data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +13 -3
- data/rbi/orb/models/new_plan_package_price.rbi +13 -3
- data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +13 -3
- data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +13 -3
- data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +13 -3
- data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +13 -3
- data/rbi/orb/models/new_plan_tier_with_proration_price.rbi +13 -3
- data/rbi/orb/models/new_plan_tiered_bps_price.rbi +13 -3
- data/rbi/orb/models/new_plan_tiered_package_price.rbi +13 -3
- data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +13 -3
- data/rbi/orb/models/new_plan_tiered_price.rbi +13 -3
- data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +13 -3
- data/rbi/orb/models/new_plan_unit_price.rbi +13 -3
- data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +13 -3
- data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +13 -3
- data/rbi/orb/models/plan_create_params.rbi +415 -135
- data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +13 -3
- data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +13 -3
- data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +13 -3
- data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +13 -3
- data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +10 -0
- data/rbi/orb/models/price.rbi +280 -0
- data/rbi/orb/resources/customers/credits/ledger.rbi +6 -6
- data/rbi/orb/resources/plans.rbi +11 -33
- data/sig/orb/errors.rbs +9 -0
- data/sig/orb/internal/type/converter.rbs +7 -1
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +1 -1
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +1 -1
- data/sig/orb/models/monetary_amount_discount_adjustment.rbs +8 -3
- data/sig/orb/models/monetary_maximum_adjustment.rbs +8 -3
- data/sig/orb/models/monetary_minimum_adjustment.rbs +8 -3
- data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +8 -3
- data/sig/orb/models/monetary_usage_discount_adjustment.rbs +5 -0
- data/sig/orb/models/new_plan_bps_price.rbs +8 -3
- data/sig/orb/models/new_plan_bulk_bps_price.rbs +8 -3
- data/sig/orb/models/new_plan_bulk_price.rbs +8 -3
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +8 -3
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +8 -3
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +8 -3
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +8 -3
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +8 -3
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +8 -3
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +8 -3
- data/sig/orb/models/new_plan_matrix_price.rbs +8 -3
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +8 -3
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +8 -3
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +8 -3
- data/sig/orb/models/new_plan_package_price.rbs +8 -3
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +8 -3
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +8 -3
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +8 -3
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +8 -3
- data/sig/orb/models/new_plan_tier_with_proration_price.rbs +8 -3
- data/sig/orb/models/new_plan_tiered_bps_price.rbs +8 -3
- data/sig/orb/models/new_plan_tiered_package_price.rbs +8 -3
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +8 -3
- data/sig/orb/models/new_plan_tiered_price.rbs +8 -3
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +8 -3
- data/sig/orb/models/new_plan_unit_price.rbs +8 -3
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +8 -3
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +8 -3
- data/sig/orb/models/plan_create_params.rbs +156 -37
- data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +8 -3
- data/sig/orb/models/plan_phase_maximum_adjustment.rbs +8 -3
- data/sig/orb/models/plan_phase_minimum_adjustment.rbs +8 -3
- data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +8 -3
- data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +5 -0
- data/sig/orb/models/price.rbs +140 -0
- data/sig/orb/resources/customers/credits/ledger.rbs +2 -2
- data/sig/orb/resources/plans.rbs +3 -1
- metadata +2 -2
@@ -18,7 +18,8 @@ module Orb
|
|
18
18
|
fixed_price_quantity: Float?,
|
19
19
|
invoice_grouping_key: String?,
|
20
20
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
21
|
-
metadata: ::Hash[Symbol, String?]
|
21
|
+
metadata: ::Hash[Symbol, String?]?,
|
22
|
+
reference_id: String?
|
22
23
|
}
|
23
24
|
|
24
25
|
class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel
|
@@ -56,6 +57,8 @@ module Orb
|
|
56
57
|
|
57
58
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
58
59
|
|
60
|
+
attr_accessor reference_id: String?
|
61
|
+
|
59
62
|
def initialize: (
|
60
63
|
cadence: Orb::Models::NewPlanTieredWithMinimumPrice::cadence,
|
61
64
|
item_id: String,
|
@@ -73,7 +76,8 @@ module Orb
|
|
73
76
|
?fixed_price_quantity: Float?,
|
74
77
|
?invoice_grouping_key: String?,
|
75
78
|
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
76
|
-
?metadata: ::Hash[Symbol, String?]
|
79
|
+
?metadata: ::Hash[Symbol, String?]?,
|
80
|
+
?reference_id: String?
|
77
81
|
) -> void
|
78
82
|
|
79
83
|
def to_hash: -> {
|
@@ -93,7 +97,8 @@ module Orb
|
|
93
97
|
fixed_price_quantity: Float?,
|
94
98
|
invoice_grouping_key: String?,
|
95
99
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
96
|
-
metadata: ::Hash[Symbol, String?]
|
100
|
+
metadata: ::Hash[Symbol, String?]?,
|
101
|
+
reference_id: String?
|
97
102
|
}
|
98
103
|
|
99
104
|
type cadence =
|
@@ -18,7 +18,8 @@ module Orb
|
|
18
18
|
fixed_price_quantity: Float?,
|
19
19
|
invoice_grouping_key: String?,
|
20
20
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
21
|
-
metadata: ::Hash[Symbol, String?]
|
21
|
+
metadata: ::Hash[Symbol, String?]?,
|
22
|
+
reference_id: String?
|
22
23
|
}
|
23
24
|
|
24
25
|
class NewPlanUnitPrice < Orb::Internal::Type::BaseModel
|
@@ -56,6 +57,8 @@ module Orb
|
|
56
57
|
|
57
58
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
58
59
|
|
60
|
+
attr_accessor reference_id: String?
|
61
|
+
|
59
62
|
def initialize: (
|
60
63
|
cadence: Orb::Models::NewPlanUnitPrice::cadence,
|
61
64
|
item_id: String,
|
@@ -73,7 +76,8 @@ module Orb
|
|
73
76
|
?fixed_price_quantity: Float?,
|
74
77
|
?invoice_grouping_key: String?,
|
75
78
|
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
76
|
-
?metadata: ::Hash[Symbol, String?]
|
79
|
+
?metadata: ::Hash[Symbol, String?]?,
|
80
|
+
?reference_id: String?
|
77
81
|
) -> void
|
78
82
|
|
79
83
|
def to_hash: -> {
|
@@ -93,7 +97,8 @@ module Orb
|
|
93
97
|
fixed_price_quantity: Float?,
|
94
98
|
invoice_grouping_key: String?,
|
95
99
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
96
|
-
metadata: ::Hash[Symbol, String?]
|
100
|
+
metadata: ::Hash[Symbol, String?]?,
|
101
|
+
reference_id: String?
|
97
102
|
}
|
98
103
|
|
99
104
|
type cadence =
|
@@ -18,7 +18,8 @@ module Orb
|
|
18
18
|
fixed_price_quantity: Float?,
|
19
19
|
invoice_grouping_key: String?,
|
20
20
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
21
|
-
metadata: ::Hash[Symbol, String?]
|
21
|
+
metadata: ::Hash[Symbol, String?]?,
|
22
|
+
reference_id: String?
|
22
23
|
}
|
23
24
|
|
24
25
|
class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel
|
@@ -56,6 +57,8 @@ module Orb
|
|
56
57
|
|
57
58
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
58
59
|
|
60
|
+
attr_accessor reference_id: String?
|
61
|
+
|
59
62
|
def initialize: (
|
60
63
|
cadence: Orb::Models::NewPlanUnitWithPercentPrice::cadence,
|
61
64
|
item_id: String,
|
@@ -73,7 +76,8 @@ module Orb
|
|
73
76
|
?fixed_price_quantity: Float?,
|
74
77
|
?invoice_grouping_key: String?,
|
75
78
|
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
76
|
-
?metadata: ::Hash[Symbol, String?]
|
79
|
+
?metadata: ::Hash[Symbol, String?]?,
|
80
|
+
?reference_id: String?
|
77
81
|
) -> void
|
78
82
|
|
79
83
|
def to_hash: -> {
|
@@ -93,7 +97,8 @@ module Orb
|
|
93
97
|
fixed_price_quantity: Float?,
|
94
98
|
invoice_grouping_key: String?,
|
95
99
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
96
|
-
metadata: ::Hash[Symbol, String?]
|
100
|
+
metadata: ::Hash[Symbol, String?]?,
|
101
|
+
reference_id: String?
|
97
102
|
}
|
98
103
|
|
99
104
|
type cadence =
|
@@ -18,7 +18,8 @@ module Orb
|
|
18
18
|
fixed_price_quantity: Float?,
|
19
19
|
invoice_grouping_key: String?,
|
20
20
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
21
|
-
metadata: ::Hash[Symbol, String?]
|
21
|
+
metadata: ::Hash[Symbol, String?]?,
|
22
|
+
reference_id: String?
|
22
23
|
}
|
23
24
|
|
24
25
|
class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel
|
@@ -56,6 +57,8 @@ module Orb
|
|
56
57
|
|
57
58
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
58
59
|
|
60
|
+
attr_accessor reference_id: String?
|
61
|
+
|
59
62
|
def initialize: (
|
60
63
|
cadence: Orb::Models::NewPlanUnitWithProrationPrice::cadence,
|
61
64
|
item_id: String,
|
@@ -73,7 +76,8 @@ module Orb
|
|
73
76
|
?fixed_price_quantity: Float?,
|
74
77
|
?invoice_grouping_key: String?,
|
75
78
|
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
76
|
-
?metadata: ::Hash[Symbol, String?]
|
79
|
+
?metadata: ::Hash[Symbol, String?]?,
|
80
|
+
?reference_id: String?
|
77
81
|
) -> void
|
78
82
|
|
79
83
|
def to_hash: -> {
|
@@ -93,7 +97,8 @@ module Orb
|
|
93
97
|
fixed_price_quantity: Float?,
|
94
98
|
invoice_grouping_key: String?,
|
95
99
|
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
96
|
-
metadata: ::Hash[Symbol, String?]
|
100
|
+
metadata: ::Hash[Symbol, String?]?,
|
101
|
+
reference_id: String?
|
97
102
|
}
|
98
103
|
|
99
104
|
type cadence =
|
@@ -4,11 +4,13 @@ module Orb
|
|
4
4
|
{
|
5
5
|
currency: String,
|
6
6
|
name: String,
|
7
|
-
prices: ::Array[Orb::
|
7
|
+
prices: ::Array[Orb::PlanCreateParams::Price],
|
8
|
+
adjustments: ::Array[Orb::PlanCreateParams::Adjustment]?,
|
8
9
|
default_invoice_memo: String?,
|
9
10
|
external_plan_id: String?,
|
10
11
|
metadata: ::Hash[Symbol, String?]?,
|
11
12
|
net_terms: Integer?,
|
13
|
+
plan_phases: ::Array[Orb::PlanCreateParams::PlanPhase]?,
|
12
14
|
status: Orb::Models::PlanCreateParams::status
|
13
15
|
}
|
14
16
|
& Orb::Internal::Type::request_parameters
|
@@ -21,7 +23,9 @@ module Orb
|
|
21
23
|
|
22
24
|
attr_accessor name: String
|
23
25
|
|
24
|
-
attr_accessor prices: ::Array[Orb::
|
26
|
+
attr_accessor prices: ::Array[Orb::PlanCreateParams::Price]
|
27
|
+
|
28
|
+
attr_accessor adjustments: ::Array[Orb::PlanCreateParams::Adjustment]?
|
25
29
|
|
26
30
|
attr_accessor default_invoice_memo: String?
|
27
31
|
|
@@ -31,6 +35,8 @@ module Orb
|
|
31
35
|
|
32
36
|
attr_accessor net_terms: Integer?
|
33
37
|
|
38
|
+
attr_accessor plan_phases: ::Array[Orb::PlanCreateParams::PlanPhase]?
|
39
|
+
|
34
40
|
attr_reader status: Orb::Models::PlanCreateParams::status?
|
35
41
|
|
36
42
|
def status=: (
|
@@ -40,11 +46,13 @@ module Orb
|
|
40
46
|
def initialize: (
|
41
47
|
currency: String,
|
42
48
|
name: String,
|
43
|
-
prices: ::Array[Orb::
|
49
|
+
prices: ::Array[Orb::PlanCreateParams::Price],
|
50
|
+
?adjustments: ::Array[Orb::PlanCreateParams::Adjustment]?,
|
44
51
|
?default_invoice_memo: String?,
|
45
52
|
?external_plan_id: String?,
|
46
53
|
?metadata: ::Hash[Symbol, String?]?,
|
47
54
|
?net_terms: Integer?,
|
55
|
+
?plan_phases: ::Array[Orb::PlanCreateParams::PlanPhase]?,
|
48
56
|
?status: Orb::Models::PlanCreateParams::status,
|
49
57
|
?request_options: Orb::request_opts
|
50
58
|
) -> void
|
@@ -52,49 +60,160 @@ module Orb
|
|
52
60
|
def to_hash: -> {
|
53
61
|
currency: String,
|
54
62
|
name: String,
|
55
|
-
prices: ::Array[Orb::
|
63
|
+
prices: ::Array[Orb::PlanCreateParams::Price],
|
64
|
+
adjustments: ::Array[Orb::PlanCreateParams::Adjustment]?,
|
56
65
|
default_invoice_memo: String?,
|
57
66
|
external_plan_id: String?,
|
58
67
|
metadata: ::Hash[Symbol, String?]?,
|
59
68
|
net_terms: Integer?,
|
69
|
+
plan_phases: ::Array[Orb::PlanCreateParams::PlanPhase]?,
|
60
70
|
status: Orb::Models::PlanCreateParams::status,
|
61
71
|
request_options: Orb::RequestOptions
|
62
72
|
}
|
63
73
|
|
64
74
|
type price =
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
75
|
+
{
|
76
|
+
allocation_price: Orb::NewAllocationPrice?,
|
77
|
+
plan_phase_order: Integer?,
|
78
|
+
price: Orb::Models::PlanCreateParams::Price::price?
|
79
|
+
}
|
80
|
+
|
81
|
+
class Price < Orb::Internal::Type::BaseModel
|
82
|
+
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
83
|
+
|
84
|
+
attr_accessor plan_phase_order: Integer?
|
85
|
+
|
86
|
+
attr_accessor price: Orb::Models::PlanCreateParams::Price::price?
|
87
|
+
|
88
|
+
def initialize: (
|
89
|
+
?allocation_price: Orb::NewAllocationPrice?,
|
90
|
+
?plan_phase_order: Integer?,
|
91
|
+
?price: Orb::Models::PlanCreateParams::Price::price?
|
92
|
+
) -> void
|
93
|
+
|
94
|
+
def to_hash: -> {
|
95
|
+
allocation_price: Orb::NewAllocationPrice?,
|
96
|
+
plan_phase_order: Integer?,
|
97
|
+
price: Orb::Models::PlanCreateParams::Price::price?
|
98
|
+
}
|
99
|
+
|
100
|
+
type price =
|
101
|
+
Orb::NewPlanUnitPrice
|
102
|
+
| Orb::NewPlanPackagePrice
|
103
|
+
| Orb::NewPlanMatrixPrice
|
104
|
+
| Orb::NewPlanTieredPrice
|
105
|
+
| Orb::NewPlanTieredBPSPrice
|
106
|
+
| Orb::NewPlanBPSPrice
|
107
|
+
| Orb::NewPlanBulkBPSPrice
|
108
|
+
| Orb::NewPlanBulkPrice
|
109
|
+
| Orb::NewPlanThresholdTotalAmountPrice
|
110
|
+
| Orb::NewPlanTieredPackagePrice
|
111
|
+
| Orb::NewPlanTieredWithMinimumPrice
|
112
|
+
| Orb::NewPlanUnitWithPercentPrice
|
113
|
+
| Orb::NewPlanPackageWithAllocationPrice
|
114
|
+
| Orb::NewPlanTierWithProrationPrice
|
115
|
+
| Orb::NewPlanUnitWithProrationPrice
|
116
|
+
| Orb::NewPlanGroupedAllocationPrice
|
117
|
+
| Orb::NewPlanGroupedWithProratedMinimumPrice
|
118
|
+
| Orb::NewPlanGroupedWithMeteredMinimumPrice
|
119
|
+
| Orb::NewPlanMatrixWithDisplayNamePrice
|
120
|
+
| Orb::NewPlanBulkWithProrationPrice
|
121
|
+
| Orb::NewPlanGroupedTieredPackagePrice
|
122
|
+
| Orb::NewPlanMaxGroupTieredPackagePrice
|
123
|
+
| Orb::NewPlanScalableMatrixWithUnitPricingPrice
|
124
|
+
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
125
|
+
| Orb::NewPlanCumulativeGroupedBulkPrice
|
126
|
+
| Orb::NewPlanTieredPackageWithMinimumPrice
|
127
|
+
| Orb::NewPlanMatrixWithAllocationPrice
|
128
|
+
| Orb::NewPlanGroupedTieredPrice
|
129
|
+
|
130
|
+
module Price
|
131
|
+
extend Orb::Internal::Type::Union
|
132
|
+
|
133
|
+
def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::Price::price]
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
type adjustment =
|
138
|
+
{
|
139
|
+
adjustment: Orb::Models::PlanCreateParams::Adjustment::adjustment,
|
140
|
+
plan_phase_order: Integer?
|
141
|
+
}
|
142
|
+
|
143
|
+
class Adjustment < Orb::Internal::Type::BaseModel
|
144
|
+
attr_accessor adjustment: Orb::Models::PlanCreateParams::Adjustment::adjustment
|
145
|
+
|
146
|
+
attr_accessor plan_phase_order: Integer?
|
147
|
+
|
148
|
+
def initialize: (
|
149
|
+
adjustment: Orb::Models::PlanCreateParams::Adjustment::adjustment,
|
150
|
+
?plan_phase_order: Integer?
|
151
|
+
) -> void
|
152
|
+
|
153
|
+
def to_hash: -> {
|
154
|
+
adjustment: Orb::Models::PlanCreateParams::Adjustment::adjustment,
|
155
|
+
plan_phase_order: Integer?
|
156
|
+
}
|
157
|
+
|
158
|
+
type adjustment =
|
159
|
+
Orb::NewPercentageDiscount
|
160
|
+
| Orb::NewUsageDiscount
|
161
|
+
| Orb::NewAmountDiscount
|
162
|
+
| Orb::NewMinimum
|
163
|
+
| Orb::NewMaximum
|
164
|
+
|
165
|
+
module Adjustment
|
166
|
+
extend Orb::Internal::Type::Union
|
167
|
+
|
168
|
+
def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::Adjustment::adjustment]
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
type plan_phase =
|
173
|
+
{
|
174
|
+
order: Integer,
|
175
|
+
align_billing_with_phase_start_date: bool?,
|
176
|
+
duration: Integer?,
|
177
|
+
duration_unit: Orb::Models::PlanCreateParams::PlanPhase::duration_unit?
|
178
|
+
}
|
179
|
+
|
180
|
+
class PlanPhase < Orb::Internal::Type::BaseModel
|
181
|
+
attr_accessor order: Integer
|
182
|
+
|
183
|
+
attr_accessor align_billing_with_phase_start_date: bool?
|
184
|
+
|
185
|
+
attr_accessor duration: Integer?
|
186
|
+
|
187
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::PlanPhase::duration_unit?
|
188
|
+
|
189
|
+
def initialize: (
|
190
|
+
order: Integer,
|
191
|
+
?align_billing_with_phase_start_date: bool?,
|
192
|
+
?duration: Integer?,
|
193
|
+
?duration_unit: Orb::Models::PlanCreateParams::PlanPhase::duration_unit?
|
194
|
+
) -> void
|
195
|
+
|
196
|
+
def to_hash: -> {
|
197
|
+
order: Integer,
|
198
|
+
align_billing_with_phase_start_date: bool?,
|
199
|
+
duration: Integer?,
|
200
|
+
duration_unit: Orb::Models::PlanCreateParams::PlanPhase::duration_unit?
|
201
|
+
}
|
202
|
+
|
203
|
+
type duration_unit =
|
204
|
+
:daily | :monthly | :quarterly | :semi_annual | :annual
|
205
|
+
|
206
|
+
module DurationUnit
|
207
|
+
extend Orb::Internal::Type::Enum
|
208
|
+
|
209
|
+
DAILY: :daily
|
210
|
+
MONTHLY: :monthly
|
211
|
+
QUARTERLY: :quarterly
|
212
|
+
SEMI_ANNUAL: :semi_annual
|
213
|
+
ANNUAL: :annual
|
214
|
+
|
215
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::PlanPhase::duration_unit]
|
216
|
+
end
|
98
217
|
end
|
99
218
|
|
100
219
|
type status = :active | :draft
|
@@ -9,7 +9,8 @@ module Orb
|
|
9
9
|
filters: ::Array[Orb::TransformPriceFilter],
|
10
10
|
is_invoice_level: bool,
|
11
11
|
plan_phase_order: Integer?,
|
12
|
-
reason: String
|
12
|
+
reason: String?,
|
13
|
+
replaces_adjustment_id: String?
|
13
14
|
}
|
14
15
|
|
15
16
|
class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
|
@@ -29,6 +30,8 @@ module Orb
|
|
29
30
|
|
30
31
|
attr_accessor reason: String?
|
31
32
|
|
33
|
+
attr_accessor replaces_adjustment_id: String?
|
34
|
+
|
32
35
|
def initialize: (
|
33
36
|
id: String,
|
34
37
|
adjustment_type: Orb::Models::PlanPhaseAmountDiscountAdjustment::adjustment_type,
|
@@ -37,7 +40,8 @@ module Orb
|
|
37
40
|
filters: ::Array[Orb::TransformPriceFilter],
|
38
41
|
is_invoice_level: bool,
|
39
42
|
plan_phase_order: Integer?,
|
40
|
-
reason: String
|
43
|
+
reason: String?,
|
44
|
+
replaces_adjustment_id: String?
|
41
45
|
) -> void
|
42
46
|
|
43
47
|
def to_hash: -> {
|
@@ -48,7 +52,8 @@ module Orb
|
|
48
52
|
filters: ::Array[Orb::TransformPriceFilter],
|
49
53
|
is_invoice_level: bool,
|
50
54
|
plan_phase_order: Integer?,
|
51
|
-
reason: String
|
55
|
+
reason: String?,
|
56
|
+
replaces_adjustment_id: String?
|
52
57
|
}
|
53
58
|
|
54
59
|
type adjustment_type = :amount_discount
|
@@ -9,7 +9,8 @@ module Orb
|
|
9
9
|
is_invoice_level: bool,
|
10
10
|
maximum_amount: String,
|
11
11
|
plan_phase_order: Integer?,
|
12
|
-
reason: String
|
12
|
+
reason: String?,
|
13
|
+
replaces_adjustment_id: String?
|
13
14
|
}
|
14
15
|
|
15
16
|
class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel
|
@@ -29,6 +30,8 @@ module Orb
|
|
29
30
|
|
30
31
|
attr_accessor reason: String?
|
31
32
|
|
33
|
+
attr_accessor replaces_adjustment_id: String?
|
34
|
+
|
32
35
|
def initialize: (
|
33
36
|
id: String,
|
34
37
|
adjustment_type: Orb::Models::PlanPhaseMaximumAdjustment::adjustment_type,
|
@@ -37,7 +40,8 @@ module Orb
|
|
37
40
|
is_invoice_level: bool,
|
38
41
|
maximum_amount: String,
|
39
42
|
plan_phase_order: Integer?,
|
40
|
-
reason: String
|
43
|
+
reason: String?,
|
44
|
+
replaces_adjustment_id: String?
|
41
45
|
) -> void
|
42
46
|
|
43
47
|
def to_hash: -> {
|
@@ -48,7 +52,8 @@ module Orb
|
|
48
52
|
is_invoice_level: bool,
|
49
53
|
maximum_amount: String,
|
50
54
|
plan_phase_order: Integer?,
|
51
|
-
reason: String
|
55
|
+
reason: String?,
|
56
|
+
replaces_adjustment_id: String?
|
52
57
|
}
|
53
58
|
|
54
59
|
type adjustment_type = :maximum
|
@@ -10,7 +10,8 @@ module Orb
|
|
10
10
|
item_id: String,
|
11
11
|
minimum_amount: String,
|
12
12
|
plan_phase_order: Integer?,
|
13
|
-
reason: String
|
13
|
+
reason: String?,
|
14
|
+
replaces_adjustment_id: String?
|
14
15
|
}
|
15
16
|
|
16
17
|
class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel
|
@@ -32,6 +33,8 @@ module Orb
|
|
32
33
|
|
33
34
|
attr_accessor reason: String?
|
34
35
|
|
36
|
+
attr_accessor replaces_adjustment_id: String?
|
37
|
+
|
35
38
|
def initialize: (
|
36
39
|
id: String,
|
37
40
|
adjustment_type: Orb::Models::PlanPhaseMinimumAdjustment::adjustment_type,
|
@@ -41,7 +44,8 @@ module Orb
|
|
41
44
|
item_id: String,
|
42
45
|
minimum_amount: String,
|
43
46
|
plan_phase_order: Integer?,
|
44
|
-
reason: String
|
47
|
+
reason: String?,
|
48
|
+
replaces_adjustment_id: String?
|
45
49
|
) -> void
|
46
50
|
|
47
51
|
def to_hash: -> {
|
@@ -53,7 +57,8 @@ module Orb
|
|
53
57
|
item_id: String,
|
54
58
|
minimum_amount: String,
|
55
59
|
plan_phase_order: Integer?,
|
56
|
-
reason: String
|
60
|
+
reason: String?,
|
61
|
+
replaces_adjustment_id: String?
|
57
62
|
}
|
58
63
|
|
59
64
|
type adjustment_type = :minimum
|
@@ -9,7 +9,8 @@ module Orb
|
|
9
9
|
is_invoice_level: bool,
|
10
10
|
percentage_discount: Float,
|
11
11
|
plan_phase_order: Integer?,
|
12
|
-
reason: String
|
12
|
+
reason: String?,
|
13
|
+
replaces_adjustment_id: String?
|
13
14
|
}
|
14
15
|
|
15
16
|
class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
|
@@ -29,6 +30,8 @@ module Orb
|
|
29
30
|
|
30
31
|
attr_accessor reason: String?
|
31
32
|
|
33
|
+
attr_accessor replaces_adjustment_id: String?
|
34
|
+
|
32
35
|
def initialize: (
|
33
36
|
id: String,
|
34
37
|
adjustment_type: Orb::Models::PlanPhasePercentageDiscountAdjustment::adjustment_type,
|
@@ -37,7 +40,8 @@ module Orb
|
|
37
40
|
is_invoice_level: bool,
|
38
41
|
percentage_discount: Float,
|
39
42
|
plan_phase_order: Integer?,
|
40
|
-
reason: String
|
43
|
+
reason: String?,
|
44
|
+
replaces_adjustment_id: String?
|
41
45
|
) -> void
|
42
46
|
|
43
47
|
def to_hash: -> {
|
@@ -48,7 +52,8 @@ module Orb
|
|
48
52
|
is_invoice_level: bool,
|
49
53
|
percentage_discount: Float,
|
50
54
|
plan_phase_order: Integer?,
|
51
|
-
reason: String
|
55
|
+
reason: String?,
|
56
|
+
replaces_adjustment_id: String?
|
52
57
|
}
|
53
58
|
|
54
59
|
type adjustment_type = :percentage_discount
|
@@ -9,6 +9,7 @@ module Orb
|
|
9
9
|
is_invoice_level: bool,
|
10
10
|
plan_phase_order: Integer?,
|
11
11
|
reason: String?,
|
12
|
+
replaces_adjustment_id: String?,
|
12
13
|
usage_discount: Float
|
13
14
|
}
|
14
15
|
|
@@ -27,6 +28,8 @@ module Orb
|
|
27
28
|
|
28
29
|
attr_accessor reason: String?
|
29
30
|
|
31
|
+
attr_accessor replaces_adjustment_id: String?
|
32
|
+
|
30
33
|
attr_accessor usage_discount: Float
|
31
34
|
|
32
35
|
def initialize: (
|
@@ -37,6 +40,7 @@ module Orb
|
|
37
40
|
is_invoice_level: bool,
|
38
41
|
plan_phase_order: Integer?,
|
39
42
|
reason: String?,
|
43
|
+
replaces_adjustment_id: String?,
|
40
44
|
usage_discount: Float
|
41
45
|
) -> void
|
42
46
|
|
@@ -48,6 +52,7 @@ module Orb
|
|
48
52
|
is_invoice_level: bool,
|
49
53
|
plan_phase_order: Integer?,
|
50
54
|
reason: String?,
|
55
|
+
replaces_adjustment_id: String?,
|
51
56
|
usage_discount: Float
|
52
57
|
}
|
53
58
|
|