@delopay/sdk 0.4.0 → 0.5.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 +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1771,6 +1771,22 @@ declare class AdminPortal {
|
|
|
1771
1771
|
analytics(params: AdminAnalyticsRequest): Promise<PlatformAnalyticsResponse>;
|
|
1772
1772
|
overviewStats(): Promise<OverviewStatsResponse>;
|
|
1773
1773
|
paymentAnalytics(params: PaymentAnalyticsRequest): Promise<PaymentAnalyticsResponse>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Retrieve a merchant account via the admin portal. Unlike
|
|
1776
|
+
* `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
|
|
1777
|
+
* key) and does not require the JWT to be scoped to the target merchant.
|
|
1778
|
+
*/
|
|
1779
|
+
retrieveAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1780
|
+
/**
|
|
1781
|
+
* Update a merchant account via the admin portal. Authenticated via admin JWT
|
|
1782
|
+
* or admin API key.
|
|
1783
|
+
*/
|
|
1784
|
+
updateAccount(merchantId: string, params: MerchantAccountUpdateRequest): Promise<MerchantAccountResponse>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Delete a merchant account via the admin portal. Authenticated via admin JWT
|
|
1787
|
+
* or admin API key.
|
|
1788
|
+
*/
|
|
1789
|
+
deleteAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1774
1790
|
}
|
|
1775
1791
|
|
|
1776
1792
|
/** Create and manage API keys for a merchant account. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1771,6 +1771,22 @@ declare class AdminPortal {
|
|
|
1771
1771
|
analytics(params: AdminAnalyticsRequest): Promise<PlatformAnalyticsResponse>;
|
|
1772
1772
|
overviewStats(): Promise<OverviewStatsResponse>;
|
|
1773
1773
|
paymentAnalytics(params: PaymentAnalyticsRequest): Promise<PaymentAnalyticsResponse>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Retrieve a merchant account via the admin portal. Unlike
|
|
1776
|
+
* `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
|
|
1777
|
+
* key) and does not require the JWT to be scoped to the target merchant.
|
|
1778
|
+
*/
|
|
1779
|
+
retrieveAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1780
|
+
/**
|
|
1781
|
+
* Update a merchant account via the admin portal. Authenticated via admin JWT
|
|
1782
|
+
* or admin API key.
|
|
1783
|
+
*/
|
|
1784
|
+
updateAccount(merchantId: string, params: MerchantAccountUpdateRequest): Promise<MerchantAccountResponse>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Delete a merchant account via the admin portal. Authenticated via admin JWT
|
|
1787
|
+
* or admin API key.
|
|
1788
|
+
*/
|
|
1789
|
+
deleteAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1774
1790
|
}
|
|
1775
1791
|
|
|
1776
1792
|
/** Create and manage API keys for a merchant account. */
|
package/dist/index.js
CHANGED
|
@@ -96,6 +96,30 @@ var AdminPortal = class {
|
|
|
96
96
|
query: params
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Retrieve a merchant account via the admin portal. Unlike
|
|
101
|
+
* `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
|
|
102
|
+
* key) and does not require the JWT to be scoped to the target merchant.
|
|
103
|
+
*/
|
|
104
|
+
async retrieveAccount(merchantId) {
|
|
105
|
+
return this.request("GET", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Update a merchant account via the admin portal. Authenticated via admin JWT
|
|
109
|
+
* or admin API key.
|
|
110
|
+
*/
|
|
111
|
+
async updateAccount(merchantId, params) {
|
|
112
|
+
return this.request("POST", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`, {
|
|
113
|
+
body: params
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Delete a merchant account via the admin portal. Authenticated via admin JWT
|
|
118
|
+
* or admin API key.
|
|
119
|
+
*/
|
|
120
|
+
async deleteAccount(merchantId) {
|
|
121
|
+
return this.request("DELETE", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);
|
|
122
|
+
}
|
|
99
123
|
};
|
|
100
124
|
|
|
101
125
|
// src/resources/apiKeys.ts
|