Skip to content

Commit d0978b0

Browse files
feat(api): api update
1 parent 2ff5c17 commit d0978b0

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
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-42aa43f3893eef31a351e066bf0cf8c56da8c857ccbb45eb7dd58739ad43bd86.yml
3-
openapi_spec_hash: e6b8c1e707036539d88a7b79af864a49
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c075f748a7de8ecdccf11a8f2374682b0efd84f1318147274a838bf2fdd73b58.yml
3+
openapi_spec_hash: ae918b8f348f1b7d3252a59dac36c453
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

src/Orb/Models/SubscriptionChanges/SubscriptionChangeApplyParams.cs

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,30 @@ public string? Description
3939
}
4040

4141
/// <summary>
42-
/// Amount already collected to apply to the customer's balance.
42+
/// Mark all pending invoices that are payable as paid. If amount is also provided,
43+
/// mark as paid and credit the difference to the customer's balance.
44+
/// </summary>
45+
public bool? MarkAsPaid
46+
{
47+
get
48+
{
49+
if (!this.BodyProperties.TryGetValue("mark_as_paid", out JsonElement element))
50+
return null;
51+
52+
return JsonSerializer.Deserialize<bool?>(element, ModelBase.SerializerOptions);
53+
}
54+
set
55+
{
56+
this.BodyProperties["mark_as_paid"] = JsonSerializer.SerializeToElement(
57+
value,
58+
ModelBase.SerializerOptions
59+
);
60+
}
61+
}
62+
63+
/// <summary>
64+
/// Amount already collected to apply to the customer's balance. If mark_as_paid
65+
/// is also provided, credit the difference to the customer's balance.
4366
/// </summary>
4467
public string? PreviouslyCollectedAmount
4568
{

0 commit comments

Comments
 (0)