@delopay/sdk 0.112.0 → 0.113.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-3O5MU6FP.js → chunk-NY5O6S5X.js} +5 -2
- package/dist/chunk-NY5O6S5X.js.map +1 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +1 -1
- package/dist/internal.cjs +14 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +51 -1
- package/dist/internal.d.ts +51 -1
- package/dist/internal.js +11 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3O5MU6FP.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -6485,13 +6485,15 @@ interface CheckoutBrandingUpdate {
|
|
|
6485
6485
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
6486
6486
|
}
|
|
6487
6487
|
/**
|
|
6488
|
-
* Response of
|
|
6488
|
+
* Response of both checkout-branding routes: the `GET` on
|
|
6489
|
+
* `/shops/{merchant_id}/{shop_id}/checkout-branding`, and the `POST` echoing
|
|
6490
|
+
* back what it persisted.
|
|
6489
6491
|
*
|
|
6490
6492
|
* Deliberately not a `ProfileResponse`: that carries `payment_response_hash_key`
|
|
6491
6493
|
* — the webhook signing secret — plus the card-vault and authentication
|
|
6492
6494
|
* configuration, and a role that may only restyle a checkout has no business
|
|
6493
|
-
* reading any of it
|
|
6494
|
-
* else.
|
|
6495
|
+
* reading any of it, whether it asked to load the checkout or has just saved
|
|
6496
|
+
* it. This carries what the branding editor renders and nothing else.
|
|
6495
6497
|
*/
|
|
6496
6498
|
interface CheckoutBrandingResponse {
|
|
6497
6499
|
/** The shop (business profile) this branding belongs to. */
|
|
@@ -8972,9 +8974,12 @@ declare class Shops {
|
|
|
8972
8974
|
* @param merchantId - The merchant account ID.
|
|
8973
8975
|
* @param shopId - The shop (business profile) ID to restyle.
|
|
8974
8976
|
* @param params - The new `payment_link_config` blob (full replacement).
|
|
8975
|
-
* @returns The
|
|
8977
|
+
* @returns The saved branding — the same shape `retrieveCheckoutBranding`
|
|
8978
|
+
* returns, not the whole shop. A role whose only power is restyling a
|
|
8979
|
+
* checkout must not receive the webhook signing key or the card-vault
|
|
8980
|
+
* configuration back from a save.
|
|
8976
8981
|
*/
|
|
8977
|
-
updateCheckoutBranding(merchantId: string, shopId: string, params: CheckoutBrandingUpdate, options?: RequestExtras): Promise<
|
|
8982
|
+
updateCheckoutBranding(merchantId: string, shopId: string, params: CheckoutBrandingUpdate, options?: RequestExtras): Promise<CheckoutBrandingResponse>;
|
|
8978
8983
|
/**
|
|
8979
8984
|
* Read only the checkout appearance of a shop, so the role that may restyle a
|
|
8980
8985
|
* checkout can load the checkout it may restyle.
|
package/dist/index.d.ts
CHANGED
|
@@ -6485,13 +6485,15 @@ interface CheckoutBrandingUpdate {
|
|
|
6485
6485
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
6486
6486
|
}
|
|
6487
6487
|
/**
|
|
6488
|
-
* Response of
|
|
6488
|
+
* Response of both checkout-branding routes: the `GET` on
|
|
6489
|
+
* `/shops/{merchant_id}/{shop_id}/checkout-branding`, and the `POST` echoing
|
|
6490
|
+
* back what it persisted.
|
|
6489
6491
|
*
|
|
6490
6492
|
* Deliberately not a `ProfileResponse`: that carries `payment_response_hash_key`
|
|
6491
6493
|
* — the webhook signing secret — plus the card-vault and authentication
|
|
6492
6494
|
* configuration, and a role that may only restyle a checkout has no business
|
|
6493
|
-
* reading any of it
|
|
6494
|
-
* else.
|
|
6495
|
+
* reading any of it, whether it asked to load the checkout or has just saved
|
|
6496
|
+
* it. This carries what the branding editor renders and nothing else.
|
|
6495
6497
|
*/
|
|
6496
6498
|
interface CheckoutBrandingResponse {
|
|
6497
6499
|
/** The shop (business profile) this branding belongs to. */
|
|
@@ -8972,9 +8974,12 @@ declare class Shops {
|
|
|
8972
8974
|
* @param merchantId - The merchant account ID.
|
|
8973
8975
|
* @param shopId - The shop (business profile) ID to restyle.
|
|
8974
8976
|
* @param params - The new `payment_link_config` blob (full replacement).
|
|
8975
|
-
* @returns The
|
|
8977
|
+
* @returns The saved branding — the same shape `retrieveCheckoutBranding`
|
|
8978
|
+
* returns, not the whole shop. A role whose only power is restyling a
|
|
8979
|
+
* checkout must not receive the webhook signing key or the card-vault
|
|
8980
|
+
* configuration back from a save.
|
|
8976
8981
|
*/
|
|
8977
|
-
updateCheckoutBranding(merchantId: string, shopId: string, params: CheckoutBrandingUpdate, options?: RequestExtras): Promise<
|
|
8982
|
+
updateCheckoutBranding(merchantId: string, shopId: string, params: CheckoutBrandingUpdate, options?: RequestExtras): Promise<CheckoutBrandingResponse>;
|
|
8978
8983
|
/**
|
|
8979
8984
|
* Read only the checkout appearance of a shop, so the role that may restyle a
|
|
8980
8985
|
* checkout can load the checkout it may restyle.
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -2978,7 +2978,10 @@ var Shops = class {
|
|
|
2978
2978
|
* @param merchantId - The merchant account ID.
|
|
2979
2979
|
* @param shopId - The shop (business profile) ID to restyle.
|
|
2980
2980
|
* @param params - The new `payment_link_config` blob (full replacement).
|
|
2981
|
-
* @returns The
|
|
2981
|
+
* @returns The saved branding — the same shape `retrieveCheckoutBranding`
|
|
2982
|
+
* returns, not the whole shop. A role whose only power is restyling a
|
|
2983
|
+
* checkout must not receive the webhook signing key or the card-vault
|
|
2984
|
+
* configuration back from a save.
|
|
2982
2985
|
*/
|
|
2983
2986
|
async updateCheckoutBranding(merchantId, shopId, params, options) {
|
|
2984
2987
|
return this.request(
|
|
@@ -7132,6 +7135,13 @@ var AdminPortal = class {
|
|
|
7132
7135
|
* against signup policy + JWT blacklist). `reset_2fa` clears TOTP state
|
|
7133
7136
|
* so the user re-enrolls on next login. `is_active` supports both
|
|
7134
7137
|
* directions: false soft-disables, true reactivates a soft-disabled user.
|
|
7138
|
+
*
|
|
7139
|
+
* Throws a `400` with `code === 'UR_66'` when the change would leave a
|
|
7140
|
+
* merchant with no administrator — `is_active: false` or `is_verified:
|
|
7141
|
+
* false` on, or a `role_id` demoting, the only active user whose role can
|
|
7142
|
+
* manage that merchant's users. Nothing is written. `error.data` carries a
|
|
7143
|
+
* {@link LastAdministratorRefusal} naming the merchant and which change was
|
|
7144
|
+
* refused; render that rather than the generic message.
|
|
7135
7145
|
*/
|
|
7136
7146
|
async updateUser(userId, body) {
|
|
7137
7147
|
return this.request("PATCH", `/admin-portal/users/${encodeURIComponent(userId)}`, { body });
|
|
@@ -7140,6 +7150,9 @@ var AdminPortal = class {
|
|
|
7140
7150
|
* Soft-delete a user globally: deactivates the row, blacklists existing
|
|
7141
7151
|
* JWTs, and wipes credentials. Distinct from `deleteUserRole`, which
|
|
7142
7152
|
* removes a single role binding while leaving the user signed-in elsewhere.
|
|
7153
|
+
*
|
|
7154
|
+
* Throws the same `UR_66` as {@link updateUser} when the user is the last
|
|
7155
|
+
* administrator of any merchant they belong to, with `route: 'delete'`.
|
|
7143
7156
|
*/
|
|
7144
7157
|
async deleteUser(userId) {
|
|
7145
7158
|
return this.request("DELETE", `/admin-portal/users/${encodeURIComponent(userId)}`);
|