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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05521f244d4ad5c3d81ed23bd52949c7abf7bf9e1f164f0ea4e08d2f094c434e
4
- data.tar.gz: b7a6b5f06ca7e4cdd4514fc0a26e1b383fe2859e0d52e8ccdb4504c6c88222c4
3
+ metadata.gz: a0e9f9d106ba6d107bb06596b005e2e4c621b376df39023df0095d8e22a18ac4
4
+ data.tar.gz: f120ab27fa32dd20d14d57de98aa570c3ea0bb661949f94762d76ba766393d97
5
5
  SHA512:
6
- metadata.gz: 05b122e60fc61033ae58c27171bae993f7bb240025902d185de5a1295d85284a68ce8a756e5b63eb6a007def9fabc6282046332aaf559818cc7e76107974411e
7
- data.tar.gz: 315d2ad90e2ca926729949555dc921c2ad5a50fa33ad27865178ca5c54822f14779b6585f2963f989641d978ff4c0973b8d68409f6bd778c5ade82ce764b56a5
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,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 1.18.0"
18
+ gem "orb-billing", "~> 1.19.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -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. Must be
19
- # in the past. If a date is set without a time, `invoice_date` is set to midnight
20
- # on the chosen date in the customer's timezone.
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, this invoice will be submitted for issuance upon creation. When
92
- # false, the resulting invoice will require manual review to issue. Defaulted to
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. Must be i
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, this invoice will be submitted for issuance upon creation. When false
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. Must be i
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, this invoice will be submitted for issuance upon creation. When false
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orb
4
- VERSION = "1.18.0"
4
+ VERSION = "1.19.0"
5
5
  end
@@ -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. Must be
18
- # in the past. If a date is set without a time, `invoice_date` is set to midnight
19
- # on the chosen date in the customer's timezone.
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, this invoice will be submitted for issuance upon creation. When
83
- # false, the resulting invoice will require manual review to issue. Defaulted to
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. Must be
122
- # in the past. If a date is set without a time, `invoice_date` is set to midnight
123
- # on the chosen date in the customer's timezone.
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, this invoice will be submitted for issuance upon creation. When
155
- # false, the resulting invoice will require manual review to issue. Defaulted to
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. Must be
43
- # in the past. If a date is set without a time, `invoice_date` is set to midnight
44
- # on the chosen date in the customer's timezone.
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, this invoice will be submitted for issuance upon creation. When
76
- # false, the resulting invoice will require manual review to issue. Defaulted to
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
  )
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.18.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb