diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 98144b04..efb39fad 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.65.0" + ".": "4.66.0" } diff --git a/.stats.yml b/.stats.yml index 715ea230..b21f5baa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-48084a007f009b4358484f09a3a7b74a990c402669f9d15adfbb60e4f835f951.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a2c1aa029d1e72a5fc7d3c6cd431479888ebd9a379683a2c8630da48437baa4f.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c1b83a..fece648f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.66.0 (2025-03-06) + +Full Changelog: [v4.65.0...v4.66.0](https://github.com/orbcorp/orb-node/compare/v4.65.0...v4.66.0) + +### Features + +* **api:** api update ([#544](https://github.com/orbcorp/orb-node/issues/544)) ([d43b512](https://github.com/orbcorp/orb-node/commit/d43b512262570b00b11baf747fff694f54a66684)) + ## 4.65.0 (2025-03-05) Full Changelog: [v4.64.0...v4.65.0](https://github.com/orbcorp/orb-node/compare/v4.64.0...v4.65.0) diff --git a/package.json b/package.json index 192a6208..037ac848 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "4.65.0", + "version": "4.66.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/resources/invoice-line-items.ts b/src/resources/invoice-line-items.ts index 46fd7463..aa34129d 100644 --- a/src/resources/invoice-line-items.ts +++ b/src/resources/invoice-line-items.ts @@ -31,7 +31,9 @@ export interface InvoiceLineItemCreateResponse { adjusted_subtotal: string; /** - * All adjustments (ie. maximums, minimums, discounts) applied to the line item. + * All adjustments applied to the line item in the order they were applied based on + * invoice calculations (ie. usage discounts -> amount discounts -> percentage + * discounts -> minimums -> maximums). */ adjustments: Array< | InvoiceLineItemCreateResponse.MonetaryUsageDiscountAdjustment diff --git a/src/resources/invoices.ts b/src/resources/invoices.ts index 8778189a..2ccd2a43 100644 --- a/src/resources/invoices.ts +++ b/src/resources/invoices.ts @@ -858,7 +858,9 @@ export namespace Invoice { adjusted_subtotal: string; /** - * All adjustments (ie. maximums, minimums, discounts) applied to the line item. + * All adjustments applied to the line item in the order they were applied based on + * invoice calculations (ie. usage discounts -> amount discounts -> percentage + * discounts -> minimums -> maximums). */ adjustments: Array< | LineItem.MonetaryUsageDiscountAdjustment @@ -2079,7 +2081,9 @@ export namespace InvoiceFetchUpcomingResponse { adjusted_subtotal: string; /** - * All adjustments (ie. maximums, minimums, discounts) applied to the line item. + * All adjustments applied to the line item in the order they were applied based on + * invoice calculations (ie. usage discounts -> amount discounts -> percentage + * discounts -> minimums -> maximums). */ adjustments: Array< | LineItem.MonetaryUsageDiscountAdjustment diff --git a/src/resources/subscriptions.ts b/src/resources/subscriptions.ts index 292186d9..da00cc22 100644 --- a/src/resources/subscriptions.ts +++ b/src/resources/subscriptions.ts @@ -1090,7 +1090,8 @@ export interface Subscription { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -1156,7 +1157,7 @@ export interface Subscription { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | Subscription.AmountDiscountInterval @@ -1174,7 +1175,7 @@ export interface Subscription { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -1187,7 +1188,7 @@ export interface Subscription { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -1787,7 +1788,8 @@ export interface SubscriptionCreateResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -1853,7 +1855,7 @@ export interface SubscriptionCreateResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionCreateResponse.AmountDiscountInterval @@ -1871,7 +1873,7 @@ export interface SubscriptionCreateResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -1884,7 +1886,7 @@ export interface SubscriptionCreateResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -2402,7 +2404,8 @@ export interface SubscriptionCancelResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -2468,7 +2471,7 @@ export interface SubscriptionCancelResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionCancelResponse.AmountDiscountInterval @@ -2486,7 +2489,7 @@ export interface SubscriptionCancelResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -2499,7 +2502,7 @@ export interface SubscriptionCancelResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -3095,7 +3098,8 @@ export interface SubscriptionPriceIntervalsResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -3161,7 +3165,7 @@ export interface SubscriptionPriceIntervalsResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionPriceIntervalsResponse.AmountDiscountInterval @@ -3179,7 +3183,7 @@ export interface SubscriptionPriceIntervalsResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -3192,7 +3196,7 @@ export interface SubscriptionPriceIntervalsResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -3710,7 +3714,8 @@ export interface SubscriptionSchedulePlanChangeResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -3776,7 +3781,7 @@ export interface SubscriptionSchedulePlanChangeResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionSchedulePlanChangeResponse.AmountDiscountInterval @@ -3794,7 +3799,7 @@ export interface SubscriptionSchedulePlanChangeResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -3807,7 +3812,7 @@ export interface SubscriptionSchedulePlanChangeResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -4325,7 +4330,8 @@ export interface SubscriptionTriggerPhaseResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -4391,7 +4397,7 @@ export interface SubscriptionTriggerPhaseResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionTriggerPhaseResponse.AmountDiscountInterval @@ -4409,7 +4415,7 @@ export interface SubscriptionTriggerPhaseResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -4422,7 +4428,7 @@ export interface SubscriptionTriggerPhaseResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -4940,7 +4946,8 @@ export interface SubscriptionUnscheduleCancellationResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -5006,7 +5013,7 @@ export interface SubscriptionUnscheduleCancellationResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionUnscheduleCancellationResponse.AmountDiscountInterval @@ -5024,7 +5031,7 @@ export interface SubscriptionUnscheduleCancellationResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -5037,7 +5044,7 @@ export interface SubscriptionUnscheduleCancellationResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -5555,7 +5562,8 @@ export interface SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -5621,7 +5629,7 @@ export interface SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.AmountDiscountInterval @@ -5639,7 +5647,7 @@ export interface SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -5652,7 +5660,7 @@ export interface SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -6170,7 +6178,8 @@ export interface SubscriptionUnschedulePendingPlanChangesResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -6236,7 +6245,7 @@ export interface SubscriptionUnschedulePendingPlanChangesResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionUnschedulePendingPlanChangesResponse.AmountDiscountInterval @@ -6254,7 +6263,7 @@ export interface SubscriptionUnschedulePendingPlanChangesResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -6267,7 +6276,7 @@ export interface SubscriptionUnschedulePendingPlanChangesResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -6785,7 +6794,8 @@ export interface SubscriptionUpdateFixedFeeQuantityResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -6851,7 +6861,7 @@ export interface SubscriptionUpdateFixedFeeQuantityResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionUpdateFixedFeeQuantityResponse.AmountDiscountInterval @@ -6869,7 +6879,7 @@ export interface SubscriptionUpdateFixedFeeQuantityResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -6882,7 +6892,7 @@ export interface SubscriptionUpdateFixedFeeQuantityResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; @@ -7400,7 +7410,8 @@ export interface SubscriptionUpdateTrialResponse { active_plan_phase_order: number | null; /** - * The adjustment intervals for this subscription. + * The adjustment intervals for this subscription sorted by the start_date of the + * adjustment interval. */ adjustment_intervals: Array; @@ -7466,7 +7477,7 @@ export interface SubscriptionUpdateTrialResponse { default_invoice_memo: string | null; /** - * The discount intervals for this subscription. + * The discount intervals for this subscription sorted by the start_date. */ discount_intervals: Array< | SubscriptionUpdateTrialResponse.AmountDiscountInterval @@ -7484,7 +7495,7 @@ export interface SubscriptionUpdateTrialResponse { invoicing_threshold: string | null; /** - * The maximum intervals for this subscription. + * The maximum intervals for this subscription sorted by the start_date. */ maximum_intervals: Array; @@ -7497,7 +7508,7 @@ export interface SubscriptionUpdateTrialResponse { metadata: Record; /** - * The minimum intervals for this subscription. + * The minimum intervals for this subscription sorted by the start_date. */ minimum_intervals: Array; diff --git a/src/version.ts b/src/version.ts index db5c3bcf..3da94762 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.65.0'; // x-release-please-version +export const VERSION = '4.66.0'; // x-release-please-version