orb-billing 1.41.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/README.md +13 -13
- package/core.d.ts.map +1 -1
- package/core.js +2 -1
- package/core.js.map +1 -1
- package/core.mjs +2 -1
- package/core.mjs.map +1 -1
- package/error.js +1 -1
- package/error.js.map +1 -1
- package/error.mjs +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/index.mjs +2 -2
- package/index.mjs.map +1 -1
- package/package.json +4 -1
- package/pagination.js +1 -1
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -1
- package/pagination.mjs.map +1 -1
- package/resource.js +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs +1 -1
- package/resource.mjs.map +1 -1
- package/resources/beta/beta.js +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.js +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/price.js +1 -1
- package/resources/beta/price.js.map +1 -1
- package/resources/beta/price.mjs +1 -1
- package/resources/beta/price.mjs.map +1 -1
- package/resources/coupons/coupons.js +1 -1
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +1 -1
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/index.js +1 -1
- package/resources/coupons/index.js.map +1 -1
- package/resources/coupons/index.mjs +1 -1
- package/resources/coupons/index.mjs.map +1 -1
- package/resources/coupons/subscriptions.js +1 -1
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +1 -1
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-notes.d.ts +1 -10
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +1 -1
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +1 -1
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.js +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.js +1 -1
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +1 -1
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.js +1 -1
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +1 -1
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/index.js +1 -1
- package/resources/customers/credits/index.js.map +1 -1
- package/resources/customers/credits/index.mjs +1 -1
- package/resources/customers/credits/index.mjs.map +1 -1
- package/resources/customers/credits/ledger.js +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.js +1 -1
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +1 -1
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.js +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.js +1 -1
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/customers/usage.js +1 -1
- package/resources/customers/usage.js.map +1 -1
- package/resources/customers/usage.mjs +1 -1
- package/resources/customers/usage.mjs.map +1 -1
- package/resources/events/backfills.js +1 -1
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +1 -1
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.js +1 -1
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +1 -1
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/index.js +1 -1
- package/resources/events/index.js.map +1 -1
- package/resources/events/index.mjs +1 -1
- package/resources/events/index.mjs.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.js +1 -1
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +1 -1
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +15 -1
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.js +1 -1
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +1 -1
- package/resources/items.mjs.map +1 -1
- package/resources/metrics.js +1 -1
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +1 -1
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.js +1 -1
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +1 -1
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/index.js +1 -1
- package/resources/plans/index.js.map +1 -1
- package/resources/plans/index.mjs +1 -1
- package/resources/plans/index.mjs.map +1 -1
- package/resources/plans/plans.d.ts +40 -1
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.js +1 -1
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +1 -1
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/index.js +1 -1
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +317 -2
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.js +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscriptions.d.ts +279 -3
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/top-level.js +1 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +1 -1
- package/resources/top-level.mjs.map +1 -1
- package/src/core.ts +3 -1
- package/src/error.ts +1 -1
- package/src/index.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/resource.ts +1 -1
- package/src/resources/beta/beta.ts +1 -1
- package/src/resources/beta/index.ts +1 -1
- package/src/resources/beta/price.ts +1 -1
- package/src/resources/coupons/coupons.ts +1 -1
- package/src/resources/coupons/index.ts +1 -1
- package/src/resources/coupons/subscriptions.ts +1 -1
- package/src/resources/credit-notes.ts +2 -15
- package/src/resources/customers/balance-transactions.ts +1 -1
- package/src/resources/customers/costs.ts +1 -1
- package/src/resources/customers/credits/credits.ts +1 -1
- package/src/resources/customers/credits/index.ts +1 -1
- package/src/resources/customers/credits/ledger.ts +1 -1
- package/src/resources/customers/credits/top-ups.ts +1 -1
- package/src/resources/customers/customers.ts +1 -1
- package/src/resources/customers/index.ts +1 -1
- package/src/resources/customers/usage.ts +1 -1
- package/src/resources/events/backfills.ts +1 -1
- package/src/resources/events/events.ts +1 -1
- package/src/resources/events/index.ts +1 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/invoice-line-items.ts +1 -1
- package/src/resources/invoices.ts +19 -2
- package/src/resources/items.ts +1 -1
- package/src/resources/metrics.ts +1 -1
- package/src/resources/plans/external-plan-id.ts +1 -1
- package/src/resources/plans/index.ts +1 -1
- package/src/resources/plans/plans.ts +51 -1
- package/src/resources/prices/external-price-id.ts +1 -1
- package/src/resources/prices/index.ts +1 -1
- package/src/resources/prices/prices.ts +422 -3
- package/src/resources/shared.ts +1 -1
- package/src/resources/subscriptions.ts +349 -1
- package/src/resources/top-level.ts +1 -1
- package/src/uploads.ts +4 -1
- package/src/version.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -1
- package/uploads.js.map +1 -1
- package/uploads.mjs +3 -1
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../core";
|
|
4
4
|
import { APIResource } from "../resource";
|
|
@@ -2097,6 +2097,7 @@ export interface SubscriptionCreateParams {
|
|
|
2097
2097
|
| SubscriptionCreateParams.OverrideTieredPackagePrice
|
|
2098
2098
|
| SubscriptionCreateParams.OverrideTieredWithMinimumPrice
|
|
2099
2099
|
| SubscriptionCreateParams.OverridePackageWithAllocationPrice
|
|
2100
|
+
| SubscriptionCreateParams.OverrideUnitWithPercentPrice
|
|
2100
2101
|
> | null;
|
|
2101
2102
|
|
|
2102
2103
|
start_date?: string | null;
|
|
@@ -3069,6 +3070,71 @@ export namespace SubscriptionCreateParams {
|
|
|
3069
3070
|
usage_discount?: number | null;
|
|
3070
3071
|
}
|
|
3071
3072
|
}
|
|
3073
|
+
|
|
3074
|
+
export interface OverrideUnitWithPercentPrice {
|
|
3075
|
+
id: string;
|
|
3076
|
+
|
|
3077
|
+
model_type: 'unit_with_percent';
|
|
3078
|
+
|
|
3079
|
+
unit_with_percent_config: Record<string, unknown>;
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* The subscription's override discount for the plan.
|
|
3083
|
+
*/
|
|
3084
|
+
discount?: OverrideUnitWithPercentPrice.Discount | null;
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* The starting quantity of the price, if the price is a fixed price.
|
|
3088
|
+
*/
|
|
3089
|
+
fixed_price_quantity?: number | null;
|
|
3090
|
+
|
|
3091
|
+
/**
|
|
3092
|
+
* The subscription's override maximum amount for the plan.
|
|
3093
|
+
*/
|
|
3094
|
+
maximum_amount?: string | null;
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* The subscription's override minimum amount for the plan.
|
|
3098
|
+
*/
|
|
3099
|
+
minimum_amount?: string | null;
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
export namespace OverrideUnitWithPercentPrice {
|
|
3103
|
+
/**
|
|
3104
|
+
* The subscription's override discount for the plan.
|
|
3105
|
+
*/
|
|
3106
|
+
export interface Discount {
|
|
3107
|
+
discount_type: 'percentage' | 'trial' | 'usage' | 'amount';
|
|
3108
|
+
|
|
3109
|
+
/**
|
|
3110
|
+
* Only available if discount_type is `amount`.
|
|
3111
|
+
*/
|
|
3112
|
+
amount_discount?: string | null;
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* List of price_ids that this discount applies to. For plan/plan phase discounts,
|
|
3116
|
+
* this can be a subset of prices.
|
|
3117
|
+
*/
|
|
3118
|
+
applies_to_price_ids?: Array<string> | null;
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* Only available if discount_type is `percentage`. This is a number between 0
|
|
3122
|
+
* and 1.
|
|
3123
|
+
*/
|
|
3124
|
+
percentage_discount?: number | null;
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* Only available if discount_type is `trial`
|
|
3128
|
+
*/
|
|
3129
|
+
trial_amount_discount?: string | null;
|
|
3130
|
+
|
|
3131
|
+
/**
|
|
3132
|
+
* Only available if discount_type is `usage`. Number of usage units that this
|
|
3133
|
+
* discount is for
|
|
3134
|
+
*/
|
|
3135
|
+
usage_discount?: number | null;
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3072
3138
|
}
|
|
3073
3139
|
|
|
3074
3140
|
export interface SubscriptionListParams extends PageParams {
|
|
@@ -3251,6 +3317,7 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3251
3317
|
| Add.NewFloatingUnitPrice
|
|
3252
3318
|
| Add.NewFloatingPackagePrice
|
|
3253
3319
|
| Add.NewFloatingMatrixPrice
|
|
3320
|
+
| Add.NewFloatingMatrixWithAllocationPrice
|
|
3254
3321
|
| Add.NewFloatingTieredPrice
|
|
3255
3322
|
| Add.NewFloatingTieredBpsPrice
|
|
3256
3323
|
| Add.NewFloatingBpsPrice
|
|
@@ -3260,6 +3327,8 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3260
3327
|
| Add.NewFloatingTieredPackagePrice
|
|
3261
3328
|
| Add.NewFloatingTieredWithMinimumPrice
|
|
3262
3329
|
| Add.NewFloatingPackageWithAllocationPrice
|
|
3330
|
+
| Add.NewFloatingTieredPackageWithMinimumPrice
|
|
3331
|
+
| Add.NewFloatingUnitWithPercentPrice
|
|
3263
3332
|
| null;
|
|
3264
3333
|
|
|
3265
3334
|
/**
|
|
@@ -3547,6 +3616,111 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3547
3616
|
}
|
|
3548
3617
|
}
|
|
3549
3618
|
|
|
3619
|
+
export interface NewFloatingMatrixWithAllocationPrice {
|
|
3620
|
+
/**
|
|
3621
|
+
* The cadence to bill for this price on.
|
|
3622
|
+
*/
|
|
3623
|
+
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3624
|
+
|
|
3625
|
+
/**
|
|
3626
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
3627
|
+
*/
|
|
3628
|
+
currency: string;
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* The id of the item the plan will be associated with.
|
|
3632
|
+
*/
|
|
3633
|
+
item_id: string;
|
|
3634
|
+
|
|
3635
|
+
matrix_with_allocation_config: NewFloatingMatrixWithAllocationPrice.MatrixWithAllocationConfig;
|
|
3636
|
+
|
|
3637
|
+
model_type: 'matrix_with_allocation';
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* The name of the price.
|
|
3641
|
+
*/
|
|
3642
|
+
name: string;
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
3646
|
+
* usage-based.
|
|
3647
|
+
*/
|
|
3648
|
+
billable_metric_id?: string | null;
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
3652
|
+
* this is true, and in-arrears if this is false.
|
|
3653
|
+
*/
|
|
3654
|
+
billed_in_advance?: boolean | null;
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* An alias for the price.
|
|
3658
|
+
*/
|
|
3659
|
+
external_price_id?: string | null;
|
|
3660
|
+
|
|
3661
|
+
/**
|
|
3662
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
3663
|
+
* applied.
|
|
3664
|
+
*/
|
|
3665
|
+
fixed_price_quantity?: number | null;
|
|
3666
|
+
|
|
3667
|
+
/**
|
|
3668
|
+
* The property used to group this price on an invoice
|
|
3669
|
+
*/
|
|
3670
|
+
invoice_grouping_key?: string | null;
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
export namespace NewFloatingMatrixWithAllocationPrice {
|
|
3674
|
+
export interface MatrixWithAllocationConfig {
|
|
3675
|
+
/**
|
|
3676
|
+
* Allocation to be used to calculate the price
|
|
3677
|
+
*/
|
|
3678
|
+
allocation: number;
|
|
3679
|
+
|
|
3680
|
+
/**
|
|
3681
|
+
* Default per unit rate for any usage not bucketed into a specified matrix_value
|
|
3682
|
+
*/
|
|
3683
|
+
default_unit_amount: string;
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* One or two event property values to evaluate matrix groups by
|
|
3687
|
+
*/
|
|
3688
|
+
dimensions: Array<string | null>;
|
|
3689
|
+
|
|
3690
|
+
/**
|
|
3691
|
+
* Matrix values for specified matrix grouping keys
|
|
3692
|
+
*/
|
|
3693
|
+
matrix_values: Array<MatrixWithAllocationConfig.MatrixValue>;
|
|
3694
|
+
|
|
3695
|
+
/**
|
|
3696
|
+
* Default optional multiplier to scale rated quantities that fall into the default
|
|
3697
|
+
* bucket by
|
|
3698
|
+
*/
|
|
3699
|
+
scaling_factor?: number | null;
|
|
3700
|
+
}
|
|
3701
|
+
|
|
3702
|
+
export namespace MatrixWithAllocationConfig {
|
|
3703
|
+
export interface MatrixValue {
|
|
3704
|
+
/**
|
|
3705
|
+
* One or two matrix keys to filter usage to this Matrix value by. For example,
|
|
3706
|
+
* ["region", "tier"] could be used to filter cloud usage by a cloud region and an
|
|
3707
|
+
* instance tier.
|
|
3708
|
+
*/
|
|
3709
|
+
dimension_values: Array<string | null>;
|
|
3710
|
+
|
|
3711
|
+
/**
|
|
3712
|
+
* Unit price for the specified dimension_values
|
|
3713
|
+
*/
|
|
3714
|
+
unit_amount: string;
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* Optional multiplier to scale rated quantities by
|
|
3718
|
+
*/
|
|
3719
|
+
scaling_factor?: number | null;
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3550
3724
|
export interface NewFloatingTieredPrice {
|
|
3551
3725
|
/**
|
|
3552
3726
|
* The cadence to bill for this price on.
|
|
@@ -4160,6 +4334,114 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4160
4334
|
*/
|
|
4161
4335
|
invoice_grouping_key?: string | null;
|
|
4162
4336
|
}
|
|
4337
|
+
|
|
4338
|
+
export interface NewFloatingTieredPackageWithMinimumPrice {
|
|
4339
|
+
/**
|
|
4340
|
+
* The cadence to bill for this price on.
|
|
4341
|
+
*/
|
|
4342
|
+
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
4343
|
+
|
|
4344
|
+
/**
|
|
4345
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
4346
|
+
*/
|
|
4347
|
+
currency: string;
|
|
4348
|
+
|
|
4349
|
+
/**
|
|
4350
|
+
* The id of the item the plan will be associated with.
|
|
4351
|
+
*/
|
|
4352
|
+
item_id: string;
|
|
4353
|
+
|
|
4354
|
+
model_type: 'tiered_package_with_minimum';
|
|
4355
|
+
|
|
4356
|
+
/**
|
|
4357
|
+
* The name of the price.
|
|
4358
|
+
*/
|
|
4359
|
+
name: string;
|
|
4360
|
+
|
|
4361
|
+
tiered_package_with_minimum_config: Record<string, unknown>;
|
|
4362
|
+
|
|
4363
|
+
/**
|
|
4364
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4365
|
+
* usage-based.
|
|
4366
|
+
*/
|
|
4367
|
+
billable_metric_id?: string | null;
|
|
4368
|
+
|
|
4369
|
+
/**
|
|
4370
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4371
|
+
* this is true, and in-arrears if this is false.
|
|
4372
|
+
*/
|
|
4373
|
+
billed_in_advance?: boolean | null;
|
|
4374
|
+
|
|
4375
|
+
/**
|
|
4376
|
+
* An alias for the price.
|
|
4377
|
+
*/
|
|
4378
|
+
external_price_id?: string | null;
|
|
4379
|
+
|
|
4380
|
+
/**
|
|
4381
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4382
|
+
* applied.
|
|
4383
|
+
*/
|
|
4384
|
+
fixed_price_quantity?: number | null;
|
|
4385
|
+
|
|
4386
|
+
/**
|
|
4387
|
+
* The property used to group this price on an invoice
|
|
4388
|
+
*/
|
|
4389
|
+
invoice_grouping_key?: string | null;
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
export interface NewFloatingUnitWithPercentPrice {
|
|
4393
|
+
/**
|
|
4394
|
+
* The cadence to bill for this price on.
|
|
4395
|
+
*/
|
|
4396
|
+
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
4397
|
+
|
|
4398
|
+
/**
|
|
4399
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
4400
|
+
*/
|
|
4401
|
+
currency: string;
|
|
4402
|
+
|
|
4403
|
+
/**
|
|
4404
|
+
* The id of the item the plan will be associated with.
|
|
4405
|
+
*/
|
|
4406
|
+
item_id: string;
|
|
4407
|
+
|
|
4408
|
+
model_type: 'unit_with_percent';
|
|
4409
|
+
|
|
4410
|
+
/**
|
|
4411
|
+
* The name of the price.
|
|
4412
|
+
*/
|
|
4413
|
+
name: string;
|
|
4414
|
+
|
|
4415
|
+
unit_with_percent_config: Record<string, unknown>;
|
|
4416
|
+
|
|
4417
|
+
/**
|
|
4418
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4419
|
+
* usage-based.
|
|
4420
|
+
*/
|
|
4421
|
+
billable_metric_id?: string | null;
|
|
4422
|
+
|
|
4423
|
+
/**
|
|
4424
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4425
|
+
* this is true, and in-arrears if this is false.
|
|
4426
|
+
*/
|
|
4427
|
+
billed_in_advance?: boolean | null;
|
|
4428
|
+
|
|
4429
|
+
/**
|
|
4430
|
+
* An alias for the price.
|
|
4431
|
+
*/
|
|
4432
|
+
external_price_id?: string | null;
|
|
4433
|
+
|
|
4434
|
+
/**
|
|
4435
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4436
|
+
* applied.
|
|
4437
|
+
*/
|
|
4438
|
+
fixed_price_quantity?: number | null;
|
|
4439
|
+
|
|
4440
|
+
/**
|
|
4441
|
+
* The property used to group this price on an invoice
|
|
4442
|
+
*/
|
|
4443
|
+
invoice_grouping_key?: string | null;
|
|
4444
|
+
}
|
|
4163
4445
|
}
|
|
4164
4446
|
|
|
4165
4447
|
export interface Edit {
|
|
@@ -4283,6 +4565,7 @@ export interface SubscriptionSchedulePlanChangeParams {
|
|
|
4283
4565
|
| SubscriptionSchedulePlanChangeParams.OverrideTieredPackagePrice
|
|
4284
4566
|
| SubscriptionSchedulePlanChangeParams.OverrideTieredWithMinimumPrice
|
|
4285
4567
|
| SubscriptionSchedulePlanChangeParams.OverridePackageWithAllocationPrice
|
|
4568
|
+
| SubscriptionSchedulePlanChangeParams.OverrideUnitWithPercentPrice
|
|
4286
4569
|
> | null;
|
|
4287
4570
|
}
|
|
4288
4571
|
|
|
@@ -5253,6 +5536,71 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5253
5536
|
usage_discount?: number | null;
|
|
5254
5537
|
}
|
|
5255
5538
|
}
|
|
5539
|
+
|
|
5540
|
+
export interface OverrideUnitWithPercentPrice {
|
|
5541
|
+
id: string;
|
|
5542
|
+
|
|
5543
|
+
model_type: 'unit_with_percent';
|
|
5544
|
+
|
|
5545
|
+
unit_with_percent_config: Record<string, unknown>;
|
|
5546
|
+
|
|
5547
|
+
/**
|
|
5548
|
+
* The subscription's override discount for the plan.
|
|
5549
|
+
*/
|
|
5550
|
+
discount?: OverrideUnitWithPercentPrice.Discount | null;
|
|
5551
|
+
|
|
5552
|
+
/**
|
|
5553
|
+
* The starting quantity of the price, if the price is a fixed price.
|
|
5554
|
+
*/
|
|
5555
|
+
fixed_price_quantity?: number | null;
|
|
5556
|
+
|
|
5557
|
+
/**
|
|
5558
|
+
* The subscription's override maximum amount for the plan.
|
|
5559
|
+
*/
|
|
5560
|
+
maximum_amount?: string | null;
|
|
5561
|
+
|
|
5562
|
+
/**
|
|
5563
|
+
* The subscription's override minimum amount for the plan.
|
|
5564
|
+
*/
|
|
5565
|
+
minimum_amount?: string | null;
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5568
|
+
export namespace OverrideUnitWithPercentPrice {
|
|
5569
|
+
/**
|
|
5570
|
+
* The subscription's override discount for the plan.
|
|
5571
|
+
*/
|
|
5572
|
+
export interface Discount {
|
|
5573
|
+
discount_type: 'percentage' | 'trial' | 'usage' | 'amount';
|
|
5574
|
+
|
|
5575
|
+
/**
|
|
5576
|
+
* Only available if discount_type is `amount`.
|
|
5577
|
+
*/
|
|
5578
|
+
amount_discount?: string | null;
|
|
5579
|
+
|
|
5580
|
+
/**
|
|
5581
|
+
* List of price_ids that this discount applies to. For plan/plan phase discounts,
|
|
5582
|
+
* this can be a subset of prices.
|
|
5583
|
+
*/
|
|
5584
|
+
applies_to_price_ids?: Array<string> | null;
|
|
5585
|
+
|
|
5586
|
+
/**
|
|
5587
|
+
* Only available if discount_type is `percentage`. This is a number between 0
|
|
5588
|
+
* and 1.
|
|
5589
|
+
*/
|
|
5590
|
+
percentage_discount?: number | null;
|
|
5591
|
+
|
|
5592
|
+
/**
|
|
5593
|
+
* Only available if discount_type is `trial`
|
|
5594
|
+
*/
|
|
5595
|
+
trial_amount_discount?: string | null;
|
|
5596
|
+
|
|
5597
|
+
/**
|
|
5598
|
+
* Only available if discount_type is `usage`. Number of usage units that this
|
|
5599
|
+
* discount is for
|
|
5600
|
+
*/
|
|
5601
|
+
usage_discount?: number | null;
|
|
5602
|
+
}
|
|
5603
|
+
}
|
|
5256
5604
|
}
|
|
5257
5605
|
|
|
5258
5606
|
export interface SubscriptionTriggerPhaseParams {
|
package/src/uploads.ts
CHANGED
|
@@ -102,11 +102,14 @@ export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIter
|
|
|
102
102
|
export async function toFile(
|
|
103
103
|
value: ToFileInput | PromiseLike<ToFileInput>,
|
|
104
104
|
name?: string | null | undefined,
|
|
105
|
-
options
|
|
105
|
+
options?: FilePropertyBag | undefined,
|
|
106
106
|
): Promise<FileLike> {
|
|
107
107
|
// If it's a promise, resolve it.
|
|
108
108
|
value = await value;
|
|
109
109
|
|
|
110
|
+
// Use the file's options if there isn't one provided
|
|
111
|
+
options ??= isFileLike(value) ? { lastModified: value.lastModified, type: value.type } : {};
|
|
112
|
+
|
|
110
113
|
if (isResponseLike(value)) {
|
|
111
114
|
const blob = await value.blob();
|
|
112
115
|
name ||= new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.1'; // x-release-please-version
|
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EACL,QAAQ,EAER,KAAK,IAAI,EACT,KAAK,eAAe,EAEpB,KAAK,YAAY,EAElB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC9F,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,IAAI,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAE/C;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BAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,QAAQ,CAAC,CA0BnB;AAmDD,eAAO,MAAM,eAAe,SAAU,GAAG,0BACsD,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,gCAAgC,sGAO5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,sGAKvC,CAAC;AAEF,eAAO,MAAM,UAAU,wDAA6D,QAAQ,QAAQ,CAInG,CAAC"}
|
package/uploads.js
CHANGED
|
@@ -40,9 +40,11 @@ exports.isUploadable = isUploadable;
|
|
|
40
40
|
* @param {number=} options.lastModified the last modified timestamp
|
|
41
41
|
* @returns a {@link File} with the given properties
|
|
42
42
|
*/
|
|
43
|
-
async function toFile(value, name, options
|
|
43
|
+
async function toFile(value, name, options) {
|
|
44
44
|
// If it's a promise, resolve it.
|
|
45
45
|
value = await value;
|
|
46
|
+
// Use the file's options if there isn't one provided
|
|
47
|
+
options ?? (options = (0, exports.isFileLike)(value) ? { lastModified: value.lastModified, type: value.type } : {});
|
|
46
48
|
if ((0, exports.isResponseLike)(value)) {
|
|
47
49
|
const blob = await value.blob();
|
|
48
50
|
name || (name = new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file');
|
package/uploads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AACA,6CAQwB;AAExB,2CAA8C;AAArC,qGAAA,YAAY,OAAA;AAiDd,MAAM,cAAc,GAAG,CAAC,KAAU,EAAyB,EAAE,CAClE,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;IAC7B,OAAO,KAAK,CAAC,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AAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;KAChF;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACpC,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC,CACzF,CAAC;KACH;SAAM;QACL,MAAM,IAAI,SAAS,CACjB,wGAAwG,KAAK,UAAU,CACxH,CAAC;KACH;AACH,CAAC,CAAC"}
|
package/uploads.mjs
CHANGED
|
@@ -32,9 +32,11 @@ export const isUploadable = (value) => {
|
|
|
32
32
|
* @param {number=} options.lastModified the last modified timestamp
|
|
33
33
|
* @returns a {@link File} with the given properties
|
|
34
34
|
*/
|
|
35
|
-
export async function toFile(value, name, options
|
|
35
|
+
export async function toFile(value, name, options) {
|
|
36
36
|
// If it's a promise, resolve it.
|
|
37
37
|
value = await value;
|
|
38
|
+
// Use the file's options if there isn't one provided
|
|
39
|
+
options ?? (options = isFileLike(value) ? { lastModified: value.lastModified, type: value.type } : {});
|
|
38
40
|
if (isResponseLike(value)) {
|
|
39
41
|
const blob = await value.blob();
|
|
40
42
|
name || (name = new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file');
|
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"OACO,EACL,QAAQ,EACR,IAAI,EAGJ,0BAA0B,EAE1B,cAAc,GACf;OAEM,EAAE,YAAY,EAAE;AAiDvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAU,EAAyB,EAAE,CAClE,KAAK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AAQ,EAAE;QACpC,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC,CACzF,CAAC;KACH;SAAM;QACL,MAAM,IAAI,SAAS,CACjB,wGAAwG,KAAK,UAAU,CACxH,CAAC;KACH;AACH,CAAC,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|