@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 CHANGED
@@ -136,6 +136,30 @@ var AdminPortal = class {
136
136
  query: params
137
137
  });
138
138
  }
139
+ /**
140
+ * Retrieve a merchant account via the admin portal. Unlike
141
+ * `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
142
+ * key) and does not require the JWT to be scoped to the target merchant.
143
+ */
144
+ async retrieveAccount(merchantId) {
145
+ return this.request("GET", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);
146
+ }
147
+ /**
148
+ * Update a merchant account via the admin portal. Authenticated via admin JWT
149
+ * or admin API key.
150
+ */
151
+ async updateAccount(merchantId, params) {
152
+ return this.request("POST", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`, {
153
+ body: params
154
+ });
155
+ }
156
+ /**
157
+ * Delete a merchant account via the admin portal. Authenticated via admin JWT
158
+ * or admin API key.
159
+ */
160
+ async deleteAccount(merchantId) {
161
+ return this.request("DELETE", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);
162
+ }
139
163
  };
140
164
 
141
165
  // src/resources/apiKeys.ts