Skip to content

Commit 20c99bc

Browse files
feat(api): api update
1 parent 6e7ea6d commit 20c99bc

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
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-828c91953d2351040fdd4d90a3d9eafd09f9d240c4f6ce0441b7a10c06c1c722.yml
3-
openapi_spec_hash: c82bc88563f80f600e59e22014d4cec4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-cbce25283cb9c3282e03e08b7ee81395436af7d0eb480ffcbab307b5bf1c92a0.yml
3+
openapi_spec_hash: c286edf46db95dee05eb6f180ac24ab0
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

src/resources/subscription-changes.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,23 @@ export interface SubscriptionChangeApplyParams {
326326
*/
327327
mark_as_paid?: boolean | null;
328328

329+
/**
330+
* An optional external ID to associate with the payment. Only applicable when
331+
* mark_as_paid is true.
332+
*/
333+
payment_external_id?: string | null;
334+
335+
/**
336+
* Optional notes about the payment. Only applicable when mark_as_paid is true.
337+
*/
338+
payment_notes?: string | null;
339+
340+
/**
341+
* A date string to specify the date the payment was received. Only applicable when
342+
* mark_as_paid is true. If not provided, defaults to the current date.
343+
*/
344+
payment_received_date?: string | null;
345+
329346
/**
330347
* Amount already collected to apply to the customer's balance. If mark_as_paid is
331348
* also provided, credit the difference to the customer's balance.

tests/api-resources/subscription-changes.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ describe('resource subscriptionChanges', () => {
5353
{
5454
description: 'description',
5555
mark_as_paid: true,
56+
payment_external_id: 'payment_external_id',
57+
payment_notes: 'payment_notes',
58+
payment_received_date: '2019-12-27',
5659
previously_collected_amount: 'previously_collected_amount',
5760
},
5861
{ path: '/_stainless_unknown_path' },

0 commit comments

Comments
 (0)