@matech/thebigpos-sdk 3.28.0-dev-8410 → 3.28.0-dev-8422

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.d.ts CHANGED
@@ -6817,6 +6817,12 @@ export interface UpdateMobilePhoneRequest {
6817
6817
  export interface UpdatePartnerPortalRequest {
6818
6818
  isEnabled?: boolean | null;
6819
6819
  }
6820
+ export interface UpdatePartnerRequest {
6821
+ firstName: string;
6822
+ lastName: string;
6823
+ email: string;
6824
+ phone?: string | null;
6825
+ }
6820
6826
  export interface UpdateUserGroupRequest {
6821
6827
  name: string;
6822
6828
  description?: string | null;
@@ -7672,6 +7678,65 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7672
7678
  * @response `422` `UnprocessableEntity` Unprocessable Content
7673
7679
  */
7674
7680
  updateSiteConfigurationForAccount: (data: SiteConfiguration, params?: RequestParams) => Promise<AxiosResponse<SiteConfiguration, any, {}, any>>;
7681
+ /**
7682
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
7683
+ *
7684
+ * @tags AccountPartners
7685
+ * @name PromotePartner
7686
+ * @summary Promote To Partner
7687
+ * @request POST:/api/account/partners/promotions
7688
+ * @secure
7689
+ * @response `200` `PromotePartner` OK
7690
+ * @response `400` `ProblemDetails` Bad Request
7691
+ * @response `403` `ProblemDetails` Forbidden
7692
+ * @response `404` `ProblemDetails` Not Found
7693
+ * @response `409` `ProblemDetails` Conflict
7694
+ * @response `422` `ProblemDetails` Unprocessable Content
7695
+ */
7696
+ promotePartner: (data: PromotePartnerRequest, params?: RequestParams) => Promise<AxiosResponse<PromotePartner, any, {}, any>>;
7697
+ /**
7698
+ * @description Changes a registered partner's name, sign-in email and phone
7699
+ *
7700
+ * @tags AccountPartners
7701
+ * @name ReplacePartner
7702
+ * @summary Replace Partner
7703
+ * @request PUT:/api/account/partners/{partnerProfileId}
7704
+ * @secure
7705
+ * @response `204` `void` No Content
7706
+ * @response `403` `ProblemDetails` Forbidden
7707
+ * @response `404` `ProblemDetails` Not Found
7708
+ * @response `409` `ProblemDetails` Conflict
7709
+ * @response `422` `ProblemDetails` Unprocessable Content
7710
+ */
7711
+ replacePartner: (partnerProfileId: string, data: UpdatePartnerRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
7712
+ /**
7713
+ * @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
7714
+ *
7715
+ * @tags AccountPartners
7716
+ * @name DemotePartner
7717
+ * @summary Demote Partner
7718
+ * @request POST:/api/account/partners/{partnerProfileId}/demote
7719
+ * @secure
7720
+ * @response `204` `void` No Content
7721
+ * @response `403` `ProblemDetails` Forbidden
7722
+ * @response `404` `ProblemDetails` Not Found
7723
+ * @response `409` `ProblemDetails` Conflict
7724
+ */
7725
+ demotePartner: (partnerProfileId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
7726
+ /**
7727
+ * @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
7728
+ *
7729
+ * @tags AccountPartners
7730
+ * @name CancelPartnerInvite
7731
+ * @summary Cancel Partner Invite
7732
+ * @request POST:/api/account/partners/{partnerProfileId}/cancel
7733
+ * @secure
7734
+ * @response `204` `void` No Content
7735
+ * @response `403` `ProblemDetails` Forbidden
7736
+ * @response `404` `ProblemDetails` Not Found
7737
+ * @response `409` `ProblemDetails` Conflict
7738
+ */
7739
+ cancelPartnerInvite: (partnerProfileId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
7675
7740
  /**
7676
7741
  * No description
7677
7742
  *
package/dist/index.js CHANGED
@@ -177,6 +177,65 @@ export class Api extends HttpClient {
177
177
  * @response `422` `UnprocessableEntity` Unprocessable Content
178
178
  */
179
179
  updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
180
+ /**
181
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
182
+ *
183
+ * @tags AccountPartners
184
+ * @name PromotePartner
185
+ * @summary Promote To Partner
186
+ * @request POST:/api/account/partners/promotions
187
+ * @secure
188
+ * @response `200` `PromotePartner` OK
189
+ * @response `400` `ProblemDetails` Bad Request
190
+ * @response `403` `ProblemDetails` Forbidden
191
+ * @response `404` `ProblemDetails` Not Found
192
+ * @response `409` `ProblemDetails` Conflict
193
+ * @response `422` `ProblemDetails` Unprocessable Content
194
+ */
195
+ promotePartner: (data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/promotions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
196
+ /**
197
+ * @description Changes a registered partner's name, sign-in email and phone
198
+ *
199
+ * @tags AccountPartners
200
+ * @name ReplacePartner
201
+ * @summary Replace Partner
202
+ * @request PUT:/api/account/partners/{partnerProfileId}
203
+ * @secure
204
+ * @response `204` `void` No Content
205
+ * @response `403` `ProblemDetails` Forbidden
206
+ * @response `404` `ProblemDetails` Not Found
207
+ * @response `409` `ProblemDetails` Conflict
208
+ * @response `422` `ProblemDetails` Unprocessable Content
209
+ */
210
+ replacePartner: (partnerProfileId, data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
211
+ /**
212
+ * @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
213
+ *
214
+ * @tags AccountPartners
215
+ * @name DemotePartner
216
+ * @summary Demote Partner
217
+ * @request POST:/api/account/partners/{partnerProfileId}/demote
218
+ * @secure
219
+ * @response `204` `void` No Content
220
+ * @response `403` `ProblemDetails` Forbidden
221
+ * @response `404` `ProblemDetails` Not Found
222
+ * @response `409` `ProblemDetails` Conflict
223
+ */
224
+ demotePartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/demote`, method: "POST", secure: true }, params)),
225
+ /**
226
+ * @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
227
+ *
228
+ * @tags AccountPartners
229
+ * @name CancelPartnerInvite
230
+ * @summary Cancel Partner Invite
231
+ * @request POST:/api/account/partners/{partnerProfileId}/cancel
232
+ * @secure
233
+ * @response `204` `void` No Content
234
+ * @response `403` `ProblemDetails` Forbidden
235
+ * @response `404` `ProblemDetails` Not Found
236
+ * @response `409` `ProblemDetails` Conflict
237
+ */
238
+ cancelPartnerInvite: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/cancel`, method: "POST", secure: true }, params)),
180
239
  /**
181
240
  * No description
182
241
  *