@delopay/sdk 0.390.0 → 0.392.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/dist/{chunk-PE7G347M.js → chunk-GN6GS4V2.js} +24 -1
- package/dist/chunk-GN6GS4V2.js.map +1 -0
- package/dist/{index-CIObKeC7.d.cts → index-C3WTfnm_.d.cts} +167 -9
- package/dist/{index-CIObKeC7.d.ts → index-C3WTfnm_.d.ts} +167 -9
- package/dist/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +23 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +19 -17
- package/dist/chunk-PE7G347M.js.map +0 -1
|
@@ -1313,6 +1313,29 @@ var Customers = class {
|
|
|
1313
1313
|
async retrieve(customerId) {
|
|
1314
1314
|
return this.request("GET", `/customers/${encodeURIComponent(customerId)}`);
|
|
1315
1315
|
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Place an existing customer in a shop of the merchant, so the shop's API keys and team members
|
|
1318
|
+
* find the customer before any payment. The customer keeps the shops they already belong to;
|
|
1319
|
+
* placing one already in the shop changes nothing (`already_in_shop`). Needs a merchant-wide key:
|
|
1320
|
+
* a key bound to one shop is refused. `POST /customers/{customer_id}/shops`
|
|
1321
|
+
*
|
|
1322
|
+
* @param customerId - The customer to place.
|
|
1323
|
+
* @param profileId - The shop. It must belong to the merchant.
|
|
1324
|
+
*/
|
|
1325
|
+
async placeInShop(customerId, profileId, options) {
|
|
1326
|
+
return this.request("POST", `/customers/${encodeURIComponent(customerId)}/shops`, {
|
|
1327
|
+
body: { profile_id: profileId },
|
|
1328
|
+
...options
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
* Place up to 500 existing customers in one shop of the merchant, for example after an import.
|
|
1333
|
+
* The answer lists every distinct customer in request order with what happened: `placed`,
|
|
1334
|
+
* `already_in_shop` or `not_found`. Needs a merchant-wide key. `POST /customers/shops/place`
|
|
1335
|
+
*/
|
|
1336
|
+
async placeManyInShop(params, options) {
|
|
1337
|
+
return this.request("POST", "/customers/shops/place", { body: params, ...options });
|
|
1338
|
+
}
|
|
1316
1339
|
/**
|
|
1317
1340
|
* Update an existing customer's details.
|
|
1318
1341
|
*
|
|
@@ -17661,4 +17684,4 @@ export {
|
|
|
17661
17684
|
decodeNativePanes,
|
|
17662
17685
|
encodeNativePanes
|
|
17663
17686
|
};
|
|
17664
|
-
//# sourceMappingURL=chunk-
|
|
17687
|
+
//# sourceMappingURL=chunk-GN6GS4V2.js.map
|