@stigg/typescript 0.1.0-alpha.2 → 0.1.0-alpha.21
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 +270 -0
- package/README.md +9 -0
- package/client.d.mts +7 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -9
- package/client.d.ts.map +1 -1
- package/client.js +29 -26
- package/client.js.map +1 -1
- package/client.mjs +30 -27
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/tslib.js +17 -17
- 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/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +1305 -0
- package/resources/v1/addons/addons.d.mts.map +1 -0
- package/resources/v1/addons/addons.d.ts +1305 -0
- package/resources/v1/addons/addons.d.ts.map +1 -0
- package/resources/v1/addons/addons.js +81 -0
- package/resources/v1/addons/addons.js.map +1 -0
- package/resources/v1/addons/addons.mjs +76 -0
- package/resources/v1/addons/addons.mjs.map +1 -0
- package/resources/v1/addons/entitlements.d.mts +860 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -0
- package/resources/v1/addons/entitlements.d.ts +860 -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/addons/index.js +9 -0
- package/resources/v1/addons/index.js.map +1 -0
- package/resources/v1/addons/index.mjs +4 -0
- package/resources/v1/addons/index.mjs.map +1 -0
- package/resources/v1/addons.d.mts +2 -0
- package/resources/v1/addons.d.mts.map +1 -0
- package/resources/v1/addons.d.ts +2 -0
- package/resources/v1/addons.d.ts.map +1 -0
- package/resources/v1/addons.js +6 -0
- package/resources/v1/addons.js.map +1 -0
- package/resources/v1/addons.mjs +3 -0
- package/resources/v1/addons.mjs.map +1 -0
- package/resources/v1/coupons.d.mts +113 -82
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +113 -82
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +19 -3
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +19 -3
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +221 -45
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +221 -45
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +32 -15
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +32 -15
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +3 -3
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +10 -2
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +10 -2
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +7 -2
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +7 -2
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +501 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.d.ts +501 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.js +35 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -0
- package/resources/v1/customers/promotional-entitlements.mjs +31 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
- package/resources/v1/events/credits/credits.d.mts +260 -0
- package/resources/v1/events/credits/credits.d.mts.map +1 -0
- package/resources/v1/events/credits/credits.d.ts +260 -0
- package/resources/v1/events/credits/credits.d.ts.map +1 -0
- package/resources/v1/events/credits/credits.js +41 -0
- package/resources/v1/events/credits/credits.js.map +1 -0
- package/resources/v1/events/credits/credits.mjs +36 -0
- package/resources/v1/events/credits/credits.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 +3 -0
- package/resources/v1/events/credits/index.d.mts.map +1 -0
- package/resources/v1/events/credits/index.d.ts +3 -0
- package/resources/v1/events/credits/index.d.ts.map +1 -0
- package/resources/v1/events/credits/index.js +9 -0
- package/resources/v1/events/credits/index.js.map +1 -0
- package/resources/v1/events/credits/index.mjs +4 -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 +70 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +70 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +27 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +22 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +3 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +3 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +9 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +4 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +2 -0
- package/resources/v1/events.d.mts.map +1 -0
- package/resources/v1/events.d.ts +2 -0
- package/resources/v1/events.d.ts.map +1 -0
- package/resources/v1/events.js +6 -0
- package/resources/v1/events.js.map +1 -0
- package/resources/v1/events.mjs +3 -0
- package/resources/v1/events.mjs.map +1 -0
- package/resources/v1/features.d.mts +447 -0
- package/resources/v1/features.d.mts.map +1 -0
- package/resources/v1/features.d.ts +447 -0
- package/resources/v1/features.d.ts.map +1 -0
- package/resources/v1/features.js +54 -0
- package/resources/v1/features.js.map +1 -0
- package/resources/v1/features.mjs +50 -0
- package/resources/v1/features.mjs.map +1 -0
- package/resources/v1/index.d.mts +10 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +10 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +17 -5
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +7 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +860 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -0
- package/resources/v1/plans/entitlements.d.ts +860 -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 +976 -0
- package/resources/v1/plans/plans.d.mts.map +1 -0
- package/resources/v1/plans/plans.d.ts +976 -0
- package/resources/v1/plans/plans.d.ts.map +1 -0
- package/resources/v1/plans/plans.js +79 -0
- package/resources/v1/plans/plans.js.map +1 -0
- package/resources/v1/plans/plans.mjs +74 -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 +335 -0
- package/resources/v1/products.d.mts.map +1 -0
- package/resources/v1/products.d.ts +335 -0
- package/resources/v1/products.d.ts.map +1 -0
- package/resources/v1/products.js +55 -0
- package/resources/v1/products.js.map +1 -0
- package/resources/v1/products.mjs +51 -0
- package/resources/v1/products.mjs.map +1 -0
- package/resources/v1/subscriptions/future-update.d.mts +15 -19
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +15 -19
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +6 -2
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +6 -2
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -2
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -2
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js +5 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +3 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +37 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
- package/resources/v1/subscriptions/invoice.d.ts +37 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
- package/resources/v1/subscriptions/invoice.js +20 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -0
- package/resources/v1/subscriptions/invoice.mjs +16 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -0
- package/resources/v1/subscriptions/subscriptions.d.mts +2547 -561
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +2547 -561
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +47 -11
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +49 -13
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +101 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -0
- package/resources/v1/subscriptions/usage.d.ts +101 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -0
- package/resources/v1/subscriptions/usage.js +27 -0
- package/resources/v1/subscriptions/usage.js.map +1 -0
- package/resources/v1/subscriptions/usage.mjs +23 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -0
- package/resources/v1/usage.d.mts +238 -0
- package/resources/v1/usage.d.mts.map +1 -0
- package/resources/v1/usage.d.ts +238 -0
- package/resources/v1/usage.d.ts.map +1 -0
- package/resources/v1/usage.js +27 -0
- package/resources/v1/usage.js.map +1 -0
- package/resources/v1/usage.mjs +23 -0
- package/resources/v1/usage.mjs.map +1 -0
- package/resources/v1/v1.d.mts +30 -149
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +30 -149
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +24 -12
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +24 -12
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +41 -47
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/index.ts +1 -7
- package/src/resources/v1/addons/addons.ts +3253 -0
- package/src/resources/v1/addons/entitlements.ts +1120 -0
- package/src/resources/v1/addons/index.ts +26 -0
- package/src/resources/v1/addons.ts +3 -0
- package/src/resources/v1/coupons.ts +126 -216
- package/src/resources/v1/customers/customers.ts +296 -61
- package/src/resources/v1/customers/index.ts +16 -2
- package/src/resources/v1/customers/payment-method.ts +10 -2
- package/src/resources/v1/customers/promotional-entitlements.ts +672 -0
- package/src/resources/v1/events/credits/credits.ts +356 -0
- package/src/resources/v1/events/credits/grants.ts +795 -0
- package/src/resources/v1/events/credits/index.ts +20 -0
- package/src/resources/v1/events/credits.ts +3 -0
- package/src/resources/v1/events/events.ts +103 -0
- package/src/resources/v1/events/index.ts +13 -0
- package/src/resources/v1/events.ts +3 -0
- package/src/resources/v1/features.ts +574 -0
- package/src/resources/v1/index.ts +70 -15
- package/src/resources/v1/plans/entitlements.ts +1112 -0
- package/src/resources/v1/plans/index.ts +24 -0
- package/src/resources/v1/plans/plans.ts +2035 -0
- package/src/resources/v1/plans.ts +3 -0
- package/src/resources/v1/products.ts +426 -0
- package/src/resources/v1/subscriptions/future-update.ts +15 -27
- package/src/resources/v1/subscriptions/index.ts +15 -11
- package/src/resources/v1/subscriptions/invoice.ts +45 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +5836 -777
- package/src/resources/v1/subscriptions/usage.ts +129 -0
- package/src/resources/v1/usage.ts +293 -0
- package/src/resources/v1/v1.ts +168 -197
- 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/customers/usage.d.mts +0 -98
- package/resources/v1/customers/usage.d.mts.map +0 -1
- package/resources/v1/customers/usage.d.ts +0 -98
- package/resources/v1/customers/usage.d.ts.map +0 -1
- package/resources/v1/customers/usage.js +0 -20
- package/resources/v1/customers/usage.js.map +0 -1
- package/resources/v1/customers/usage.mjs +0 -16
- package/resources/v1/customers/usage.mjs.map +0 -1
- package/src/resources/v1/customers/usage.ts +0 -132
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
3
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Operations related to credit grants
|
|
7
|
+
*/
|
|
8
|
+
export declare class Grants extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new credit grant for a customer with specified amount, type, and
|
|
11
|
+
* optional billing configuration.
|
|
12
|
+
*/
|
|
13
|
+
create(body: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves a paginated list of credit grants for a customer.
|
|
16
|
+
*/
|
|
17
|
+
list(query: GrantListParams, options?: RequestOptions): PagePromise<GrantListResponsesMyCursorIDPage, GrantListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
20
|
+
* credits.
|
|
21
|
+
*/
|
|
22
|
+
void(id: string, options?: RequestOptions): APIPromise<CreditGrantResponse>;
|
|
23
|
+
}
|
|
24
|
+
export type GrantListResponsesMyCursorIDPage = MyCursorIDPage<GrantListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Response object
|
|
27
|
+
*/
|
|
28
|
+
export interface CreditGrantResponse {
|
|
29
|
+
/**
|
|
30
|
+
* Credit grant object representing allocated credits for a customer
|
|
31
|
+
*/
|
|
32
|
+
data: CreditGrantResponse.Data;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace CreditGrantResponse {
|
|
35
|
+
/**
|
|
36
|
+
* Credit grant object representing allocated credits for a customer
|
|
37
|
+
*/
|
|
38
|
+
interface Data {
|
|
39
|
+
/**
|
|
40
|
+
* The unique readable identifier of the credit grant
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The total credits granted
|
|
45
|
+
*/
|
|
46
|
+
amount: number;
|
|
47
|
+
/**
|
|
48
|
+
* An optional comment on the credit grant
|
|
49
|
+
*/
|
|
50
|
+
comment: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The total credits consumed from this grant
|
|
53
|
+
*/
|
|
54
|
+
consumedAmount: number;
|
|
55
|
+
/**
|
|
56
|
+
* The monetary cost of the credit grant
|
|
57
|
+
*/
|
|
58
|
+
cost: Data.Cost;
|
|
59
|
+
/**
|
|
60
|
+
* Timestamp of when the record was created
|
|
61
|
+
*/
|
|
62
|
+
createdAt: string;
|
|
63
|
+
/**
|
|
64
|
+
* The currency identifier for this grant
|
|
65
|
+
*/
|
|
66
|
+
currencyId: string;
|
|
67
|
+
/**
|
|
68
|
+
* The customer ID this grant belongs to
|
|
69
|
+
*/
|
|
70
|
+
customerId: string;
|
|
71
|
+
/**
|
|
72
|
+
* The display name of the credit grant
|
|
73
|
+
*/
|
|
74
|
+
displayName: string;
|
|
75
|
+
/**
|
|
76
|
+
* The date when the credit grant becomes effective
|
|
77
|
+
*/
|
|
78
|
+
effectiveAt: string;
|
|
79
|
+
/**
|
|
80
|
+
* The date when the credit grant expires
|
|
81
|
+
*/
|
|
82
|
+
expireAt: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* The type of credit grant (PAID, PROMOTIONAL, RECURRING)
|
|
85
|
+
*/
|
|
86
|
+
grantType: 'PAID' | 'PROMOTIONAL' | 'RECURRING';
|
|
87
|
+
/**
|
|
88
|
+
* The billing invoice ID associated with this grant
|
|
89
|
+
*/
|
|
90
|
+
invoiceId: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* The latest invoice details for this grant
|
|
93
|
+
*/
|
|
94
|
+
latestInvoice: Data.LatestInvoice | null;
|
|
95
|
+
/**
|
|
96
|
+
* Metadata associated with the entity
|
|
97
|
+
*/
|
|
98
|
+
metadata: {
|
|
99
|
+
[key: string]: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The payment collection status
|
|
103
|
+
*/
|
|
104
|
+
paymentCollection: 'NOT_REQUIRED' | 'PROCESSING' | 'FAILED' | 'ACTION_REQUIRED';
|
|
105
|
+
/**
|
|
106
|
+
* The priority of the credit grant (lower number = higher priority)
|
|
107
|
+
*/
|
|
108
|
+
priority: number;
|
|
109
|
+
/**
|
|
110
|
+
* The resource ID this grant is scoped to
|
|
111
|
+
*/
|
|
112
|
+
resourceId: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* The source type of the grant (PRICE, PLAN_ENTITLEMENT, ADDON_ENTITLEMENT)
|
|
115
|
+
*/
|
|
116
|
+
sourceType: 'PRICE' | 'PLAN_ENTITLEMENT' | 'ADDON_ENTITLEMENT' | null;
|
|
117
|
+
/**
|
|
118
|
+
* The effective status of the credit grant
|
|
119
|
+
*/
|
|
120
|
+
status: 'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'VOIDED' | 'SCHEDULED';
|
|
121
|
+
/**
|
|
122
|
+
* Timestamp of when the record was last updated
|
|
123
|
+
*/
|
|
124
|
+
updatedAt: string;
|
|
125
|
+
/**
|
|
126
|
+
* The date when the credit grant was voided
|
|
127
|
+
*/
|
|
128
|
+
voidedAt: string | null;
|
|
129
|
+
}
|
|
130
|
+
namespace Data {
|
|
131
|
+
/**
|
|
132
|
+
* The monetary cost of the credit grant
|
|
133
|
+
*/
|
|
134
|
+
interface Cost {
|
|
135
|
+
/**
|
|
136
|
+
* The cost amount
|
|
137
|
+
*/
|
|
138
|
+
amount: number;
|
|
139
|
+
/**
|
|
140
|
+
* The currency code
|
|
141
|
+
*/
|
|
142
|
+
currency: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The latest invoice details for this grant
|
|
146
|
+
*/
|
|
147
|
+
interface LatestInvoice {
|
|
148
|
+
/**
|
|
149
|
+
* The billing provider invoice ID
|
|
150
|
+
*/
|
|
151
|
+
billingId: string;
|
|
152
|
+
/**
|
|
153
|
+
* The billing reason for the invoice
|
|
154
|
+
*/
|
|
155
|
+
billingReason: 'MANUAL' | 'OTHER' | null;
|
|
156
|
+
/**
|
|
157
|
+
* The invoice creation date
|
|
158
|
+
*/
|
|
159
|
+
createdAt: string;
|
|
160
|
+
/**
|
|
161
|
+
* The invoice currency
|
|
162
|
+
*/
|
|
163
|
+
currency: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* The invoice due date
|
|
166
|
+
*/
|
|
167
|
+
dueDate: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Error message if payment failed
|
|
170
|
+
*/
|
|
171
|
+
errorMessage: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* The payment URL for settling the invoice
|
|
174
|
+
*/
|
|
175
|
+
paymentUrl: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* The PDF URL of the invoice
|
|
178
|
+
*/
|
|
179
|
+
pdfUrl: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Whether the invoice requires user action
|
|
182
|
+
*/
|
|
183
|
+
requiresAction: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* The invoice status
|
|
186
|
+
*/
|
|
187
|
+
status: 'OPEN' | 'PAID' | 'CANCELED';
|
|
188
|
+
/**
|
|
189
|
+
* The subtotal amount before tax
|
|
190
|
+
*/
|
|
191
|
+
subTotal: number | null;
|
|
192
|
+
/**
|
|
193
|
+
* The tax amount
|
|
194
|
+
*/
|
|
195
|
+
tax: number | null;
|
|
196
|
+
/**
|
|
197
|
+
* The total amount including tax
|
|
198
|
+
*/
|
|
199
|
+
total: number | null;
|
|
200
|
+
/**
|
|
201
|
+
* The invoice last update date
|
|
202
|
+
*/
|
|
203
|
+
updatedAt: string;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Credit grant object representing allocated credits for a customer
|
|
209
|
+
*/
|
|
210
|
+
export interface GrantListResponse {
|
|
211
|
+
/**
|
|
212
|
+
* The unique readable identifier of the credit grant
|
|
213
|
+
*/
|
|
214
|
+
id: string;
|
|
215
|
+
/**
|
|
216
|
+
* The total credits granted
|
|
217
|
+
*/
|
|
218
|
+
amount: number;
|
|
219
|
+
/**
|
|
220
|
+
* An optional comment on the credit grant
|
|
221
|
+
*/
|
|
222
|
+
comment: string | null;
|
|
223
|
+
/**
|
|
224
|
+
* The total credits consumed from this grant
|
|
225
|
+
*/
|
|
226
|
+
consumedAmount: number;
|
|
227
|
+
/**
|
|
228
|
+
* The monetary cost of the credit grant
|
|
229
|
+
*/
|
|
230
|
+
cost: GrantListResponse.Cost;
|
|
231
|
+
/**
|
|
232
|
+
* Timestamp of when the record was created
|
|
233
|
+
*/
|
|
234
|
+
createdAt: string;
|
|
235
|
+
/**
|
|
236
|
+
* The currency identifier for this grant
|
|
237
|
+
*/
|
|
238
|
+
currencyId: string;
|
|
239
|
+
/**
|
|
240
|
+
* The customer ID this grant belongs to
|
|
241
|
+
*/
|
|
242
|
+
customerId: string;
|
|
243
|
+
/**
|
|
244
|
+
* The display name of the credit grant
|
|
245
|
+
*/
|
|
246
|
+
displayName: string;
|
|
247
|
+
/**
|
|
248
|
+
* The date when the credit grant becomes effective
|
|
249
|
+
*/
|
|
250
|
+
effectiveAt: string;
|
|
251
|
+
/**
|
|
252
|
+
* The date when the credit grant expires
|
|
253
|
+
*/
|
|
254
|
+
expireAt: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* The type of credit grant (PAID, PROMOTIONAL, RECURRING)
|
|
257
|
+
*/
|
|
258
|
+
grantType: 'PAID' | 'PROMOTIONAL' | 'RECURRING';
|
|
259
|
+
/**
|
|
260
|
+
* The billing invoice ID associated with this grant
|
|
261
|
+
*/
|
|
262
|
+
invoiceId: string | null;
|
|
263
|
+
/**
|
|
264
|
+
* The latest invoice details for this grant
|
|
265
|
+
*/
|
|
266
|
+
latestInvoice: GrantListResponse.LatestInvoice | null;
|
|
267
|
+
/**
|
|
268
|
+
* Metadata associated with the entity
|
|
269
|
+
*/
|
|
270
|
+
metadata: {
|
|
271
|
+
[key: string]: string;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* The payment collection status
|
|
275
|
+
*/
|
|
276
|
+
paymentCollection: 'NOT_REQUIRED' | 'PROCESSING' | 'FAILED' | 'ACTION_REQUIRED';
|
|
277
|
+
/**
|
|
278
|
+
* The priority of the credit grant (lower number = higher priority)
|
|
279
|
+
*/
|
|
280
|
+
priority: number;
|
|
281
|
+
/**
|
|
282
|
+
* The resource ID this grant is scoped to
|
|
283
|
+
*/
|
|
284
|
+
resourceId: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* The source type of the grant (PRICE, PLAN_ENTITLEMENT, ADDON_ENTITLEMENT)
|
|
287
|
+
*/
|
|
288
|
+
sourceType: 'PRICE' | 'PLAN_ENTITLEMENT' | 'ADDON_ENTITLEMENT' | null;
|
|
289
|
+
/**
|
|
290
|
+
* The effective status of the credit grant
|
|
291
|
+
*/
|
|
292
|
+
status: 'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'VOIDED' | 'SCHEDULED';
|
|
293
|
+
/**
|
|
294
|
+
* Timestamp of when the record was last updated
|
|
295
|
+
*/
|
|
296
|
+
updatedAt: string;
|
|
297
|
+
/**
|
|
298
|
+
* The date when the credit grant was voided
|
|
299
|
+
*/
|
|
300
|
+
voidedAt: string | null;
|
|
301
|
+
}
|
|
302
|
+
export declare namespace GrantListResponse {
|
|
303
|
+
/**
|
|
304
|
+
* The monetary cost of the credit grant
|
|
305
|
+
*/
|
|
306
|
+
interface Cost {
|
|
307
|
+
/**
|
|
308
|
+
* The cost amount
|
|
309
|
+
*/
|
|
310
|
+
amount: number;
|
|
311
|
+
/**
|
|
312
|
+
* The currency code
|
|
313
|
+
*/
|
|
314
|
+
currency: string;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* The latest invoice details for this grant
|
|
318
|
+
*/
|
|
319
|
+
interface LatestInvoice {
|
|
320
|
+
/**
|
|
321
|
+
* The billing provider invoice ID
|
|
322
|
+
*/
|
|
323
|
+
billingId: string;
|
|
324
|
+
/**
|
|
325
|
+
* The billing reason for the invoice
|
|
326
|
+
*/
|
|
327
|
+
billingReason: 'MANUAL' | 'OTHER' | null;
|
|
328
|
+
/**
|
|
329
|
+
* The invoice creation date
|
|
330
|
+
*/
|
|
331
|
+
createdAt: string;
|
|
332
|
+
/**
|
|
333
|
+
* The invoice currency
|
|
334
|
+
*/
|
|
335
|
+
currency: string | null;
|
|
336
|
+
/**
|
|
337
|
+
* The invoice due date
|
|
338
|
+
*/
|
|
339
|
+
dueDate: string | null;
|
|
340
|
+
/**
|
|
341
|
+
* Error message if payment failed
|
|
342
|
+
*/
|
|
343
|
+
errorMessage: string | null;
|
|
344
|
+
/**
|
|
345
|
+
* The payment URL for settling the invoice
|
|
346
|
+
*/
|
|
347
|
+
paymentUrl: string | null;
|
|
348
|
+
/**
|
|
349
|
+
* The PDF URL of the invoice
|
|
350
|
+
*/
|
|
351
|
+
pdfUrl: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* Whether the invoice requires user action
|
|
354
|
+
*/
|
|
355
|
+
requiresAction: boolean;
|
|
356
|
+
/**
|
|
357
|
+
* The invoice status
|
|
358
|
+
*/
|
|
359
|
+
status: 'OPEN' | 'PAID' | 'CANCELED';
|
|
360
|
+
/**
|
|
361
|
+
* The subtotal amount before tax
|
|
362
|
+
*/
|
|
363
|
+
subTotal: number | null;
|
|
364
|
+
/**
|
|
365
|
+
* The tax amount
|
|
366
|
+
*/
|
|
367
|
+
tax: number | null;
|
|
368
|
+
/**
|
|
369
|
+
* The total amount including tax
|
|
370
|
+
*/
|
|
371
|
+
total: number | null;
|
|
372
|
+
/**
|
|
373
|
+
* The invoice last update date
|
|
374
|
+
*/
|
|
375
|
+
updatedAt: string;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
export interface GrantCreateParams {
|
|
379
|
+
/**
|
|
380
|
+
* The credit amount to grant
|
|
381
|
+
*/
|
|
382
|
+
amount: number;
|
|
383
|
+
/**
|
|
384
|
+
* The credit currency ID (required)
|
|
385
|
+
*/
|
|
386
|
+
currencyId: string;
|
|
387
|
+
/**
|
|
388
|
+
* The customer ID to grant credits to (required)
|
|
389
|
+
*/
|
|
390
|
+
customerId: string;
|
|
391
|
+
/**
|
|
392
|
+
* The display name for the credit grant
|
|
393
|
+
*/
|
|
394
|
+
displayName: string;
|
|
395
|
+
/**
|
|
396
|
+
* The type of credit grant (PAID, PROMOTIONAL, RECURRING)
|
|
397
|
+
*/
|
|
398
|
+
grantType: 'PAID' | 'PROMOTIONAL' | 'RECURRING';
|
|
399
|
+
/**
|
|
400
|
+
* Whether to wait for payment confirmation before returning (default: true)
|
|
401
|
+
*/
|
|
402
|
+
awaitPaymentConfirmation?: boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Billing information for the credit grant
|
|
405
|
+
*/
|
|
406
|
+
billingInformation?: GrantCreateParams.BillingInformation;
|
|
407
|
+
/**
|
|
408
|
+
* An optional comment on the credit grant
|
|
409
|
+
*/
|
|
410
|
+
comment?: string;
|
|
411
|
+
/**
|
|
412
|
+
* The monetary cost of the credit grant
|
|
413
|
+
*/
|
|
414
|
+
cost?: GrantCreateParams.Cost;
|
|
415
|
+
/**
|
|
416
|
+
* The date when the credit grant becomes effective
|
|
417
|
+
*/
|
|
418
|
+
effectiveAt?: string;
|
|
419
|
+
/**
|
|
420
|
+
* The date when the credit grant expires
|
|
421
|
+
*/
|
|
422
|
+
expireAt?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Additional metadata for the credit grant
|
|
425
|
+
*/
|
|
426
|
+
metadata?: {
|
|
427
|
+
[key: string]: string;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* The payment collection method (CHARGE, INVOICE, NONE)
|
|
431
|
+
*/
|
|
432
|
+
paymentCollectionMethod?: 'CHARGE' | 'INVOICE' | 'NONE';
|
|
433
|
+
/**
|
|
434
|
+
* The priority of the credit grant (lower number = higher priority)
|
|
435
|
+
*/
|
|
436
|
+
priority?: number;
|
|
437
|
+
/**
|
|
438
|
+
* The resource ID to scope the grant to
|
|
439
|
+
*/
|
|
440
|
+
resourceId?: string;
|
|
441
|
+
}
|
|
442
|
+
export declare namespace GrantCreateParams {
|
|
443
|
+
/**
|
|
444
|
+
* Billing information for the credit grant
|
|
445
|
+
*/
|
|
446
|
+
interface BillingInformation {
|
|
447
|
+
/**
|
|
448
|
+
* The billing address
|
|
449
|
+
*/
|
|
450
|
+
billingAddress?: BillingInformation.BillingAddress;
|
|
451
|
+
/**
|
|
452
|
+
* Days until the invoice is due
|
|
453
|
+
*/
|
|
454
|
+
invoiceDaysUntilDue?: number;
|
|
455
|
+
/**
|
|
456
|
+
* Whether the invoice is already paid
|
|
457
|
+
*/
|
|
458
|
+
isInvoicePaid?: boolean;
|
|
459
|
+
}
|
|
460
|
+
namespace BillingInformation {
|
|
461
|
+
/**
|
|
462
|
+
* The billing address
|
|
463
|
+
*/
|
|
464
|
+
interface BillingAddress {
|
|
465
|
+
/**
|
|
466
|
+
* City name
|
|
467
|
+
*/
|
|
468
|
+
city?: string;
|
|
469
|
+
/**
|
|
470
|
+
* Country code or name
|
|
471
|
+
*/
|
|
472
|
+
country?: string;
|
|
473
|
+
/**
|
|
474
|
+
* Street address line 1
|
|
475
|
+
*/
|
|
476
|
+
line1?: string;
|
|
477
|
+
/**
|
|
478
|
+
* Street address line 2
|
|
479
|
+
*/
|
|
480
|
+
line2?: string;
|
|
481
|
+
/**
|
|
482
|
+
* Postal or ZIP code
|
|
483
|
+
*/
|
|
484
|
+
postalCode?: string;
|
|
485
|
+
/**
|
|
486
|
+
* State or province
|
|
487
|
+
*/
|
|
488
|
+
state?: string;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* The monetary cost of the credit grant
|
|
493
|
+
*/
|
|
494
|
+
interface Cost {
|
|
495
|
+
/**
|
|
496
|
+
* The price amount
|
|
497
|
+
*/
|
|
498
|
+
amount: number;
|
|
499
|
+
/**
|
|
500
|
+
* The price currency
|
|
501
|
+
*/
|
|
502
|
+
currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
export interface GrantListParams extends MyCursorIDPageParams {
|
|
506
|
+
/**
|
|
507
|
+
* Filter by customer ID (required)
|
|
508
|
+
*/
|
|
509
|
+
customerId: string;
|
|
510
|
+
/**
|
|
511
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
512
|
+
*/
|
|
513
|
+
createdAt?: GrantListParams.CreatedAt;
|
|
514
|
+
/**
|
|
515
|
+
* Filter by currency ID
|
|
516
|
+
*/
|
|
517
|
+
currencyId?: string;
|
|
518
|
+
/**
|
|
519
|
+
* Filter by resource ID. When omitted, only grants without a resource are returned
|
|
520
|
+
*/
|
|
521
|
+
resourceId?: string;
|
|
522
|
+
}
|
|
523
|
+
export declare namespace GrantListParams {
|
|
524
|
+
/**
|
|
525
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
526
|
+
*/
|
|
527
|
+
interface CreatedAt {
|
|
528
|
+
/**
|
|
529
|
+
* Greater than the specified createdAt value
|
|
530
|
+
*/
|
|
531
|
+
gt?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Greater than or equal to the specified createdAt value
|
|
534
|
+
*/
|
|
535
|
+
gte?: string;
|
|
536
|
+
/**
|
|
537
|
+
* Less than the specified createdAt value
|
|
538
|
+
*/
|
|
539
|
+
lt?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Less than or equal to the specified createdAt value
|
|
542
|
+
*/
|
|
543
|
+
lte?: string;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
export declare namespace Grants {
|
|
547
|
+
export { type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, };
|
|
548
|
+
}
|
|
549
|
+
//# sourceMappingURL=grants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/grants.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,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,iBAAiB,CAAC;IAOnE;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAA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KACF;IAED;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;KACX;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,eAAe,CAAC;IAC/B;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Grants = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Operations related to credit grants
|
|
10
|
+
*/
|
|
11
|
+
class Grants extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new credit grant for a customer with specified amount, type, and
|
|
14
|
+
* optional billing configuration.
|
|
15
|
+
*/
|
|
16
|
+
create(body, options) {
|
|
17
|
+
return this._client.post('/api/v1/credits/grants', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a paginated list of credit grants for a customer.
|
|
21
|
+
*/
|
|
22
|
+
list(query, options) {
|
|
23
|
+
return this._client.getAPIList('/api/v1/credits/grants', (pagination_1.MyCursorIDPage), {
|
|
24
|
+
query,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
30
|
+
* credits.
|
|
31
|
+
*/
|
|
32
|
+
void(id, options) {
|
|
33
|
+
return this._client.post((0, path_1.path) `/api/v1/credits/grants/${id}/void`, options);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.Grants = Grants;
|
|
37
|
+
//# sourceMappingURL=grants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,+DAAqG;AAErG,6DAAuD;AAEvD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,2BAAiC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AA7BD,wBA6BC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import { MyCursorIDPage } from "../../../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Operations related to credit grants
|
|
7
|
+
*/
|
|
8
|
+
export class Grants extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new credit grant for a customer with specified amount, type, and
|
|
11
|
+
* optional billing configuration.
|
|
12
|
+
*/
|
|
13
|
+
create(body, options) {
|
|
14
|
+
return this._client.post('/api/v1/credits/grants', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a paginated list of credit grants for a customer.
|
|
18
|
+
*/
|
|
19
|
+
list(query, options) {
|
|
20
|
+
return this._client.getAPIList('/api/v1/credits/grants', (MyCursorIDPage), {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
27
|
+
* credits.
|
|
28
|
+
*/
|
|
29
|
+
void(id, options) {
|
|
30
|
+
return this._client.post(path `/api/v1/credits/grants/${id}/void`, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=grants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/grants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,cAAiC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.mjs";
|
|
2
|
+
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.js";
|
|
2
|
+
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Grants = exports.Credits = void 0;
|
|
5
|
+
var credits_1 = require("./credits.js");
|
|
6
|
+
Object.defineProperty(exports, "Credits", { enumerable: true, get: function () { return credits_1.Credits; } });
|
|
7
|
+
var grants_1 = require("./grants.js");
|
|
8
|
+
Object.defineProperty(exports, "Grants", { enumerable: true, get: function () { return grants_1.Grants; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,sCAOkB;AANhB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAQR;OACM,EACL,MAAM,GAMP"}
|