@delopay/sdk 0.332.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.
@@ -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-FAUZMLOT.js.map
16093
+ //# sourceMappingURL=chunk-GHDAF4L4.js.map