Skip to content

Commit 34d9e85

Browse files
feat(api): api update
1 parent 22b2593 commit 34d9e85

File tree

7 files changed

+52
-4
lines changed

7 files changed

+52
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d0eaf664d43e26c42ebf8740ff1b6ee34c4d424c7048a7f04df994cb65627f89.yml
3-
openapi_spec_hash: 4d7622040380d5c7bd2e5a5ec9b86783
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2b5eeb4a60cbec92f80b4a54f33c2d17b36cbac4739886f737108f2ad74ff12d.yml
3+
openapi_spec_hash: ebbe8419f5831506de5b4c0b4eb56acf
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
178178
},
179179
nil?: true
180180

181+
# @!attribute item_id
182+
# The ID of the Item to be used for the invoice line item. If not provided, a
183+
# default 'Credits' item will be used.
184+
#
185+
# @return [String, nil]
186+
optional :item_id, String, nil?: true
187+
181188
# @!attribute memo
182189
# An optional memo to display on the invoice.
183190
#
@@ -191,7 +198,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
191198
# @return [Boolean, nil]
192199
optional :require_successful_payment, Orb::Internal::Type::Boolean
193200

194-
# @!method initialize(auto_collection:, net_terms:, custom_due_date: nil, invoice_date: nil, memo: nil, require_successful_payment: nil)
201+
# @!method initialize(auto_collection:, net_terms:, custom_due_date: nil, invoice_date: nil, item_id: nil, memo: nil, require_successful_payment: nil)
195202
# Some parameter documentations has been truncated, see
196203
# {Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings}
197204
# for more details.
@@ -209,6 +216,8 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
209216
#
210217
# @param invoice_date [Date, Time, nil] An ISO 8601 format date that denotes when this invoice should be dated in the cu
211218
#
219+
# @param item_id [String, nil] The ID of the Item to be used for the invoice line item. If not provided, a defa
220+
#
212221
# @param memo [String, nil] An optional memo to display on the invoice.
213222
#
214223
# @param require_successful_payment [Boolean] If true, the new credit block will require that the corresponding invoice is pai

lib/orb/models/customers/credits/ledger_create_entry_params.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
177177
},
178178
nil?: true
179179

180+
# @!attribute item_id
181+
# The ID of the Item to be used for the invoice line item. If not provided, a
182+
# default 'Credits' item will be used.
183+
#
184+
# @return [String, nil]
185+
optional :item_id, String, nil?: true
186+
180187
# @!attribute memo
181188
# An optional memo to display on the invoice.
182189
#
@@ -190,7 +197,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
190197
# @return [Boolean, nil]
191198
optional :require_successful_payment, Orb::Internal::Type::Boolean
192199

193-
# @!method initialize(auto_collection:, net_terms:, custom_due_date: nil, invoice_date: nil, memo: nil, require_successful_payment: nil)
200+
# @!method initialize(auto_collection:, net_terms:, custom_due_date: nil, invoice_date: nil, item_id: nil, memo: nil, require_successful_payment: nil)
194201
# Some parameter documentations has been truncated, see
195202
# {Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings} for
196203
# more details.
@@ -208,6 +215,8 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
208215
#
209216
# @param invoice_date [Date, Time, nil] An ISO 8601 format date that denotes when this invoice should be dated in the cu
210217
#
218+
# @param item_id [String, nil] The ID of the Item to be used for the invoice line item. If not provided, a defa
219+
#
211220
# @param memo [String, nil] An optional memo to display on the invoice.
212221
#
213222
# @param require_successful_payment [Boolean] If true, the new credit block will require that the corresponding invoice is pai

rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ module Orb
270270
end
271271
attr_accessor :invoice_date
272272

273+
# The ID of the Item to be used for the invoice line item. If not provided, a
274+
# default 'Credits' item will be used.
275+
sig { returns(T.nilable(String)) }
276+
attr_accessor :item_id
277+
273278
# An optional memo to display on the invoice.
274279
sig { returns(T.nilable(String)) }
275280
attr_accessor :memo
@@ -298,6 +303,7 @@ module Orb
298303
T.nilable(
299304
Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::InvoiceDate::Variants
300305
),
306+
item_id: T.nilable(String),
301307
memo: T.nilable(String),
302308
require_successful_payment: T::Boolean
303309
).returns(T.attached_class)
@@ -319,6 +325,9 @@ module Orb
319325
# customer's timezone. If not provided, the invoice date will default to the
320326
# credit block's effective date.
321327
invoice_date: nil,
328+
# The ID of the Item to be used for the invoice line item. If not provided, a
329+
# default 'Credits' item will be used.
330+
item_id: nil,
322331
# An optional memo to display on the invoice.
323332
memo: nil,
324333
# If true, the new credit block will require that the corresponding invoice is
@@ -340,6 +349,7 @@ module Orb
340349
T.nilable(
341350
Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::InvoiceDate::Variants
342351
),
352+
item_id: T.nilable(String),
343353
memo: T.nilable(String),
344354
require_successful_payment: T::Boolean
345355
}

rbi/orb/models/customers/credits/ledger_create_entry_params.rbi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ module Orb
270270
end
271271
attr_accessor :invoice_date
272272

273+
# The ID of the Item to be used for the invoice line item. If not provided, a
274+
# default 'Credits' item will be used.
275+
sig { returns(T.nilable(String)) }
276+
attr_accessor :item_id
277+
273278
# An optional memo to display on the invoice.
274279
sig { returns(T.nilable(String)) }
275280
attr_accessor :memo
@@ -298,6 +303,7 @@ module Orb
298303
T.nilable(
299304
Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::InvoiceDate::Variants
300305
),
306+
item_id: T.nilable(String),
301307
memo: T.nilable(String),
302308
require_successful_payment: T::Boolean
303309
).returns(T.attached_class)
@@ -319,6 +325,9 @@ module Orb
319325
# customer's timezone. If not provided, the invoice date will default to the
320326
# credit block's effective date.
321327
invoice_date: nil,
328+
# The ID of the Item to be used for the invoice line item. If not provided, a
329+
# default 'Credits' item will be used.
330+
item_id: nil,
322331
# An optional memo to display on the invoice.
323332
memo: nil,
324333
# If true, the new credit block will require that the corresponding invoice is
@@ -340,6 +349,7 @@ module Orb
340349
T.nilable(
341350
Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::InvoiceDate::Variants
342351
),
352+
item_id: T.nilable(String),
343353
memo: T.nilable(String),
344354
require_successful_payment: T::Boolean
345355
}

sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ module Orb
9595
net_terms: Integer?,
9696
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?,
9797
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?,
98+
item_id: String?,
9899
memo: String?,
99100
require_successful_payment: bool
100101
}
@@ -108,6 +109,8 @@ module Orb
108109

109110
attr_accessor invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?
110111

112+
attr_accessor item_id: String?
113+
111114
attr_accessor memo: String?
112115

113116
attr_reader require_successful_payment: bool?
@@ -119,6 +122,7 @@ module Orb
119122
net_terms: Integer?,
120123
?custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?,
121124
?invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?,
125+
?item_id: String?,
122126
?memo: String?,
123127
?require_successful_payment: bool
124128
) -> void
@@ -128,6 +132,7 @@ module Orb
128132
net_terms: Integer?,
129133
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?,
130134
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?,
135+
item_id: String?,
131136
memo: String?,
132137
require_successful_payment: bool
133138
}

sig/orb/models/customers/credits/ledger_create_entry_params.rbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ module Orb
9595
net_terms: Integer?,
9696
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?,
9797
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?,
98+
item_id: String?,
9899
memo: String?,
99100
require_successful_payment: bool
100101
}
@@ -108,6 +109,8 @@ module Orb
108109

109110
attr_accessor invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?
110111

112+
attr_accessor item_id: String?
113+
111114
attr_accessor memo: String?
112115

113116
attr_reader require_successful_payment: bool?
@@ -119,6 +122,7 @@ module Orb
119122
net_terms: Integer?,
120123
?custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?,
121124
?invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?,
125+
?item_id: String?,
122126
?memo: String?,
123127
?require_successful_payment: bool
124128
) -> void
@@ -128,6 +132,7 @@ module Orb
128132
net_terms: Integer?,
129133
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?,
130134
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?,
135+
item_id: String?,
131136
memo: String?,
132137
require_successful_payment: bool
133138
}

0 commit comments

Comments
 (0)