@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.
@@ -118,16 +118,21 @@ var Authentication = class {
118
118
  body: params
119
119
  });
120
120
  }
121
- async sync(authId, params) {
122
- return this.request("POST", `/authentication/${encodeURIComponent(authId)}/sync`, {
123
- body: params
124
- });
121
+ /** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */
122
+ async sync(merchantId, authId, params) {
123
+ return this.request(
124
+ "POST",
125
+ `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/sync`,
126
+ { body: params }
127
+ );
125
128
  }
126
- /** Redirect after authentication. `POST /authentication/{authId}/redirect` */
127
- async redirect(authId, params) {
128
- return this.request("POST", `/authentication/${encodeURIComponent(authId)}/redirect`, {
129
- body: params
130
- });
129
+ /** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */
130
+ async redirect(merchantId, authId, params) {
131
+ return this.request(
132
+ "POST",
133
+ `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/redirect`,
134
+ { body: params }
135
+ );
131
136
  }
132
137
  /** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
133
138
  async enabledAuthnMethodsToken(authId, params) {
@@ -764,11 +769,11 @@ var PaymentLinks = class {
764
769
  `/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
765
770
  );
766
771
  }
767
- /** Get payment link status. `GET /payment-linkstatus/{merchantId}/{paymentId}` */
772
+ /** Get payment link status. `GET /payment-link/status/{merchantId}/{paymentId}` */
768
773
  async status(merchantId, paymentId) {
769
774
  return this.request(
770
775
  "GET",
771
- `/payment-linkstatus/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
776
+ `/payment-link/status/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
772
777
  );
773
778
  }
774
779
  };
@@ -1241,13 +1246,13 @@ var Payouts = class {
1241
1246
  async listByFilter(params) {
1242
1247
  return this.request("POST", "/payouts/list", { body: params });
1243
1248
  }
1244
- /** Get payout filter options. `POST /payouts/filter` */
1249
+ /** Get payout filter options. `GET /payouts/filter` */
1245
1250
  async getFilters(params) {
1246
- return this.request("POST", "/payouts/filter", { body: params });
1251
+ return this.request("GET", "/payouts/filter", { query: params });
1247
1252
  }
1248
- /** Get payout filters (profile-scoped). `POST /payouts/profile/filter` */
1253
+ /** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */
1249
1254
  async getFiltersByProfile(params) {
1250
- return this.request("POST", "/payouts/profile/filter", { body: params });
1255
+ return this.request("GET", "/payouts/profile/filter", { query: params });
1251
1256
  }
1252
1257
  /** Get payout aggregates. `GET /payouts/aggregate` */
1253
1258
  async aggregate(params) {
@@ -2021,7 +2026,7 @@ var Users = class {
2021
2026
  return this.request("POST", "/user/employees/invite", { body: params });
2022
2027
  }
2023
2028
  async acceptInvitation(params) {
2024
- return this.request("POST", "/user/invite/accept", { body: params });
2029
+ return this.request("POST", "/user/employees/invite/accept", { body: params });
2025
2030
  }
2026
2031
  /**
2027
2032
  * Accept an invitation via the email-link flow.
@@ -2145,12 +2150,14 @@ var Users = class {
2145
2150
  return this.request("POST", "/user/auth/select", { body: params });
2146
2151
  }
2147
2152
  /** List users in lineage. `GET /user/employees/list` */
2148
- async listUsersInLineage() {
2149
- return this.request("GET", "/user/employees/list");
2153
+ async listUsersInLineage(params) {
2154
+ return this.request("GET", "/user/employees/list", {
2155
+ query: params
2156
+ });
2150
2157
  }
2151
- /** Resend invite. `POST /user/employees/resend-invite` */
2158
+ /** Resend invite. `POST /user/resend-invite` */
2152
2159
  async resendInvite(params) {
2153
- return this.request("POST", "/user/employees/resend-invite", { body: params });
2160
+ return this.request("POST", "/user/resend-invite", { body: params });
2154
2161
  }
2155
2162
  /**
2156
2163
  * Get the caller's parent permission groups + scopes.
@@ -2179,14 +2186,6 @@ var Users = class {
2179
2186
  async listUpdatableRoles() {
2180
2187
  return this.request("GET", "/user/role/list/update");
2181
2188
  }
2182
- /** Get permission info. `GET /user/permission-info` */
2183
- async getPermissionInfo() {
2184
- return this.request("GET", "/user/permission-info");
2185
- }
2186
- /** Get module list. `GET /user/module/list` */
2187
- async getModuleList() {
2188
- return this.request("GET", "/user/module/list");
2189
- }
2190
2189
  /** Get parent list. `GET /user/parent/list` */
2191
2190
  async getParentList() {
2192
2191
  return this.request("GET", "/user/parent/list");
@@ -3622,4 +3621,4 @@ export {
3622
3621
  applyBrandingVariables,
3623
3622
  shadowFor
3624
3623
  };
3625
- //# sourceMappingURL=chunk-U6GMDSVQ.js.map
3624
+ //# sourceMappingURL=chunk-INP6UXMJ.js.map