@delopay/sdk 0.331.0 → 0.334.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-FAUZMLOT.js → chunk-GHDAF4L4.js} +72 -1
- package/dist/chunk-GHDAF4L4.js.map +1 -0
- package/dist/{index-meHCcgNA.d.cts → index-BsFcLSe4.d.cts} +145 -8
- package/dist/{index-meHCcgNA.d.ts → index-BsFcLSe4.d.ts} +145 -8
- package/dist/index.cjs +71 -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 +71 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +182 -7
- package/dist/internal.d.ts +182 -7
- package/dist/internal.js +1 -1
- package/package.json +17 -18
- package/dist/chunk-FAUZMLOT.js.map +0 -1
|
@@ -6437,6 +6437,77 @@ var SellToRestrictions = class {
|
|
|
6437
6437
|
options
|
|
6438
6438
|
);
|
|
6439
6439
|
}
|
|
6440
|
+
/**
|
|
6441
|
+
* One project's own policy, if it has one.
|
|
6442
|
+
* `GET /sell-to-restrictions/projects/{project_id}`
|
|
6443
|
+
*/
|
|
6444
|
+
async retrieveProject(projectId) {
|
|
6445
|
+
return this.request("GET", `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`);
|
|
6446
|
+
}
|
|
6447
|
+
/**
|
|
6448
|
+
* Give one project its own policy. It replaces the merchant-wide policy for
|
|
6449
|
+
* every shop of the project's subtree without an override or a nearer
|
|
6450
|
+
* project policy, from their next payment on. An empty `blocked_countries`
|
|
6451
|
+
* lifts every restriction for them. Recorded in the audit log first.
|
|
6452
|
+
* `PUT /sell-to-restrictions/projects/{project_id}`
|
|
6453
|
+
*/
|
|
6454
|
+
async updateProjectPolicy(projectId, params, options) {
|
|
6455
|
+
return this.request("PUT", `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`, {
|
|
6456
|
+
body: params,
|
|
6457
|
+
...options
|
|
6458
|
+
});
|
|
6459
|
+
}
|
|
6460
|
+
/**
|
|
6461
|
+
* Remove one project's policy, so its subtree inherits from above again.
|
|
6462
|
+
* Removing a policy the project does not have changes nothing.
|
|
6463
|
+
* `DELETE /sell-to-restrictions/projects/{project_id}`
|
|
6464
|
+
*/
|
|
6465
|
+
async deleteProjectPolicy(projectId, options) {
|
|
6466
|
+
return this.request(
|
|
6467
|
+
"DELETE",
|
|
6468
|
+
`/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`,
|
|
6469
|
+
options
|
|
6470
|
+
);
|
|
6471
|
+
}
|
|
6472
|
+
/**
|
|
6473
|
+
* One payment connector account's own policy (todos#504), and which buyer
|
|
6474
|
+
* signals its payments can be judged on. Needs the merchant-level `Read`
|
|
6475
|
+
* rung; a shop-scoped role is refused.
|
|
6476
|
+
* `GET /sell-to-restrictions/connectors/{merchant_connector_id}`
|
|
6477
|
+
*/
|
|
6478
|
+
async retrieveConnectorPolicy(merchantConnectorId) {
|
|
6479
|
+
return this.request(
|
|
6480
|
+
"GET",
|
|
6481
|
+
`/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`
|
|
6482
|
+
);
|
|
6483
|
+
}
|
|
6484
|
+
/**
|
|
6485
|
+
* Give one payment connector account its own policy. It applies on top of
|
|
6486
|
+
* each shop's policy, in every shop the account serves, from the next
|
|
6487
|
+
* payment on: a buyer it refuses is routed to another account of the shop.
|
|
6488
|
+
* Needs the merchant-wide `Write` rung and write visibility for the
|
|
6489
|
+
* processor; recorded in the audit log first.
|
|
6490
|
+
* `PUT /sell-to-restrictions/connectors/{merchant_connector_id}`
|
|
6491
|
+
*/
|
|
6492
|
+
async updateConnectorPolicy(merchantConnectorId, params, options) {
|
|
6493
|
+
return this.request(
|
|
6494
|
+
"PUT",
|
|
6495
|
+
`/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,
|
|
6496
|
+
{ body: params, ...options }
|
|
6497
|
+
);
|
|
6498
|
+
}
|
|
6499
|
+
/**
|
|
6500
|
+
* Remove one connector account's own policy; each shop's policy still
|
|
6501
|
+
* applies. Removing a policy the account does not have changes nothing.
|
|
6502
|
+
* `DELETE /sell-to-restrictions/connectors/{merchant_connector_id}`
|
|
6503
|
+
*/
|
|
6504
|
+
async deleteConnectorPolicy(merchantConnectorId, options) {
|
|
6505
|
+
return this.request(
|
|
6506
|
+
"DELETE",
|
|
6507
|
+
`/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,
|
|
6508
|
+
options
|
|
6509
|
+
);
|
|
6510
|
+
}
|
|
6440
6511
|
/**
|
|
6441
6512
|
* Which checks each payment path performs, and how this deployment resolves
|
|
6442
6513
|
* a buyer's country — read before relying on a restriction for a path.
|
|
@@ -16019,4 +16090,4 @@ export {
|
|
|
16019
16090
|
decodeNativePanes,
|
|
16020
16091
|
encodeNativePanes
|
|
16021
16092
|
};
|
|
16022
|
-
//# sourceMappingURL=chunk-
|
|
16093
|
+
//# sourceMappingURL=chunk-GHDAF4L4.js.map
|