univapay-node 4.0.31 → 4.0.33
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/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/resources/Refers.js +3 -3
- package/dist/cjs/resources/Refers.js.map +1 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/resources/Refers.js +3 -3
- package/dist/esm/resources/Refers.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SDK
|
|
3
3
|
*/
|
|
4
|
-
import { BankAccounts, Cancels, Captures, Charges, CheckoutInfo, ECFormLinks, ECForms, ECInfo, Emails, ExchangeRates, Ledgers, Merchants, Platforms, Products, Refunds, Stores, Subscriptions, TransactionTokens, Transfers, Verification, WebHooks, WebHookTrigger as PublicWebHookTrigger } from "./resources/index.js";
|
|
4
|
+
import { BankAccounts, Cancels, Captures, Charges, CheckoutInfo, ECFormLinks, ECForms, ECInfo, Emails, ExchangeRates, Ledgers, Merchants, Platforms, Products, Refunds, Stores, Subscriptions, TransactionTokens, Transfers, Verification, WebHooks, WebHookTrigger as PublicWebHookTrigger, Refers } from "./resources/index.js";
|
|
5
5
|
import { LinksProducts } from "./resources/LinksProducts.js";
|
|
6
6
|
import PaymentsSDK from "./sdk/index.js";
|
|
7
7
|
export * from "./api/index.js";
|
|
@@ -26,6 +26,7 @@ export default class SDK<WebhookTrigger = PublicWebHookTrigger> extends Payments
|
|
|
26
26
|
merchants: Merchants;
|
|
27
27
|
platforms: Platforms;
|
|
28
28
|
products: Products;
|
|
29
|
+
refers: Refers;
|
|
29
30
|
refunds: Refunds;
|
|
30
31
|
stores: Stores;
|
|
31
32
|
subscriptions: Subscriptions;
|
package/dist/cjs/index.js
CHANGED
|
@@ -32,6 +32,7 @@ class SDK extends index_js_2.default {
|
|
|
32
32
|
this.merchants = new index_js_1.Merchants(this.api);
|
|
33
33
|
this.platforms = new index_js_1.Platforms(this.api);
|
|
34
34
|
this.products = new index_js_1.Products(this.api);
|
|
35
|
+
this.refers = new index_js_1.Refers(this.api);
|
|
35
36
|
this.refunds = new index_js_1.Refunds(this.api);
|
|
36
37
|
this.stores = new index_js_1.Stores(this.api);
|
|
37
38
|
this.subscriptions = new index_js_1.Subscriptions(this.api);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,mDAwB8B;AAC9B,mEAA6D;AAC7D,sEAAyC;AAEzC,yDAA+B;AAC/B,4DAAkC;AAClC,4DAAkC;AAClC,+DAAqC;AACrC,2DAAiC;AACpB,QAAA,OAAO,GAAG,kBAAW,CAAC;AAEnC,MAAqB,GAA2C,SAAQ,kBAAW;IAAnF;;QACW,iBAAY,GAAiB,IAAI,uBAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACxD,YAAO,GAAY,IAAI,kBAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzC,aAAQ,GAAa,IAAI,mBAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,YAAO,GAAY,IAAI,kBAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzC,iBAAY,GAAiB,IAAI,uBAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACxD,WAAM,GAAW,IAAI,iBAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,gBAAW,GAAgB,IAAI,sBAAW,CAAC,IAAI,CAAC,GAAG,CAAC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Resource_js_1.CRUDResource {
|
|
10
10
|
authorize(storeId, data, auth) {
|
|
11
11
|
this._authorize =
|
|
12
|
-
this._authorize ?? this.defineRoute(RestAPI_js_1.HTTPMethod.POST, "(/stores/:storeId)/
|
|
12
|
+
this._authorize ?? this.defineRoute(RestAPI_js_1.HTTPMethod.POST, "(/stores/:storeId)/customers/authenticate");
|
|
13
13
|
return this._authorize(data, auth, { storeId });
|
|
14
14
|
}
|
|
15
15
|
sendCode(storeId, data, auth) {
|
|
16
16
|
this._sendCode =
|
|
17
|
-
this._sendCode ?? this.defineRoute(RestAPI_js_1.HTTPMethod.POST, "(/stores/:storeId)/
|
|
17
|
+
this._sendCode ?? this.defineRoute(RestAPI_js_1.HTTPMethod.POST, "(/stores/:storeId)/customers/authenticate");
|
|
18
18
|
return this._sendCode(data, auth, { storeId });
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.Refers = Refers;
|
|
22
|
-
Refers.routeBase = "/stores/:storeId/
|
|
22
|
+
Refers.routeBase = "(/stores/:storeId)/customers";
|
|
23
23
|
//# sourceMappingURL=Refers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refers.js","sourceRoot":"","sources":["../../../src/resources/Refers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kDAAqE;AAErE,uDAAiD;AA8BjD,MAAa,MAAO,SAAQ,8BAAY;IAIpC,SAAS,CACL,OAAe,EACf,IAAwC,EACxC,IAAiB;QAEjB,IAAI,CAAC,UAAU;YACX,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,uBAAU,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Refers.js","sourceRoot":"","sources":["../../../src/resources/Refers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kDAAqE;AAErE,uDAAiD;AA8BjD,MAAa,MAAO,SAAQ,8BAAY;IAIpC,SAAS,CACL,OAAe,EACf,IAAwC,EACxC,IAAiB;QAEjB,IAAI,CAAC,UAAU;YACX,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,uBAAU,CAAC,IAAI,EAAE,2CAA2C,CAAC,CAAC;QACtG,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAGD,QAAQ,CACJ,OAAe,EACf,IAAoC,EACpC,IAAiB;QAEjB,IAAI,CAAC,SAAS;YACV,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,uBAAU,CAAC,IAAI,EAAE,2CAA2C,CAAC,CAAC;QACrG,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACnD,CAAC;;AAvBL,wBAwBC;AAvBU,gBAAS,GAAG,8BAA8B,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SDK
|
|
3
3
|
*/
|
|
4
|
-
import { BankAccounts, Cancels, Captures, Charges, CheckoutInfo, ECFormLinks, ECForms, ECInfo, Emails, ExchangeRates, Ledgers, Merchants, Platforms, Products, Refunds, Stores, Subscriptions, TransactionTokens, Transfers, Verification, WebHooks, WebHookTrigger as PublicWebHookTrigger } from "./resources/index.js";
|
|
4
|
+
import { BankAccounts, Cancels, Captures, Charges, CheckoutInfo, ECFormLinks, ECForms, ECInfo, Emails, ExchangeRates, Ledgers, Merchants, Platforms, Products, Refunds, Stores, Subscriptions, TransactionTokens, Transfers, Verification, WebHooks, WebHookTrigger as PublicWebHookTrigger, Refers } from "./resources/index.js";
|
|
5
5
|
import { LinksProducts } from "./resources/LinksProducts.js";
|
|
6
6
|
import PaymentsSDK from "./sdk/index.js";
|
|
7
7
|
export * from "./api/index.js";
|
|
@@ -26,6 +26,7 @@ export default class SDK<WebhookTrigger = PublicWebHookTrigger> extends Payments
|
|
|
26
26
|
merchants: Merchants;
|
|
27
27
|
platforms: Platforms;
|
|
28
28
|
products: Products;
|
|
29
|
+
refers: Refers;
|
|
29
30
|
refunds: Refunds;
|
|
30
31
|
stores: Stores;
|
|
31
32
|
subscriptions: Subscriptions;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SDK
|
|
3
3
|
*/
|
|
4
|
-
import { BankAccounts, Cancels, Captures, Charges, CheckoutInfo, ECFormLinks, ECForms, ECInfo, Emails, ExchangeRates, Ledgers, Merchants, Platforms, Products, Refunds, Stores, Subscriptions, TransactionTokens, Transfers, Verification, WebHooks, } from "./resources/index.js";
|
|
4
|
+
import { BankAccounts, Cancels, Captures, Charges, CheckoutInfo, ECFormLinks, ECForms, ECInfo, Emails, ExchangeRates, Ledgers, Merchants, Platforms, Products, Refunds, Stores, Subscriptions, TransactionTokens, Transfers, Verification, WebHooks, Refers, } from "./resources/index.js";
|
|
5
5
|
import { LinksProducts } from "./resources/LinksProducts.js";
|
|
6
6
|
import PaymentsSDK from "./sdk/index.js";
|
|
7
7
|
export * from "./api/index.js";
|
|
@@ -28,6 +28,7 @@ export default class SDK extends PaymentsSDK {
|
|
|
28
28
|
this.merchants = new Merchants(this.api);
|
|
29
29
|
this.platforms = new Platforms(this.api);
|
|
30
30
|
this.products = new Products(this.api);
|
|
31
|
+
this.refers = new Refers(this.api);
|
|
31
32
|
this.refunds = new Refunds(this.api);
|
|
32
33
|
this.stores = new Stores(this.api);
|
|
33
34
|
this.subscriptions = new Subscriptions(this.api);
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACH,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,WAAW,EACX,OAAO,EACP,MAAM,EACN,MAAM,EACN,aAAa,EAC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|
|
6
6
|
export class Refers extends CRUDResource {
|
|
7
7
|
authorize(storeId, data, auth) {
|
|
8
8
|
this._authorize =
|
|
9
|
-
this._authorize ?? this.defineRoute(HTTPMethod.POST, "(/stores/:storeId)/
|
|
9
|
+
this._authorize ?? this.defineRoute(HTTPMethod.POST, "(/stores/:storeId)/customers/authenticate");
|
|
10
10
|
return this._authorize(data, auth, { storeId });
|
|
11
11
|
}
|
|
12
12
|
sendCode(storeId, data, auth) {
|
|
13
13
|
this._sendCode =
|
|
14
|
-
this._sendCode ?? this.defineRoute(HTTPMethod.POST, "(/stores/:storeId)/
|
|
14
|
+
this._sendCode ?? this.defineRoute(HTTPMethod.POST, "(/stores/:storeId)/customers/authenticate");
|
|
15
15
|
return this._sendCode(data, auth, { storeId });
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
Refers.routeBase = "/stores/:storeId/
|
|
18
|
+
Refers.routeBase = "(/stores/:storeId)/customers";
|
|
19
19
|
//# sourceMappingURL=Refers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refers.js","sourceRoot":"","sources":["../../../src/resources/Refers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAc,UAAU,EAAY,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA8BjD,MAAM,OAAO,MAAO,SAAQ,YAAY;IAIpC,SAAS,CACL,OAAe,EACf,IAAwC,EACxC,IAAiB;QAEjB,IAAI,CAAC,UAAU;YACX,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Refers.js","sourceRoot":"","sources":["../../../src/resources/Refers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAc,UAAU,EAAY,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA8BjD,MAAM,OAAO,MAAO,SAAQ,YAAY;IAIpC,SAAS,CACL,OAAe,EACf,IAAwC,EACxC,IAAiB;QAEjB,IAAI,CAAC,UAAU;YACX,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,2CAA2C,CAAC,CAAC;QACtG,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAGD,QAAQ,CACJ,OAAe,EACf,IAAoC,EACpC,IAAiB;QAEjB,IAAI,CAAC,SAAS;YACV,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,2CAA2C,CAAC,CAAC;QACrG,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACnD,CAAC;;AAtBM,gBAAS,GAAG,8BAA8B,CAAC"}
|