orb-billing 1.8.0 → 1.9.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 +13 -0
- data/README.md +1 -1
- data/lib/orb/models/invoice_create_params.rb +12 -12
- data/lib/orb/resources/invoices.rb +3 -3
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/invoice_create_params.rbi +14 -14
- data/rbi/orb/resources/invoices.rbi +6 -6
- data/sig/orb/models/invoice_create_params.rbs +5 -5
- data/sig/orb/resources/invoices.rbs +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: 73447aae66a57454d85c9920c95279d8b14491f0f7db3cdf662d4a0937912bd5
|
4
|
+
data.tar.gz: 559307bb284616b1d980e54218738631c8f27a97c79945eb45ca7dc6a9ae582a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d93187e3f51a0f915021b59c13d11a9dee6892c72a2d95aba9233e6470d1e87a1713efeb967a9db811dba1a9dd0e1a27c0dc3b55c244de234d72a563c9d12b6c
|
7
|
+
data.tar.gz: bb9327c4f6139f1e2329702c55a6102764ca5a61d726b726599cdebb276598cd4876dd5e0683d352ea28eeacb43ab436ee13ee9da23722b856e1aaceefdb1c1b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.9.0 (2025-07-21)
|
4
|
+
|
5
|
+
Full Changelog: [v1.8.0...v1.9.0](https://github.com/orbcorp/orb-ruby/compare/v1.8.0...v1.9.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([a6e890c](https://github.com/orbcorp/orb-ruby/commit/a6e890c40ec02098aac56daf3793545df289f914))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** version bump ([4e5e51e](https://github.com/orbcorp/orb-ruby/commit/4e5e51e6255e54012d7aaab536a2d1cf239b30a2))
|
15
|
+
|
3
16
|
## 1.8.0 (2025-07-17)
|
4
17
|
|
5
18
|
Full Changelog: [v1.7.0...v1.8.0](https://github.com/orbcorp/orb-ruby/compare/v1.7.0...v1.8.0)
|
data/README.md
CHANGED
@@ -26,15 +26,6 @@ module Orb
|
|
26
26
|
# @return [Array<Orb::Models::InvoiceCreateParams::LineItem>]
|
27
27
|
required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::InvoiceCreateParams::LineItem] }
|
28
28
|
|
29
|
-
# @!attribute net_terms
|
30
|
-
# Determines the difference between the invoice issue date for subscription
|
31
|
-
# invoices as the date that they are due. A value of '0' here represents that the
|
32
|
-
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
33
|
-
# 30 days to pay the invoice.
|
34
|
-
#
|
35
|
-
# @return [Integer]
|
36
|
-
required :net_terms, Integer
|
37
|
-
|
38
29
|
# @!attribute customer_id
|
39
30
|
# The id of the `Customer` to create this invoice for. One of `customer_id` and
|
40
31
|
# `external_customer_id` are required.
|
@@ -69,6 +60,15 @@ module Orb
|
|
69
60
|
# @return [Hash{Symbol=>String, nil}, nil]
|
70
61
|
optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true
|
71
62
|
|
63
|
+
# @!attribute net_terms
|
64
|
+
# Determines the difference between the invoice issue date for subscription
|
65
|
+
# invoices as the date that they are due. A value of '0' here represents that the
|
66
|
+
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
67
|
+
# 30 days to pay the invoice.
|
68
|
+
#
|
69
|
+
# @return [Integer, nil]
|
70
|
+
optional :net_terms, Integer, nil?: true
|
71
|
+
|
72
72
|
# @!attribute will_auto_issue
|
73
73
|
# When true, this invoice will be submitted for issuance upon creation. When
|
74
74
|
# false, the resulting invoice will require manual review to issue. Defaulted to
|
@@ -77,7 +77,7 @@ module Orb
|
|
77
77
|
# @return [Boolean, nil]
|
78
78
|
optional :will_auto_issue, Orb::Internal::Type::Boolean
|
79
79
|
|
80
|
-
# @!method initialize(currency:, invoice_date:, line_items:,
|
80
|
+
# @!method initialize(currency:, invoice_date:, line_items:, customer_id: nil, discount: nil, external_customer_id: nil, memo: nil, metadata: nil, net_terms: nil, will_auto_issue: nil, request_options: {})
|
81
81
|
# Some parameter documentations has been truncated, see
|
82
82
|
# {Orb::Models::InvoiceCreateParams} for more details.
|
83
83
|
#
|
@@ -87,8 +87,6 @@ module Orb
|
|
87
87
|
#
|
88
88
|
# @param line_items [Array<Orb::Models::InvoiceCreateParams::LineItem>]
|
89
89
|
#
|
90
|
-
# @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic
|
91
|
-
#
|
92
90
|
# @param customer_id [String, nil] The id of the `Customer` to create this invoice for. One of `customer_id` and `e
|
93
91
|
#
|
94
92
|
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] An optional discount to attach to the invoice.
|
@@ -99,6 +97,8 @@ module Orb
|
|
99
97
|
#
|
100
98
|
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
101
99
|
#
|
100
|
+
# @param net_terms [Integer, nil] Determines the difference between the invoice issue date for subscription invoic
|
101
|
+
#
|
102
102
|
# @param will_auto_issue [Boolean] When true, this invoice will be submitted for issuance upon creation. When false
|
103
103
|
#
|
104
104
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
@@ -8,7 +8,7 @@ module Orb
|
|
8
8
|
#
|
9
9
|
# This endpoint is used to create a one-off invoice for a customer.
|
10
10
|
#
|
11
|
-
# @overload create(currency:, invoice_date:, line_items:,
|
11
|
+
# @overload create(currency:, invoice_date:, line_items:, customer_id: nil, discount: nil, external_customer_id: nil, memo: nil, metadata: nil, net_terms: nil, will_auto_issue: nil, request_options: {})
|
12
12
|
#
|
13
13
|
# @param currency [String] An ISO 4217 currency string. Must be the same as the customer's currency if it i
|
14
14
|
#
|
@@ -16,8 +16,6 @@ module Orb
|
|
16
16
|
#
|
17
17
|
# @param line_items [Array<Orb::Models::InvoiceCreateParams::LineItem>]
|
18
18
|
#
|
19
|
-
# @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic
|
20
|
-
#
|
21
19
|
# @param customer_id [String, nil] The id of the `Customer` to create this invoice for. One of `customer_id` and `e
|
22
20
|
#
|
23
21
|
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] An optional discount to attach to the invoice.
|
@@ -28,6 +26,8 @@ module Orb
|
|
28
26
|
#
|
29
27
|
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
30
28
|
#
|
29
|
+
# @param net_terms [Integer, nil] Determines the difference between the invoice issue date for subscription invoic
|
30
|
+
#
|
31
31
|
# @param will_auto_issue [Boolean] When true, this invoice will be submitted for issuance upon creation. When false
|
32
32
|
#
|
33
33
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
data/lib/orb/version.rb
CHANGED
@@ -22,13 +22,6 @@ module Orb
|
|
22
22
|
sig { returns(T::Array[Orb::InvoiceCreateParams::LineItem]) }
|
23
23
|
attr_accessor :line_items
|
24
24
|
|
25
|
-
# Determines the difference between the invoice issue date for subscription
|
26
|
-
# invoices as the date that they are due. A value of '0' here represents that the
|
27
|
-
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
28
|
-
# 30 days to pay the invoice.
|
29
|
-
sig { returns(Integer) }
|
30
|
-
attr_accessor :net_terms
|
31
|
-
|
32
25
|
# The id of the `Customer` to create this invoice for. One of `customer_id` and
|
33
26
|
# `external_customer_id` are required.
|
34
27
|
sig { returns(T.nilable(String)) }
|
@@ -64,6 +57,13 @@ module Orb
|
|
64
57
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
65
58
|
attr_accessor :metadata
|
66
59
|
|
60
|
+
# Determines the difference between the invoice issue date for subscription
|
61
|
+
# invoices as the date that they are due. A value of '0' here represents that the
|
62
|
+
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
63
|
+
# 30 days to pay the invoice.
|
64
|
+
sig { returns(T.nilable(Integer)) }
|
65
|
+
attr_accessor :net_terms
|
66
|
+
|
67
67
|
# When true, this invoice will be submitted for issuance upon creation. When
|
68
68
|
# false, the resulting invoice will require manual review to issue. Defaulted to
|
69
69
|
# false.
|
@@ -78,7 +78,6 @@ module Orb
|
|
78
78
|
currency: String,
|
79
79
|
invoice_date: Time,
|
80
80
|
line_items: T::Array[Orb::InvoiceCreateParams::LineItem::OrHash],
|
81
|
-
net_terms: Integer,
|
82
81
|
customer_id: T.nilable(String),
|
83
82
|
discount:
|
84
83
|
T.nilable(
|
@@ -92,6 +91,7 @@ module Orb
|
|
92
91
|
external_customer_id: T.nilable(String),
|
93
92
|
memo: T.nilable(String),
|
94
93
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
94
|
+
net_terms: T.nilable(Integer),
|
95
95
|
will_auto_issue: T::Boolean,
|
96
96
|
request_options: Orb::RequestOptions::OrHash
|
97
97
|
).returns(T.attached_class)
|
@@ -104,11 +104,6 @@ module Orb
|
|
104
104
|
# set to the current time in the customer's timezone.
|
105
105
|
invoice_date:,
|
106
106
|
line_items:,
|
107
|
-
# Determines the difference between the invoice issue date for subscription
|
108
|
-
# invoices as the date that they are due. A value of '0' here represents that the
|
109
|
-
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
110
|
-
# 30 days to pay the invoice.
|
111
|
-
net_terms:,
|
112
107
|
# The id of the `Customer` to create this invoice for. One of `customer_id` and
|
113
108
|
# `external_customer_id` are required.
|
114
109
|
customer_id: nil,
|
@@ -123,6 +118,11 @@ module Orb
|
|
123
118
|
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
124
119
|
# by setting `metadata` to `null`.
|
125
120
|
metadata: nil,
|
121
|
+
# Determines the difference between the invoice issue date for subscription
|
122
|
+
# invoices as the date that they are due. A value of '0' here represents that the
|
123
|
+
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
124
|
+
# 30 days to pay the invoice.
|
125
|
+
net_terms: nil,
|
126
126
|
# When true, this invoice will be submitted for issuance upon creation. When
|
127
127
|
# false, the resulting invoice will require manual review to issue. Defaulted to
|
128
128
|
# false.
|
@@ -137,7 +137,6 @@ module Orb
|
|
137
137
|
currency: String,
|
138
138
|
invoice_date: Time,
|
139
139
|
line_items: T::Array[Orb::InvoiceCreateParams::LineItem],
|
140
|
-
net_terms: Integer,
|
141
140
|
customer_id: T.nilable(String),
|
142
141
|
discount:
|
143
142
|
T.nilable(
|
@@ -151,6 +150,7 @@ module Orb
|
|
151
150
|
external_customer_id: T.nilable(String),
|
152
151
|
memo: T.nilable(String),
|
153
152
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
153
|
+
net_terms: T.nilable(Integer),
|
154
154
|
will_auto_issue: T::Boolean,
|
155
155
|
request_options: Orb::RequestOptions
|
156
156
|
}
|
@@ -9,7 +9,6 @@ module Orb
|
|
9
9
|
currency: String,
|
10
10
|
invoice_date: Time,
|
11
11
|
line_items: T::Array[Orb::InvoiceCreateParams::LineItem::OrHash],
|
12
|
-
net_terms: Integer,
|
13
12
|
customer_id: T.nilable(String),
|
14
13
|
discount:
|
15
14
|
T.nilable(
|
@@ -23,6 +22,7 @@ module Orb
|
|
23
22
|
external_customer_id: T.nilable(String),
|
24
23
|
memo: T.nilable(String),
|
25
24
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
25
|
+
net_terms: T.nilable(Integer),
|
26
26
|
will_auto_issue: T::Boolean,
|
27
27
|
request_options: Orb::RequestOptions::OrHash
|
28
28
|
).returns(Orb::Invoice)
|
@@ -35,11 +35,6 @@ module Orb
|
|
35
35
|
# set to the current time in the customer's timezone.
|
36
36
|
invoice_date:,
|
37
37
|
line_items:,
|
38
|
-
# Determines the difference between the invoice issue date for subscription
|
39
|
-
# invoices as the date that they are due. A value of '0' here represents that the
|
40
|
-
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
41
|
-
# 30 days to pay the invoice.
|
42
|
-
net_terms:,
|
43
38
|
# The id of the `Customer` to create this invoice for. One of `customer_id` and
|
44
39
|
# `external_customer_id` are required.
|
45
40
|
customer_id: nil,
|
@@ -54,6 +49,11 @@ module Orb
|
|
54
49
|
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
55
50
|
# by setting `metadata` to `null`.
|
56
51
|
metadata: nil,
|
52
|
+
# Determines the difference between the invoice issue date for subscription
|
53
|
+
# invoices as the date that they are due. A value of '0' here represents that the
|
54
|
+
# invoice is due on issue, whereas a value of 30 represents that the customer has
|
55
|
+
# 30 days to pay the invoice.
|
56
|
+
net_terms: nil,
|
57
57
|
# When true, this invoice will be submitted for issuance upon creation. When
|
58
58
|
# false, the resulting invoice will require manual review to issue. Defaulted to
|
59
59
|
# false.
|
@@ -5,12 +5,12 @@ module Orb
|
|
5
5
|
currency: String,
|
6
6
|
invoice_date: Time,
|
7
7
|
line_items: ::Array[Orb::InvoiceCreateParams::LineItem],
|
8
|
-
net_terms: Integer,
|
9
8
|
customer_id: String?,
|
10
9
|
discount: Orb::Models::discount?,
|
11
10
|
external_customer_id: String?,
|
12
11
|
memo: String?,
|
13
12
|
metadata: ::Hash[Symbol, String?]?,
|
13
|
+
net_terms: Integer?,
|
14
14
|
will_auto_issue: bool
|
15
15
|
}
|
16
16
|
& Orb::Internal::Type::request_parameters
|
@@ -25,8 +25,6 @@ module Orb
|
|
25
25
|
|
26
26
|
attr_accessor line_items: ::Array[Orb::InvoiceCreateParams::LineItem]
|
27
27
|
|
28
|
-
attr_accessor net_terms: Integer
|
29
|
-
|
30
28
|
attr_accessor customer_id: String?
|
31
29
|
|
32
30
|
attr_accessor discount: Orb::Models::discount?
|
@@ -37,6 +35,8 @@ module Orb
|
|
37
35
|
|
38
36
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
39
37
|
|
38
|
+
attr_accessor net_terms: Integer?
|
39
|
+
|
40
40
|
attr_reader will_auto_issue: bool?
|
41
41
|
|
42
42
|
def will_auto_issue=: (bool) -> bool
|
@@ -45,12 +45,12 @@ module Orb
|
|
45
45
|
currency: String,
|
46
46
|
invoice_date: Time,
|
47
47
|
line_items: ::Array[Orb::InvoiceCreateParams::LineItem],
|
48
|
-
net_terms: Integer,
|
49
48
|
?customer_id: String?,
|
50
49
|
?discount: Orb::Models::discount?,
|
51
50
|
?external_customer_id: String?,
|
52
51
|
?memo: String?,
|
53
52
|
?metadata: ::Hash[Symbol, String?]?,
|
53
|
+
?net_terms: Integer?,
|
54
54
|
?will_auto_issue: bool,
|
55
55
|
?request_options: Orb::request_opts
|
56
56
|
) -> void
|
@@ -59,12 +59,12 @@ module Orb
|
|
59
59
|
currency: String,
|
60
60
|
invoice_date: Time,
|
61
61
|
line_items: ::Array[Orb::InvoiceCreateParams::LineItem],
|
62
|
-
net_terms: Integer,
|
63
62
|
customer_id: String?,
|
64
63
|
discount: Orb::Models::discount?,
|
65
64
|
external_customer_id: String?,
|
66
65
|
memo: String?,
|
67
66
|
metadata: ::Hash[Symbol, String?]?,
|
67
|
+
net_terms: Integer?,
|
68
68
|
will_auto_issue: bool,
|
69
69
|
request_options: Orb::RequestOptions
|
70
70
|
}
|
@@ -5,12 +5,12 @@ module Orb
|
|
5
5
|
currency: String,
|
6
6
|
invoice_date: Time,
|
7
7
|
line_items: ::Array[Orb::InvoiceCreateParams::LineItem],
|
8
|
-
net_terms: Integer,
|
9
8
|
?customer_id: String?,
|
10
9
|
?discount: Orb::Models::discount?,
|
11
10
|
?external_customer_id: String?,
|
12
11
|
?memo: String?,
|
13
12
|
?metadata: ::Hash[Symbol, String?]?,
|
13
|
+
?net_terms: Integer?,
|
14
14
|
?will_auto_issue: bool,
|
15
15
|
?request_options: Orb::request_opts
|
16
16
|
) -> Orb::Invoice
|
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.9.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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|