diff --git a/.release-please-manifest.json b/.release-please-manifest.json index de6d98bb..12ba8adf 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.38.0" + ".": "5.39.0" } diff --git a/.stats.yml b/.stats.yml index 36221097..8f4293ee 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-03af7f658aed245cf7e230055de59fe92a78880f3719bf254ed9352bf89bad5e.yml -openapi_spec_hash: c4703d217c25e8c02c248caed9e2d3be -config_hash: 895e36fb2d717958770fd4cf883f4b74 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a5a28a58483355d3cc3da7ac5c452d548ee17183324318198052968121ca7dba.yml +openapi_spec_hash: a317931a99e6d4a122919135a0363e40 +config_hash: 05c94c0e6dbeab2c9b554c2e0d6371a0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 74391d32..3fb9fe1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 5.39.0 (2026-01-06) + +Full Changelog: [v5.38.0...v5.39.0](https://github.com/orbcorp/orb-node/compare/v5.38.0...v5.39.0) + +### Features + +* **api:** api update ([82dad40](https://github.com/orbcorp/orb-node/commit/82dad40663113e17ba2eef5252c839c693032513)) + + +### Chores + +* break long lines in snippets into multiline ([f544ccc](https://github.com/orbcorp/orb-node/commit/f544ccc9e88c4bd7c06c2e50a1c7e8c27af569d2)) +* **internal:** codegen related update ([e6d2b66](https://github.com/orbcorp/orb-node/commit/e6d2b66cbc140104f926886d8442ddb97597ce38)) + ## 5.38.0 (2025-12-06) Full Changelog: [v5.37.2...v5.38.0](https://github.com/orbcorp/orb-node/compare/v5.37.2...v5.38.0) diff --git a/LICENSE b/LICENSE index 00b1f9c8..7434159e 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2025 Orb + Copyright 2026 Orb Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 8bc093dd..a279ac79 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,10 @@ const client = new Orb({ apiKey: process.env['ORB_API_KEY'], // This is the default and can be omitted }); -const params: Orb.CustomerCreateParams = { email: 'example-customer@withorb.com', name: 'My Customer' }; +const params: Orb.CustomerCreateParams = { + email: 'example-customer@withorb.com', + name: 'My Customer', +}; const customer: Orb.Customer = await client.customers.create(params); ``` diff --git a/package.json b/package.json index 115c52ca..3607a1b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "5.38.0", + "version": "5.39.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/resources/prices/prices.ts b/src/resources/prices/prices.ts index 77720bfd..589709d6 100644 --- a/src/resources/prices/prices.ts +++ b/src/resources/prices/prices.ts @@ -1016,9 +1016,6 @@ export declare namespace PriceCreateParams { * Configuration for a single threshold */ export interface ConsumptionTable { - /** - * Quantity threshold - */ threshold: string; /** @@ -1128,9 +1125,6 @@ export declare namespace PriceCreateParams { * Configuration for tiered_package pricing */ export interface TieredPackageConfig { - /** - * Package size - */ package_size: string; /** @@ -1152,9 +1146,6 @@ export declare namespace PriceCreateParams { */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -1281,14 +1272,8 @@ export declare namespace PriceCreateParams { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -1415,9 +1400,6 @@ export declare namespace PriceCreateParams { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -1527,9 +1509,6 @@ export declare namespace PriceCreateParams { * Configuration for tiered_package_with_minimum pricing */ export interface TieredPackageWithMinimumConfig { - /** - * Package size - */ package_size: number; /** @@ -1544,19 +1523,10 @@ export declare namespace PriceCreateParams { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Price per package - */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -1661,19 +1631,10 @@ export declare namespace PriceCreateParams { * Configuration for package_with_allocation pricing */ export interface PackageWithAllocationConfig { - /** - * Usage allocation - */ allocation: string; - /** - * Price per package - */ package_amount: string; - /** - * Package size - */ package_size: string; } } @@ -2605,14 +2566,8 @@ export declare namespace PriceCreateParams { * Configuration for a scaling factor */ export interface ScalingFactor { - /** - * Scaling factor - */ scaling_factor: string; - /** - * Scaling value - */ scaling_value: string; } @@ -2620,9 +2575,6 @@ export declare namespace PriceCreateParams { * Configuration for a unit amount */ export interface UnitAmount { - /** - * Pricing value - */ pricing_value: string; /** @@ -2991,9 +2943,6 @@ export declare namespace PriceCreateParams { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -3009,13 +2958,10 @@ export declare namespace PriceCreateParams { */ export interface Tier { /** - * Price per package + * Per package */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -3125,9 +3071,6 @@ export declare namespace PriceCreateParams { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -3141,9 +3084,6 @@ export declare namespace PriceCreateParams { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -3284,19 +3224,10 @@ export declare namespace PriceCreateParams { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } } @@ -3411,9 +3342,6 @@ export declare namespace PriceCreateParams { */ matrix_scaling_factors: Array; - /** - * Tier pricing structure - */ tiers: Array; /** @@ -3427,19 +3355,10 @@ export declare namespace PriceCreateParams { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } @@ -3447,14 +3366,8 @@ export declare namespace PriceCreateParams { * Configuration for a single tier entry with business logic */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; - /** - * Per unit amount - */ unit_amount: string; } } @@ -3564,9 +3477,6 @@ export declare namespace PriceCreateParams { */ dimension_values: Array; - /** - * Grouping key name - */ group: string; } diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 760e1c69..b4e1ff88 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -3193,9 +3193,6 @@ export namespace NewFloatingCumulativeGroupedBulkPrice { */ dimension_values: Array; - /** - * Grouping key name - */ group: string; } @@ -3442,9 +3439,6 @@ export namespace NewFloatingGroupedTieredPackagePrice { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -3460,13 +3454,10 @@ export namespace NewFloatingGroupedTieredPackagePrice { */ export interface Tier { /** - * Price per package + * Per package */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -3588,9 +3579,6 @@ export namespace NewFloatingGroupedTieredPrice { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -3738,14 +3726,8 @@ export namespace NewFloatingGroupedWithMeteredMinimumPrice { * Configuration for a scaling factor */ export interface ScalingFactor { - /** - * Scaling factor - */ scaling_factor: string; - /** - * Scaling value - */ scaling_value: string; } @@ -3753,9 +3735,6 @@ export namespace NewFloatingGroupedWithMeteredMinimumPrice { * Configuration for a unit amount */ export interface UnitAmount { - /** - * Pricing value - */ pricing_value: string; /** @@ -4307,9 +4286,6 @@ export namespace NewFloatingMaxGroupTieredPackagePrice { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -4323,9 +4299,6 @@ export namespace NewFloatingMaxGroupTieredPackagePrice { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -4640,19 +4613,10 @@ export namespace NewFloatingPackageWithAllocationPrice { * Configuration for package_with_allocation pricing */ export interface PackageWithAllocationConfig { - /** - * Usage allocation - */ allocation: string; - /** - * Price per package - */ package_amount: string; - /** - * Package size - */ package_size: string; } } @@ -4766,9 +4730,6 @@ export namespace NewFloatingScalableMatrixWithTieredPricingPrice { */ matrix_scaling_factors: Array; - /** - * Tier pricing structure - */ tiers: Array; /** @@ -4782,19 +4743,10 @@ export namespace NewFloatingScalableMatrixWithTieredPricingPrice { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } @@ -4802,14 +4754,8 @@ export namespace NewFloatingScalableMatrixWithTieredPricingPrice { * Configuration for a single tier entry with business logic */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; - /** - * Per unit amount - */ unit_amount: string; } } @@ -4945,19 +4891,10 @@ export namespace NewFloatingScalableMatrixWithUnitPricingPrice { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } } @@ -5079,9 +5016,6 @@ export namespace NewFloatingThresholdTotalAmountPrice { * Configuration for a single threshold */ export interface ConsumptionTable { - /** - * Quantity threshold - */ threshold: string; /** @@ -5191,9 +5125,6 @@ export namespace NewFloatingTieredPackagePrice { * Configuration for tiered_package pricing */ export interface TieredPackageConfig { - /** - * Package size - */ package_size: string; /** @@ -5215,9 +5146,6 @@ export namespace NewFloatingTieredPackagePrice { */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -5322,9 +5250,6 @@ export namespace NewFloatingTieredPackageWithMinimumPrice { * Configuration for tiered_package_with_minimum pricing */ export interface TieredPackageWithMinimumConfig { - /** - * Package size - */ package_size: number; /** @@ -5339,19 +5264,10 @@ export namespace NewFloatingTieredPackageWithMinimumPrice { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Price per package - */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -5572,14 +5488,8 @@ export namespace NewFloatingTieredWithMinimumPrice { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -6555,9 +6465,6 @@ export namespace NewPlanCumulativeGroupedBulkPrice { */ dimension_values: Array; - /** - * Grouping key name - */ group: string; } @@ -6818,9 +6725,6 @@ export namespace NewPlanGroupedTieredPackagePrice { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -6836,13 +6740,10 @@ export namespace NewPlanGroupedTieredPackagePrice { */ export interface Tier { /** - * Price per package + * Per package */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -6971,9 +6872,6 @@ export namespace NewPlanGroupedTieredPrice { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -7128,14 +7026,8 @@ export namespace NewPlanGroupedWithMeteredMinimumPrice { * Configuration for a scaling factor */ export interface ScalingFactor { - /** - * Scaling factor - */ scaling_factor: string; - /** - * Scaling value - */ scaling_value: string; } @@ -7143,9 +7035,6 @@ export namespace NewPlanGroupedWithMeteredMinimumPrice { * Configuration for a unit amount */ export interface UnitAmount { - /** - * Pricing value - */ pricing_value: string; /** @@ -7732,9 +7621,6 @@ export namespace NewPlanMaxGroupTieredPackagePrice { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -7748,9 +7634,6 @@ export namespace NewPlanMaxGroupTieredPackagePrice { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -8086,19 +7969,10 @@ export namespace NewPlanPackageWithAllocationPrice { * Configuration for package_with_allocation pricing */ export interface PackageWithAllocationConfig { - /** - * Usage allocation - */ allocation: string; - /** - * Price per package - */ package_amount: string; - /** - * Package size - */ package_size: string; } } @@ -8219,9 +8093,6 @@ export namespace NewPlanScalableMatrixWithTieredPricingPrice { */ matrix_scaling_factors: Array; - /** - * Tier pricing structure - */ tiers: Array; /** @@ -8235,19 +8106,10 @@ export namespace NewPlanScalableMatrixWithTieredPricingPrice { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } @@ -8255,14 +8117,8 @@ export namespace NewPlanScalableMatrixWithTieredPricingPrice { * Configuration for a single tier entry with business logic */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; - /** - * Per unit amount - */ unit_amount: string; } } @@ -8405,19 +8261,10 @@ export namespace NewPlanScalableMatrixWithUnitPricingPrice { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } } @@ -8546,9 +8393,6 @@ export namespace NewPlanThresholdTotalAmountPrice { * Configuration for a single threshold */ export interface ConsumptionTable { - /** - * Quantity threshold - */ threshold: string; /** @@ -8665,9 +8509,6 @@ export namespace NewPlanTieredPackagePrice { * Configuration for tiered_package pricing */ export interface TieredPackageConfig { - /** - * Package size - */ package_size: string; /** @@ -8689,9 +8530,6 @@ export namespace NewPlanTieredPackagePrice { */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -8803,9 +8641,6 @@ export namespace NewPlanTieredPackageWithMinimumPrice { * Configuration for tiered_package_with_minimum pricing */ export interface TieredPackageWithMinimumConfig { - /** - * Package size - */ package_size: number; /** @@ -8820,19 +8655,10 @@ export namespace NewPlanTieredPackageWithMinimumPrice { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Price per package - */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -9067,14 +8893,8 @@ export namespace NewPlanTieredWithMinimumPrice { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -10850,9 +10670,6 @@ export namespace Price { * Configuration for a single threshold */ export interface ConsumptionTable { - /** - * Quantity threshold - */ threshold: string; /** @@ -10978,9 +10795,6 @@ export namespace Price { * Configuration for tiered_package pricing */ export interface TieredPackageConfig { - /** - * Package size - */ package_size: string; /** @@ -11002,9 +10816,6 @@ export namespace Price { */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -11147,14 +10958,8 @@ export namespace Price { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -11297,9 +11102,6 @@ export namespace Price { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -11425,9 +11227,6 @@ export namespace Price { * Configuration for tiered_package_with_minimum pricing */ export interface TieredPackageWithMinimumConfig { - /** - * Package size - */ package_size: number; /** @@ -11442,19 +11241,10 @@ export namespace Price { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Price per package - */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -11575,19 +11365,10 @@ export namespace Price { * Configuration for package_with_allocation pricing */ export interface PackageWithAllocationConfig { - /** - * Usage allocation - */ allocation: string; - /** - * Price per package - */ package_amount: string; - /** - * Package size - */ package_size: string; } } @@ -12649,14 +12430,8 @@ export namespace Price { * Configuration for a scaling factor */ export interface ScalingFactor { - /** - * Scaling factor - */ scaling_factor: string; - /** - * Scaling value - */ scaling_value: string; } @@ -12664,9 +12439,6 @@ export namespace Price { * Configuration for a unit amount */ export interface UnitAmount { - /** - * Pricing value - */ pricing_value: string; /** @@ -13083,9 +12855,6 @@ export namespace Price { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -13101,13 +12870,10 @@ export namespace Price { */ export interface Tier { /** - * Price per package + * Per package */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -13233,9 +12999,6 @@ export namespace Price { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -13249,9 +13012,6 @@ export namespace Price { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -13408,19 +13168,10 @@ export namespace Price { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } } @@ -13551,9 +13302,6 @@ export namespace Price { */ matrix_scaling_factors: Array; - /** - * Tier pricing structure - */ tiers: Array; /** @@ -13567,19 +13315,10 @@ export namespace Price { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } @@ -13587,14 +13326,8 @@ export namespace Price { * Configuration for a single tier entry with business logic */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; - /** - * Per unit amount - */ unit_amount: string; } } @@ -13720,9 +13453,6 @@ export namespace Price { */ dimension_values: Array; - /** - * Grouping key name - */ group: string; } diff --git a/src/resources/subscriptions.ts b/src/resources/subscriptions.ts index c3f7df77..1611708e 100644 --- a/src/resources/subscriptions.ts +++ b/src/resources/subscriptions.ts @@ -1438,9 +1438,6 @@ export namespace NewSubscriptionCumulativeGroupedBulkPrice { */ dimension_values: Array; - /** - * Grouping key name - */ group: string; } @@ -1701,9 +1698,6 @@ export namespace NewSubscriptionGroupedTieredPackagePrice { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -1719,13 +1713,10 @@ export namespace NewSubscriptionGroupedTieredPackagePrice { */ export interface Tier { /** - * Price per package + * Per package */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -1854,9 +1845,6 @@ export namespace NewSubscriptionGroupedTieredPrice { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -2011,14 +1999,8 @@ export namespace NewSubscriptionGroupedWithMeteredMinimumPrice { * Configuration for a scaling factor */ export interface ScalingFactor { - /** - * Scaling factor - */ scaling_factor: string; - /** - * Scaling value - */ scaling_value: string; } @@ -2026,9 +2008,6 @@ export namespace NewSubscriptionGroupedWithMeteredMinimumPrice { * Configuration for a unit amount */ export interface UnitAmount { - /** - * Pricing value - */ pricing_value: string; /** @@ -2615,9 +2594,6 @@ export namespace NewSubscriptionMaxGroupTieredPackagePrice { */ grouping_key: string; - /** - * Package size - */ package_size: string; /** @@ -2631,9 +2607,6 @@ export namespace NewSubscriptionMaxGroupTieredPackagePrice { * Configuration for a single tier */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; /** @@ -2969,19 +2942,10 @@ export namespace NewSubscriptionPackageWithAllocationPrice { * Configuration for package_with_allocation pricing */ export interface PackageWithAllocationConfig { - /** - * Usage allocation - */ allocation: string; - /** - * Price per package - */ package_amount: string; - /** - * Package size - */ package_size: string; } } @@ -3102,9 +3066,6 @@ export namespace NewSubscriptionScalableMatrixWithTieredPricingPrice { */ matrix_scaling_factors: Array; - /** - * Tier pricing structure - */ tiers: Array; /** @@ -3118,19 +3079,10 @@ export namespace NewSubscriptionScalableMatrixWithTieredPricingPrice { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } @@ -3138,14 +3090,8 @@ export namespace NewSubscriptionScalableMatrixWithTieredPricingPrice { * Configuration for a single tier entry with business logic */ export interface Tier { - /** - * Tier lower bound - */ tier_lower_bound: string; - /** - * Per unit amount - */ unit_amount: string; } } @@ -3288,19 +3234,10 @@ export namespace NewSubscriptionScalableMatrixWithUnitPricingPrice { * Configuration for a single matrix scaling factor */ export interface MatrixScalingFactor { - /** - * First dimension value - */ first_dimension_value: string; - /** - * Scaling factor - */ scaling_factor: string; - /** - * Second dimension value (optional) - */ second_dimension_value?: string | null; } } @@ -3429,9 +3366,6 @@ export namespace NewSubscriptionThresholdTotalAmountPrice { * Configuration for a single threshold */ export interface ConsumptionTable { - /** - * Quantity threshold - */ threshold: string; /** @@ -3548,9 +3482,6 @@ export namespace NewSubscriptionTieredPackagePrice { * Configuration for tiered_package pricing */ export interface TieredPackageConfig { - /** - * Package size - */ package_size: string; /** @@ -3572,9 +3503,6 @@ export namespace NewSubscriptionTieredPackagePrice { */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -3686,9 +3614,6 @@ export namespace NewSubscriptionTieredPackageWithMinimumPrice { * Configuration for tiered_package_with_minimum pricing */ export interface TieredPackageWithMinimumConfig { - /** - * Package size - */ package_size: number; /** @@ -3703,19 +3628,10 @@ export namespace NewSubscriptionTieredPackageWithMinimumPrice { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Price per package - */ per_unit: string; - /** - * Tier lower bound - */ tier_lower_bound: string; } } @@ -3950,14 +3866,8 @@ export namespace NewSubscriptionTieredWithMinimumPrice { * Configuration for a single tier */ export interface Tier { - /** - * Minimum amount - */ minimum_amount: string; - /** - * Tier lower bound - */ tier_lower_bound: string; /** diff --git a/src/version.ts b/src/version.ts index e3f68a1d..5d82ab4e 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.38.0'; // x-release-please-version +export const VERSION = '5.39.0'; // x-release-please-version diff --git a/tests/api-resources/beta/beta.test.ts b/tests/api-resources/beta/beta.test.ts index da9c0163..56735b6b 100644 --- a/tests/api-resources/beta/beta.test.ts +++ b/tests/api-resources/beta/beta.test.ts @@ -32,7 +32,13 @@ describe('resource beta', () => { applies_to_item_ids: ['item_1', 'item_2'], applies_to_price_ids: ['price_1', 'price_2'], currency: 'currency', - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], is_invoice_level: true, price_type: 'usage', }, @@ -47,7 +53,13 @@ describe('resource beta', () => { currency: 'USD', custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], item_id: 'item_id', per_unit_cost_basis: 'per_unit_cost_basis', }, @@ -92,7 +104,13 @@ describe('resource beta', () => { applies_to_item_ids: ['item_1', 'item_2'], applies_to_price_ids: ['price_1', 'price_2'], currency: 'currency', - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], is_invoice_level: true, price_type: 'usage', }, @@ -109,7 +127,13 @@ describe('resource beta', () => { currency: 'USD', custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], item_id: 'item_id', per_unit_cost_basis: 'per_unit_cost_basis', }, diff --git a/tests/api-resources/beta/external-plan-id.test.ts b/tests/api-resources/beta/external-plan-id.test.ts index 11d1f15c..a195222f 100644 --- a/tests/api-resources/beta/external-plan-id.test.ts +++ b/tests/api-resources/beta/external-plan-id.test.ts @@ -32,7 +32,13 @@ describe('resource externalPlanId', () => { applies_to_item_ids: ['item_1', 'item_2'], applies_to_price_ids: ['price_1', 'price_2'], currency: 'currency', - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], is_invoice_level: true, price_type: 'usage', }, @@ -47,7 +53,13 @@ describe('resource externalPlanId', () => { currency: 'USD', custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], item_id: 'item_id', per_unit_cost_basis: 'per_unit_cost_basis', }, @@ -92,7 +104,13 @@ describe('resource externalPlanId', () => { applies_to_item_ids: ['item_1', 'item_2'], applies_to_price_ids: ['price_1', 'price_2'], currency: 'currency', - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], is_invoice_level: true, price_type: 'usage', }, @@ -109,7 +127,13 @@ describe('resource externalPlanId', () => { currency: 'USD', custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], item_id: 'item_id', per_unit_cost_basis: 'per_unit_cost_basis', }, diff --git a/tests/api-resources/coupons/coupons.test.ts b/tests/api-resources/coupons/coupons.test.ts index 4bf88996..8d73b817 100644 --- a/tests/api-resources/coupons/coupons.test.ts +++ b/tests/api-resources/coupons/coupons.test.ts @@ -54,7 +54,12 @@ describe('resource coupons', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.coupons.list( - { cursor: 'cursor', limit: 1, redemption_code: 'redemption_code', show_archived: true }, + { + cursor: 'cursor', + limit: 1, + redemption_code: 'redemption_code', + show_archived: true, + }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(Orb.NotFoundError); diff --git a/tests/api-resources/customers/credits/credits.test.ts b/tests/api-resources/customers/credits/credits.test.ts index 26353bfe..c834d2c0 100644 --- a/tests/api-resources/customers/credits/credits.test.ts +++ b/tests/api-resources/customers/credits/credits.test.ts @@ -32,7 +32,12 @@ describe('resource credits', () => { await expect( client.customers.credits.list( 'customer_id', - { currency: 'currency', cursor: 'cursor', include_all_blocks: true, limit: 1 }, + { + currency: 'currency', + cursor: 'cursor', + include_all_blocks: true, + limit: 1, + }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(Orb.NotFoundError); @@ -61,7 +66,12 @@ describe('resource credits', () => { await expect( client.customers.credits.listByExternalId( 'external_customer_id', - { currency: 'currency', cursor: 'cursor', include_all_blocks: true, limit: 1 }, + { + currency: 'currency', + cursor: 'cursor', + include_all_blocks: true, + limit: 1, + }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(Orb.NotFoundError); diff --git a/tests/api-resources/customers/credits/ledger.test.ts b/tests/api-resources/customers/credits/ledger.test.ts index 25b74758..f43bb1a8 100644 --- a/tests/api-resources/customers/credits/ledger.test.ts +++ b/tests/api-resources/customers/credits/ledger.test.ts @@ -71,7 +71,13 @@ describe('resource ledger', () => { description: 'description', effective_date: '2019-12-27T18:11:19.117Z', expiry_date: '2019-12-27T18:11:19.117Z', - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], invoice_settings: { auto_collection: true, custom_due_date: '2019-12-27', @@ -108,7 +114,13 @@ describe('resource ledger', () => { description: 'description', effective_date: '2019-12-27T18:11:19.117Z', expiry_date: '2019-12-27T18:11:19.117Z', - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], invoice_settings: { auto_collection: true, custom_due_date: '2019-12-27', diff --git a/tests/api-resources/customers/customers.test.ts b/tests/api-resources/customers/customers.test.ts index efbf1372..0d91ef07 100644 --- a/tests/api-resources/customers/customers.test.ts +++ b/tests/api-resources/customers/customers.test.ts @@ -66,7 +66,11 @@ describe('resource customers', () => { automatic_tax_enabled: true, tax_exemption_code: 'tax_exemption_code', }, - tax_id: { country: 'AD', type: 'ad_nrt', value: 'value' }, + tax_id: { + country: 'AD', + type: 'ad_nrt', + value: 'value', + }, timezone: 'timezone', }); }); diff --git a/tests/api-resources/invoices.test.ts b/tests/api-resources/invoices.test.ts index 0a5755e9..16e2b948 100644 --- a/tests/api-resources/invoices.test.ts +++ b/tests/api-resources/invoices.test.ts @@ -54,7 +54,13 @@ describe('resource invoices', () => { discount_type: 'percentage', percentage_discount: 0.15, applies_to_price_ids: ['h74gfhdjvn7ujokd', '7hfgtgjnbvc3ujkl'], - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], reason: 'reason', }, due_date: '2023-09-22', diff --git a/tests/api-resources/items.test.ts b/tests/api-resources/items.test.ts index 4d1044d9..ab26f6c9 100644 --- a/tests/api-resources/items.test.ts +++ b/tests/api-resources/items.test.ts @@ -21,7 +21,10 @@ describe('resource items', () => { }); test('create: required and optional params', async () => { - const response = await client.items.create({ name: 'API requests', metadata: { foo: 'string' } }); + const response = await client.items.create({ + name: 'API requests', + metadata: { foo: 'string' }, + }); }); test('update', async () => { diff --git a/tests/api-resources/plans/plans.test.ts b/tests/api-resources/plans/plans.test.ts index 67f3db2d..73f759ee 100644 --- a/tests/api-resources/plans/plans.test.ts +++ b/tests/api-resources/plans/plans.test.ts @@ -10,7 +10,11 @@ const client = new Orb({ describe('resource plans', () => { test('create: only required params', async () => { - const responsePromise = client.plans.create({ currency: 'currency', name: 'name', prices: [{}] }); + const responsePromise = client.plans.create({ + currency: 'currency', + name: 'name', + prices: [{}], + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -32,7 +36,13 @@ describe('resource plans', () => { currency: 'USD', custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], item_id: 'item_id', per_unit_cost_basis: 'per_unit_cost_basis', }, @@ -75,7 +85,13 @@ describe('resource plans', () => { applies_to_item_ids: ['item_1', 'item_2'], applies_to_price_ids: ['price_1', 'price_2'], currency: 'currency', - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], is_invoice_level: true, price_type: 'usage', }, @@ -87,7 +103,12 @@ describe('resource plans', () => { metadata: { foo: 'string' }, net_terms: 0, plan_phases: [ - { order: 0, align_billing_with_phase_start_date: true, duration: 1, duration_unit: 'daily' }, + { + order: 0, + align_billing_with_phase_start_date: true, + duration: 1, + duration_unit: 'daily', + }, ], status: 'active', }); diff --git a/tests/api-resources/prices/prices.test.ts b/tests/api-resources/prices/prices.test.ts index 0ad171cc..d936cc52 100644 --- a/tests/api-resources/prices/prices.test.ts +++ b/tests/api-resources/prices/prices.test.ts @@ -39,7 +39,10 @@ describe('resource prices', () => { billed_in_advance: true, billing_cycle_configuration: { duration: 0, duration_unit: 'day' }, conversion_rate: 0, - conversion_rate_config: { conversion_rate_type: 'unit', unit_config: { unit_amount: 'unit_amount' } }, + conversion_rate_config: { + conversion_rate_type: 'unit', + unit_config: { unit_amount: 'unit_amount' }, + }, dimensional_price_configuration: { dimension_values: ['string'], dimensional_price_group_id: 'dimensional_price_group_id', diff --git a/tests/api-resources/subscriptions.test.ts b/tests/api-resources/subscriptions.test.ts index 5a96de56..ebb06899 100644 --- a/tests/api-resources/subscriptions.test.ts +++ b/tests/api-resources/subscriptions.test.ts @@ -283,7 +283,13 @@ describe('resource subscriptions', () => { applies_to_item_ids: ['item_1', 'item_2'], applies_to_price_ids: ['price_1', 'price_2'], currency: 'currency', - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], is_invoice_level: true, price_type: 'usage', }, @@ -300,7 +306,13 @@ describe('resource subscriptions', () => { currency: 'USD', custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], item_id: 'item_id', per_unit_cost_basis: 'per_unit_cost_basis', }, @@ -351,7 +363,11 @@ describe('resource subscriptions', () => { align_billing_with_plan_change_date: true, auto_collection: true, billing_cycle_alignment: 'unchanged', - billing_cycle_anchor_configuration: { day: 1, month: 1, year: 0 }, + billing_cycle_anchor_configuration: { + day: 1, + month: 1, + year: 0, + }, change_date: '2017-07-21T17:32:28Z', coupon_redemption_code: 'coupon_redemption_code', credits_overage_rate: 0, @@ -376,7 +392,13 @@ describe('resource subscriptions', () => { applies_to_item_ids: ['item_1', 'item_2'], applies_to_price_ids: ['price_1', 'price_2'], currency: 'currency', - filters: [{ field: 'price_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'price_id', + operator: 'includes', + values: ['string'], + }, + ], is_invoice_level: true, price_type: 'usage', }, @@ -392,7 +414,13 @@ describe('resource subscriptions', () => { currency: 'USD', custom_expiration: { duration: 0, duration_unit: 'day' }, expires_at_end_of_cadence: true, - filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }], + filters: [ + { + field: 'item_id', + operator: 'includes', + values: ['string'], + }, + ], item_id: 'item_id', per_unit_cost_basis: 'per_unit_cost_basis', }, diff --git a/tests/index.test.ts b/tests/index.test.ts index 50751dc5..19c13c96 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -98,7 +98,11 @@ describe('instantiate client', () => { test('explicit global fetch', async () => { // make sure the global fetch type is assignable to our Fetch type - const client = new Orb({ baseURL: 'http://localhost:5000/', apiKey: 'My API Key', fetch: defaultFetch }); + const client = new Orb({ + baseURL: 'http://localhost:5000/', + apiKey: 'My API Key', + fetch: defaultFetch, + }); }); test('custom signal', async () => { @@ -134,7 +138,11 @@ describe('instantiate client', () => { return new Response(JSON.stringify({}), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new Orb({ baseURL: 'http://localhost:5000/', apiKey: 'My API Key', fetch: testFetch }); + const client = new Orb({ + baseURL: 'http://localhost:5000/', + apiKey: 'My API Key', + fetch: testFetch, + }); await client.patch('/foo'); expect(capturedRequest?.method).toEqual('PATCH'); @@ -278,7 +286,11 @@ describe('retries', () => { return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new Orb({ apiKey: 'My API Key', timeout: 10, fetch: testFetch }); + const client = new Orb({ + apiKey: 'My API Key', + timeout: 10, + fetch: testFetch, + }); expect(await client.request({ path: '/foo', method: 'get' })).toEqual({ a: 1 }); expect(count).toEqual(2); @@ -308,7 +320,11 @@ describe('retries', () => { return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new Orb({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 }); + const client = new Orb({ + apiKey: 'My API Key', + fetch: testFetch, + maxRetries: 4, + }); expect(await client.request({ path: '/foo', method: 'get' })).toEqual({ a: 1 }); @@ -332,7 +348,11 @@ describe('retries', () => { capturedRequest = init; return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new Orb({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 }); + const client = new Orb({ + apiKey: 'My API Key', + fetch: testFetch, + maxRetries: 4, + }); expect( await client.request({ @@ -394,7 +414,11 @@ describe('retries', () => { capturedRequest = init; return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new Orb({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 }); + const client = new Orb({ + apiKey: 'My API Key', + fetch: testFetch, + maxRetries: 4, + }); expect( await client.request({