Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jul 10, 2024
1 parent d0dc6de commit 40ff24b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 48
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-d2fa6d063941c7141d1ae74c3d92c7875776087c850dd1ad2d5db0a61679b10e.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-640c4d54c542cc7c00227b484ed677e88fc79dcdf17c526a49615c9ae0500432.yml
14 changes: 14 additions & 0 deletions src/resources/customers/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,24 @@ export namespace Invoice {
*/
start_date?: string;

/**
* when the current tier started and ends (for tiered charges only)
*/
tier_period?: SubLineItem.TierPeriod;

tiers?: Array<SubLineItem.Tier>;
}

export namespace SubLineItem {
/**
* when the current tier started and ends (for tiered charges only)
*/
export interface TierPeriod {
starting_at: string;

ending_before?: string;
}

export interface Tier {
price: number;

Expand Down
2 changes: 2 additions & 0 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,8 @@ export interface Rate {
| 'TIERED'
| 'tiered';

credit_type?: CreditType;

/**
* Only set for CUSTOM rate_type. This field is interpreted by custom rate
* processors.
Expand Down

0 comments on commit 40ff24b

Please sign in to comment.