@tagadapay/node-sdk 0.1.0
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/README.md +92 -0
- package/dist/HttpClient.d.ts +31 -0
- package/dist/HttpClient.d.ts.map +1 -0
- package/dist/HttpClient.js +258 -0
- package/dist/HttpClient.js.map +1 -0
- package/dist/Tagada.d.ts +93 -0
- package/dist/Tagada.d.ts.map +1 -0
- package/dist/Tagada.js +98 -0
- package/dist/Tagada.js.map +1 -0
- package/dist/errors/TagadaError.d.ts +71 -0
- package/dist/errors/TagadaError.d.ts.map +1 -0
- package/dist/errors/TagadaError.js +94 -0
- package/dist/errors/TagadaError.js.map +1 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/BaseResource.d.ts +21 -0
- package/dist/resources/BaseResource.d.ts.map +1 -0
- package/dist/resources/BaseResource.js +41 -0
- package/dist/resources/BaseResource.js.map +1 -0
- package/dist/resources/BlockRules.d.ts +11 -0
- package/dist/resources/BlockRules.d.ts.map +1 -0
- package/dist/resources/BlockRules.js +19 -0
- package/dist/resources/BlockRules.js.map +1 -0
- package/dist/resources/Checkout.d.ts +32 -0
- package/dist/resources/Checkout.d.ts.map +1 -0
- package/dist/resources/Checkout.js +54 -0
- package/dist/resources/Checkout.js.map +1 -0
- package/dist/resources/CheckoutOffers.d.ts +27 -0
- package/dist/resources/CheckoutOffers.d.ts.map +1 -0
- package/dist/resources/CheckoutOffers.js +29 -0
- package/dist/resources/CheckoutOffers.js.map +1 -0
- package/dist/resources/Customers.d.ts +18 -0
- package/dist/resources/Customers.d.ts.map +1 -0
- package/dist/resources/Customers.js +23 -0
- package/dist/resources/Customers.js.map +1 -0
- package/dist/resources/Domains.d.ts +29 -0
- package/dist/resources/Domains.d.ts.map +1 -0
- package/dist/resources/Domains.js +28 -0
- package/dist/resources/Domains.js.map +1 -0
- package/dist/resources/Events.d.ts +22 -0
- package/dist/resources/Events.d.ts.map +1 -0
- package/dist/resources/Events.js +29 -0
- package/dist/resources/Events.js.map +1 -0
- package/dist/resources/Funnels.d.ts +39 -0
- package/dist/resources/Funnels.d.ts.map +1 -0
- package/dist/resources/Funnels.js +46 -0
- package/dist/resources/Funnels.js.map +1 -0
- package/dist/resources/Offers.d.ts +31 -0
- package/dist/resources/Offers.d.ts.map +1 -0
- package/dist/resources/Offers.js +35 -0
- package/dist/resources/Offers.js.map +1 -0
- package/dist/resources/Orders.d.ts +16 -0
- package/dist/resources/Orders.d.ts.map +1 -0
- package/dist/resources/Orders.js +17 -0
- package/dist/resources/Orders.js.map +1 -0
- package/dist/resources/PaymentFlows.d.ts +62 -0
- package/dist/resources/PaymentFlows.d.ts.map +1 -0
- package/dist/resources/PaymentFlows.js +71 -0
- package/dist/resources/PaymentFlows.js.map +1 -0
- package/dist/resources/PaymentInstruments.d.ts +28 -0
- package/dist/resources/PaymentInstruments.d.ts.map +1 -0
- package/dist/resources/PaymentInstruments.js +30 -0
- package/dist/resources/PaymentInstruments.js.map +1 -0
- package/dist/resources/Payments.d.ts +54 -0
- package/dist/resources/Payments.d.ts.map +1 -0
- package/dist/resources/Payments.js +61 -0
- package/dist/resources/Payments.js.map +1 -0
- package/dist/resources/Plugins.d.ts +60 -0
- package/dist/resources/Plugins.d.ts.map +1 -0
- package/dist/resources/Plugins.js +80 -0
- package/dist/resources/Plugins.js.map +1 -0
- package/dist/resources/Processors.d.ts +54 -0
- package/dist/resources/Processors.d.ts.map +1 -0
- package/dist/resources/Processors.js +54 -0
- package/dist/resources/Processors.js.map +1 -0
- package/dist/resources/Products.d.ts +28 -0
- package/dist/resources/Products.d.ts.map +1 -0
- package/dist/resources/Products.js +24 -0
- package/dist/resources/Products.js.map +1 -0
- package/dist/resources/Promotions.d.ts +19 -0
- package/dist/resources/Promotions.d.ts.map +1 -0
- package/dist/resources/Promotions.js +33 -0
- package/dist/resources/Promotions.js.map +1 -0
- package/dist/resources/Stores.d.ts +18 -0
- package/dist/resources/Stores.d.ts.map +1 -0
- package/dist/resources/Stores.js +23 -0
- package/dist/resources/Stores.js.map +1 -0
- package/dist/resources/Subscriptions.d.ts +45 -0
- package/dist/resources/Subscriptions.d.ts.map +1 -0
- package/dist/resources/Subscriptions.js +49 -0
- package/dist/resources/Subscriptions.js.map +1 -0
- package/dist/resources/Webhooks.d.ts +29 -0
- package/dist/resources/Webhooks.d.ts.map +1 -0
- package/dist/resources/Webhooks.js +30 -0
- package/dist/resources/Webhooks.js.map +1 -0
- package/dist/resources/index.d.ts +21 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +21 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/types/blockRules.d.ts +18 -0
- package/dist/types/blockRules.d.ts.map +1 -0
- package/dist/types/blockRules.js +5 -0
- package/dist/types/blockRules.js.map +1 -0
- package/dist/types/checkout-offers.d.ts +62 -0
- package/dist/types/checkout-offers.d.ts.map +1 -0
- package/dist/types/checkout-offers.js +5 -0
- package/dist/types/checkout-offers.js.map +1 -0
- package/dist/types/checkout.d.ts +55 -0
- package/dist/types/checkout.d.ts.map +1 -0
- package/dist/types/checkout.js +5 -0
- package/dist/types/checkout.js.map +1 -0
- package/dist/types/common.d.ts +42 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +5 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/customers.d.ts +41 -0
- package/dist/types/customers.d.ts.map +1 -0
- package/dist/types/customers.js +2 -0
- package/dist/types/customers.js.map +1 -0
- package/dist/types/domains.d.ts +18 -0
- package/dist/types/domains.d.ts.map +1 -0
- package/dist/types/domains.js +5 -0
- package/dist/types/domains.js.map +1 -0
- package/dist/types/events.d.ts +47 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +2 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/funnels.d.ts +160 -0
- package/dist/types/funnels.d.ts.map +1 -0
- package/dist/types/funnels.js +5 -0
- package/dist/types/funnels.js.map +1 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +20 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/offers.d.ts +76 -0
- package/dist/types/offers.d.ts.map +1 -0
- package/dist/types/offers.js +5 -0
- package/dist/types/offers.js.map +1 -0
- package/dist/types/orders.d.ts +50 -0
- package/dist/types/orders.d.ts.map +1 -0
- package/dist/types/orders.js +2 -0
- package/dist/types/orders.js.map +1 -0
- package/dist/types/paymentFlows.d.ts +55 -0
- package/dist/types/paymentFlows.d.ts.map +1 -0
- package/dist/types/paymentFlows.js +5 -0
- package/dist/types/paymentFlows.js.map +1 -0
- package/dist/types/paymentInstruments.d.ts +49 -0
- package/dist/types/paymentInstruments.d.ts.map +1 -0
- package/dist/types/paymentInstruments.js +2 -0
- package/dist/types/paymentInstruments.js.map +1 -0
- package/dist/types/payments.d.ts +139 -0
- package/dist/types/payments.d.ts.map +1 -0
- package/dist/types/payments.js +2 -0
- package/dist/types/payments.js.map +1 -0
- package/dist/types/plugins.d.ts +116 -0
- package/dist/types/plugins.d.ts.map +1 -0
- package/dist/types/plugins.js +5 -0
- package/dist/types/plugins.js.map +1 -0
- package/dist/types/processors.d.ts +34 -0
- package/dist/types/processors.d.ts.map +1 -0
- package/dist/types/processors.js +5 -0
- package/dist/types/processors.js.map +1 -0
- package/dist/types/products.d.ts +68 -0
- package/dist/types/products.d.ts.map +1 -0
- package/dist/types/products.js +5 -0
- package/dist/types/products.js.map +1 -0
- package/dist/types/promotions.d.ts +36 -0
- package/dist/types/promotions.d.ts.map +1 -0
- package/dist/types/promotions.js +5 -0
- package/dist/types/promotions.js.map +1 -0
- package/dist/types/stores.d.ts +26 -0
- package/dist/types/stores.d.ts.map +1 -0
- package/dist/types/stores.js +2 -0
- package/dist/types/stores.js.map +1 -0
- package/dist/types/subscriptions.d.ts +74 -0
- package/dist/types/subscriptions.d.ts.map +1 -0
- package/dist/types/subscriptions.js +5 -0
- package/dist/types/subscriptions.js.map +1 -0
- package/dist/types/webhooks.d.ts +18 -0
- package/dist/types/webhooks.d.ts.map +1 -0
- package/dist/types/webhooks.js +5 -0
- package/dist/types/webhooks.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/sleep.d.ts +2 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +4 -0
- package/dist/utils/sleep.js.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
import type { RequestOptions } from '../types/common.js';
|
|
3
|
+
import type { PluginDeployParams, PluginDeployResult, PluginInstantiateParams, PluginInstantiateResult, PluginMountParams, PluginMountResult, PluginUnmountParams } from '../types/plugins.js';
|
|
4
|
+
/**
|
|
5
|
+
* Plugins V2 — deploy HTML/JS/CSS pages, instantiate them for stores,
|
|
6
|
+
* and mount them to custom domains or aliases.
|
|
7
|
+
*
|
|
8
|
+
* This is the mechanism Tagada uses to serve checkout pages, landing pages,
|
|
9
|
+
* upsell pages, and any custom storefront on your own domains.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Plugins extends BaseResource {
|
|
12
|
+
/**
|
|
13
|
+
* Deploy a plugin with inline assets (HTML, JS, CSS as base64) or
|
|
14
|
+
* from a ZIP URL. Returns a deploymentId used for instantiation and mounting.
|
|
15
|
+
*/
|
|
16
|
+
deploy(params: PluginDeployParams, opts?: RequestOptions): Promise<PluginDeployResult>;
|
|
17
|
+
/**
|
|
18
|
+
* Create an instance of a deployed plugin for a specific store.
|
|
19
|
+
* Instances allow per-store configuration of the same deployment.
|
|
20
|
+
*/
|
|
21
|
+
instantiate(params: PluginInstantiateParams, opts?: RequestOptions): Promise<PluginInstantiateResult>;
|
|
22
|
+
/**
|
|
23
|
+
* Mount a plugin deployment/instance to a custom domain or alias.
|
|
24
|
+
* The domain must be verified in your account's custom domains.
|
|
25
|
+
*/
|
|
26
|
+
mount(params: PluginMountParams, opts?: RequestOptions): Promise<PluginMountResult>;
|
|
27
|
+
/**
|
|
28
|
+
* Unmount a plugin from a domain or alias.
|
|
29
|
+
*/
|
|
30
|
+
unmount(params: PluginUnmountParams, opts?: RequestOptions): Promise<unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* List all plugins for a store.
|
|
33
|
+
*/
|
|
34
|
+
list(storeId: string, opts?: RequestOptions): Promise<unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* List all instances for a store.
|
|
37
|
+
*/
|
|
38
|
+
listInstances(storeId: string, opts?: RequestOptions): Promise<unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* List mount points for a store.
|
|
41
|
+
*/
|
|
42
|
+
listMountPoints(storeId: string, opts?: RequestOptions): Promise<unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Get detailed info about a specific deployment.
|
|
45
|
+
*/
|
|
46
|
+
deploymentDetails(deploymentId: string, storeId: string, opts?: RequestOptions): Promise<unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* Get detailed info about a plugin.
|
|
49
|
+
*/
|
|
50
|
+
details(pluginId: string, storeId: string, opts?: RequestOptions): Promise<unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete a plugin and all its deployments.
|
|
53
|
+
*/
|
|
54
|
+
del(pluginId: string, storeId: string, opts?: RequestOptions): Promise<unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete a specific deployment.
|
|
57
|
+
*/
|
|
58
|
+
deleteDeployment(deploymentId: string, storeId: string, opts?: RequestOptions): Promise<unknown>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=Plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvG;;OAEG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzF;;OAEG;IACG,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrF;;OAEG;IACG,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAGvG"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
/**
|
|
3
|
+
* Plugins V2 — deploy HTML/JS/CSS pages, instantiate them for stores,
|
|
4
|
+
* and mount them to custom domains or aliases.
|
|
5
|
+
*
|
|
6
|
+
* This is the mechanism Tagada uses to serve checkout pages, landing pages,
|
|
7
|
+
* upsell pages, and any custom storefront on your own domains.
|
|
8
|
+
*/
|
|
9
|
+
export class Plugins extends BaseResource {
|
|
10
|
+
/**
|
|
11
|
+
* Deploy a plugin with inline assets (HTML, JS, CSS as base64) or
|
|
12
|
+
* from a ZIP URL. Returns a deploymentId used for instantiation and mounting.
|
|
13
|
+
*/
|
|
14
|
+
async deploy(params, opts) {
|
|
15
|
+
return this._post('/plugins/v2/deploy', params, opts);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create an instance of a deployed plugin for a specific store.
|
|
19
|
+
* Instances allow per-store configuration of the same deployment.
|
|
20
|
+
*/
|
|
21
|
+
async instantiate(params, opts) {
|
|
22
|
+
return this._post('/plugins/v2/instantiate', params, opts);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Mount a plugin deployment/instance to a custom domain or alias.
|
|
26
|
+
* The domain must be verified in your account's custom domains.
|
|
27
|
+
*/
|
|
28
|
+
async mount(params, opts) {
|
|
29
|
+
return this._post('/plugins/v2/mount', params, opts);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Unmount a plugin from a domain or alias.
|
|
33
|
+
*/
|
|
34
|
+
async unmount(params, opts) {
|
|
35
|
+
return this._post('/plugins/v2/unmount', params, opts);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* List all plugins for a store.
|
|
39
|
+
*/
|
|
40
|
+
async list(storeId, opts) {
|
|
41
|
+
return this._post('/plugins/v2/list', { storeId }, opts);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* List all instances for a store.
|
|
45
|
+
*/
|
|
46
|
+
async listInstances(storeId, opts) {
|
|
47
|
+
return this._post('/plugins/v2/instances', { storeId }, opts);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List mount points for a store.
|
|
51
|
+
*/
|
|
52
|
+
async listMountPoints(storeId, opts) {
|
|
53
|
+
return this._post('/plugins/v2/mount-points', { storeId }, opts);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get detailed info about a specific deployment.
|
|
57
|
+
*/
|
|
58
|
+
async deploymentDetails(deploymentId, storeId, opts) {
|
|
59
|
+
return this._post('/plugins/v2/deployment/details', { deploymentId, storeId }, opts);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get detailed info about a plugin.
|
|
63
|
+
*/
|
|
64
|
+
async details(pluginId, storeId, opts) {
|
|
65
|
+
return this._post('/plugins/v2/details', { pluginId, storeId }, opts);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Delete a plugin and all its deployments.
|
|
69
|
+
*/
|
|
70
|
+
async del(pluginId, storeId, opts) {
|
|
71
|
+
return this._post('/plugins/v2/delete', { pluginId, storeId }, opts);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Delete a specific deployment.
|
|
75
|
+
*/
|
|
76
|
+
async deleteDeployment(deploymentId, storeId, opts) {
|
|
77
|
+
return this._post('/plugins/v2/deployment/delete', { deploymentId, storeId }, opts);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=Plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugins.js","sourceRoot":"","sources":["../../src/resources/Plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYjD;;;;;;GAMG;AACH,MAAM,OAAO,OAAQ,SAAQ,YAAY;IACvC;;;OAGG;IACH,KAAK,CAAC,MAAM,CAAC,MAA0B,EAAE,IAAqB;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAqB,oBAAoB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAW,CAAC,MAA+B,EAAE,IAAqB;QACtE,OAAO,IAAI,CAAC,KAAK,CAA0B,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtF,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,KAAK,CAAC,MAAyB,EAAE,IAAqB;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAoB,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,MAA2B,EAAE,IAAqB;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,qBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,OAAe,EAAE,IAAqB;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,OAAe,EAAE,IAAqB;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,OAAe,EAAE,IAAqB;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,CAAC,YAAoB,EAAE,OAAe,EAAE,IAAqB;QAClF,OAAO,IAAI,CAAC,KAAK,CAAC,gCAAgC,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,OAAe,EAAE,IAAqB;QACpE,OAAO,IAAI,CAAC,KAAK,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB,EAAE,OAAe,EAAE,IAAqB;QAChE,OAAO,IAAI,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CAAC,YAAoB,EAAE,OAAe,EAAE,IAAqB;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
import type { RequestOptions } from '../types/common.js';
|
|
3
|
+
import type { Processor, ProcessorCreateParams, ProcessorUpdateParams } from '../types/processors.js';
|
|
4
|
+
/**
|
|
5
|
+
* Processors represent the payment gateways/PSPs connected to your Tagada
|
|
6
|
+
* account. Tagada is gateway-agnostic: you can connect Stripe, Adyen, NMI,
|
|
7
|
+
* Checkout.com, or any supported processor and route between them.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Processors extends BaseResource {
|
|
10
|
+
/**
|
|
11
|
+
* List all active processors for the account.
|
|
12
|
+
*/
|
|
13
|
+
list(opts?: RequestOptions): Promise<{
|
|
14
|
+
processors: Processor[];
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve a single processor by ID.
|
|
18
|
+
*/
|
|
19
|
+
retrieve(processorId: string, opts?: RequestOptions): Promise<Processor>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a new processor connection.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* const processor = await tagada.processors.create({
|
|
25
|
+
* processor: {
|
|
26
|
+
* name: 'Stripe US',
|
|
27
|
+
* type: 'stripe',
|
|
28
|
+
* enabled: true,
|
|
29
|
+
* supportedCurrencies: ['USD', 'EUR'],
|
|
30
|
+
* baseCurrency: 'USD',
|
|
31
|
+
* options: {
|
|
32
|
+
* secretKey: 'sk_live_...',
|
|
33
|
+
* publicKey: 'pk_live_...',
|
|
34
|
+
* },
|
|
35
|
+
* },
|
|
36
|
+
* });
|
|
37
|
+
*/
|
|
38
|
+
create(params: ProcessorCreateParams, opts?: RequestOptions): Promise<{
|
|
39
|
+
processor: Processor;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Update an existing processor's configuration.
|
|
43
|
+
*/
|
|
44
|
+
update(params: ProcessorUpdateParams, opts?: RequestOptions): Promise<{
|
|
45
|
+
processor: Processor;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Delete (archive) one or more processors.
|
|
49
|
+
*/
|
|
50
|
+
del(processorIds: string[], opts?: RequestOptions): Promise<{
|
|
51
|
+
processors: string[];
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=Processors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Processors.d.ts","sourceRoot":"","sources":["../../src/resources/Processors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEtG;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C;;OAEG;IACG,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,SAAS,EAAE,CAAA;KAAE,CAAC;IAIvE;;OAEG;IACG,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAI9E;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;IAIrG;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;IAIrG;;OAEG;IACG,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAG5F"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
/**
|
|
3
|
+
* Processors represent the payment gateways/PSPs connected to your Tagada
|
|
4
|
+
* account. Tagada is gateway-agnostic: you can connect Stripe, Adyen, NMI,
|
|
5
|
+
* Checkout.com, or any supported processor and route between them.
|
|
6
|
+
*/
|
|
7
|
+
export class Processors extends BaseResource {
|
|
8
|
+
/**
|
|
9
|
+
* List all active processors for the account.
|
|
10
|
+
*/
|
|
11
|
+
async list(opts) {
|
|
12
|
+
return this._get('/processors', undefined, opts);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve a single processor by ID.
|
|
16
|
+
*/
|
|
17
|
+
async retrieve(processorId, opts) {
|
|
18
|
+
return this._post('/processors/get', { processorId }, opts);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create a new processor connection.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* const processor = await tagada.processors.create({
|
|
25
|
+
* processor: {
|
|
26
|
+
* name: 'Stripe US',
|
|
27
|
+
* type: 'stripe',
|
|
28
|
+
* enabled: true,
|
|
29
|
+
* supportedCurrencies: ['USD', 'EUR'],
|
|
30
|
+
* baseCurrency: 'USD',
|
|
31
|
+
* options: {
|
|
32
|
+
* secretKey: 'sk_live_...',
|
|
33
|
+
* publicKey: 'pk_live_...',
|
|
34
|
+
* },
|
|
35
|
+
* },
|
|
36
|
+
* });
|
|
37
|
+
*/
|
|
38
|
+
async create(params, opts) {
|
|
39
|
+
return this._post('/processors/create', params, opts);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Update an existing processor's configuration.
|
|
43
|
+
*/
|
|
44
|
+
async update(params, opts) {
|
|
45
|
+
return this._post('/processors/update', params, opts);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Delete (archive) one or more processors.
|
|
49
|
+
*/
|
|
50
|
+
async del(processorIds, opts) {
|
|
51
|
+
return this._post('/processors/delete', { processorIds }, opts);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=Processors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Processors.js","sourceRoot":"","sources":["../../src/resources/Processors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,YAAY;IAC1C;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,IAAqB;QAC9B,OAAO,IAAI,CAAC,IAAI,CAA8B,aAAa,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CAAC,WAAmB,EAAE,IAAqB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAY,iBAAiB,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CAAC,MAA6B,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAA2B,oBAAoB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,MAA6B,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAA2B,oBAAoB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,YAAsB,EAAE,IAAqB;QACrD,OAAO,IAAI,CAAC,KAAK,CAA2B,oBAAoB,EAAE,EAAE,YAAY,EAAE,EAAE,IAAI,CAAC,CAAC;IAC5F,CAAC;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
import type { RequestOptions, TagadaList } from '../types/common.js';
|
|
3
|
+
import type { Product, ProductListParams, ProductCreateParams } from '../types/products.js';
|
|
4
|
+
export declare class Products extends BaseResource {
|
|
5
|
+
/**
|
|
6
|
+
* List products for a store with optional filtering and variant inclusion.
|
|
7
|
+
*/
|
|
8
|
+
list(params: ProductListParams, opts?: RequestOptions): Promise<TagadaList<Product>>;
|
|
9
|
+
/**
|
|
10
|
+
* Create a new product with variants and pricing. Prices are
|
|
11
|
+
* multi-currency by design — Tagada is built for global commerce.
|
|
12
|
+
*/
|
|
13
|
+
create(params: ProductCreateParams, opts?: RequestOptions): Promise<{
|
|
14
|
+
id: string;
|
|
15
|
+
variants: Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
prices: Array<{
|
|
19
|
+
id: string;
|
|
20
|
+
}>;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve a product by its ID.
|
|
25
|
+
*/
|
|
26
|
+
retrieve(productId: string, opts?: RequestOptions): Promise<Product>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=Products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Products.d.ts","sourceRoot":"","sources":["../../src/resources/Products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE5F,qBAAa,QAAS,SAAQ,YAAY;IACxC;;OAEG;IACG,IAAI,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAK1F;;;OAGG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QACxE,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,KAAK,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,KAAK,CAAC;gBAAE,EAAE,EAAE,MAAM,CAAA;aAAE,CAAC,CAAA;SAAE,CAAC,CAAC;KAC9E,CAAC;IAIF;;OAEG;IACG,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAG3E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
export class Products extends BaseResource {
|
|
3
|
+
/**
|
|
4
|
+
* List products for a store with optional filtering and variant inclusion.
|
|
5
|
+
*/
|
|
6
|
+
async list(params, opts) {
|
|
7
|
+
const raw = await this._post('/products/list', params, opts);
|
|
8
|
+
return this.toList(raw, 'items', params.per_page);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Create a new product with variants and pricing. Prices are
|
|
12
|
+
* multi-currency by design — Tagada is built for global commerce.
|
|
13
|
+
*/
|
|
14
|
+
async create(params, opts) {
|
|
15
|
+
return this._post('/products/create', params, opts);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a product by its ID.
|
|
19
|
+
*/
|
|
20
|
+
async retrieve(productId, opts) {
|
|
21
|
+
return this._get(`/products/${productId}`, undefined, opts);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=Products.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Products.js","sourceRoot":"","sources":["../../src/resources/Products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,MAAM,OAAO,QAAS,SAAQ,YAAY;IACxC;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,MAAyB,EAAE,IAAqB;QACzD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAA0B,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,MAAM,CAAU,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,MAAM,CAAC,MAA2B,EAAE,IAAqB;QAI7D,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,IAAqB;QACrD,OAAO,IAAI,CAAC,IAAI,CAAU,aAAa,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
import type { RequestOptions } from '../types/common.js';
|
|
3
|
+
import type { Promotion, PromotionCreateParams, PromotionUpdateParams, PromotionCode, PromotionCodeCreateParams, PromotionCodeUpdateParams } from '../types/promotions.js';
|
|
4
|
+
export declare class Promotions extends BaseResource {
|
|
5
|
+
list(params?: {
|
|
6
|
+
storeId?: string;
|
|
7
|
+
}, opts?: RequestOptions): Promise<unknown>;
|
|
8
|
+
create(params: PromotionCreateParams, opts?: RequestOptions): Promise<Promotion>;
|
|
9
|
+
retrieve(id: string, storeId?: string, opts?: RequestOptions): Promise<Promotion>;
|
|
10
|
+
update(params: PromotionUpdateParams, opts?: RequestOptions): Promise<Promotion>;
|
|
11
|
+
del(ids: string[], storeId?: string, opts?: RequestOptions): Promise<unknown>;
|
|
12
|
+
}
|
|
13
|
+
export declare class PromotionCodes extends BaseResource {
|
|
14
|
+
list(opts?: RequestOptions): Promise<unknown>;
|
|
15
|
+
create(params: PromotionCodeCreateParams, opts?: RequestOptions): Promise<PromotionCode>;
|
|
16
|
+
update(params: PromotionCodeUpdateParams, opts?: RequestOptions): Promise<PromotionCode>;
|
|
17
|
+
del(ids: string[], opts?: RequestOptions): Promise<unknown>;
|
|
18
|
+
}
|
|
19
|
+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MAAM,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAIxF,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAGlE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
export class Promotions extends BaseResource {
|
|
3
|
+
async list(params, opts) {
|
|
4
|
+
return this._post('/promotions/list', params ?? {}, opts);
|
|
5
|
+
}
|
|
6
|
+
async create(params, opts) {
|
|
7
|
+
return this._post('/promotions/create', params, opts);
|
|
8
|
+
}
|
|
9
|
+
async retrieve(id, storeId, opts) {
|
|
10
|
+
return this._post('/promotions/getById', { id, storeId }, opts);
|
|
11
|
+
}
|
|
12
|
+
async update(params, opts) {
|
|
13
|
+
return this._post('/promotions/update', params, opts);
|
|
14
|
+
}
|
|
15
|
+
async del(ids, storeId, opts) {
|
|
16
|
+
return this._post('/promotions/delete', { ids, storeId }, opts);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class PromotionCodes extends BaseResource {
|
|
20
|
+
async list(opts) {
|
|
21
|
+
return this._post('/promotion-codes/list', {}, opts);
|
|
22
|
+
}
|
|
23
|
+
async create(params, opts) {
|
|
24
|
+
return this._post('/promotion-codes/create', params, opts);
|
|
25
|
+
}
|
|
26
|
+
async update(params, opts) {
|
|
27
|
+
return this._post('/promotion-codes/update', params, opts);
|
|
28
|
+
}
|
|
29
|
+
async del(ids, opts) {
|
|
30
|
+
return this._post('/promotion-codes/delete', { ids }, opts);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=Promotions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Promotions.js","sourceRoot":"","sources":["../../src/resources/Promotions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,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AAO,IAAI,CAAC,KAAK,CAAgB,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAa,EAAE,IAAqB;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
import type { RequestOptions, TagadaList } from '../types/common.js';
|
|
3
|
+
import type { Store, StoreListParams, StoreCreateParams } from '../types/stores.js';
|
|
4
|
+
export declare class Stores extends BaseResource {
|
|
5
|
+
/**
|
|
6
|
+
* List all stores for the authenticated account.
|
|
7
|
+
*/
|
|
8
|
+
list(params?: StoreListParams, opts?: RequestOptions): Promise<TagadaList<Store>>;
|
|
9
|
+
/**
|
|
10
|
+
* Create a new store with currency configuration.
|
|
11
|
+
*/
|
|
12
|
+
create(params: StoreCreateParams, opts?: RequestOptions): Promise<Store>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a store by its ID.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(storeId: string, opts?: RequestOptions): Promise<Store>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Stores.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stores.d.ts","sourceRoot":"","sources":["../../src/resources/Stores.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEpF,qBAAa,MAAO,SAAQ,YAAY;IACtC;;OAEG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAKvF;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;IAI9E;;OAEG;IACG,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;CAGvE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
export class Stores extends BaseResource {
|
|
3
|
+
/**
|
|
4
|
+
* List all stores for the authenticated account.
|
|
5
|
+
*/
|
|
6
|
+
async list(params, opts) {
|
|
7
|
+
const raw = await this._post('/stores/list', params, opts);
|
|
8
|
+
return this.toList(raw, 'stores', params?.pageSize);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Create a new store with currency configuration.
|
|
12
|
+
*/
|
|
13
|
+
async create(params, opts) {
|
|
14
|
+
return this._post('/stores/create', params, opts);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve a store by its ID.
|
|
18
|
+
*/
|
|
19
|
+
async retrieve(storeId, opts) {
|
|
20
|
+
return this._get(`/stores/${storeId}`, undefined, opts);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=Stores.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stores.js","sourceRoot":"","sources":["../../src/resources/Stores.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,MAAM,OAAO,MAAO,SAAQ,YAAY;IACtC;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,MAAwB,EAAE,IAAqB;QACxD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAA0B,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACpF,OAAO,IAAI,CAAC,MAAM,CAAQ,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,MAAyB,EAAE,IAAqB;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAQ,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAe,EAAE,IAAqB;QACnD,OAAO,IAAI,CAAC,IAAI,CAAQ,WAAW,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
import type { RequestOptions, TagadaList } from '../types/common.js';
|
|
3
|
+
import type { Subscription, SubscriptionListParams, SubscriptionCreateParams, SubscriptionCancelParams, SubscriptionResumeParams } from '../types/subscriptions.js';
|
|
4
|
+
export declare class Subscriptions extends BaseResource {
|
|
5
|
+
/**
|
|
6
|
+
* List subscriptions with filtering by status, processor, trial, etc.
|
|
7
|
+
*/
|
|
8
|
+
list(params?: SubscriptionListParams, opts?: RequestOptions): Promise<TagadaList<Subscription>>;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a subscription by ID.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(subscriptionId: string, opts?: RequestOptions): Promise<{
|
|
13
|
+
subscription: Subscription;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a new subscription. Tagada handles billing through whatever
|
|
17
|
+
* processor is configured in the payment flow — true PSP-agnostic recurring.
|
|
18
|
+
*/
|
|
19
|
+
create(params: SubscriptionCreateParams, opts?: RequestOptions): Promise<{
|
|
20
|
+
subscription: Subscription;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Trigger an immediate rebill for a subscription.
|
|
24
|
+
*/
|
|
25
|
+
rebill(subscriptionId: string, opts?: RequestOptions): Promise<{
|
|
26
|
+
success: boolean;
|
|
27
|
+
message: string;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Cancel one or more subscriptions. Optionally cancel at period end.
|
|
31
|
+
*/
|
|
32
|
+
cancel(params: SubscriptionCancelParams, opts?: RequestOptions): Promise<unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Resume one or more previously cancelled subscriptions.
|
|
35
|
+
*/
|
|
36
|
+
resume(params: SubscriptionResumeParams, opts?: RequestOptions): Promise<unknown>;
|
|
37
|
+
/**
|
|
38
|
+
* Change the processor assigned to a subscription. Pass no processorId
|
|
39
|
+
* to let Tagada auto-select based on the payment flow strategy.
|
|
40
|
+
*/
|
|
41
|
+
changeProcessor(subscriptionId: string, processorId?: string, opts?: RequestOptions): Promise<{
|
|
42
|
+
subscription: Subscription;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=Subscriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subscriptions.d.ts","sourceRoot":"","sources":["../../src/resources/Subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EACV,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,aAAc,SAAQ,YAAY;IAC7C;;OAEG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAKrG;;OAEG;IACG,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAC;IAItG;;;OAGG;IACG,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAC;IAI9G;;OAEG;IACG,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAI3G;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvF;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvF;;;OAGG;IACG,eAAe,CACnB,cAAc,EAAE,MAAM,EACtB,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAC;CAG3C"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
export class Subscriptions extends BaseResource {
|
|
3
|
+
/**
|
|
4
|
+
* List subscriptions with filtering by status, processor, trial, etc.
|
|
5
|
+
*/
|
|
6
|
+
async list(params, opts) {
|
|
7
|
+
const raw = await this._post('/subscriptions/list', params, opts);
|
|
8
|
+
return this.toList(raw, 'items', params?.per_page);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a subscription by ID.
|
|
12
|
+
*/
|
|
13
|
+
async retrieve(subscriptionId, opts) {
|
|
14
|
+
return this._get(`/subscriptions/${subscriptionId}`, undefined, opts);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create a new subscription. Tagada handles billing through whatever
|
|
18
|
+
* processor is configured in the payment flow — true PSP-agnostic recurring.
|
|
19
|
+
*/
|
|
20
|
+
async create(params, opts) {
|
|
21
|
+
return this._post('/subscriptions/create', params, opts);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Trigger an immediate rebill for a subscription.
|
|
25
|
+
*/
|
|
26
|
+
async rebill(subscriptionId, opts) {
|
|
27
|
+
return this._post('/subscriptions/rebill', { subscriptionId }, opts);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Cancel one or more subscriptions. Optionally cancel at period end.
|
|
31
|
+
*/
|
|
32
|
+
async cancel(params, opts) {
|
|
33
|
+
return this._post('/subscriptions/cancel', params, opts);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Resume one or more previously cancelled subscriptions.
|
|
37
|
+
*/
|
|
38
|
+
async resume(params, opts) {
|
|
39
|
+
return this._post('/subscriptions/resume', params, opts);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Change the processor assigned to a subscription. Pass no processorId
|
|
43
|
+
* to let Tagada auto-select based on the payment flow strategy.
|
|
44
|
+
*/
|
|
45
|
+
async changeProcessor(subscriptionId, processorId, opts) {
|
|
46
|
+
return this._post('/subscriptions/change-processor', { subscriptionId, processorId }, opts);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=Subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subscriptions.js","sourceRoot":"","sources":["../../src/resources/Subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAUjD,MAAM,OAAO,aAAc,SAAQ,YAAY;IAC7C;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,MAA+B,EAAE,IAAqB;QAC/D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAA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type { RequestOptions } from '../types/common.js';
|
|
3
|
+
import type { Webhook, WebhookCreateParams } from '../types/webhooks.js';
|
|
4
|
+
export declare class Webhooks extends BaseResource {
|
|
5
|
+
/**
|
|
6
|
+
* List all webhooks for a store.
|
|
7
|
+
*/
|
|
8
|
+
list(storeId: string, opts?: RequestOptions): Promise<Webhook[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Create a new webhook endpoint.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const webhook = await tagada.webhooks.create({
|
|
14
|
+
* storeId: 'store_xxx',
|
|
15
|
+
* url: 'https://example.com/webhooks/tagada',
|
|
16
|
+
* eventTypes: ['payment.completed', 'subscription.created'],
|
|
17
|
+
* });
|
|
18
|
+
* console.log(webhook.secret); // Use this to verify signatures
|
|
19
|
+
*/
|
|
20
|
+
create(params: WebhookCreateParams, opts?: RequestOptions): Promise<Webhook>;
|
|
21
|
+
/**
|
|
22
|
+
* Delete a webhook endpoint.
|
|
23
|
+
*/
|
|
24
|
+
del(id: string, opts?: RequestOptions): Promise<{
|
|
25
|
+
success: boolean;
|
|
26
|
+
id: string;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=Webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/Webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,qBAAa,QAAS,SAAQ,YAAY;IACxC;;OAEG;IACG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAItE;;;;;;;;;;OAUG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlF;;OAEG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CAGxF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource.js';
|
|
2
|
+
export class Webhooks extends BaseResource {
|
|
3
|
+
/**
|
|
4
|
+
* List all webhooks for a store.
|
|
5
|
+
*/
|
|
6
|
+
async list(storeId, opts) {
|
|
7
|
+
return this._get('/webhooks', { storeId }, opts);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a new webhook endpoint.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const webhook = await tagada.webhooks.create({
|
|
14
|
+
* storeId: 'store_xxx',
|
|
15
|
+
* url: 'https://example.com/webhooks/tagada',
|
|
16
|
+
* eventTypes: ['payment.completed', 'subscription.created'],
|
|
17
|
+
* });
|
|
18
|
+
* console.log(webhook.secret); // Use this to verify signatures
|
|
19
|
+
*/
|
|
20
|
+
async create(params, opts) {
|
|
21
|
+
return this._post('/webhooks', params, opts);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Delete a webhook endpoint.
|
|
25
|
+
*/
|
|
26
|
+
async del(id, opts) {
|
|
27
|
+
return this._del('/webhooks/' + id, undefined, opts);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=Webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Webhooks.js","sourceRoot":"","sources":["../../src/resources/Webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,MAAM,OAAO,QAAS,SAAQ,YAAY;IACxC;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,OAAe,EAAE,IAAqB;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAY,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,MAAM,CAAC,MAA2B,EAAE,IAAqB;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAU,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,EAAU,EAAE,IAAqB;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF"}
|