diff --git a/.stats.yml b/.stats.yml index 140f3b7..ba26506 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/src/resources/contracts/contracts.ts b/src/resources/contracts/contracts.ts index 63ed5b9..a7b9035 100644 --- a/src/resources/contracts/contracts.ts +++ b/src/resources/contracts/contracts.ts @@ -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 { diff --git a/tests/api-resources/contracts/contracts.test.ts b/tests/api-resources/contracts/contracts.test.ts index fff5dcd..413b952 100644 --- a/tests/api-resources/contracts/contracts.test.ts +++ b/tests/api-resources/contracts/contracts.test.ts @@ -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: [