@stigg/typescript 0.1.0-alpha.8 → 0.1.0-beta.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 +417 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +19 -7
- package/client.js.map +1 -1
- package/client.mjs +19 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +12 -1
- package/resources/v1/addons/addons.d.mts +828 -0
- package/resources/v1/addons/addons.d.mts.map +1 -0
- package/resources/v1/addons/addons.d.ts +828 -0
- package/resources/v1/addons/addons.d.ts.map +1 -0
- package/resources/v1/{events/addons → addons}/addons.js +41 -26
- package/resources/v1/addons/addons.js.map +1 -0
- package/resources/v1/{events/addons → addons}/addons.mjs +40 -25
- package/resources/v1/addons/addons.mjs.map +1 -0
- package/resources/v1/addons/entitlements.d.mts +888 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -0
- package/resources/v1/addons/entitlements.d.ts +888 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -0
- package/resources/v1/addons/entitlements.js +36 -0
- package/resources/v1/addons/entitlements.js.map +1 -0
- package/resources/v1/addons/entitlements.mjs +32 -0
- package/resources/v1/addons/entitlements.mjs.map +1 -0
- package/resources/v1/addons/index.d.mts +3 -0
- package/resources/v1/addons/index.d.mts.map +1 -0
- package/resources/v1/addons/index.d.ts +3 -0
- package/resources/v1/addons/index.d.ts.map +1 -0
- package/resources/v1/{events/addons → addons}/index.js +3 -3
- package/resources/v1/addons/index.js.map +1 -0
- package/resources/v1/{events/addons → addons}/index.mjs +1 -1
- package/resources/v1/addons/index.mjs.map +1 -0
- package/resources/v1/addons.d.mts.map +1 -0
- package/resources/v1/addons.d.ts.map +1 -0
- package/resources/v1/{events/addons.js → addons.js} +1 -1
- package/resources/v1/addons.js.map +1 -0
- package/resources/v1/addons.mjs.map +1 -0
- package/resources/v1/coupons.d.mts +19 -4
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +19 -4
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +3 -0
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +3 -0
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +1204 -6
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +1204 -6
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +30 -1
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +30 -1
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -1
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -1
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +3 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -0
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +142 -0
- package/resources/v1/customers/integrations.d.mts.map +1 -0
- package/resources/v1/customers/integrations.d.ts +142 -0
- package/resources/v1/customers/integrations.d.ts.map +1 -0
- package/resources/v1/customers/integrations.js +50 -0
- package/resources/v1/customers/integrations.js.map +1 -0
- package/resources/v1/customers/integrations.mjs +46 -0
- package/resources/v1/customers/integrations.mjs.map +1 -0
- package/resources/v1/customers/payment-method.d.mts +3 -0
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +3 -0
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +3 -0
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +3 -0
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +4 -1
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +4 -1
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +3 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +3 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/credits/credits.d.mts +274 -0
- package/resources/v1/events/credits/credits.d.mts.map +1 -0
- package/resources/v1/events/credits/credits.d.ts +274 -0
- package/resources/v1/events/credits/credits.d.ts.map +1 -0
- package/resources/v1/events/credits/credits.js +45 -0
- package/resources/v1/events/credits/credits.js.map +1 -0
- package/resources/v1/events/credits/credits.mjs +40 -0
- package/resources/v1/events/credits/credits.mjs.map +1 -0
- package/resources/v1/events/credits/custom-currencies.d.mts +497 -0
- package/resources/v1/events/credits/custom-currencies.d.mts.map +1 -0
- package/resources/v1/events/credits/custom-currencies.d.ts +497 -0
- package/resources/v1/events/credits/custom-currencies.d.ts.map +1 -0
- package/resources/v1/events/credits/custom-currencies.js +56 -0
- package/resources/v1/events/credits/custom-currencies.js.map +1 -0
- package/resources/v1/events/credits/custom-currencies.mjs +52 -0
- package/resources/v1/events/credits/custom-currencies.mjs.map +1 -0
- package/resources/v1/events/credits/grants.d.mts +549 -0
- package/resources/v1/events/credits/grants.d.mts.map +1 -0
- package/resources/v1/events/credits/grants.d.ts +549 -0
- package/resources/v1/events/credits/grants.d.ts.map +1 -0
- package/resources/v1/events/credits/grants.js +37 -0
- package/resources/v1/events/credits/grants.js.map +1 -0
- package/resources/v1/events/credits/grants.mjs +33 -0
- package/resources/v1/events/credits/grants.mjs.map +1 -0
- package/resources/v1/events/credits/index.d.mts +4 -0
- package/resources/v1/events/credits/index.d.mts.map +1 -0
- package/resources/v1/events/credits/index.d.ts +4 -0
- package/resources/v1/events/credits/index.d.ts.map +1 -0
- package/resources/v1/events/credits/index.js +11 -0
- package/resources/v1/events/credits/index.js.map +1 -0
- package/resources/v1/events/credits/index.mjs +5 -0
- package/resources/v1/events/credits/index.mjs.map +1 -0
- package/resources/v1/events/credits.d.mts +2 -0
- package/resources/v1/events/credits.d.mts.map +1 -0
- package/resources/v1/events/credits.d.ts +2 -0
- package/resources/v1/events/credits.d.ts.map +1 -0
- package/resources/v1/events/credits.js +6 -0
- package/resources/v1/events/credits.js.map +1 -0
- package/resources/v1/events/credits.mjs +3 -0
- package/resources/v1/events/credits.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +7 -12
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +7 -12
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +7 -12
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +7 -12
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +1 -3
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +1 -3
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js +3 -7
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +1 -3
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1/features.d.mts +456 -0
- package/resources/v1/features.d.mts.map +1 -0
- package/resources/v1/features.d.ts +456 -0
- package/resources/v1/features.d.ts.map +1 -0
- package/resources/v1/{events/features.js → features.js} +6 -3
- package/resources/v1/features.js.map +1 -0
- package/resources/v1/{events/features.mjs → features.mjs} +6 -3
- package/resources/v1/features.mjs.map +1 -0
- package/resources/v1/index.d.mts +5 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +5 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +13 -7
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +3 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +888 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -0
- package/resources/v1/plans/entitlements.d.ts +888 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -0
- package/resources/v1/plans/entitlements.js +36 -0
- package/resources/v1/plans/entitlements.js.map +1 -0
- package/resources/v1/plans/entitlements.mjs +32 -0
- package/resources/v1/plans/entitlements.mjs.map +1 -0
- package/resources/v1/plans/index.d.mts +3 -0
- package/resources/v1/plans/index.d.mts.map +1 -0
- package/resources/v1/plans/index.d.ts +3 -0
- package/resources/v1/plans/index.d.ts.map +1 -0
- package/resources/v1/plans/index.js +9 -0
- package/resources/v1/plans/index.js.map +1 -0
- package/resources/v1/plans/index.mjs +4 -0
- package/resources/v1/plans/index.mjs.map +1 -0
- package/resources/v1/plans/plans.d.mts +977 -0
- package/resources/v1/plans/plans.d.mts.map +1 -0
- package/resources/v1/plans/plans.d.ts +977 -0
- package/resources/v1/plans/plans.d.ts.map +1 -0
- package/resources/v1/plans/plans.js +72 -0
- package/resources/v1/plans/plans.js.map +1 -0
- package/resources/v1/plans/plans.mjs +67 -0
- package/resources/v1/plans/plans.mjs.map +1 -0
- package/resources/v1/plans.d.mts +2 -0
- package/resources/v1/plans.d.mts.map +1 -0
- package/resources/v1/plans.d.ts +2 -0
- package/resources/v1/plans.d.ts.map +1 -0
- package/resources/v1/plans.js +6 -0
- package/resources/v1/plans.js.map +1 -0
- package/resources/v1/plans.mjs +3 -0
- package/resources/v1/plans.mjs.map +1 -0
- package/resources/v1/products.d.mts +25 -358
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +25 -358
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +3 -0
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +3 -0
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +3 -0
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +3 -0
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +3 -0
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +3 -0
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +3 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +3 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +3 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +3 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +1131 -166
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +1131 -166
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +2 -2
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +3 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +3 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +3 -0
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +3 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +4 -1
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +4 -1
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +3 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +3 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +16 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +16 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +12 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +12 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +23 -10
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -1
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/v1/addons/addons.ts +1856 -0
- package/src/resources/v1/addons/entitlements.ts +1153 -0
- package/src/resources/v1/addons/index.ts +23 -0
- package/src/resources/v1/coupons.ts +17 -4
- package/src/resources/v1/customers/customers.ts +2526 -69
- package/src/resources/v1/customers/index.ts +15 -0
- package/src/resources/v1/customers/integrations.ts +252 -0
- package/src/resources/v1/customers/payment-method.ts +3 -0
- package/src/resources/v1/customers/promotional-entitlements.ts +4 -1
- package/src/resources/v1/events/credits/credits.ts +402 -0
- package/src/resources/v1/events/credits/custom-currencies.ts +615 -0
- package/src/resources/v1/events/credits/grants.ts +795 -0
- package/src/resources/v1/events/credits/index.ts +33 -0
- package/src/resources/v1/events/credits.ts +3 -0
- package/src/resources/v1/events/events.ts +23 -80
- package/src/resources/v1/events/index.ts +9 -35
- package/src/resources/v1/{events/features.ts → features.ts} +29 -512
- package/src/resources/v1/index.ts +39 -5
- package/src/resources/v1/plans/entitlements.ts +1145 -0
- package/src/resources/v1/plans/index.ts +23 -0
- package/src/resources/v1/plans/plans.ts +2029 -0
- package/src/resources/v1/plans.ts +3 -0
- package/src/resources/v1/products.ts +26 -425
- package/src/resources/v1/subscriptions/future-update.ts +3 -0
- package/src/resources/v1/subscriptions/invoice.ts +3 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +3901 -1324
- package/src/resources/v1/subscriptions/usage.ts +3 -0
- package/src/resources/v1/usage.ts +4 -1
- package/src/resources/v1/v1.ts +90 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.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
- package/resources/v1/events/addons/addons.d.mts +0 -605
- package/resources/v1/events/addons/addons.d.mts.map +0 -1
- package/resources/v1/events/addons/addons.d.ts +0 -605
- package/resources/v1/events/addons/addons.d.ts.map +0 -1
- package/resources/v1/events/addons/addons.js.map +0 -1
- package/resources/v1/events/addons/addons.mjs.map +0 -1
- package/resources/v1/events/addons/draft.d.mts +0 -121
- package/resources/v1/events/addons/draft.d.mts.map +0 -1
- package/resources/v1/events/addons/draft.d.ts +0 -121
- package/resources/v1/events/addons/draft.d.ts.map +0 -1
- package/resources/v1/events/addons/draft.js +0 -22
- package/resources/v1/events/addons/draft.js.map +0 -1
- package/resources/v1/events/addons/draft.mjs +0 -18
- package/resources/v1/events/addons/draft.mjs.map +0 -1
- package/resources/v1/events/addons/index.d.mts +0 -3
- package/resources/v1/events/addons/index.d.mts.map +0 -1
- package/resources/v1/events/addons/index.d.ts +0 -3
- package/resources/v1/events/addons/index.d.ts.map +0 -1
- package/resources/v1/events/addons/index.js.map +0 -1
- package/resources/v1/events/addons/index.mjs.map +0 -1
- package/resources/v1/events/addons.d.mts.map +0 -1
- package/resources/v1/events/addons.d.ts.map +0 -1
- package/resources/v1/events/addons.js.map +0 -1
- package/resources/v1/events/addons.mjs.map +0 -1
- package/resources/v1/events/features.d.mts +0 -856
- package/resources/v1/events/features.d.mts.map +0 -1
- package/resources/v1/events/features.d.ts +0 -856
- package/resources/v1/events/features.d.ts.map +0 -1
- package/resources/v1/events/features.js.map +0 -1
- package/resources/v1/events/features.mjs.map +0 -1
- package/resources/v1/events/plans.d.mts +0 -348
- package/resources/v1/events/plans.d.mts.map +0 -1
- package/resources/v1/events/plans.d.ts +0 -348
- package/resources/v1/events/plans.d.ts.map +0 -1
- package/resources/v1/events/plans.js +0 -30
- package/resources/v1/events/plans.js.map +0 -1
- package/resources/v1/events/plans.mjs +0 -26
- package/resources/v1/events/plans.mjs.map +0 -1
- package/src/resources/v1/events/addons/addons.ts +0 -761
- package/src/resources/v1/events/addons/draft.ts +0 -151
- package/src/resources/v1/events/addons/index.ts +0 -17
- package/src/resources/v1/events/plans.ts +0 -429
- /package/resources/v1/{events/addons.d.mts → addons.d.mts} +0 -0
- /package/resources/v1/{events/addons.d.ts → addons.d.ts} +0 -0
- /package/resources/v1/{events/addons.mjs → addons.mjs} +0 -0
- /package/src/resources/v1/{events/addons.ts → addons.ts} +0 -0
|
@@ -2,20 +2,23 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../core/pagination.js";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Operations related to products
|
|
7
|
+
*/
|
|
5
8
|
export declare class Products extends APIResource {
|
|
6
9
|
/**
|
|
7
10
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
8
11
|
* archived.
|
|
9
12
|
*/
|
|
10
|
-
archiveProduct(id: string, options?: RequestOptions): APIPromise<
|
|
13
|
+
archiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
11
14
|
/**
|
|
12
15
|
* Creates a new product.
|
|
13
16
|
*/
|
|
14
|
-
createProduct(body: ProductCreateProductParams, options?: RequestOptions): APIPromise<
|
|
17
|
+
createProduct(body: ProductCreateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
15
18
|
/**
|
|
16
19
|
* Duplicates an existing product, including its plans, addons, and configuration.
|
|
17
20
|
*/
|
|
18
|
-
duplicateProduct(id: string, body: ProductDuplicateProductParams, options?: RequestOptions): APIPromise<
|
|
21
|
+
duplicateProduct(id: string, body: ProductDuplicateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
19
22
|
/**
|
|
20
23
|
* Retrieves a paginated list of products in the environment.
|
|
21
24
|
*/
|
|
@@ -23,196 +26,24 @@ export declare class Products extends APIResource {
|
|
|
23
26
|
/**
|
|
24
27
|
* Restores an archived product, allowing new subscriptions to be created.
|
|
25
28
|
*/
|
|
26
|
-
unarchiveProduct(id: string, options?: RequestOptions): APIPromise<
|
|
29
|
+
unarchiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
27
30
|
/**
|
|
28
31
|
* Updates an existing product's properties such as display name, description, and
|
|
29
32
|
* metadata.
|
|
30
33
|
*/
|
|
31
|
-
updateProduct(id: string, body: ProductUpdateProductParams, options?: RequestOptions): APIPromise<
|
|
34
|
+
updateProduct(id: string, body: ProductUpdateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
32
35
|
}
|
|
33
36
|
export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
|
|
34
37
|
/**
|
|
35
38
|
* Response object
|
|
36
39
|
*/
|
|
37
|
-
export interface
|
|
38
|
-
/**
|
|
39
|
-
* Product configuration object
|
|
40
|
-
*/
|
|
41
|
-
data: ProductArchiveProductResponse.Data;
|
|
42
|
-
}
|
|
43
|
-
export declare namespace ProductArchiveProductResponse {
|
|
44
|
-
/**
|
|
45
|
-
* Product configuration object
|
|
46
|
-
*/
|
|
47
|
-
interface Data {
|
|
48
|
-
/**
|
|
49
|
-
* The unique identifier for the entity
|
|
50
|
-
*/
|
|
51
|
-
id: string;
|
|
52
|
-
/**
|
|
53
|
-
* Timestamp of when the record was created
|
|
54
|
-
*/
|
|
55
|
-
createdAt: string;
|
|
56
|
-
/**
|
|
57
|
-
* Description of the product
|
|
58
|
-
*/
|
|
59
|
-
description: string | null;
|
|
60
|
-
/**
|
|
61
|
-
* Display name of the product
|
|
62
|
-
*/
|
|
63
|
-
displayName: string;
|
|
64
|
-
/**
|
|
65
|
-
* Metadata associated with the entity
|
|
66
|
-
*/
|
|
67
|
-
metadata: {
|
|
68
|
-
[key: string]: string;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
72
|
-
*/
|
|
73
|
-
multipleSubscriptions: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* The status of the product
|
|
76
|
-
*/
|
|
77
|
-
status: 'PUBLISHED' | 'ARCHIVED';
|
|
78
|
-
/**
|
|
79
|
-
* Timestamp of when the record was last updated
|
|
80
|
-
*/
|
|
81
|
-
updatedAt: string;
|
|
82
|
-
/**
|
|
83
|
-
* Product behavior settings for subscription lifecycle management.
|
|
84
|
-
*/
|
|
85
|
-
productSettings?: Data.ProductSettings;
|
|
86
|
-
}
|
|
87
|
-
namespace Data {
|
|
88
|
-
/**
|
|
89
|
-
* Product behavior settings for subscription lifecycle management.
|
|
90
|
-
*/
|
|
91
|
-
interface ProductSettings {
|
|
92
|
-
/**
|
|
93
|
-
* Time when the subscription will be cancelled
|
|
94
|
-
*/
|
|
95
|
-
subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
96
|
-
/**
|
|
97
|
-
* Setup for the end of the subscription
|
|
98
|
-
*/
|
|
99
|
-
subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
|
|
100
|
-
/**
|
|
101
|
-
* Setup for the start of the subscription
|
|
102
|
-
*/
|
|
103
|
-
subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
|
|
104
|
-
/**
|
|
105
|
-
* ID of the plan to downgrade to at the end of the billing period
|
|
106
|
-
*/
|
|
107
|
-
downgradePlanId?: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* Indicates if the subscription should be prorated at the end of the billing
|
|
110
|
-
* period
|
|
111
|
-
*/
|
|
112
|
-
prorateAtEndOfBillingPeriod?: boolean | null;
|
|
113
|
-
/**
|
|
114
|
-
* ID of the plan to start the subscription with
|
|
115
|
-
*/
|
|
116
|
-
subscriptionStartPlanId?: string | null;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Response object
|
|
122
|
-
*/
|
|
123
|
-
export interface ProductCreateProductResponse {
|
|
40
|
+
export interface Product {
|
|
124
41
|
/**
|
|
125
42
|
* Product configuration object
|
|
126
43
|
*/
|
|
127
|
-
data:
|
|
44
|
+
data: Product.Data;
|
|
128
45
|
}
|
|
129
|
-
export declare namespace
|
|
130
|
-
/**
|
|
131
|
-
* Product configuration object
|
|
132
|
-
*/
|
|
133
|
-
interface Data {
|
|
134
|
-
/**
|
|
135
|
-
* The unique identifier for the entity
|
|
136
|
-
*/
|
|
137
|
-
id: string;
|
|
138
|
-
/**
|
|
139
|
-
* Timestamp of when the record was created
|
|
140
|
-
*/
|
|
141
|
-
createdAt: string;
|
|
142
|
-
/**
|
|
143
|
-
* Description of the product
|
|
144
|
-
*/
|
|
145
|
-
description: string | null;
|
|
146
|
-
/**
|
|
147
|
-
* Display name of the product
|
|
148
|
-
*/
|
|
149
|
-
displayName: string;
|
|
150
|
-
/**
|
|
151
|
-
* Metadata associated with the entity
|
|
152
|
-
*/
|
|
153
|
-
metadata: {
|
|
154
|
-
[key: string]: string;
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
158
|
-
*/
|
|
159
|
-
multipleSubscriptions: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* The status of the product
|
|
162
|
-
*/
|
|
163
|
-
status: 'PUBLISHED' | 'ARCHIVED';
|
|
164
|
-
/**
|
|
165
|
-
* Timestamp of when the record was last updated
|
|
166
|
-
*/
|
|
167
|
-
updatedAt: string;
|
|
168
|
-
/**
|
|
169
|
-
* Product behavior settings for subscription lifecycle management.
|
|
170
|
-
*/
|
|
171
|
-
productSettings?: Data.ProductSettings;
|
|
172
|
-
}
|
|
173
|
-
namespace Data {
|
|
174
|
-
/**
|
|
175
|
-
* Product behavior settings for subscription lifecycle management.
|
|
176
|
-
*/
|
|
177
|
-
interface ProductSettings {
|
|
178
|
-
/**
|
|
179
|
-
* Time when the subscription will be cancelled
|
|
180
|
-
*/
|
|
181
|
-
subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
182
|
-
/**
|
|
183
|
-
* Setup for the end of the subscription
|
|
184
|
-
*/
|
|
185
|
-
subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
|
|
186
|
-
/**
|
|
187
|
-
* Setup for the start of the subscription
|
|
188
|
-
*/
|
|
189
|
-
subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
|
|
190
|
-
/**
|
|
191
|
-
* ID of the plan to downgrade to at the end of the billing period
|
|
192
|
-
*/
|
|
193
|
-
downgradePlanId?: string | null;
|
|
194
|
-
/**
|
|
195
|
-
* Indicates if the subscription should be prorated at the end of the billing
|
|
196
|
-
* period
|
|
197
|
-
*/
|
|
198
|
-
prorateAtEndOfBillingPeriod?: boolean | null;
|
|
199
|
-
/**
|
|
200
|
-
* ID of the plan to start the subscription with
|
|
201
|
-
*/
|
|
202
|
-
subscriptionStartPlanId?: string | null;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Response object
|
|
208
|
-
*/
|
|
209
|
-
export interface ProductDuplicateProductResponse {
|
|
210
|
-
/**
|
|
211
|
-
* Product configuration object
|
|
212
|
-
*/
|
|
213
|
-
data: ProductDuplicateProductResponse.Data;
|
|
214
|
-
}
|
|
215
|
-
export declare namespace ProductDuplicateProductResponse {
|
|
46
|
+
export declare namespace Product {
|
|
216
47
|
/**
|
|
217
48
|
* Product configuration object
|
|
218
49
|
*/
|
|
@@ -364,191 +195,19 @@ export declare namespace ProductListProductsResponse {
|
|
|
364
195
|
subscriptionStartPlanId?: string | null;
|
|
365
196
|
}
|
|
366
197
|
}
|
|
367
|
-
/**
|
|
368
|
-
* Response object
|
|
369
|
-
*/
|
|
370
|
-
export interface ProductUnarchiveProductResponse {
|
|
371
|
-
/**
|
|
372
|
-
* Product configuration object
|
|
373
|
-
*/
|
|
374
|
-
data: ProductUnarchiveProductResponse.Data;
|
|
375
|
-
}
|
|
376
|
-
export declare namespace ProductUnarchiveProductResponse {
|
|
377
|
-
/**
|
|
378
|
-
* Product configuration object
|
|
379
|
-
*/
|
|
380
|
-
interface Data {
|
|
381
|
-
/**
|
|
382
|
-
* The unique identifier for the entity
|
|
383
|
-
*/
|
|
384
|
-
id: string;
|
|
385
|
-
/**
|
|
386
|
-
* Timestamp of when the record was created
|
|
387
|
-
*/
|
|
388
|
-
createdAt: string;
|
|
389
|
-
/**
|
|
390
|
-
* Description of the product
|
|
391
|
-
*/
|
|
392
|
-
description: string | null;
|
|
393
|
-
/**
|
|
394
|
-
* Display name of the product
|
|
395
|
-
*/
|
|
396
|
-
displayName: string;
|
|
397
|
-
/**
|
|
398
|
-
* Metadata associated with the entity
|
|
399
|
-
*/
|
|
400
|
-
metadata: {
|
|
401
|
-
[key: string]: string;
|
|
402
|
-
};
|
|
403
|
-
/**
|
|
404
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
405
|
-
*/
|
|
406
|
-
multipleSubscriptions: boolean;
|
|
407
|
-
/**
|
|
408
|
-
* The status of the product
|
|
409
|
-
*/
|
|
410
|
-
status: 'PUBLISHED' | 'ARCHIVED';
|
|
411
|
-
/**
|
|
412
|
-
* Timestamp of when the record was last updated
|
|
413
|
-
*/
|
|
414
|
-
updatedAt: string;
|
|
415
|
-
/**
|
|
416
|
-
* Product behavior settings for subscription lifecycle management.
|
|
417
|
-
*/
|
|
418
|
-
productSettings?: Data.ProductSettings;
|
|
419
|
-
}
|
|
420
|
-
namespace Data {
|
|
421
|
-
/**
|
|
422
|
-
* Product behavior settings for subscription lifecycle management.
|
|
423
|
-
*/
|
|
424
|
-
interface ProductSettings {
|
|
425
|
-
/**
|
|
426
|
-
* Time when the subscription will be cancelled
|
|
427
|
-
*/
|
|
428
|
-
subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
429
|
-
/**
|
|
430
|
-
* Setup for the end of the subscription
|
|
431
|
-
*/
|
|
432
|
-
subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
|
|
433
|
-
/**
|
|
434
|
-
* Setup for the start of the subscription
|
|
435
|
-
*/
|
|
436
|
-
subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
|
|
437
|
-
/**
|
|
438
|
-
* ID of the plan to downgrade to at the end of the billing period
|
|
439
|
-
*/
|
|
440
|
-
downgradePlanId?: string | null;
|
|
441
|
-
/**
|
|
442
|
-
* Indicates if the subscription should be prorated at the end of the billing
|
|
443
|
-
* period
|
|
444
|
-
*/
|
|
445
|
-
prorateAtEndOfBillingPeriod?: boolean | null;
|
|
446
|
-
/**
|
|
447
|
-
* ID of the plan to start the subscription with
|
|
448
|
-
*/
|
|
449
|
-
subscriptionStartPlanId?: string | null;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
/**
|
|
454
|
-
* Response object
|
|
455
|
-
*/
|
|
456
|
-
export interface ProductUpdateProductResponse {
|
|
457
|
-
/**
|
|
458
|
-
* Product configuration object
|
|
459
|
-
*/
|
|
460
|
-
data: ProductUpdateProductResponse.Data;
|
|
461
|
-
}
|
|
462
|
-
export declare namespace ProductUpdateProductResponse {
|
|
463
|
-
/**
|
|
464
|
-
* Product configuration object
|
|
465
|
-
*/
|
|
466
|
-
interface Data {
|
|
467
|
-
/**
|
|
468
|
-
* The unique identifier for the entity
|
|
469
|
-
*/
|
|
470
|
-
id: string;
|
|
471
|
-
/**
|
|
472
|
-
* Timestamp of when the record was created
|
|
473
|
-
*/
|
|
474
|
-
createdAt: string;
|
|
475
|
-
/**
|
|
476
|
-
* Description of the product
|
|
477
|
-
*/
|
|
478
|
-
description: string | null;
|
|
479
|
-
/**
|
|
480
|
-
* Display name of the product
|
|
481
|
-
*/
|
|
482
|
-
displayName: string;
|
|
483
|
-
/**
|
|
484
|
-
* Metadata associated with the entity
|
|
485
|
-
*/
|
|
486
|
-
metadata: {
|
|
487
|
-
[key: string]: string;
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
491
|
-
*/
|
|
492
|
-
multipleSubscriptions: boolean;
|
|
493
|
-
/**
|
|
494
|
-
* The status of the product
|
|
495
|
-
*/
|
|
496
|
-
status: 'PUBLISHED' | 'ARCHIVED';
|
|
497
|
-
/**
|
|
498
|
-
* Timestamp of when the record was last updated
|
|
499
|
-
*/
|
|
500
|
-
updatedAt: string;
|
|
501
|
-
/**
|
|
502
|
-
* Product behavior settings for subscription lifecycle management.
|
|
503
|
-
*/
|
|
504
|
-
productSettings?: Data.ProductSettings;
|
|
505
|
-
}
|
|
506
|
-
namespace Data {
|
|
507
|
-
/**
|
|
508
|
-
* Product behavior settings for subscription lifecycle management.
|
|
509
|
-
*/
|
|
510
|
-
interface ProductSettings {
|
|
511
|
-
/**
|
|
512
|
-
* Time when the subscription will be cancelled
|
|
513
|
-
*/
|
|
514
|
-
subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
515
|
-
/**
|
|
516
|
-
* Setup for the end of the subscription
|
|
517
|
-
*/
|
|
518
|
-
subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
|
|
519
|
-
/**
|
|
520
|
-
* Setup for the start of the subscription
|
|
521
|
-
*/
|
|
522
|
-
subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
|
|
523
|
-
/**
|
|
524
|
-
* ID of the plan to downgrade to at the end of the billing period
|
|
525
|
-
*/
|
|
526
|
-
downgradePlanId?: string | null;
|
|
527
|
-
/**
|
|
528
|
-
* Indicates if the subscription should be prorated at the end of the billing
|
|
529
|
-
* period
|
|
530
|
-
*/
|
|
531
|
-
prorateAtEndOfBillingPeriod?: boolean | null;
|
|
532
|
-
/**
|
|
533
|
-
* ID of the plan to start the subscription with
|
|
534
|
-
*/
|
|
535
|
-
subscriptionStartPlanId?: string | null;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
198
|
export interface ProductCreateProductParams {
|
|
540
199
|
/**
|
|
541
200
|
* The unique identifier for the entity
|
|
542
201
|
*/
|
|
543
202
|
id: string;
|
|
544
203
|
/**
|
|
545
|
-
*
|
|
204
|
+
* Display name of the product
|
|
546
205
|
*/
|
|
547
|
-
|
|
206
|
+
displayName: string;
|
|
548
207
|
/**
|
|
549
|
-
*
|
|
208
|
+
* Description of the product
|
|
550
209
|
*/
|
|
551
|
-
|
|
210
|
+
description?: string | null;
|
|
552
211
|
/**
|
|
553
212
|
* Additional metadata for the product
|
|
554
213
|
*/
|
|
@@ -561,6 +220,10 @@ export interface ProductCreateProductParams {
|
|
|
561
220
|
multipleSubscriptions?: boolean;
|
|
562
221
|
}
|
|
563
222
|
export interface ProductDuplicateProductParams {
|
|
223
|
+
/**
|
|
224
|
+
* The unique identifier for the entity
|
|
225
|
+
*/
|
|
226
|
+
targetId: string;
|
|
564
227
|
/**
|
|
565
228
|
* Description of the product
|
|
566
229
|
*/
|
|
@@ -582,7 +245,7 @@ export interface ProductListProductsParams extends MyCursorIDPageParams {
|
|
|
582
245
|
/**
|
|
583
246
|
* Filter by product status. Supports comma-separated values for multiple statuses
|
|
584
247
|
*/
|
|
585
|
-
status?:
|
|
248
|
+
status?: Array<'PUBLISHED' | 'ARCHIVED'>;
|
|
586
249
|
}
|
|
587
250
|
export declare namespace ProductListProductsParams {
|
|
588
251
|
/**
|
|
@@ -650,6 +313,10 @@ export declare namespace ProductUpdateProductParams {
|
|
|
650
313
|
* ID of the plan to downgrade to at the end of the billing period
|
|
651
314
|
*/
|
|
652
315
|
downgradePlanId?: string | null;
|
|
316
|
+
/**
|
|
317
|
+
* Indicates if the subscription should be prorated at the end of the billing
|
|
318
|
+
* period
|
|
319
|
+
*/
|
|
653
320
|
prorateAtEndOfBillingPeriod?: boolean | null;
|
|
654
321
|
/**
|
|
655
322
|
* ID of the plan to start the subscription with
|
|
@@ -667,6 +334,6 @@ export declare namespace ProductUpdateProductParams {
|
|
|
667
334
|
}
|
|
668
335
|
}
|
|
669
336
|
export declare namespace Products {
|
|
670
|
-
export { type
|
|
337
|
+
export { type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
671
338
|
}
|
|
672
339
|
//# sourceMappingURL=products.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIzE;;OAEG;IACH,aAAa,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI9F;;OAEG;IACH,gBAAgB,CACd,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAItB;;OAEG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;IAOvF;;OAEG;IACH,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,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EAAE,0BAA0B,CAAC,eAAe,CAAC;IAE7D;;OAEG;IACH,oBAAoB,CAAC,EAAE,0BAA0B,CAAC,oBAAoB,CAAC;CACxE;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,eAAe;QAC9B;;WAEG;QACH,4BAA4B,EAAE,uBAAuB,GAAG,WAAW,GAAG,eAAe,CAAC;QAEtF;;WAEG;QACH,oBAAoB,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;QAElE;;WAEG;QACH,sBAAsB,EAAE,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;QAExE;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC;IAED;;OAEG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,QAAQ,EAAE,aAAa,GAAG,cAAc,GAAG,uBAAuB,CAAC;KACpE;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/products.js
CHANGED
|
@@ -5,6 +5,9 @@ exports.Products = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../../core/pagination.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Operations related to products
|
|
10
|
+
*/
|
|
8
11
|
class Products extends resource_1.APIResource {
|
|
9
12
|
/**
|
|
10
13
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAE/F,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,aAAa,
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAE/F,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,IAAgC,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,gBAAgB,CACd,EAAU,EACV,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,2BAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,gBAAgB,CAAC,EAAU,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,EAAU,EAAE,IAAgC,EAAE,OAAwB;QAClF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAtDD,4BAsDC"}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { MyCursorIDPage } from "../../core/pagination.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Operations related to products
|
|
7
|
+
*/
|
|
5
8
|
export class Products extends APIResource {
|
|
6
9
|
/**
|
|
7
10
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,UAAU,E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EAAE,IAAgC,EAAE,OAAwB;QAClF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to subscriptions
|
|
6
|
+
*/
|
|
4
7
|
export declare class FutureUpdate extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Cancels a subscription update that is pending payment completion.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
1
|
+
{"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to subscriptions
|
|
6
|
+
*/
|
|
4
7
|
export declare class FutureUpdate extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Cancels a subscription update that is pending payment completion.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
1
|
+
{"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.FutureUpdate = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
6
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Operations related to subscriptions
|
|
9
|
+
*/
|
|
7
10
|
class FutureUpdate extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Cancels a subscription update that is pending payment completion.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAfD,oCAeC"}
|
|
1
|
+
{"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAfD,oCAeC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to subscriptions
|
|
6
|
+
*/
|
|
4
7
|
export class FutureUpdate extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Cancels a subscription update that is pending payment completion.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to subscriptions
|
|
6
|
+
*/
|
|
4
7
|
export declare class Invoice extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Marks the latest invoice of a subscription as paid in the billing provider. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/invoice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGxF;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;CACtC;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
1
|
+
{"version":3,"file":"invoice.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/invoice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGxF;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;CACtC;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to subscriptions
|
|
6
|
+
*/
|
|
4
7
|
export declare class Invoice extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Marks the latest invoice of a subscription as paid in the billing provider. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/invoice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGxF;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;CACtC;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
1
|
+
{"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/invoice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGxF;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;CACtC;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Invoice = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
6
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Operations related to subscriptions
|
|
9
|
+
*/
|
|
7
10
|
class Invoice extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Marks the latest invoice of a subscription as paid in the billing provider. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/invoice.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AARD,0BAQC"}
|
|
1
|
+
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/invoice.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AARD,0BAQC"}
|