From cdc8068557ffe5174f9f9a07f2e1095a81df4b43 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:56:44 +0000 Subject: [PATCH] feat(api): api update (#132) --- .stats.yml | 2 +- src/resources/customers/invoices.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e39b31a..9b7574e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 91 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-d04cc2dc5a1f1bd278783a02c8bbf246f850ce53fe63d7d43cb9df69fae02429.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-cab3c7a5a2b2d37cc31ffd0a3b12a4bf0a6089ab5aede2a0a27fe3eaee365376.yml diff --git a/src/resources/customers/invoices.ts b/src/resources/customers/invoices.ts index 1c9d10e..be35135 100644 --- a/src/resources/customers/invoices.ts +++ b/src/resources/customers/invoices.ts @@ -155,6 +155,11 @@ export namespace Invoice { total: number; + /** + * only present for beta contract invoices + */ + applied_commit_or_credit?: LineItem.AppliedCommitOrCredit; + /** * only present for beta contract invoices */ @@ -286,6 +291,15 @@ export namespace Invoice { } export namespace LineItem { + /** + * only present for beta contract invoices + */ + export interface AppliedCommitOrCredit { + id: string; + + type: 'PREPAID' | 'POSTPAID' | 'CREDIT'; + } + /** * only present for beta contract invoices */