Skip to content

Commit d0d1a79

Browse files
feat(api): api update
1 parent 268fdab commit d0d1a79

File tree

10 files changed

+27
-21
lines changed

10 files changed

+27
-21
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: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a44cccd16bb58080f7cc0669999403f6ed3f77287fad901caa6fd2523f2fbafd.yml
3-
openapi_spec_hash: af6444648d0b2a70b7f7ad234bd37541
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1aabbd8715a871e993abf67f0bf9c1d6793b4f197c4b2f11fc7a76453590cd6c.yml
3+
openapi_spec_hash: 3e5878f87e74881d882a69e1ccdc25a3
44
config_hash: 1f535c1fa222aacf28b636eed21bec72

src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public sealed record class CostListByExternalIDParams : Orb::ParamsBase
107107
public required string ExternalCustomerID;
108108

109109
/// <summary>
110-
/// The currency to use.
110+
/// The currency or custom pricing unit to use.
111111
/// </summary>
112112
public string? Currency
113113
{

src/Orb/Models/Customers/Costs/CostListParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public sealed record class CostListParams : Orb::ParamsBase
107107
public required string CustomerID;
108108

109109
/// <summary>
110-
/// The currency to use.
110+
/// The currency or custom pricing unit to use.
111111
/// </summary>
112112
public string? Currency
113113
{

src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public required bool AutoCollection
4040
/// date for the invoice. If you intend the invoice to be due on issue, set this
4141
/// to 0.
4242
/// </summary>
43-
public required long NetTerms
43+
public required long? NetTerms
4444
{
4545
get
4646
{
@@ -50,7 +50,7 @@ public required long NetTerms
5050
"Missing required argument"
5151
);
5252

53-
return Json::JsonSerializer.Deserialize<long>(element);
53+
return Json::JsonSerializer.Deserialize<long?>(element);
5454
}
5555
set { this.Properties["net_terms"] = Json::JsonSerializer.SerializeToElement(value); }
5656
}

src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public required bool AutoCollection
4040
/// date for the invoice. If you intend the invoice to be due on issue, set this
4141
/// to 0.
4242
/// </summary>
43-
public required long NetTerms
43+
public required long? NetTerms
4444
{
4545
get
4646
{
@@ -50,7 +50,7 @@ public required long NetTerms
5050
"Missing required argument"
5151
);
5252

53-
return Json::JsonSerializer.Deserialize<long>(element);
53+
return Json::JsonSerializer.Deserialize<long?>(element);
5454
}
5555
set { this.Properties["net_terms"] = Json::JsonSerializer.SerializeToElement(value); }
5656
}

src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,10 @@ public bool? EmailDelivery
146146
}
147147

148148
/// <summary>
149-
/// The external customer ID. This can only be set if empty and the customer has
150-
/// no past or current subscriptions.
149+
/// The external customer ID. This can only be set if the customer has no existing
150+
/// external customer ID. Since this action may change usage quantities for all
151+
/// existing subscriptions, it is disallowed if the customer has issued invoices
152+
/// with usage line items and subject to the same restrictions as backdated subscription creation.
151153
/// </summary>
152154
public string? ExternalCustomerID
153155
{

src/Orb/Models/Customers/CustomerUpdateParams.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ public bool? EmailDelivery
147147
}
148148

149149
/// <summary>
150-
/// The external customer ID. This can only be set if empty and the customer has
151-
/// no past or current subscriptions.
150+
/// The external customer ID. This can only be set if the customer has no existing
151+
/// external customer ID. Since this action may change usage quantities for all
152+
/// existing subscriptions, it is disallowed if the customer has issued invoices
153+
/// with usage line items and subject to the same restrictions as backdated subscription creation.
152154
/// </summary>
153155
public string? ExternalCustomerID
154156
{

src/Orb/Models/Invoices/InvoiceUpdateParams.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
namespace Orb.Models.Invoices;
99

1010
/// <summary>
11-
/// This endpoint allows you to update the `metadata` property on an invoice. If
12-
/// you pass null for the metadata value, it will clear any existing metadata for
13-
/// that invoice.
11+
/// This endpoint allows you to update the `metadata`, `net_terms`, and `due_date`
12+
/// properties on an invoice. If you pass null for the metadata value, it will clear
13+
/// any existing metadata for that invoice.
1414
///
15-
/// `metadata` can be modified regardless of invoice state.
15+
/// `metadata` can be modified regardless of invoice state. `net_terms` and `due_date`
16+
/// can only be modified if the invoice is in a `draft` state.
1617
/// </summary>
1718
public sealed record class InvoiceUpdateParams : Orb::ParamsBase
1819
{

src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public sealed record class SubscriptionFetchCostsParams : Orb::ParamsBase
2222
public required string SubscriptionID;
2323

2424
/// <summary>
25-
/// The currency to use.
25+
/// The currency or custom pricing unit to use.
2626
/// </summary>
2727
public string? Currency
2828
{

src/Orb/Service/Invoices/IInvoiceService.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ public interface IInvoiceService
1212
Tasks::Task<Models::Invoice> Create(Invoices::InvoiceCreateParams @params);
1313

1414
/// <summary>
15-
/// This endpoint allows you to update the `metadata` property on an invoice. If
16-
/// you pass null for the metadata value, it will clear any existing metadata for
17-
/// that invoice.
15+
/// This endpoint allows you to update the `metadata`, `net_terms`, and `due_date`
16+
/// properties on an invoice. If you pass null for the metadata value, it will
17+
/// clear any existing metadata for that invoice.
1818
///
19-
/// `metadata` can be modified regardless of invoice state.
19+
/// `metadata` can be modified regardless of invoice state. `net_terms` and `due_date`
20+
/// can only be modified if the invoice is in a `draft` state.
2021
/// </summary>
2122
Tasks::Task<Models::Invoice> Update(Invoices::InvoiceUpdateParams @params);
2223

0 commit comments

Comments
 (0)