diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a040cf97..16b819cd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.34.0" + ".": "5.35.0" } diff --git a/.stats.yml b/.stats.yml index 9e11ba24..9629af67 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e639b12e0daebce74f42d1f31f675bda4287b9c749dd7d4620a1e96a83343ec4.yml -openapi_spec_hash: 51eb3d47b25e299de670b2d52f5e9017 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-0ab0946487d1ee971683d894554494d9940010403874c0be724ffc3a82d696db.yml +openapi_spec_hash: 66b792328a4faee3c7659185accc3f0e config_hash: e6db17547fe854b1c240407cf4c6dc9e diff --git a/CHANGELOG.md b/CHANGELOG.md index be4cfe4a..9c6f98c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.35.0 (2025-11-25) + +Full Changelog: [v5.34.0...v5.35.0](https://github.com/orbcorp/orb-node/compare/v5.34.0...v5.35.0) + +### Features + +* **api:** api update ([a2b1e94](https://github.com/orbcorp/orb-node/commit/a2b1e94a8c1c47b214a6ad822f6e15e256a02a08)) + ## 5.34.0 (2025-11-18) Full Changelog: [v5.33.0...v5.34.0](https://github.com/orbcorp/orb-node/compare/v5.33.0...v5.34.0) diff --git a/package.json b/package.json index 32bfd107..8c1ed808 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "5.34.0", + "version": "5.35.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 221fbda0..760e1c69 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -2743,6 +2743,20 @@ export interface NewAllocationPrice { * The filters that determine which items the allocation applies to. */ filters?: Array | null; + + /** + * The item ID that line items representing charges for this allocation will be + * associated with. If not provided, the default allocation item for the currency + * will be used (e.g. 'Included Allocation (USD)'). + */ + item_id?: string | null; + + /** + * The (per-unit) cost basis of each created block. If non-zero, a customer will be + * invoiced according to the quantity and per unit cost basis specified for the + * allocation each cadence. + */ + per_unit_cost_basis?: string; } export namespace NewAllocationPrice { diff --git a/src/resources/subscriptions.ts b/src/resources/subscriptions.ts index 4bd43a5e..33845d8d 100644 --- a/src/resources/subscriptions.ts +++ b/src/resources/subscriptions.ts @@ -6739,9 +6739,8 @@ export interface SubscriptionPriceIntervalsParams { allow_invoice_credit_or_void?: boolean | null; /** - * If true, ending an in-arrears price interval mid-cycle will defer billing the - * final line itemuntil the next scheduled invoice. If false, it will be billed on - * its end date. If not provided, behaviorwill follow account default. + * If set, the default value to use for added/edited price intervals with an + * end_date set. */ can_defer_billing?: boolean | null; @@ -6769,6 +6768,13 @@ export namespace SubscriptionPriceIntervalsParams { */ allocation_price?: Shared.NewAllocationPrice | null; + /** + * If true, an in-arrears price interval ending mid-cycle will defer billing the + * final line item until the next scheduled invoice. If false, it will be billed on + * its end date. + */ + can_defer_billing?: boolean | null; + /** * A list of discounts to initialize on the price interval. */ @@ -7570,9 +7576,9 @@ export namespace SubscriptionPriceIntervalsParams { billing_cycle_day?: number | null; /** - * If true, ending an in-arrears price interval mid-cycle will defer billing the + * If true, an in-arrears price interval ending mid-cycle will defer billing the * final line item until the next scheduled invoice. If false, it will be billed on - * its end date. If not provided, behavior will follow account default. + * its end date. */ can_defer_billing?: boolean | null; diff --git a/src/version.ts b/src/version.ts index 2e8609d3..15220890 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.34.0'; // x-release-please-version +export const VERSION = '5.35.0'; // x-release-please-version diff --git a/tests/api-resources/beta/beta.test.ts b/tests/api-resources/beta/beta.test.ts index f1a95a14..da9c0163 100644 --- a/tests/api-resources/beta/beta.test.ts +++ b/tests/api-resources/beta/beta.test.ts @@ -48,6 +48,8 @@ describe('resource beta', () => { custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + item_id: 'item_id', + per_unit_cost_basis: 'per_unit_cost_basis', }, plan_phase_order: 0, price: { @@ -108,6 +110,8 @@ describe('resource beta', () => { custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + item_id: 'item_id', + per_unit_cost_basis: 'per_unit_cost_basis', }, plan_phase_order: 0, price: { diff --git a/tests/api-resources/beta/external-plan-id.test.ts b/tests/api-resources/beta/external-plan-id.test.ts index c4c0d3f2..11d1f15c 100644 --- a/tests/api-resources/beta/external-plan-id.test.ts +++ b/tests/api-resources/beta/external-plan-id.test.ts @@ -48,6 +48,8 @@ describe('resource externalPlanId', () => { custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + item_id: 'item_id', + per_unit_cost_basis: 'per_unit_cost_basis', }, plan_phase_order: 0, price: { @@ -108,6 +110,8 @@ describe('resource externalPlanId', () => { custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + item_id: 'item_id', + per_unit_cost_basis: 'per_unit_cost_basis', }, plan_phase_order: 0, price: { diff --git a/tests/api-resources/plans/plans.test.ts b/tests/api-resources/plans/plans.test.ts index 32374d9a..67f3db2d 100644 --- a/tests/api-resources/plans/plans.test.ts +++ b/tests/api-resources/plans/plans.test.ts @@ -33,6 +33,8 @@ describe('resource plans', () => { custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + item_id: 'item_id', + per_unit_cost_basis: 'per_unit_cost_basis', }, plan_phase_order: 0, price: { diff --git a/tests/api-resources/subscriptions.test.ts b/tests/api-resources/subscriptions.test.ts index e2e5fa41..5a96de56 100644 --- a/tests/api-resources/subscriptions.test.ts +++ b/tests/api-resources/subscriptions.test.ts @@ -301,6 +301,8 @@ describe('resource subscriptions', () => { custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + item_id: 'item_id', + per_unit_cost_basis: 'per_unit_cost_basis', }, discounts: [ { @@ -391,6 +393,8 @@ describe('resource subscriptions', () => { custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + item_id: 'item_id', + per_unit_cost_basis: 'per_unit_cost_basis', }, discounts: [ {