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 @@
{
".": "5.34.0"
".": "5.35.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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": "5.34.0",
"version": "5.35.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2743,6 +2743,20 @@ export interface NewAllocationPrice {
* The filters that determine which items the allocation applies to.
*/
filters?: Array<NewAllocationPrice.Filter> | 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 {
Expand Down
16 changes: 11 additions & 5 deletions src/resources/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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;

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 = '5.34.0'; // x-release-please-version
export const VERSION = '5.35.0'; // x-release-please-version
4 changes: 4 additions & 0 deletions tests/api-resources/beta/beta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down
4 changes: 4 additions & 0 deletions tests/api-resources/beta/external-plan-id.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down
2 changes: 2 additions & 0 deletions tests/api-resources/plans/plans.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 4 additions & 0 deletions tests/api-resources/subscriptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down Expand Up @@ -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: [
{
Expand Down