Skip to content

Commit 357d2d4

Browse files
feat(api): api update
1 parent 2fc0409 commit 357d2d4

File tree

7 files changed

+56
-4
lines changed

7 files changed

+56
-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: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c92fb451e13f157b3735f188acc8d57aa3adfbaac1683645e1ba4f432dd7a4f8.yml
3-
openapi_spec_hash: dbcd87ecfbd3976eb3b99ec6f9fbc606
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-77e112caf7b2a2c7b0248b7245b5730bc72ab0ea84ba5d0777e7d0604ae04d26.yml
3+
openapi_spec_hash: 966568dd08f34db64ba0ebace678268a
44
config_hash: 3279841440b02d4e8303c961d6983492

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
243243
# @return [String, nil]
244244
optional :item_id, String, nil?: true
245245

246+
# @!attribute mark_as_paid
247+
# If true, the new credits purchase invoice will be marked as paid.
248+
#
249+
# @return [Boolean, nil]
250+
optional :mark_as_paid, Orb::Internal::Type::Boolean
251+
246252
# @!attribute memo
247253
# An optional memo to display on the invoice.
248254
#
@@ -266,7 +272,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
266272
# @return [Boolean, nil]
267273
optional :require_successful_payment, Orb::Internal::Type::Boolean
268274

269-
# @!method initialize(auto_collection:, custom_due_date: nil, invoice_date: nil, item_id: nil, memo: nil, net_terms: nil, require_successful_payment: nil)
275+
# @!method initialize(auto_collection:, custom_due_date: nil, invoice_date: nil, item_id: nil, mark_as_paid: nil, memo: nil, net_terms: nil, require_successful_payment: nil)
270276
# Some parameter documentations has been truncated, see
271277
# {Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings}
272278
# for more details.
@@ -284,6 +290,8 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
284290
#
285291
# @param item_id [String, nil] The ID of the Item to be used for the invoice line item. If not provided, a defa
286292
#
293+
# @param mark_as_paid [Boolean] If true, the new credits purchase invoice will be marked as paid.
294+
#
287295
# @param memo [String, nil] An optional memo to display on the invoice.
288296
#
289297
# @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
241241
# @return [String, nil]
242242
optional :item_id, String, nil?: true
243243

244+
# @!attribute mark_as_paid
245+
# If true, the new credits purchase invoice will be marked as paid.
246+
#
247+
# @return [Boolean, nil]
248+
optional :mark_as_paid, Orb::Internal::Type::Boolean
249+
244250
# @!attribute memo
245251
# An optional memo to display on the invoice.
246252
#
@@ -264,7 +270,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
264270
# @return [Boolean, nil]
265271
optional :require_successful_payment, Orb::Internal::Type::Boolean
266272

267-
# @!method initialize(auto_collection:, custom_due_date: nil, invoice_date: nil, item_id: nil, memo: nil, net_terms: nil, require_successful_payment: nil)
273+
# @!method initialize(auto_collection:, custom_due_date: nil, invoice_date: nil, item_id: nil, mark_as_paid: nil, memo: nil, net_terms: nil, require_successful_payment: nil)
268274
# Some parameter documentations has been truncated, see
269275
# {Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings} for
270276
# more details.
@@ -282,6 +288,8 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel
282288
#
283289
# @param item_id [String, nil] The ID of the Item to be used for the invoice line item. If not provided, a defa
284290
#
291+
# @param mark_as_paid [Boolean] If true, the new credits purchase invoice will be marked as paid.
292+
#
285293
# @param memo [String, nil] An optional memo to display on the invoice.
286294
#
287295
# @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,13 @@ module Orb
424424
sig { returns(T.nilable(String)) }
425425
attr_accessor :item_id
426426

427+
# If true, the new credits purchase invoice will be marked as paid.
428+
sig { returns(T.nilable(T::Boolean)) }
429+
attr_reader :mark_as_paid
430+
431+
sig { params(mark_as_paid: T::Boolean).void }
432+
attr_writer :mark_as_paid
433+
427434
# An optional memo to display on the invoice.
428435
sig { returns(T.nilable(String)) }
429436
attr_accessor :memo
@@ -460,6 +467,7 @@ module Orb
460467
Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::InvoiceDate::Variants
461468
),
462469
item_id: T.nilable(String),
470+
mark_as_paid: T::Boolean,
463471
memo: T.nilable(String),
464472
net_terms: T.nilable(Integer),
465473
require_successful_payment: T::Boolean
@@ -479,6 +487,8 @@ module Orb
479487
# The ID of the Item to be used for the invoice line item. If not provided, a
480488
# default 'Credits' item will be used.
481489
item_id: nil,
490+
# If true, the new credits purchase invoice will be marked as paid.
491+
mark_as_paid: nil,
482492
# An optional memo to display on the invoice.
483493
memo: nil,
484494
# The net terms determines the due date of the invoice. Due date is calculated
@@ -506,6 +516,7 @@ module Orb
506516
Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::InvoiceDate::Variants
507517
),
508518
item_id: T.nilable(String),
519+
mark_as_paid: T::Boolean,
509520
memo: T.nilable(String),
510521
net_terms: T.nilable(Integer),
511522
require_successful_payment: T::Boolean

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,13 @@ module Orb
424424
sig { returns(T.nilable(String)) }
425425
attr_accessor :item_id
426426

427+
# If true, the new credits purchase invoice will be marked as paid.
428+
sig { returns(T.nilable(T::Boolean)) }
429+
attr_reader :mark_as_paid
430+
431+
sig { params(mark_as_paid: T::Boolean).void }
432+
attr_writer :mark_as_paid
433+
427434
# An optional memo to display on the invoice.
428435
sig { returns(T.nilable(String)) }
429436
attr_accessor :memo
@@ -460,6 +467,7 @@ module Orb
460467
Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::InvoiceDate::Variants
461468
),
462469
item_id: T.nilable(String),
470+
mark_as_paid: T::Boolean,
463471
memo: T.nilable(String),
464472
net_terms: T.nilable(Integer),
465473
require_successful_payment: T::Boolean
@@ -479,6 +487,8 @@ module Orb
479487
# The ID of the Item to be used for the invoice line item. If not provided, a
480488
# default 'Credits' item will be used.
481489
item_id: nil,
490+
# If true, the new credits purchase invoice will be marked as paid.
491+
mark_as_paid: nil,
482492
# An optional memo to display on the invoice.
483493
memo: nil,
484494
# The net terms determines the due date of the invoice. Due date is calculated
@@ -506,6 +516,7 @@ module Orb
506516
Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::InvoiceDate::Variants
507517
),
508518
item_id: T.nilable(String),
519+
mark_as_paid: T::Boolean,
509520
memo: T.nilable(String),
510521
net_terms: T.nilable(Integer),
511522
require_successful_payment: T::Boolean

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ module Orb
148148
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?,
149149
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?,
150150
item_id: String?,
151+
mark_as_paid: bool,
151152
memo: String?,
152153
net_terms: Integer?,
153154
require_successful_payment: bool
@@ -162,6 +163,10 @@ module Orb
162163

163164
attr_accessor item_id: String?
164165

166+
attr_reader mark_as_paid: bool?
167+
168+
def mark_as_paid=: (bool) -> bool
169+
165170
attr_accessor memo: String?
166171

167172
attr_accessor net_terms: Integer?
@@ -175,6 +180,7 @@ module Orb
175180
?custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?,
176181
?invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?,
177182
?item_id: String?,
183+
?mark_as_paid: bool,
178184
?memo: String?,
179185
?net_terms: Integer?,
180186
?require_successful_payment: bool
@@ -185,6 +191,7 @@ module Orb
185191
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?,
186192
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?,
187193
item_id: String?,
194+
mark_as_paid: bool,
188195
memo: String?,
189196
net_terms: Integer?,
190197
require_successful_payment: bool

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ module Orb
148148
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?,
149149
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?,
150150
item_id: String?,
151+
mark_as_paid: bool,
151152
memo: String?,
152153
net_terms: Integer?,
153154
require_successful_payment: bool
@@ -162,6 +163,10 @@ module Orb
162163

163164
attr_accessor item_id: String?
164165

166+
attr_reader mark_as_paid: bool?
167+
168+
def mark_as_paid=: (bool) -> bool
169+
165170
attr_accessor memo: String?
166171

167172
attr_accessor net_terms: Integer?
@@ -175,6 +180,7 @@ module Orb
175180
?custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?,
176181
?invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?,
177182
?item_id: String?,
183+
?mark_as_paid: bool,
178184
?memo: String?,
179185
?net_terms: Integer?,
180186
?require_successful_payment: bool
@@ -185,6 +191,7 @@ module Orb
185191
custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?,
186192
invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?,
187193
item_id: String?,
194+
mark_as_paid: bool,
188195
memo: String?,
189196
net_terms: Integer?,
190197
require_successful_payment: bool

0 commit comments

Comments
 (0)