orb-billing 1.1.0 → 1.2.1
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 +26 -0
- data/README.md +1 -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/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/version.rb +1 -1
- 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/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/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/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
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fdd3792dd2f4b216b055214e10a34fba8e05e175fefa5106dc44423f55a26c2
|
4
|
+
data.tar.gz: f6cbbc5b1f5d5c9629275a8b6e86379df399524b22b34626c19dd466525eb88c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 073b20f1d91023f3850ed382ce91810d5e17a4a162f676a52f060194ebd1380d07545f382cc34889cc4d1552c9b72b54b52fe1d0af76fd3148cef00642c06762
|
7
|
+
data.tar.gz: 847e9bdfe877b9473458c0098ae615318b9e045dc5c6c33915fc5627023852402f760d5324e2f8ca4caaf66beda9d6a7b16f950029606f6a7d37708a839a1cf4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.2.1 (2025-06-26)
|
4
|
+
|
5
|
+
Full Changelog: [v1.2.0...v1.2.1](https://github.com/orbcorp/orb-ruby/compare/v1.2.0...v1.2.1)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* **ci:** release-doctor — report correct token name ([771d0e7](https://github.com/orbcorp/orb-ruby/commit/771d0e78feeac2df1917c2d8b474a5ec22d1c546))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** version bump ([fe83c70](https://github.com/orbcorp/orb-ruby/commit/fe83c7044cb534bb96990b0987c810c0803de17d))
|
15
|
+
|
16
|
+
## 1.2.0 (2025-06-26)
|
17
|
+
|
18
|
+
Full Changelog: [v1.1.0...v1.2.0](https://github.com/orbcorp/orb-ruby/compare/v1.1.0...v1.2.0)
|
19
|
+
|
20
|
+
### Features
|
21
|
+
|
22
|
+
* **api:** api update ([5a73526](https://github.com/orbcorp/orb-ruby/commit/5a73526b78e0eeb8b440b94b885fce49f6b28006))
|
23
|
+
|
24
|
+
|
25
|
+
### Chores
|
26
|
+
|
27
|
+
* **internal:** version bump ([9c3718b](https://github.com/orbcorp/orb-ruby/commit/9c3718b58f8bba10548e2897448d908588c6ea02))
|
28
|
+
|
3
29
|
## 1.1.0 (2025-06-18)
|
4
30
|
|
5
31
|
Full Changelog: [v1.0.1...v1.1.0](https://github.com/orbcorp/orb-ruby/compare/v1.0.1...v1.1.0)
|
data/README.md
CHANGED
@@ -53,7 +53,14 @@ module Orb
|
|
53
53
|
# @return [String, nil]
|
54
54
|
required :reason, String, nil?: true
|
55
55
|
|
56
|
-
# @!
|
56
|
+
# @!attribute replaces_adjustment_id
|
57
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
58
|
+
# of the replaced adjustment in plan version migrations.
|
59
|
+
#
|
60
|
+
# @return [String, nil]
|
61
|
+
required :replaces_adjustment_id, String, nil?: true
|
62
|
+
|
63
|
+
# @!method initialize(id:, adjustment_type:, amount:, amount_discount:, applies_to_price_ids:, filters:, is_invoice_level:, reason:, replaces_adjustment_id:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::MonetaryAmountDiscountAdjustment} for more details.
|
59
66
|
#
|
@@ -72,6 +79,8 @@ module Orb
|
|
72
79
|
# @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
|
73
80
|
#
|
74
81
|
# @param reason [String, nil] The reason for the adjustment.
|
82
|
+
#
|
83
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
75
84
|
|
76
85
|
# @see Orb::Models::MonetaryAmountDiscountAdjustment#adjustment_type
|
77
86
|
module AdjustmentType
|
@@ -53,7 +53,14 @@ module Orb
|
|
53
53
|
# @return [String, nil]
|
54
54
|
required :reason, String, nil?: true
|
55
55
|
|
56
|
-
# @!
|
56
|
+
# @!attribute replaces_adjustment_id
|
57
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
58
|
+
# of the replaced adjustment in plan version migrations.
|
59
|
+
#
|
60
|
+
# @return [String, nil]
|
61
|
+
required :replaces_adjustment_id, String, nil?: true
|
62
|
+
|
63
|
+
# @!method initialize(id:, adjustment_type:, amount:, applies_to_price_ids:, filters:, is_invoice_level:, maximum_amount:, reason:, replaces_adjustment_id:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::MonetaryMaximumAdjustment} for more details.
|
59
66
|
#
|
@@ -72,6 +79,8 @@ module Orb
|
|
72
79
|
# @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus
|
73
80
|
#
|
74
81
|
# @param reason [String, nil] The reason for the adjustment.
|
82
|
+
#
|
83
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
75
84
|
|
76
85
|
# @see Orb::Models::MonetaryMaximumAdjustment#adjustment_type
|
77
86
|
module AdjustmentType
|
@@ -59,7 +59,14 @@ module Orb
|
|
59
59
|
# @return [String, nil]
|
60
60
|
required :reason, String, nil?: true
|
61
61
|
|
62
|
-
# @!
|
62
|
+
# @!attribute replaces_adjustment_id
|
63
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
64
|
+
# of the replaced adjustment in plan version migrations.
|
65
|
+
#
|
66
|
+
# @return [String, nil]
|
67
|
+
required :replaces_adjustment_id, String, nil?: true
|
68
|
+
|
69
|
+
# @!method initialize(id:, adjustment_type:, amount:, applies_to_price_ids:, filters:, is_invoice_level:, item_id:, minimum_amount:, reason:, replaces_adjustment_id:)
|
63
70
|
# Some parameter documentations has been truncated, see
|
64
71
|
# {Orb::Models::MonetaryMinimumAdjustment} for more details.
|
65
72
|
#
|
@@ -80,6 +87,8 @@ module Orb
|
|
80
87
|
# @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus
|
81
88
|
#
|
82
89
|
# @param reason [String, nil] The reason for the adjustment.
|
90
|
+
#
|
91
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
83
92
|
|
84
93
|
# @see Orb::Models::MonetaryMinimumAdjustment#adjustment_type
|
85
94
|
module AdjustmentType
|
@@ -53,7 +53,14 @@ module Orb
|
|
53
53
|
# @return [String, nil]
|
54
54
|
required :reason, String, nil?: true
|
55
55
|
|
56
|
-
# @!
|
56
|
+
# @!attribute replaces_adjustment_id
|
57
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
58
|
+
# of the replaced adjustment in plan version migrations.
|
59
|
+
#
|
60
|
+
# @return [String, nil]
|
61
|
+
required :replaces_adjustment_id, String, nil?: true
|
62
|
+
|
63
|
+
# @!method initialize(id:, adjustment_type:, amount:, applies_to_price_ids:, filters:, is_invoice_level:, percentage_discount:, reason:, replaces_adjustment_id:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::MonetaryPercentageDiscountAdjustment} for more details.
|
59
66
|
#
|
@@ -72,6 +79,8 @@ module Orb
|
|
72
79
|
# @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter
|
73
80
|
#
|
74
81
|
# @param reason [String, nil] The reason for the adjustment.
|
82
|
+
#
|
83
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
75
84
|
|
76
85
|
# @see Orb::Models::MonetaryPercentageDiscountAdjustment#adjustment_type
|
77
86
|
module AdjustmentType
|
@@ -46,6 +46,13 @@ module Orb
|
|
46
46
|
# @return [String, nil]
|
47
47
|
required :reason, String, nil?: true
|
48
48
|
|
49
|
+
# @!attribute replaces_adjustment_id
|
50
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
51
|
+
# of the replaced adjustment in plan version migrations.
|
52
|
+
#
|
53
|
+
# @return [String, nil]
|
54
|
+
required :replaces_adjustment_id, String, nil?: true
|
55
|
+
|
49
56
|
# @!attribute usage_discount
|
50
57
|
# The number of usage units by which to discount the price this adjustment applies
|
51
58
|
# to in a given billing period.
|
@@ -53,7 +60,7 @@ module Orb
|
|
53
60
|
# @return [Float]
|
54
61
|
required :usage_discount, Float
|
55
62
|
|
56
|
-
# @!method initialize(id:, adjustment_type:, amount:, applies_to_price_ids:, filters:, is_invoice_level:, reason:, usage_discount:)
|
63
|
+
# @!method initialize(id:, adjustment_type:, amount:, applies_to_price_ids:, filters:, is_invoice_level:, reason:, replaces_adjustment_id:, usage_discount:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::MonetaryUsageDiscountAdjustment} for more details.
|
59
66
|
#
|
@@ -71,6 +78,8 @@ module Orb
|
|
71
78
|
#
|
72
79
|
# @param reason [String, nil] The reason for the adjustment.
|
73
80
|
#
|
81
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
82
|
+
#
|
74
83
|
# @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies
|
75
84
|
|
76
85
|
# @see Orb::Models::MonetaryUsageDiscountAdjustment#adjustment_type
|
@@ -53,7 +53,14 @@ module Orb
|
|
53
53
|
# @return [String, nil]
|
54
54
|
required :reason, String, nil?: true
|
55
55
|
|
56
|
-
# @!
|
56
|
+
# @!attribute replaces_adjustment_id
|
57
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
58
|
+
# of the replaced adjustment in plan version migrations.
|
59
|
+
#
|
60
|
+
# @return [String, nil]
|
61
|
+
required :replaces_adjustment_id, String, nil?: true
|
62
|
+
|
63
|
+
# @!method initialize(id:, adjustment_type:, amount_discount:, applies_to_price_ids:, filters:, is_invoice_level:, plan_phase_order:, reason:, replaces_adjustment_id:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::PlanPhaseAmountDiscountAdjustment} for more details.
|
59
66
|
#
|
@@ -72,6 +79,8 @@ module Orb
|
|
72
79
|
# @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
|
73
80
|
#
|
74
81
|
# @param reason [String, nil] The reason for the adjustment.
|
82
|
+
#
|
83
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
75
84
|
|
76
85
|
# @see Orb::Models::PlanPhaseAmountDiscountAdjustment#adjustment_type
|
77
86
|
module AdjustmentType
|
@@ -53,7 +53,14 @@ module Orb
|
|
53
53
|
# @return [String, nil]
|
54
54
|
required :reason, String, nil?: true
|
55
55
|
|
56
|
-
# @!
|
56
|
+
# @!attribute replaces_adjustment_id
|
57
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
58
|
+
# of the replaced adjustment in plan version migrations.
|
59
|
+
#
|
60
|
+
# @return [String, nil]
|
61
|
+
required :replaces_adjustment_id, String, nil?: true
|
62
|
+
|
63
|
+
# @!method initialize(id:, adjustment_type:, applies_to_price_ids:, filters:, is_invoice_level:, maximum_amount:, plan_phase_order:, reason:, replaces_adjustment_id:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::PlanPhaseMaximumAdjustment} for more details.
|
59
66
|
#
|
@@ -72,6 +79,8 @@ module Orb
|
|
72
79
|
# @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
|
73
80
|
#
|
74
81
|
# @param reason [String, nil] The reason for the adjustment.
|
82
|
+
#
|
83
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
75
84
|
|
76
85
|
# @see Orb::Models::PlanPhaseMaximumAdjustment#adjustment_type
|
77
86
|
module AdjustmentType
|
@@ -59,7 +59,14 @@ module Orb
|
|
59
59
|
# @return [String, nil]
|
60
60
|
required :reason, String, nil?: true
|
61
61
|
|
62
|
-
# @!
|
62
|
+
# @!attribute replaces_adjustment_id
|
63
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
64
|
+
# of the replaced adjustment in plan version migrations.
|
65
|
+
#
|
66
|
+
# @return [String, nil]
|
67
|
+
required :replaces_adjustment_id, String, nil?: true
|
68
|
+
|
69
|
+
# @!method initialize(id:, adjustment_type:, applies_to_price_ids:, filters:, is_invoice_level:, item_id:, minimum_amount:, plan_phase_order:, reason:, replaces_adjustment_id:)
|
63
70
|
# Some parameter documentations has been truncated, see
|
64
71
|
# {Orb::Models::PlanPhaseMinimumAdjustment} for more details.
|
65
72
|
#
|
@@ -80,6 +87,8 @@ module Orb
|
|
80
87
|
# @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
|
81
88
|
#
|
82
89
|
# @param reason [String, nil] The reason for the adjustment.
|
90
|
+
#
|
91
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
83
92
|
|
84
93
|
# @see Orb::Models::PlanPhaseMinimumAdjustment#adjustment_type
|
85
94
|
module AdjustmentType
|
@@ -53,7 +53,14 @@ module Orb
|
|
53
53
|
# @return [String, nil]
|
54
54
|
required :reason, String, nil?: true
|
55
55
|
|
56
|
-
# @!
|
56
|
+
# @!attribute replaces_adjustment_id
|
57
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
58
|
+
# of the replaced adjustment in plan version migrations.
|
59
|
+
#
|
60
|
+
# @return [String, nil]
|
61
|
+
required :replaces_adjustment_id, String, nil?: true
|
62
|
+
|
63
|
+
# @!method initialize(id:, adjustment_type:, applies_to_price_ids:, filters:, is_invoice_level:, percentage_discount:, plan_phase_order:, reason:, replaces_adjustment_id:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::PlanPhasePercentageDiscountAdjustment} for more details.
|
59
66
|
#
|
@@ -72,6 +79,8 @@ module Orb
|
|
72
79
|
# @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
|
73
80
|
#
|
74
81
|
# @param reason [String, nil] The reason for the adjustment.
|
82
|
+
#
|
83
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
75
84
|
|
76
85
|
# @see Orb::Models::PlanPhasePercentageDiscountAdjustment#adjustment_type
|
77
86
|
module AdjustmentType
|
@@ -46,6 +46,13 @@ module Orb
|
|
46
46
|
# @return [String, nil]
|
47
47
|
required :reason, String, nil?: true
|
48
48
|
|
49
|
+
# @!attribute replaces_adjustment_id
|
50
|
+
# The adjustment id this adjustment replaces. This adjustment will take the place
|
51
|
+
# of the replaced adjustment in plan version migrations.
|
52
|
+
#
|
53
|
+
# @return [String, nil]
|
54
|
+
required :replaces_adjustment_id, String, nil?: true
|
55
|
+
|
49
56
|
# @!attribute usage_discount
|
50
57
|
# The number of usage units by which to discount the price this adjustment applies
|
51
58
|
# to in a given billing period.
|
@@ -53,7 +60,7 @@ module Orb
|
|
53
60
|
# @return [Float]
|
54
61
|
required :usage_discount, Float
|
55
62
|
|
56
|
-
# @!method initialize(id:, adjustment_type:, applies_to_price_ids:, filters:, is_invoice_level:, plan_phase_order:, reason:, usage_discount:)
|
63
|
+
# @!method initialize(id:, adjustment_type:, applies_to_price_ids:, filters:, is_invoice_level:, plan_phase_order:, reason:, replaces_adjustment_id:, usage_discount:)
|
57
64
|
# Some parameter documentations has been truncated, see
|
58
65
|
# {Orb::Models::PlanPhaseUsageDiscountAdjustment} for more details.
|
59
66
|
#
|
@@ -71,6 +78,8 @@ module Orb
|
|
71
78
|
#
|
72
79
|
# @param reason [String, nil] The reason for the adjustment.
|
73
80
|
#
|
81
|
+
# @param replaces_adjustment_id [String, nil] The adjustment id this adjustment replaces. This adjustment will take the place
|
82
|
+
#
|
74
83
|
# @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies
|
75
84
|
|
76
85
|
# @see Orb::Models::PlanPhaseUsageDiscountAdjustment#adjustment_type
|