@delopay/sdk 0.29.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.
@@ -2150,9 +2155,9 @@ var Users = class {
2150
2155
  query: params
2151
2156
  });
2152
2157
  }
2153
- /** Resend invite. `POST /user/employees/resend-invite` */
2158
+ /** Resend invite. `POST /user/resend-invite` */
2154
2159
  async resendInvite(params) {
2155
- return this.request("POST", "/user/employees/resend-invite", { body: params });
2160
+ return this.request("POST", "/user/resend-invite", { body: params });
2156
2161
  }
2157
2162
  /**
2158
2163
  * Get the caller's parent permission groups + scopes.
@@ -2181,14 +2186,6 @@ var Users = class {
2181
2186
  async listUpdatableRoles() {
2182
2187
  return this.request("GET", "/user/role/list/update");
2183
2188
  }
2184
- /** Get permission info. `GET /user/permission-info` */
2185
- async getPermissionInfo() {
2186
- return this.request("GET", "/user/permission-info");
2187
- }
2188
- /** Get module list. `GET /user/module/list` */
2189
- async getModuleList() {
2190
- return this.request("GET", "/user/module/list");
2191
- }
2192
2189
  /** Get parent list. `GET /user/parent/list` */
2193
2190
  async getParentList() {
2194
2191
  return this.request("GET", "/user/parent/list");
@@ -3624,4 +3621,4 @@ export {
3624
3621
  applyBrandingVariables,
3625
3622
  shadowFor
3626
3623
  };
3627
- //# sourceMappingURL=chunk-4Q3E7XLP.js.map
3624
+ //# sourceMappingURL=chunk-INP6UXMJ.js.map