Skip to content
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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.47.1"
".": "4.47.2"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/resources/customers/credits/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/prices/prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
38 changes: 18 additions & 20 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>;

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<string>;

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;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.47.1'; // x-release-please-version
export const VERSION = '4.47.2'; // x-release-please-version
Loading