orb-billing 1.6.0 → 1.8.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 +26 -0
- data/README.md +1 -1
- data/lib/orb/models/credit_note_create_params.rb +21 -22
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_params.rb +2 -2
- data/lib/orb/models/subscription_fetch_costs_params.rb +2 -2
- data/lib/orb/resources/credit_notes.rb +2 -2
- data/lib/orb/resources/customers/costs.rb +2 -2
- data/lib/orb/resources/subscriptions.rb +1 -1
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/credit_note_create_params.rbi +34 -36
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +2 -2
- data/rbi/orb/models/customers/cost_list_params.rbi +2 -2
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +2 -2
- data/rbi/orb/resources/credit_notes.rbi +8 -8
- data/rbi/orb/resources/customers/costs.rbi +2 -2
- data/rbi/orb/resources/subscriptions.rbi +1 -1
- 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: 73eacd2178ce9b71a5008a0c26c266fcf6579d79722d724c57f57b77c8a38bad
|
4
|
+
data.tar.gz: a18fc7d75c927d7d2d2e76e44434343e3104806c34330c1f3fdfd53da3816ce9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9afea5e8284f240ee0fe7a3d911c4ae7d253f5fa8b320dd616524f68cdca6a256eae576471ca59472299e0894e51e618e3cc792818ce7a931d53ac88473ade73
|
7
|
+
data.tar.gz: cdb483431879ee339cf54f769f174cf8b2a08b240d64ed079c631640385c020c26a8f994083b4bdc3f6102d1ecdf26cd40aedf137aeea7f90b3c4f9a783712b6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.8.0 (2025-07-17)
|
4
|
+
|
5
|
+
Full Changelog: [v1.7.0...v1.8.0](https://github.com/orbcorp/orb-ruby/compare/v1.7.0...v1.8.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([bb9bd7c](https://github.com/orbcorp/orb-ruby/commit/bb9bd7c820a76f1f502400f8ba9fed9518cc0010))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** version bump ([a255b91](https://github.com/orbcorp/orb-ruby/commit/a255b917bb484b1756398dd60d129db7d4012327))
|
15
|
+
|
16
|
+
## 1.7.0 (2025-07-16)
|
17
|
+
|
18
|
+
Full Changelog: [v1.6.0...v1.7.0](https://github.com/orbcorp/orb-ruby/compare/v1.6.0...v1.7.0)
|
19
|
+
|
20
|
+
### Features
|
21
|
+
|
22
|
+
* **api:** api update ([78865a0](https://github.com/orbcorp/orb-ruby/commit/78865a03cdc7ca40dacad41ef18546f8bbee1593))
|
23
|
+
|
24
|
+
|
25
|
+
### Chores
|
26
|
+
|
27
|
+
* **internal:** version bump ([811d9b6](https://github.com/orbcorp/orb-ruby/commit/811d9b63cef236992ab6cef658877c4cec96f61a))
|
28
|
+
|
3
29
|
## 1.6.0 (2025-07-16)
|
4
30
|
|
5
31
|
Full Changelog: [v1.5.1...v1.6.0](https://github.com/orbcorp/orb-ruby/compare/v1.5.1...v1.6.0)
|
data/README.md
CHANGED
@@ -19,10 +19,10 @@ module Orb
|
|
19
19
|
required :reason, enum: -> { Orb::CreditNoteCreateParams::Reason }
|
20
20
|
|
21
21
|
# @!attribute end_date
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
# This date is inclusive.
|
22
|
+
# A date string to specify the global credit note service period end date in the
|
23
|
+
# customer's timezone. This will be applied to all line items that don't have
|
24
|
+
# their own individual service periods specified. If not provided, line items will
|
25
|
+
# use their original invoice line item service periods. This date is inclusive.
|
26
26
|
#
|
27
27
|
# @return [Date, nil]
|
28
28
|
optional :end_date, Date, nil?: true
|
@@ -34,10 +34,10 @@ module Orb
|
|
34
34
|
optional :memo, String, nil?: true
|
35
35
|
|
36
36
|
# @!attribute start_date
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
# This date is inclusive.
|
37
|
+
# A date string to specify the global credit note service period start date in the
|
38
|
+
# customer's timezone. This will be applied to all line items that don't have
|
39
|
+
# their own individual service periods specified. If not provided, line items will
|
40
|
+
# use their original invoice line item service periods. This date is inclusive.
|
41
41
|
#
|
42
42
|
# @return [Date, nil]
|
43
43
|
optional :start_date, Date, nil?: true
|
@@ -50,11 +50,11 @@ module Orb
|
|
50
50
|
#
|
51
51
|
# @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason] An optional reason for the credit note.
|
52
52
|
#
|
53
|
-
# @param end_date [Date, nil]
|
53
|
+
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
|
54
54
|
#
|
55
55
|
# @param memo [String, nil] An optional memo to attach to the credit note.
|
56
56
|
#
|
57
|
-
# @param start_date [Date, nil]
|
57
|
+
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
|
58
58
|
#
|
59
59
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
60
60
|
|
@@ -72,21 +72,20 @@ module Orb
|
|
72
72
|
required :invoice_line_item_id, String
|
73
73
|
|
74
74
|
# @!attribute end_date
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
# inclusive.
|
75
|
+
# A date string to specify this line item's credit note service period end date in
|
76
|
+
# the customer's timezone. If provided, this will be used for this specific line
|
77
|
+
# item. If not provided, will use the global end_date if available, otherwise
|
78
|
+
# defaults to the original invoice line item's end date. This date is inclusive.
|
80
79
|
#
|
81
80
|
# @return [Date, nil]
|
82
81
|
optional :end_date, Date, nil?: true
|
83
82
|
|
84
83
|
# @!attribute start_date
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
84
|
+
# A date string to specify this line item's credit note service period start date
|
85
|
+
# in the customer's timezone. If provided, this will be used for this specific
|
86
|
+
# line item. If not provided, will use the global start_date if available,
|
87
|
+
# otherwise defaults to the original invoice line item's start date. This date is
|
88
|
+
# inclusive.
|
90
89
|
#
|
91
90
|
# @return [Date, nil]
|
92
91
|
optional :start_date, Date, nil?: true
|
@@ -99,9 +98,9 @@ module Orb
|
|
99
98
|
#
|
100
99
|
# @param invoice_line_item_id [String] The ID of the line item to credit.
|
101
100
|
#
|
102
|
-
# @param end_date [Date, nil]
|
101
|
+
# @param end_date [Date, nil] A date string to specify this line item's credit note service period end date in
|
103
102
|
#
|
104
|
-
# @param start_date [Date, nil]
|
103
|
+
# @param start_date [Date, nil] A date string to specify this line item's credit note service period start date
|
105
104
|
end
|
106
105
|
|
107
106
|
# An optional reason for the credit note.
|
@@ -9,7 +9,7 @@ module Orb
|
|
9
9
|
include Orb::Internal::Type::RequestParameters
|
10
10
|
|
11
11
|
# @!attribute currency
|
12
|
-
# The currency
|
12
|
+
# The currency to use.
|
13
13
|
#
|
14
14
|
# @return [String, nil]
|
15
15
|
optional :currency, String, nil?: true
|
@@ -39,7 +39,7 @@ module Orb
|
|
39
39
|
# Some parameter documentations has been truncated, see
|
40
40
|
# {Orb::Models::Customers::CostListByExternalIDParams} for more details.
|
41
41
|
#
|
42
|
-
# @param currency [String, nil] The currency
|
42
|
+
# @param currency [String, nil] The currency to use.
|
43
43
|
#
|
44
44
|
# @param timeframe_end [Time, nil] Costs returned are exclusive of `timeframe_end`.
|
45
45
|
#
|
@@ -9,7 +9,7 @@ module Orb
|
|
9
9
|
include Orb::Internal::Type::RequestParameters
|
10
10
|
|
11
11
|
# @!attribute currency
|
12
|
-
# The currency
|
12
|
+
# The currency to use.
|
13
13
|
#
|
14
14
|
# @return [String, nil]
|
15
15
|
optional :currency, String, nil?: true
|
@@ -39,7 +39,7 @@ module Orb
|
|
39
39
|
# Some parameter documentations has been truncated, see
|
40
40
|
# {Orb::Models::Customers::CostListParams} for more details.
|
41
41
|
#
|
42
|
-
# @param currency [String, nil] The currency
|
42
|
+
# @param currency [String, nil] The currency to use.
|
43
43
|
#
|
44
44
|
# @param timeframe_end [Time, nil] Costs returned are exclusive of `timeframe_end`.
|
45
45
|
#
|
@@ -8,7 +8,7 @@ module Orb
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
10
|
# @!attribute currency
|
11
|
-
# The currency
|
11
|
+
# The currency to use.
|
12
12
|
#
|
13
13
|
# @return [String, nil]
|
14
14
|
optional :currency, String, nil?: true
|
@@ -38,7 +38,7 @@ module Orb
|
|
38
38
|
# Some parameter documentations has been truncated, see
|
39
39
|
# {Orb::Models::SubscriptionFetchCostsParams} for more details.
|
40
40
|
#
|
41
|
-
# @param currency [String, nil] The currency
|
41
|
+
# @param currency [String, nil] The currency to use.
|
42
42
|
#
|
43
43
|
# @param timeframe_end [Time, nil] Costs returned are exclusive of `timeframe_end`.
|
44
44
|
#
|
@@ -40,11 +40,11 @@ module Orb
|
|
40
40
|
#
|
41
41
|
# @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason] An optional reason for the credit note.
|
42
42
|
#
|
43
|
-
# @param end_date [Date, nil]
|
43
|
+
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
|
44
44
|
#
|
45
45
|
# @param memo [String, nil] An optional memo to attach to the credit note.
|
46
46
|
#
|
47
|
-
# @param start_date [Date, nil]
|
47
|
+
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
|
48
48
|
#
|
49
49
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
50
50
|
#
|
@@ -129,7 +129,7 @@ module Orb
|
|
129
129
|
#
|
130
130
|
# @param customer_id [String]
|
131
131
|
#
|
132
|
-
# @param currency [String, nil] The currency
|
132
|
+
# @param currency [String, nil] The currency to use.
|
133
133
|
#
|
134
134
|
# @param timeframe_end [Time, nil] Costs returned are exclusive of `timeframe_end`.
|
135
135
|
#
|
@@ -278,7 +278,7 @@ module Orb
|
|
278
278
|
#
|
279
279
|
# @param external_customer_id [String]
|
280
280
|
#
|
281
|
-
# @param currency [String, nil] The currency
|
281
|
+
# @param currency [String, nil] The currency to use.
|
282
282
|
#
|
283
283
|
# @param timeframe_end [Time, nil] Costs returned are exclusive of `timeframe_end`.
|
284
284
|
#
|
@@ -568,7 +568,7 @@ module Orb
|
|
568
568
|
#
|
569
569
|
# @param subscription_id [String]
|
570
570
|
#
|
571
|
-
# @param currency [String, nil] The currency
|
571
|
+
# @param currency [String, nil] The currency to use.
|
572
572
|
#
|
573
573
|
# @param timeframe_end [Time, nil] Costs returned are exclusive of `timeframe_end`.
|
574
574
|
#
|
data/lib/orb/version.rb
CHANGED
@@ -18,10 +18,10 @@ module Orb
|
|
18
18
|
sig { returns(Orb::CreditNoteCreateParams::Reason::OrSymbol) }
|
19
19
|
attr_accessor :reason
|
20
20
|
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# This date is inclusive.
|
21
|
+
# A date string to specify the global credit note service period end date in the
|
22
|
+
# customer's timezone. This will be applied to all line items that don't have
|
23
|
+
# their own individual service periods specified. If not provided, line items will
|
24
|
+
# use their original invoice line item service periods. This date is inclusive.
|
25
25
|
sig { returns(T.nilable(Date)) }
|
26
26
|
attr_accessor :end_date
|
27
27
|
|
@@ -29,10 +29,10 @@ module Orb
|
|
29
29
|
sig { returns(T.nilable(String)) }
|
30
30
|
attr_accessor :memo
|
31
31
|
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
# This date is inclusive.
|
32
|
+
# A date string to specify the global credit note service period start date in the
|
33
|
+
# customer's timezone. This will be applied to all line items that don't have
|
34
|
+
# their own individual service periods specified. If not provided, line items will
|
35
|
+
# use their original invoice line item service periods. This date is inclusive.
|
36
36
|
sig { returns(T.nilable(Date)) }
|
37
37
|
attr_accessor :start_date
|
38
38
|
|
@@ -50,17 +50,17 @@ module Orb
|
|
50
50
|
line_items:,
|
51
51
|
# An optional reason for the credit note.
|
52
52
|
reason:,
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# This date is inclusive.
|
53
|
+
# A date string to specify the global credit note service period end date in the
|
54
|
+
# customer's timezone. This will be applied to all line items that don't have
|
55
|
+
# their own individual service periods specified. If not provided, line items will
|
56
|
+
# use their original invoice line item service periods. This date is inclusive.
|
57
57
|
end_date: nil,
|
58
58
|
# An optional memo to attach to the credit note.
|
59
59
|
memo: nil,
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
# This date is inclusive.
|
60
|
+
# A date string to specify the global credit note service period start date in the
|
61
|
+
# customer's timezone. This will be applied to all line items that don't have
|
62
|
+
# their own individual service periods specified. If not provided, line items will
|
63
|
+
# use their original invoice line item service periods. This date is inclusive.
|
64
64
|
start_date: nil,
|
65
65
|
request_options: {}
|
66
66
|
)
|
@@ -95,19 +95,18 @@ module Orb
|
|
95
95
|
sig { returns(String) }
|
96
96
|
attr_accessor :invoice_line_item_id
|
97
97
|
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
# inclusive.
|
98
|
+
# A date string to specify this line item's credit note service period end date in
|
99
|
+
# the customer's timezone. If provided, this will be used for this specific line
|
100
|
+
# item. If not provided, will use the global end_date if available, otherwise
|
101
|
+
# defaults to the original invoice line item's end date. This date is inclusive.
|
103
102
|
sig { returns(T.nilable(Date)) }
|
104
103
|
attr_accessor :end_date
|
105
104
|
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
105
|
+
# A date string to specify this line item's credit note service period start date
|
106
|
+
# in the customer's timezone. If provided, this will be used for this specific
|
107
|
+
# line item. If not provided, will use the global start_date if available,
|
108
|
+
# otherwise defaults to the original invoice line item's start date. This date is
|
109
|
+
# inclusive.
|
111
110
|
sig { returns(T.nilable(Date)) }
|
112
111
|
attr_accessor :start_date
|
113
112
|
|
@@ -124,17 +123,16 @@ module Orb
|
|
124
123
|
amount:,
|
125
124
|
# The ID of the line item to credit.
|
126
125
|
invoice_line_item_id:,
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
# inclusive.
|
126
|
+
# A date string to specify this line item's credit note service period end date in
|
127
|
+
# the customer's timezone. If provided, this will be used for this specific line
|
128
|
+
# item. If not provided, will use the global end_date if available, otherwise
|
129
|
+
# defaults to the original invoice line item's end date. This date is inclusive.
|
132
130
|
end_date: nil,
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
131
|
+
# A date string to specify this line item's credit note service period start date
|
132
|
+
# in the customer's timezone. If provided, this will be used for this specific
|
133
|
+
# line item. If not provided, will use the global start_date if available,
|
134
|
+
# otherwise defaults to the original invoice line item's start date. This date is
|
135
|
+
# inclusive.
|
138
136
|
start_date: nil
|
139
137
|
)
|
140
138
|
end
|
@@ -15,7 +15,7 @@ module Orb
|
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
18
|
-
# The currency
|
18
|
+
# The currency to use.
|
19
19
|
sig { returns(T.nilable(String)) }
|
20
20
|
attr_accessor :currency
|
21
21
|
|
@@ -53,7 +53,7 @@ module Orb
|
|
53
53
|
).returns(T.attached_class)
|
54
54
|
end
|
55
55
|
def self.new(
|
56
|
-
# The currency
|
56
|
+
# The currency to use.
|
57
57
|
currency: nil,
|
58
58
|
# Costs returned are exclusive of `timeframe_end`.
|
59
59
|
timeframe_end: nil,
|
@@ -12,7 +12,7 @@ module Orb
|
|
12
12
|
T.any(Orb::Customers::CostListParams, Orb::Internal::AnyHash)
|
13
13
|
end
|
14
14
|
|
15
|
-
# The currency
|
15
|
+
# The currency to use.
|
16
16
|
sig { returns(T.nilable(String)) }
|
17
17
|
attr_accessor :currency
|
18
18
|
|
@@ -44,7 +44,7 @@ module Orb
|
|
44
44
|
).returns(T.attached_class)
|
45
45
|
end
|
46
46
|
def self.new(
|
47
|
-
# The currency
|
47
|
+
# The currency to use.
|
48
48
|
currency: nil,
|
49
49
|
# Costs returned are exclusive of `timeframe_end`.
|
50
50
|
timeframe_end: nil,
|
@@ -11,7 +11,7 @@ module Orb
|
|
11
11
|
T.any(Orb::SubscriptionFetchCostsParams, Orb::Internal::AnyHash)
|
12
12
|
end
|
13
13
|
|
14
|
-
# The currency
|
14
|
+
# The currency to use.
|
15
15
|
sig { returns(T.nilable(String)) }
|
16
16
|
attr_accessor :currency
|
17
17
|
|
@@ -45,7 +45,7 @@ module Orb
|
|
45
45
|
).returns(T.attached_class)
|
46
46
|
end
|
47
47
|
def self.new(
|
48
|
-
# The currency
|
48
|
+
# The currency to use.
|
49
49
|
currency: nil,
|
50
50
|
# Costs returned are exclusive of `timeframe_end`.
|
51
51
|
timeframe_end: nil,
|
@@ -44,17 +44,17 @@ module Orb
|
|
44
44
|
line_items:,
|
45
45
|
# An optional reason for the credit note.
|
46
46
|
reason:,
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# This date is inclusive.
|
47
|
+
# A date string to specify the global credit note service period end date in the
|
48
|
+
# customer's timezone. This will be applied to all line items that don't have
|
49
|
+
# their own individual service periods specified. If not provided, line items will
|
50
|
+
# use their original invoice line item service periods. This date is inclusive.
|
51
51
|
end_date: nil,
|
52
52
|
# An optional memo to attach to the credit note.
|
53
53
|
memo: nil,
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
# This date is inclusive.
|
54
|
+
# A date string to specify the global credit note service period start date in the
|
55
|
+
# customer's timezone. This will be applied to all line items that don't have
|
56
|
+
# their own individual service periods specified. If not provided, line items will
|
57
|
+
# use their original invoice line item service periods. This date is inclusive.
|
58
58
|
start_date: nil,
|
59
59
|
request_options: {}
|
60
60
|
)
|
@@ -134,7 +134,7 @@ module Orb
|
|
134
134
|
end
|
135
135
|
def list(
|
136
136
|
customer_id,
|
137
|
-
# The currency
|
137
|
+
# The currency to use.
|
138
138
|
currency: nil,
|
139
139
|
# Costs returned are exclusive of `timeframe_end`.
|
140
140
|
timeframe_end: nil,
|
@@ -281,7 +281,7 @@ module Orb
|
|
281
281
|
end
|
282
282
|
def list_by_external_id(
|
283
283
|
external_customer_id,
|
284
|
-
# The currency
|
284
|
+
# The currency to use.
|
285
285
|
currency: nil,
|
286
286
|
# Costs returned are exclusive of `timeframe_end`.
|
287
287
|
timeframe_end: nil,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orb-billing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|