univapay-node 4.0.32 → 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.
|
@@ -9,15 +9,15 @@ const CRUDResource_js_1 = require("./CRUDResource.js");
|
|
|
9
9
|
class Refers extends CRUDResource_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"}
|
|
@@ -6,14 +6,14 @@ import { CRUDResource } from "./CRUDResource.js";
|
|
|
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"}
|