Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api)!: endpoint expects amount of new allocation price to be a string, not a number #226

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 90
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-aebc7faa75113d98ef7b57673cf7fce499c87b96afabe6c2ddc5e22badc3ef33.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-2f2e1b9fbe79b0ed97d846a5a26937f421c162e559a2f85a82d7c6e432463f32.yml
2 changes: 1 addition & 1 deletion src/resources/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3679,7 +3679,7 @@ export namespace SubscriptionPriceIntervalsParams {
/**
* An amount of the currency to allocate to the customer at the specified cadence.
*/
amount: number;
amount: string;

/**
* The cadence at which to allocate the amount to the customer.
Expand Down
6 changes: 3 additions & 3 deletions tests/api-resources/subscriptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ describe('resource subscriptions', () => {
},
allocation_price: {
currency: 'USD',
amount: 0,
amount: '10.00',
cadence: 'monthly',
expires_at_end_of_cadence: true,
},
Expand Down Expand Up @@ -421,7 +421,7 @@ describe('resource subscriptions', () => {
},
allocation_price: {
currency: 'USD',
amount: 0,
amount: '10.00',
cadence: 'monthly',
expires_at_end_of_cadence: true,
},
Expand Down Expand Up @@ -459,7 +459,7 @@ describe('resource subscriptions', () => {
},
allocation_price: {
currency: 'USD',
amount: 0,
amount: '10.00',
cadence: 'monthly',
expires_at_end_of_cadence: true,
},
Expand Down