Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 20, 2024
1 parent 888fa5a commit 51f3a7d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 87
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-d3b3053680a3912936fdcbfcf0c63090f54c6b20cb044dd493fe9a39d5e7487f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-d66666074a17e0f47f6b792497270a5770abddb457a98ac8ef95fd33c61680ea.yml
9 changes: 7 additions & 2 deletions src/resources/contracts/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1053,9 +1053,14 @@ export namespace ContractCreateParams {
* This field's availability is dependent on your client's configuration.
*/
export interface BillingProviderConfiguration {
billing_provider: 'aws_marketplace' | 'azure_marketplace' | 'gcp_marketplace' | 'stripe' | 'netsuite';
billing_provider?: 'aws_marketplace' | 'azure_marketplace' | 'gcp_marketplace' | 'stripe' | 'netsuite';

delivery_method: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
/**
* The Metronome ID of the billing provider configuration
*/
billing_provider_configuration_id?: string;

delivery_method?: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
}

export interface Commit {
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/contracts/contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('resource contracts', () => {
starting_at: '2020-01-01T00:00:00.000Z',
billing_provider_configuration: {
billing_provider: 'aws_marketplace',
billing_provider_configuration_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
delivery_method: 'direct_to_billing_provider',
},
commits: [
Expand Down

0 comments on commit 51f3a7d

Please sign in to comment.