orb-billing 1.18.0 → 1.19.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 +7 -0
- data/README.md +1 -1
- data/lib/orb/models/invoice_create_params.rb +9 -8
- data/lib/orb/resources/invoices.rb +2 -2
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/invoice_create_params.rbi +14 -12
- data/rbi/orb/resources/invoices.rbi +7 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0e9f9d106ba6d107bb06596b005e2e4c621b376df39023df0095d8e22a18ac4
|
|
4
|
+
data.tar.gz: f120ab27fa32dd20d14d57de98aa570c3ea0bb661949f94762d76ba766393d97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53d08338a98760e83533d01f385736a61e271af2fe7e041d7d47f8b82bb8b7422fd910398eca0e4bb4943a9886a8a4c7f41dd2cccf37df726004939393588367
|
|
7
|
+
data.tar.gz: 7b42d27acda539c3bda1cbd4f80451bb6f1d87a4c4e7a062600cf77e258c98c750939cd8e25b32e50d242942ca8d6080c00e3450cc0fb80b1fd9d8cfa51d7a62
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.19.0](https://github.com/orbcorp/orb-ruby/compare/v1.18.0...v1.19.0) (2026-07-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** allow future invoice dates (up to one year) for one-off invoice creation ([465d3a0](https://github.com/orbcorp/orb-ruby/commit/465d3a0ec5e43e67aa7601ff59774e0733fbebc7))
|
|
9
|
+
|
|
3
10
|
## [1.18.0](https://github.com/orbcorp/orb-ruby/compare/v1.17.0...v1.18.0) (2026-07-16)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
|
@@ -15,9 +15,10 @@ module Orb
|
|
|
15
15
|
required :currency, String
|
|
16
16
|
|
|
17
17
|
# @!attribute invoice_date
|
|
18
|
-
# An ISO 8601 date or timestamp, interpreted in the customer's timezone.
|
|
19
|
-
#
|
|
20
|
-
#
|
|
18
|
+
# An ISO 8601 date or timestamp, interpreted in the customer's timezone. If a date
|
|
19
|
+
# is set without a time, `invoice_date` is set to midnight on the chosen date in
|
|
20
|
+
# the customer's timezone. `invoice_date` cannot be more than one year in the
|
|
21
|
+
# future.
|
|
21
22
|
#
|
|
22
23
|
# @return [Time]
|
|
23
24
|
required :invoice_date, Time
|
|
@@ -88,9 +89,9 @@ module Orb
|
|
|
88
89
|
optional :net_terms, Integer, nil?: true
|
|
89
90
|
|
|
90
91
|
# @!attribute will_auto_issue
|
|
91
|
-
# When true,
|
|
92
|
-
#
|
|
93
|
-
# false.
|
|
92
|
+
# When true, auto-issues the invoice on the invoice date. If the invoice date is
|
|
93
|
+
# today's date or earlier, the invoice will be issued upon creation. When false,
|
|
94
|
+
# the resulting invoice will require manual review to issue. Defaults to false.
|
|
94
95
|
#
|
|
95
96
|
# @return [Boolean, nil]
|
|
96
97
|
optional :will_auto_issue, Orb::Internal::Type::Boolean
|
|
@@ -101,7 +102,7 @@ module Orb
|
|
|
101
102
|
#
|
|
102
103
|
# @param currency [String] An ISO 4217 currency string. Must be the same as the customer's currency if it i
|
|
103
104
|
#
|
|
104
|
-
# @param invoice_date [Time] An ISO 8601 date or timestamp, interpreted in the customer's timezone.
|
|
105
|
+
# @param invoice_date [Time] An ISO 8601 date or timestamp, interpreted in the customer's timezone. If a date
|
|
105
106
|
#
|
|
106
107
|
# @param line_items [Array<Orb::Models::InvoiceCreateParams::LineItem>]
|
|
107
108
|
#
|
|
@@ -121,7 +122,7 @@ module Orb
|
|
|
121
122
|
#
|
|
122
123
|
# @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas
|
|
123
124
|
#
|
|
124
|
-
# @param will_auto_issue [Boolean] When true,
|
|
125
|
+
# @param will_auto_issue [Boolean] When true, auto-issues the invoice on the invoice date. If the invoice date is t
|
|
125
126
|
#
|
|
126
127
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
127
128
|
|
|
@@ -17,7 +17,7 @@ module Orb
|
|
|
17
17
|
#
|
|
18
18
|
# @param currency [String] An ISO 4217 currency string. Must be the same as the customer's currency if it i
|
|
19
19
|
#
|
|
20
|
-
# @param invoice_date [Time] An ISO 8601 date or timestamp, interpreted in the customer's timezone.
|
|
20
|
+
# @param invoice_date [Time] An ISO 8601 date or timestamp, interpreted in the customer's timezone. If a date
|
|
21
21
|
#
|
|
22
22
|
# @param line_items [Array<Orb::Models::InvoiceCreateParams::LineItem>]
|
|
23
23
|
#
|
|
@@ -37,7 +37,7 @@ module Orb
|
|
|
37
37
|
#
|
|
38
38
|
# @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas
|
|
39
39
|
#
|
|
40
|
-
# @param will_auto_issue [Boolean] When true,
|
|
40
|
+
# @param will_auto_issue [Boolean] When true, auto-issues the invoice on the invoice date. If the invoice date is t
|
|
41
41
|
#
|
|
42
42
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
43
43
|
#
|
data/lib/orb/version.rb
CHANGED
|
@@ -14,9 +14,10 @@ module Orb
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :currency
|
|
16
16
|
|
|
17
|
-
# An ISO 8601 date or timestamp, interpreted in the customer's timezone.
|
|
18
|
-
#
|
|
19
|
-
#
|
|
17
|
+
# An ISO 8601 date or timestamp, interpreted in the customer's timezone. If a date
|
|
18
|
+
# is set without a time, `invoice_date` is set to midnight on the chosen date in
|
|
19
|
+
# the customer's timezone. `invoice_date` cannot be more than one year in the
|
|
20
|
+
# future.
|
|
20
21
|
sig { returns(Time) }
|
|
21
22
|
attr_accessor :invoice_date
|
|
22
23
|
|
|
@@ -79,9 +80,9 @@ module Orb
|
|
|
79
80
|
sig { returns(T.nilable(Integer)) }
|
|
80
81
|
attr_accessor :net_terms
|
|
81
82
|
|
|
82
|
-
# When true,
|
|
83
|
-
#
|
|
84
|
-
# false.
|
|
83
|
+
# When true, auto-issues the invoice on the invoice date. If the invoice date is
|
|
84
|
+
# today's date or earlier, the invoice will be issued upon creation. When false,
|
|
85
|
+
# the resulting invoice will require manual review to issue. Defaults to false.
|
|
85
86
|
sig { returns(T.nilable(T::Boolean)) }
|
|
86
87
|
attr_reader :will_auto_issue
|
|
87
88
|
|
|
@@ -118,9 +119,10 @@ module Orb
|
|
|
118
119
|
# An ISO 4217 currency string. Must be the same as the customer's currency if it
|
|
119
120
|
# is set.
|
|
120
121
|
currency:,
|
|
121
|
-
# An ISO 8601 date or timestamp, interpreted in the customer's timezone.
|
|
122
|
-
#
|
|
123
|
-
#
|
|
122
|
+
# An ISO 8601 date or timestamp, interpreted in the customer's timezone. If a date
|
|
123
|
+
# is set without a time, `invoice_date` is set to midnight on the chosen date in
|
|
124
|
+
# the customer's timezone. `invoice_date` cannot be more than one year in the
|
|
125
|
+
# future.
|
|
124
126
|
invoice_date:,
|
|
125
127
|
line_items:,
|
|
126
128
|
# Determines whether this invoice will automatically attempt to charge a saved
|
|
@@ -151,9 +153,9 @@ module Orb
|
|
|
151
153
|
# on issue, whereas a value of '30' represents that the customer has 30 days to
|
|
152
154
|
# pay the invoice. Do not set this field if you want to set a custom due date.
|
|
153
155
|
net_terms: nil,
|
|
154
|
-
# When true,
|
|
155
|
-
#
|
|
156
|
-
# false.
|
|
156
|
+
# When true, auto-issues the invoice on the invoice date. If the invoice date is
|
|
157
|
+
# today's date or earlier, the invoice will be issued upon creation. When false,
|
|
158
|
+
# the resulting invoice will require manual review to issue. Defaults to false.
|
|
157
159
|
will_auto_issue: nil,
|
|
158
160
|
request_options: {}
|
|
159
161
|
)
|
|
@@ -39,9 +39,10 @@ module Orb
|
|
|
39
39
|
# An ISO 4217 currency string. Must be the same as the customer's currency if it
|
|
40
40
|
# is set.
|
|
41
41
|
currency:,
|
|
42
|
-
# An ISO 8601 date or timestamp, interpreted in the customer's timezone.
|
|
43
|
-
#
|
|
44
|
-
#
|
|
42
|
+
# An ISO 8601 date or timestamp, interpreted in the customer's timezone. If a date
|
|
43
|
+
# is set without a time, `invoice_date` is set to midnight on the chosen date in
|
|
44
|
+
# the customer's timezone. `invoice_date` cannot be more than one year in the
|
|
45
|
+
# future.
|
|
45
46
|
invoice_date:,
|
|
46
47
|
line_items:,
|
|
47
48
|
# Determines whether this invoice will automatically attempt to charge a saved
|
|
@@ -72,9 +73,9 @@ module Orb
|
|
|
72
73
|
# on issue, whereas a value of '30' represents that the customer has 30 days to
|
|
73
74
|
# pay the invoice. Do not set this field if you want to set a custom due date.
|
|
74
75
|
net_terms: nil,
|
|
75
|
-
# When true,
|
|
76
|
-
#
|
|
77
|
-
# false.
|
|
76
|
+
# When true, auto-issues the invoice on the invoice date. If the invoice date is
|
|
77
|
+
# today's date or earlier, the invoice will be issued upon creation. When false,
|
|
78
|
+
# the resulting invoice will require manual review to issue. Defaults to false.
|
|
78
79
|
will_auto_issue: nil,
|
|
79
80
|
request_options: {}
|
|
80
81
|
)
|