Skip to content

Commit cf2dd82

Browse files
feat(api): api update
1 parent 3ca920e commit cf2dd82

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
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-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

src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ public AddressInput? BillingAddress
107107

108108
/// <summary>
109109
/// An ISO 4217 currency string used for the customer's invoices and balance.
110-
/// If not set at creation time, will be set at subscription creation time.
110+
/// This can only be set if the customer does not already have a currency configured.
111+
/// If not set at creation or update time, it will be set at subscription creation time.
111112
/// </summary>
112113
public string? Currency
113114
{

src/Orb/Models/Customers/CustomerUpdateParams.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ namespace Orb.Models.Customers;
1515
/// <summary>
1616
/// This endpoint can be used to update the `payment_provider`, `payment_provider_id`,
1717
/// `name`, `email`, `email_delivery`, `tax_id`, `auto_collection`, `metadata`, `shipping_address`,
18-
/// `billing_address`, and `additional_emails` of an existing customer. Other fields
19-
/// on a customer are currently immutable.
18+
/// `billing_address`, `additional_emails`, and `currency` of an existing customer.
19+
/// `currency` can only be set if it has not already been set on the customer. Other
20+
/// fields on a customer are currently immutable.
2021
///
2122
/// <para>NOTE: Do not inherit from this type outside the SDK unless you're okay with
2223
/// breaking changes in non-major versions. We may add new methods in the future that
@@ -108,7 +109,8 @@ public AddressInput? BillingAddress
108109

109110
/// <summary>
110111
/// An ISO 4217 currency string used for the customer's invoices and balance.
111-
/// If not set at creation time, will be set at subscription creation time.
112+
/// This can only be set if the customer does not already have a currency configured.
113+
/// If not set at creation or update time, it will be set at subscription creation time.
112114
/// </summary>
113115
public string? Currency
114116
{

src/Orb/Services/ICustomerService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ Task<Customer> Create(
6868
/// <summary>
6969
/// This endpoint can be used to update the `payment_provider`, `payment_provider_id`,
7070
/// `name`, `email`, `email_delivery`, `tax_id`, `auto_collection`, `metadata`,
71-
/// `shipping_address`, `billing_address`, and `additional_emails` of an existing
72-
/// customer. Other fields on a customer are currently immutable.
71+
/// `shipping_address`, `billing_address`, `additional_emails`, and `currency`
72+
/// of an existing customer. `currency` can only be set if it has not already
73+
/// been set on the customer. Other fields on a customer are currently immutable.
7374
/// </summary>
7475
Task<Customer> Update(
7576
CustomerUpdateParams parameters,

0 commit comments

Comments
 (0)