From a76bcc68ba6f33517592d3c860ad281d47bb3652 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 22:36:52 +0000 Subject: [PATCH 1/2] feat(api): api update (#368) --- .stats.yml | 2 +- src/core.ts | 6 +- src/resources/subscriptions.ts | 418 ---------------------- tests/api-resources/subscriptions.test.ts | 12 - 4 files changed, 5 insertions(+), 433 deletions(-) diff --git a/.stats.yml b/.stats.yml index d184344f..53ec5b3d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 94 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-3b98e6c87f2561e2a13d131161793395246add5c454e43db04d7ea0e450117e7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6d7530c0cb44051d061645a586c57124cb015eeaabc7df0045434ff52ee3734f.yml diff --git a/src/core.ts b/src/core.ts index ad291567..ed6c352b 100644 --- a/src/core.ts +++ b/src/core.ts @@ -84,8 +84,10 @@ export class APIPromise extends Promise { }); } - _thenUnwrap(transform: (data: T) => U): APIPromise { - return new APIPromise(this.responsePromise, async (props) => transform(await this.parseResponse(props))); + _thenUnwrap(transform: (data: T, props: APIResponseProps) => U): APIPromise { + return new APIPromise(this.responsePromise, async (props) => + transform(await this.parseResponse(props), props), + ); } /** diff --git a/src/resources/subscriptions.ts b/src/resources/subscriptions.ts index d7bec7d0..c0fdddd1 100644 --- a/src/resources/subscriptions.ts +++ b/src/resources/subscriptions.ts @@ -2415,23 +2415,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -2504,23 +2493,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -2613,23 +2591,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -2715,23 +2682,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -2823,23 +2779,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -2911,23 +2856,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3014,23 +2948,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3111,23 +3034,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3187,23 +3099,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3263,23 +3164,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3339,23 +3229,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3415,23 +3294,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3491,23 +3359,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3567,23 +3424,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3643,23 +3489,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3719,23 +3554,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3795,23 +3619,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3871,23 +3684,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -3947,23 +3749,12 @@ export namespace SubscriptionCreateParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7271,23 +7062,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7360,23 +7140,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7469,23 +7238,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7571,23 +7329,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7679,23 +7426,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7767,23 +7503,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7870,23 +7595,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -7967,23 +7681,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8043,23 +7746,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8119,23 +7811,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8195,23 +7876,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8271,23 +7941,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8347,23 +8006,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8423,23 +8071,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8499,23 +8136,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8575,23 +8201,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8651,23 +8266,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8727,23 +8331,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for @@ -8803,23 +8396,12 @@ export namespace SubscriptionSchedulePlanChangeParams { */ amount_discount?: string | null; - /** - * List of price_ids that this discount applies to. For plan/plan phase discounts, - * this can be a subset of prices. - */ - applies_to_price_ids?: Array | null; - /** * Only available if discount_type is `percentage`. This is a number between 0 * and 1. */ percentage_discount?: number | null; - /** - * Only available if discount_type is `trial` - */ - trial_amount_discount?: string | null; - /** * Only available if discount_type is `usage`. Number of usage units that this * discount is for diff --git a/tests/api-resources/subscriptions.test.ts b/tests/api-resources/subscriptions.test.ts index d72e8b42..6093de28 100644 --- a/tests/api-resources/subscriptions.test.ts +++ b/tests/api-resources/subscriptions.test.ts @@ -61,9 +61,7 @@ describe('resource subscriptions', () => { discount: { discount_type: 'percentage', amount_discount: 'amount_discount', - applies_to_price_ids: ['h74gfhdjvn7ujokd', '7hfgtgjnbvc3ujkl'], percentage_discount: 0.15, - trial_amount_discount: 'trial_amount_discount', usage_discount: 0, }, fixed_price_quantity: 2, @@ -79,9 +77,7 @@ describe('resource subscriptions', () => { discount: { discount_type: 'percentage', amount_discount: 'amount_discount', - applies_to_price_ids: ['h74gfhdjvn7ujokd', '7hfgtgjnbvc3ujkl'], percentage_discount: 0.15, - trial_amount_discount: 'trial_amount_discount', usage_discount: 0, }, fixed_price_quantity: 2, @@ -97,9 +93,7 @@ describe('resource subscriptions', () => { discount: { discount_type: 'percentage', amount_discount: 'amount_discount', - applies_to_price_ids: ['h74gfhdjvn7ujokd', '7hfgtgjnbvc3ujkl'], percentage_discount: 0.15, - trial_amount_discount: 'trial_amount_discount', usage_discount: 0, }, fixed_price_quantity: 2, @@ -616,9 +610,7 @@ describe('resource subscriptions', () => { discount: { discount_type: 'percentage', amount_discount: 'amount_discount', - applies_to_price_ids: ['h74gfhdjvn7ujokd', '7hfgtgjnbvc3ujkl'], percentage_discount: 0.15, - trial_amount_discount: 'trial_amount_discount', usage_discount: 0, }, fixed_price_quantity: 2, @@ -634,9 +626,7 @@ describe('resource subscriptions', () => { discount: { discount_type: 'percentage', amount_discount: 'amount_discount', - applies_to_price_ids: ['h74gfhdjvn7ujokd', '7hfgtgjnbvc3ujkl'], percentage_discount: 0.15, - trial_amount_discount: 'trial_amount_discount', usage_discount: 0, }, fixed_price_quantity: 2, @@ -652,9 +642,7 @@ describe('resource subscriptions', () => { discount: { discount_type: 'percentage', amount_discount: 'amount_discount', - applies_to_price_ids: ['h74gfhdjvn7ujokd', '7hfgtgjnbvc3ujkl'], percentage_discount: 0.15, - trial_amount_discount: 'trial_amount_discount', usage_discount: 0, }, fixed_price_quantity: 2, From 9f993752f2b9a7ea00a642a0978531894fb9924f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 22:37:11 +0000 Subject: [PATCH 2/2] release: 4.30.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2f6cf24a..1e5205f3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.29.0" + ".": "4.30.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 77d0d48a..d054634c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.30.0 (2024-10-16) + +Full Changelog: [v4.29.0...v4.30.0](https://github.com/orbcorp/orb-node/compare/v4.29.0...v4.30.0) + +### Features + +* **api:** api update ([#368](https://github.com/orbcorp/orb-node/issues/368)) ([a76bcc6](https://github.com/orbcorp/orb-node/commit/a76bcc68ba6f33517592d3c860ad281d47bb3652)) + ## 4.29.0 (2024-10-15) Full Changelog: [v4.28.0...v4.29.0](https://github.com/orbcorp/orb-node/compare/v4.28.0...v4.29.0) diff --git a/package.json b/package.json index 49b6144a..e34861fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "4.29.0", + "version": "4.30.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 0de2f353..2eb76a88 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.29.0'; // x-release-please-version +export const VERSION = '4.30.0'; // x-release-please-version