@delopay/sdk 0.28.0 → 0.30.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
@@ -185,16 +185,21 @@ var Authentication = class {
185
185
  body: params
186
186
  });
187
187
  }
188
- async sync(authId, params) {
189
- return this.request("POST", `/authentication/${encodeURIComponent(authId)}/sync`, {
190
- body: params
191
- });
188
+ /** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */
189
+ async sync(merchantId, authId, params) {
190
+ return this.request(
191
+ "POST",
192
+ `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/sync`,
193
+ { body: params }
194
+ );
192
195
  }
193
- /** Redirect after authentication. `POST /authentication/{authId}/redirect` */
194
- async redirect(authId, params) {
195
- return this.request("POST", `/authentication/${encodeURIComponent(authId)}/redirect`, {
196
- body: params
197
- });
196
+ /** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */
197
+ async redirect(merchantId, authId, params) {
198
+ return this.request(
199
+ "POST",
200
+ `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/redirect`,
201
+ { body: params }
202
+ );
198
203
  }
199
204
  /** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
200
205
  async enabledAuthnMethodsToken(authId, params) {
@@ -831,11 +836,11 @@ var PaymentLinks = class {
831
836
  `/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
832
837
  );
833
838
  }
834
- /** Get payment link status. `GET /payment-linkstatus/{merchantId}/{paymentId}` */
839
+ /** Get payment link status. `GET /payment-link/status/{merchantId}/{paymentId}` */
835
840
  async status(merchantId, paymentId) {
836
841
  return this.request(
837
842
  "GET",
838
- `/payment-linkstatus/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
843
+ `/payment-link/status/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
839
844
  );
840
845
  }
841
846
  };
@@ -1308,13 +1313,13 @@ var Payouts = class {
1308
1313
  async listByFilter(params) {
1309
1314
  return this.request("POST", "/payouts/list", { body: params });
1310
1315
  }
1311
- /** Get payout filter options. `POST /payouts/filter` */
1316
+ /** Get payout filter options. `GET /payouts/filter` */
1312
1317
  async getFilters(params) {
1313
- return this.request("POST", "/payouts/filter", { body: params });
1318
+ return this.request("GET", "/payouts/filter", { query: params });
1314
1319
  }
1315
- /** Get payout filters (profile-scoped). `POST /payouts/profile/filter` */
1320
+ /** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */
1316
1321
  async getFiltersByProfile(params) {
1317
- return this.request("POST", "/payouts/profile/filter", { body: params });
1322
+ return this.request("GET", "/payouts/profile/filter", { query: params });
1318
1323
  }
1319
1324
  /** Get payout aggregates. `GET /payouts/aggregate` */
1320
1325
  async aggregate(params) {
@@ -2088,7 +2093,7 @@ var Users = class {
2088
2093
  return this.request("POST", "/user/employees/invite", { body: params });
2089
2094
  }
2090
2095
  async acceptInvitation(params) {
2091
- return this.request("POST", "/user/invite/accept", { body: params });
2096
+ return this.request("POST", "/user/employees/invite/accept", { body: params });
2092
2097
  }
2093
2098
  /**
2094
2099
  * Accept an invitation via the email-link flow.
@@ -2212,12 +2217,14 @@ var Users = class {
2212
2217
  return this.request("POST", "/user/auth/select", { body: params });
2213
2218
  }
2214
2219
  /** List users in lineage. `GET /user/employees/list` */
2215
- async listUsersInLineage() {
2216
- return this.request("GET", "/user/employees/list");
2220
+ async listUsersInLineage(params) {
2221
+ return this.request("GET", "/user/employees/list", {
2222
+ query: params
2223
+ });
2217
2224
  }
2218
- /** Resend invite. `POST /user/employees/resend-invite` */
2225
+ /** Resend invite. `POST /user/resend-invite` */
2219
2226
  async resendInvite(params) {
2220
- return this.request("POST", "/user/employees/resend-invite", { body: params });
2227
+ return this.request("POST", "/user/resend-invite", { body: params });
2221
2228
  }
2222
2229
  /**
2223
2230
  * Get the caller's parent permission groups + scopes.
@@ -2246,14 +2253,6 @@ var Users = class {
2246
2253
  async listUpdatableRoles() {
2247
2254
  return this.request("GET", "/user/role/list/update");
2248
2255
  }
2249
- /** Get permission info. `GET /user/permission-info` */
2250
- async getPermissionInfo() {
2251
- return this.request("GET", "/user/permission-info");
2252
- }
2253
- /** Get module list. `GET /user/module/list` */
2254
- async getModuleList() {
2255
- return this.request("GET", "/user/module/list");
2256
- }
2257
2256
  /** Get parent list. `GET /user/parent/list` */
2258
2257
  async getParentList() {
2259
2258
  return this.request("GET", "/user/parent/list");