Skip to content

Commit eb40fda

Browse files
feat(api): api update
1 parent b7ef3b3 commit eb40fda

7 files changed

Lines changed: 46 additions & 28 deletions

File tree

.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-dafe9f726a47bdf7e506af8f10c6abcf4321dcc58106ce2b806a918778dfe2be.yml
3-
openapi_spec_hash: 8e9827f2e8818d011e6afb203adb825f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-87e16688d40cde735bc36efd40d8c12a7918919b18268d9c40b46d0cdf2f6251.yml
3+
openapi_spec_hash: 83f1f5a6fa7a07db4af09426232d0786
44
config_hash: 3279841440b02d4e8303c961d6983492

lib/orb/models/customer_update_by_external_id_params.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
4848
optional :billing_address, -> { Orb::AddressInput }, nil?: true
4949

5050
# @!attribute currency
51-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
52-
# set at creation time, will be set at subscription creation time.
51+
# An ISO 4217 currency string used for the customer's invoices and balance. This
52+
# can only be set if the customer does not already have a currency configured. If
53+
# not set at creation or update time, it will be set at subscription creation
54+
# time.
5355
#
5456
# @return [String, nil]
5557
optional :currency, String, nil?: true
@@ -308,7 +310,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
308310
#
309311
# @param billing_address [Orb::Models::AddressInput, nil]
310312
#
311-
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
313+
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. This c
312314
#
313315
# @param email [String, nil] A valid customer email, to be used for invoicing and notifications.
314316
#

lib/orb/models/customer_update_params.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel
4848
optional :billing_address, -> { Orb::AddressInput }, nil?: true
4949

5050
# @!attribute currency
51-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
52-
# set at creation time, will be set at subscription creation time.
51+
# An ISO 4217 currency string used for the customer's invoices and balance. This
52+
# can only be set if the customer does not already have a currency configured. If
53+
# not set at creation or update time, it will be set at subscription creation
54+
# time.
5355
#
5456
# @return [String, nil]
5557
optional :currency, String, nil?: true
@@ -302,7 +304,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel
302304
#
303305
# @param billing_address [Orb::Models::AddressInput, nil]
304306
#
305-
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
307+
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. This c
306308
#
307309
# @param email [String, nil] A valid customer email, to be used for invoicing and notifications.
308310
#

lib/orb/resources/customers.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ def create(params)
147147
#
148148
# This endpoint can be used to update the `payment_provider`,
149149
# `payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
150-
# `auto_collection`, `metadata`, `shipping_address`, `billing_address`, and
151-
# `additional_emails` of an existing customer. Other fields on a customer are
152-
# currently immutable.
150+
# `auto_collection`, `metadata`, `shipping_address`, `billing_address`,
151+
# `additional_emails`, and `currency` of an existing customer. `currency` can only
152+
# be set if it has not already been set on the customer. Other fields on a
153+
# customer are currently immutable.
153154
#
154155
# @overload update(customer_id, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, auto_issuance: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_configuration: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {})
155156
#
@@ -165,7 +166,7 @@ def create(params)
165166
#
166167
# @param billing_address [Orb::Models::AddressInput, nil]
167168
#
168-
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
169+
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. This c
169170
#
170171
# @param email [String, nil] A valid customer email, to be used for invoicing and notifications.
171172
#
@@ -406,7 +407,7 @@ def sync_payment_methods_from_gateway_by_external_customer_id(external_customer_
406407
#
407408
# @param billing_address [Orb::Models::AddressInput, nil]
408409
#
409-
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
410+
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. This c
410411
#
411412
# @param email [String, nil] A valid customer email, to be used for invoicing and notifications.
412413
#

rbi/orb/models/customer_update_by_external_id_params.rbi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ module Orb
5050
sig { params(billing_address: T.nilable(Orb::AddressInput::OrHash)).void }
5151
attr_writer :billing_address
5252

53-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
54-
# set at creation time, will be set at subscription creation time.
53+
# An ISO 4217 currency string used for the customer's invoices and balance. This
54+
# can only be set if the customer does not already have a currency configured. If
55+
# not set at creation or update time, it will be set at subscription creation
56+
# time.
5557
sig { returns(T.nilable(String)) }
5658
attr_accessor :currency
5759

@@ -375,8 +377,10 @@ module Orb
375377
# will be inherited from the account-level setting.
376378
auto_issuance: nil,
377379
billing_address: nil,
378-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
379-
# set at creation time, will be set at subscription creation time.
380+
# An ISO 4217 currency string used for the customer's invoices and balance. This
381+
# can only be set if the customer does not already have a currency configured. If
382+
# not set at creation or update time, it will be set at subscription creation
383+
# time.
380384
currency: nil,
381385
# A valid customer email, to be used for invoicing and notifications.
382386
email: nil,

rbi/orb/models/customer_update_params.rbi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ module Orb
5050
sig { params(billing_address: T.nilable(Orb::AddressInput::OrHash)).void }
5151
attr_writer :billing_address
5252

53-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
54-
# set at creation time, will be set at subscription creation time.
53+
# An ISO 4217 currency string used for the customer's invoices and balance. This
54+
# can only be set if the customer does not already have a currency configured. If
55+
# not set at creation or update time, it will be set at subscription creation
56+
# time.
5557
sig { returns(T.nilable(String)) }
5658
attr_accessor :currency
5759

@@ -363,8 +365,10 @@ module Orb
363365
# will be inherited from the account-level setting.
364366
auto_issuance: nil,
365367
billing_address: nil,
366-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
367-
# set at creation time, will be set at subscription creation time.
368+
# An ISO 4217 currency string used for the customer's invoices and balance. This
369+
# can only be set if the customer does not already have a currency configured. If
370+
# not set at creation or update time, it will be set at subscription creation
371+
# time.
368372
currency: nil,
369373
# A valid customer email, to be used for invoicing and notifications.
370374
email: nil,

rbi/orb/resources/customers.rbi

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,10 @@ module Orb
324324

325325
# This endpoint can be used to update the `payment_provider`,
326326
# `payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
327-
# `auto_collection`, `metadata`, `shipping_address`, `billing_address`, and
328-
# `additional_emails` of an existing customer. Other fields on a customer are
329-
# currently immutable.
327+
# `auto_collection`, `metadata`, `shipping_address`, `billing_address`,
328+
# `additional_emails`, and `currency` of an existing customer. `currency` can only
329+
# be set if it has not already been set on the customer. Other fields on a
330+
# customer are currently immutable.
330331
sig do
331332
params(
332333
customer_id: String,
@@ -383,8 +384,10 @@ module Orb
383384
# will be inherited from the account-level setting.
384385
auto_issuance: nil,
385386
billing_address: nil,
386-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
387-
# set at creation time, will be set at subscription creation time.
387+
# An ISO 4217 currency string used for the customer's invoices and balance. This
388+
# can only be set if the customer does not already have a currency configured. If
389+
# not set at creation or update time, it will be set at subscription creation
390+
# time.
388391
currency: nil,
389392
# A valid customer email, to be used for invoicing and notifications.
390393
email: nil,
@@ -748,8 +751,10 @@ module Orb
748751
# will be inherited from the account-level setting.
749752
auto_issuance: nil,
750753
billing_address: nil,
751-
# An ISO 4217 currency string used for the customer's invoices and balance. If not
752-
# set at creation time, will be set at subscription creation time.
754+
# An ISO 4217 currency string used for the customer's invoices and balance. This
755+
# can only be set if the customer does not already have a currency configured. If
756+
# not set at creation or update time, it will be set at subscription creation
757+
# time.
753758
currency: nil,
754759
# A valid customer email, to be used for invoicing and notifications.
755760
email: nil,

0 commit comments

Comments
 (0)