@delopay/sdk 0.59.0 → 0.60.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/index.cjs CHANGED
@@ -438,6 +438,22 @@ var Connectors = class {
438
438
  `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}`
439
439
  );
440
440
  }
441
+ /**
442
+ * Clone a connector into another shop (business profile) of the same
443
+ * merchant. `POST /account/{accountId}/connectors/{connectorId}/clone`
444
+ *
445
+ * Credentials are copied server-side, re-encrypted under the same merchant
446
+ * key — the caller never handles them (list/retrieve mask credentials, so a
447
+ * client-side copy is impossible). Returns the newly created connector in
448
+ * the target shop.
449
+ */
450
+ async clone(accountId, connectorId, params) {
451
+ return this.request(
452
+ "POST",
453
+ `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/clone`,
454
+ { body: params }
455
+ );
456
+ }
441
457
  // --- Advanced operations (Task 4.8) ---
442
458
  /** Verify connector credentials. `POST /account/connectors/verify` */
443
459
  async verify(params) {