@delopay/sdk 0.106.0 → 0.108.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-P56D2ZU2.js → chunk-C2O3D7ZM.js} +47 -1
- package/dist/chunk-C2O3D7ZM.js.map +1 -0
- package/dist/index.cjs +46 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +174 -6
- package/dist/index.d.ts +174 -6
- package/dist/index.js +1 -1
- package/dist/internal.cjs +46 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-P56D2ZU2.js.map +0 -1
|
@@ -439,6 +439,11 @@ var Connectors = class {
|
|
|
439
439
|
* This is the retrieve path alone. `create` and `update` echo back what the
|
|
440
440
|
* caller sent, and `clone` returns the *copied* secrets — see that method.
|
|
441
441
|
*
|
|
442
|
+
* Because the value is gone, `has_live_webhook_secret` and
|
|
443
|
+
* `has_sandbox_webhook_secret` are what tell a stored webhook signing secret
|
|
444
|
+
* from an unconfigured one. Render those; never infer configuration from the
|
|
445
|
+
* `null` block.
|
|
446
|
+
*
|
|
442
447
|
* `GET /account/{accountId}/connectors/{connectorId}`
|
|
443
448
|
*/
|
|
444
449
|
async retrieve(accountId, connectorId) {
|
|
@@ -509,6 +514,21 @@ var Connectors = class {
|
|
|
509
514
|
`/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/epayouts/catalog/sync`
|
|
510
515
|
);
|
|
511
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* Update a connector account.
|
|
519
|
+
*
|
|
520
|
+
* `connector_webhook_details` **merges** into the stored block key by key
|
|
521
|
+
* (be#992): an absent key keeps its stored secret, an explicit value is
|
|
522
|
+
* written, and an explicit empty string clears that secret. Send only the
|
|
523
|
+
* keys the operator typed — padding the other environment's keys with `''`
|
|
524
|
+
* clears a live signing secret and inbound webhooks stop verifying.
|
|
525
|
+
*
|
|
526
|
+
* The other credential-bearing fields — `connector_wallets_details`,
|
|
527
|
+
* `pm_auth_config`, `additional_merchant_data` — are still whole-value
|
|
528
|
+
* replacements: omit them unless you are writing a complete new value.
|
|
529
|
+
*
|
|
530
|
+
* `POST /account/{accountId}/connectors/{connectorId}`
|
|
531
|
+
*/
|
|
512
532
|
async update(accountId, connectorId, params) {
|
|
513
533
|
return this.request(
|
|
514
534
|
"POST",
|
|
@@ -2804,6 +2824,32 @@ var Shops = class {
|
|
|
2804
2824
|
{ body: params, ...options }
|
|
2805
2825
|
);
|
|
2806
2826
|
}
|
|
2827
|
+
/**
|
|
2828
|
+
* Read only the checkout appearance of a shop, so the role that may restyle a
|
|
2829
|
+
* checkout can load the checkout it may restyle.
|
|
2830
|
+
*
|
|
2831
|
+
* Gated on `ProfileCheckoutBrandingRead` — the read twin of the
|
|
2832
|
+
* `ProfileCheckoutBrandingEdit` guard on `updateCheckoutBranding` above.
|
|
2833
|
+
* Prefer this over `shops.retrieve` for the branding editor: `retrieve`
|
|
2834
|
+
* returns the whole profile, including the webhook signing key and the
|
|
2835
|
+
* card-vault configuration, and needs the shop-read permission for exactly
|
|
2836
|
+
* that reason.
|
|
2837
|
+
*
|
|
2838
|
+
* `GET /shops/{merchantId}/{shopId}/checkout-branding`
|
|
2839
|
+
*
|
|
2840
|
+
* @param merchantId - The merchant account ID.
|
|
2841
|
+
* @param shopId - The shop (business profile) ID whose branding to read.
|
|
2842
|
+
* @returns The shop's id, name and stored `payment_link_config`. That config
|
|
2843
|
+
* is `null` when the shop has never been styled — the untouched default, not
|
|
2844
|
+
* an error, and distinct from a stored-but-empty style.
|
|
2845
|
+
*/
|
|
2846
|
+
async retrieveCheckoutBranding(merchantId, shopId, options) {
|
|
2847
|
+
return this.request(
|
|
2848
|
+
"GET",
|
|
2849
|
+
`/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding`,
|
|
2850
|
+
options
|
|
2851
|
+
);
|
|
2852
|
+
}
|
|
2807
2853
|
};
|
|
2808
2854
|
|
|
2809
2855
|
// src/resources/stripeConnect.ts
|
|
@@ -6536,4 +6582,4 @@ export {
|
|
|
6536
6582
|
focusedCheckoutUrl,
|
|
6537
6583
|
CHECKOUT_EVENT_KINDS
|
|
6538
6584
|
};
|
|
6539
|
-
//# sourceMappingURL=chunk-
|
|
6585
|
+
//# sourceMappingURL=chunk-C2O3D7ZM.js.map
|