@delopay/sdk 0.270.0 → 0.271.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-HEDL3UHE.js → chunk-PTELZZG3.js} +5 -3
- package/dist/chunk-PTELZZG3.js.map +1 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -9
- package/dist/index.d.ts +21 -9
- package/dist/index.js +1 -1
- package/dist/internal.cjs +4 -2
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/package.json +17 -18
- package/dist/chunk-HEDL3UHE.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -8866,14 +8866,18 @@ interface ConnectorShopUpdateRequest {
|
|
|
8866
8866
|
/** `true` switches the connector off in the shop, `false` back on. */
|
|
8867
8867
|
disabled: boolean;
|
|
8868
8868
|
}
|
|
8869
|
-
/** The shops a connector account serves (todos#320).
|
|
8869
|
+
/** The shops a connector account serves (todos#320). Every shop on it is
|
|
8870
|
+
* treated the same: the account, not a shop, holds its name, credentials,
|
|
8871
|
+
* webhook and limits (todos#407). */
|
|
8870
8872
|
interface ConnectorShopsResponse {
|
|
8871
8873
|
merchant_connector_id: string;
|
|
8872
|
-
/** The
|
|
8874
|
+
/** The shop the connector was created in. It holds nothing of the
|
|
8875
|
+
* connector's and may have stopped using it: read membership from
|
|
8876
|
+
* `assigned_profile_ids`. */
|
|
8873
8877
|
profile_id: string;
|
|
8874
|
-
/**
|
|
8878
|
+
/** Shops, besides `profile_id`, the connector serves. */
|
|
8875
8879
|
shared_profile_ids: string[];
|
|
8876
|
-
/** The shops
|
|
8880
|
+
/** The shops the connector serves and is switched off in. */
|
|
8877
8881
|
disabled_profile_ids: string[];
|
|
8878
8882
|
/** Every shop the connector serves, switched on there or not. */
|
|
8879
8883
|
assigned_profile_ids: string[];
|
|
@@ -8911,7 +8915,6 @@ interface ShopCreationCurrencyPolicy {
|
|
|
8911
8915
|
/** How a connector account's currency policy applies in one shop. */
|
|
8912
8916
|
interface ConnectorShopCurrencies {
|
|
8913
8917
|
profile_id: string;
|
|
8914
|
-
home: boolean;
|
|
8915
8918
|
disabled: boolean;
|
|
8916
8919
|
/** The shop's own narrowing. `null`: inherits the account's list. */
|
|
8917
8920
|
allowed_currencies: Currency[] | null;
|
|
@@ -8946,7 +8949,8 @@ interface ConnectorCurrencyShopImpact {
|
|
|
8946
8949
|
interface ConnectorCurrencyPolicyResponse {
|
|
8947
8950
|
merchant_connector_id: string;
|
|
8948
8951
|
connector_name: string;
|
|
8949
|
-
/** The connector
|
|
8952
|
+
/** The shop the connector was created in, which may have stopped using it.
|
|
8953
|
+
* The shops it serves are `shops`. */
|
|
8950
8954
|
profile_id: string;
|
|
8951
8955
|
/** The account's own list. `null`: every currency the provider supports. */
|
|
8952
8956
|
allowed_currencies: Currency[] | null;
|
|
@@ -8973,12 +8977,18 @@ interface ConnectorResponse {
|
|
|
8973
8977
|
connector_type: ConnectorType;
|
|
8974
8978
|
connector_name: Connector;
|
|
8975
8979
|
merchant_connector_id: string;
|
|
8980
|
+
/** The shop the connector was created in, which may have stopped using it
|
|
8981
|
+
* (todos#407). Read membership from `assigned_profile_ids`. */
|
|
8976
8982
|
profile_id: string;
|
|
8977
8983
|
/** Shops, besides `profile_id`, this connector serves (todos#320). Absent
|
|
8978
8984
|
* on a router older than the field. */
|
|
8979
8985
|
shared_profile_ids?: string[];
|
|
8980
|
-
/** Shops
|
|
8986
|
+
/** Shops this connector serves and is switched off in. */
|
|
8981
8987
|
disabled_profile_ids?: string[];
|
|
8988
|
+
/** Every shop this connector serves, switched on there or not (todos#407).
|
|
8989
|
+
* Absent on a router older than the field, where the creation shop could
|
|
8990
|
+
* not leave and membership is `profile_id` plus `shared_profile_ids`. */
|
|
8991
|
+
assigned_profile_ids?: string[];
|
|
8982
8992
|
status: string;
|
|
8983
8993
|
/**
|
|
8984
8994
|
* Whether a LIVE webhook signing secret is stored on this connector.
|
|
@@ -20468,8 +20478,10 @@ declare class Connectors {
|
|
|
20468
20478
|
*/
|
|
20469
20479
|
setShopDisabled(accountId: string, connectorId: string, profileId: string, params: ConnectorShopUpdateRequest): Promise<ConnectorShopsResponse>;
|
|
20470
20480
|
/**
|
|
20471
|
-
* Stop a connector serving one shop
|
|
20472
|
-
*
|
|
20481
|
+
* Stop a connector serving one shop (todos#407). Any shop may leave, the
|
|
20482
|
+
* one the connector was created in included, while another one stays: the
|
|
20483
|
+
* last shop is refused, and the connector is deleted instead. The account,
|
|
20484
|
+
* its limits and every other shop on it are unaffected.
|
|
20473
20485
|
* `DELETE /account/{accountId}/connectors/{connectorId}/shops/{profileId}`
|
|
20474
20486
|
*/
|
|
20475
20487
|
removeShop(accountId: string, connectorId: string, profileId: string): Promise<ConnectorShopsResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -8866,14 +8866,18 @@ interface ConnectorShopUpdateRequest {
|
|
|
8866
8866
|
/** `true` switches the connector off in the shop, `false` back on. */
|
|
8867
8867
|
disabled: boolean;
|
|
8868
8868
|
}
|
|
8869
|
-
/** The shops a connector account serves (todos#320).
|
|
8869
|
+
/** The shops a connector account serves (todos#320). Every shop on it is
|
|
8870
|
+
* treated the same: the account, not a shop, holds its name, credentials,
|
|
8871
|
+
* webhook and limits (todos#407). */
|
|
8870
8872
|
interface ConnectorShopsResponse {
|
|
8871
8873
|
merchant_connector_id: string;
|
|
8872
|
-
/** The
|
|
8874
|
+
/** The shop the connector was created in. It holds nothing of the
|
|
8875
|
+
* connector's and may have stopped using it: read membership from
|
|
8876
|
+
* `assigned_profile_ids`. */
|
|
8873
8877
|
profile_id: string;
|
|
8874
|
-
/**
|
|
8878
|
+
/** Shops, besides `profile_id`, the connector serves. */
|
|
8875
8879
|
shared_profile_ids: string[];
|
|
8876
|
-
/** The shops
|
|
8880
|
+
/** The shops the connector serves and is switched off in. */
|
|
8877
8881
|
disabled_profile_ids: string[];
|
|
8878
8882
|
/** Every shop the connector serves, switched on there or not. */
|
|
8879
8883
|
assigned_profile_ids: string[];
|
|
@@ -8911,7 +8915,6 @@ interface ShopCreationCurrencyPolicy {
|
|
|
8911
8915
|
/** How a connector account's currency policy applies in one shop. */
|
|
8912
8916
|
interface ConnectorShopCurrencies {
|
|
8913
8917
|
profile_id: string;
|
|
8914
|
-
home: boolean;
|
|
8915
8918
|
disabled: boolean;
|
|
8916
8919
|
/** The shop's own narrowing. `null`: inherits the account's list. */
|
|
8917
8920
|
allowed_currencies: Currency[] | null;
|
|
@@ -8946,7 +8949,8 @@ interface ConnectorCurrencyShopImpact {
|
|
|
8946
8949
|
interface ConnectorCurrencyPolicyResponse {
|
|
8947
8950
|
merchant_connector_id: string;
|
|
8948
8951
|
connector_name: string;
|
|
8949
|
-
/** The connector
|
|
8952
|
+
/** The shop the connector was created in, which may have stopped using it.
|
|
8953
|
+
* The shops it serves are `shops`. */
|
|
8950
8954
|
profile_id: string;
|
|
8951
8955
|
/** The account's own list. `null`: every currency the provider supports. */
|
|
8952
8956
|
allowed_currencies: Currency[] | null;
|
|
@@ -8973,12 +8977,18 @@ interface ConnectorResponse {
|
|
|
8973
8977
|
connector_type: ConnectorType;
|
|
8974
8978
|
connector_name: Connector;
|
|
8975
8979
|
merchant_connector_id: string;
|
|
8980
|
+
/** The shop the connector was created in, which may have stopped using it
|
|
8981
|
+
* (todos#407). Read membership from `assigned_profile_ids`. */
|
|
8976
8982
|
profile_id: string;
|
|
8977
8983
|
/** Shops, besides `profile_id`, this connector serves (todos#320). Absent
|
|
8978
8984
|
* on a router older than the field. */
|
|
8979
8985
|
shared_profile_ids?: string[];
|
|
8980
|
-
/** Shops
|
|
8986
|
+
/** Shops this connector serves and is switched off in. */
|
|
8981
8987
|
disabled_profile_ids?: string[];
|
|
8988
|
+
/** Every shop this connector serves, switched on there or not (todos#407).
|
|
8989
|
+
* Absent on a router older than the field, where the creation shop could
|
|
8990
|
+
* not leave and membership is `profile_id` plus `shared_profile_ids`. */
|
|
8991
|
+
assigned_profile_ids?: string[];
|
|
8982
8992
|
status: string;
|
|
8983
8993
|
/**
|
|
8984
8994
|
* Whether a LIVE webhook signing secret is stored on this connector.
|
|
@@ -20468,8 +20478,10 @@ declare class Connectors {
|
|
|
20468
20478
|
*/
|
|
20469
20479
|
setShopDisabled(accountId: string, connectorId: string, profileId: string, params: ConnectorShopUpdateRequest): Promise<ConnectorShopsResponse>;
|
|
20470
20480
|
/**
|
|
20471
|
-
* Stop a connector serving one shop
|
|
20472
|
-
*
|
|
20481
|
+
* Stop a connector serving one shop (todos#407). Any shop may leave, the
|
|
20482
|
+
* one the connector was created in included, while another one stays: the
|
|
20483
|
+
* last shop is refused, and the connector is deleted instead. The account,
|
|
20484
|
+
* its limits and every other shop on it are unaffected.
|
|
20473
20485
|
* `DELETE /account/{accountId}/connectors/{connectorId}/shops/{profileId}`
|
|
20474
20486
|
*/
|
|
20475
20487
|
removeShop(accountId: string, connectorId: string, profileId: string): Promise<ConnectorShopsResponse>;
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -939,8 +939,10 @@ var Connectors = class {
|
|
|
939
939
|
);
|
|
940
940
|
}
|
|
941
941
|
/**
|
|
942
|
-
* Stop a connector serving one shop
|
|
943
|
-
*
|
|
942
|
+
* Stop a connector serving one shop (todos#407). Any shop may leave, the
|
|
943
|
+
* one the connector was created in included, while another one stays: the
|
|
944
|
+
* last shop is refused, and the connector is deleted instead. The account,
|
|
945
|
+
* its limits and every other shop on it are unaffected.
|
|
944
946
|
* `DELETE /account/{accountId}/connectors/{connectorId}/shops/{profileId}`
|
|
945
947
|
*/
|
|
946
948
|
async removeShop(accountId, connectorId, profileId) {
|