diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9516f268..c7928e17 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.47.1" + ".": "4.47.2" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b33d01f0..6ceb14c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 4.47.2 (2025-01-07) + +Full Changelog: [v4.47.1...v4.47.2](https://github.com/orbcorp/orb-node/compare/v4.47.1...v4.47.2) + +### Bug Fixes + +* **types:** avoid unnecessary namespace for UsageDiscount ([78b2afa](https://github.com/orbcorp/orb-node/commit/78b2afaed3119fb3de2ed172a98bad7b0e83c5be)) + + +### Chores + +* **internal:** codegen related update ([#449](https://github.com/orbcorp/orb-node/issues/449)) ([3ee5949](https://github.com/orbcorp/orb-node/commit/3ee59499f7933c2e8200e7b5f0bb030d3eff6aaf)) + ## 4.47.1 (2025-01-06) Full Changelog: [v4.47.0...v4.47.1](https://github.com/orbcorp/orb-node/compare/v4.47.0...v4.47.1) diff --git a/package.json b/package.json index 320ac8ba..bbfebe92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "4.47.1", + "version": "4.47.2", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/resources/customers/credits/ledger.ts b/src/resources/customers/credits/ledger.ts index 7844012b..7353a7a4 100644 --- a/src/resources/customers/credits/ledger.ts +++ b/src/resources/customers/credits/ledger.ts @@ -2035,7 +2035,7 @@ export type LedgerCreateEntryParams = | LedgerCreateEntryParams.AddVoidCreditLedgerEntryRequestParams | LedgerCreateEntryParams.AddAmendmentCreditLedgerEntryRequestParams; -export namespace LedgerCreateEntryParams { +export declare namespace LedgerCreateEntryParams { export interface AddIncrementCreditLedgerEntryRequestParams { /** * The number of credits to effect. Note that this is required for increment, @@ -2286,7 +2286,7 @@ export type LedgerCreateEntryByExternalIDParams = | LedgerCreateEntryByExternalIDParams.AddVoidCreditLedgerEntryRequestParams | LedgerCreateEntryByExternalIDParams.AddAmendmentCreditLedgerEntryRequestParams; -export namespace LedgerCreateEntryByExternalIDParams { +export declare namespace LedgerCreateEntryByExternalIDParams { export interface AddIncrementCreditLedgerEntryRequestParams { /** * The number of credits to effect. Note that this is required for increment, diff --git a/src/resources/prices/prices.ts b/src/resources/prices/prices.ts index f847908b..afe39252 100644 --- a/src/resources/prices/prices.ts +++ b/src/resources/prices/prices.ts @@ -3250,7 +3250,7 @@ export type PriceCreateParams = | PriceCreateParams.NewFloatingBulkWithProrationPrice | PriceCreateParams.NewFloatingGroupedTieredPackagePrice; -export namespace PriceCreateParams { +export declare namespace PriceCreateParams { export interface NewFloatingUnitPrice { /** * The cadence to bill for this price on. diff --git a/src/resources/shared.ts b/src/resources/shared.ts index ee7ec047..ab2dbcef 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -19,26 +19,24 @@ export interface AmountDiscount { export type BillingCycleRelativeDate = 'start_of_term' | 'end_of_term'; -export type Discount = PercentageDiscount | TrialDiscount | Discount.UsageDiscount | AmountDiscount; - -export namespace Discount { - export interface UsageDiscount { - /** - * 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; - - discount_type: 'usage'; - - /** - * Only available if discount_type is `usage`. Number of usage units that this - * discount is for - */ - usage_discount: number; - - reason?: string | null; - } +export type Discount = PercentageDiscount | TrialDiscount | UsageDiscount | AmountDiscount; + +export interface UsageDiscount { + /** + * 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; + + discount_type: 'usage'; + + /** + * Only available if discount_type is `usage`. Number of usage units that this + * discount is for + */ + usage_discount: number; + + reason?: string | null; } export type InvoiceLevelDiscount = PercentageDiscount | AmountDiscount | TrialDiscount; diff --git a/src/version.ts b/src/version.ts index 710b8f27..b343abce 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.47.1'; // x-release-please-version +export const VERSION = '4.47.2'; // x-release-please-version