@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/src/index.ts CHANGED
@@ -8234,6 +8234,13 @@ export interface UpdatePartnerPortalRequest {
8234
8234
  isEnabled?: boolean | null;
8235
8235
  }
8236
8236
 
8237
+ export interface UpdatePartnerRequest {
8238
+ firstName: string;
8239
+ lastName: string;
8240
+ email: string;
8241
+ phone?: string | null;
8242
+ }
8243
+
8237
8244
  export interface UpdateUserGroupRequest {
8238
8245
  name: string;
8239
8246
  description?: string | null;
@@ -10365,6 +10372,105 @@ export class Api<
10365
10372
  ...params,
10366
10373
  }),
10367
10374
 
10375
+ /**
10376
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
10377
+ *
10378
+ * @tags AccountPartners
10379
+ * @name PromotePartner
10380
+ * @summary Promote To Partner
10381
+ * @request POST:/api/account/partners/promotions
10382
+ * @secure
10383
+ * @response `200` `PromotePartner` OK
10384
+ * @response `400` `ProblemDetails` Bad Request
10385
+ * @response `403` `ProblemDetails` Forbidden
10386
+ * @response `404` `ProblemDetails` Not Found
10387
+ * @response `409` `ProblemDetails` Conflict
10388
+ * @response `422` `ProblemDetails` Unprocessable Content
10389
+ */
10390
+ promotePartner: (data: PromotePartnerRequest, params: RequestParams = {}) =>
10391
+ this.request<PromotePartner, ProblemDetails>({
10392
+ path: `/api/account/partners/promotions`,
10393
+ method: "POST",
10394
+ body: data,
10395
+ secure: true,
10396
+ type: "application/json",
10397
+ format: "json",
10398
+ ...params,
10399
+ }),
10400
+
10401
+ /**
10402
+ * @description Changes a registered partner's name, sign-in email and phone
10403
+ *
10404
+ * @tags AccountPartners
10405
+ * @name ReplacePartner
10406
+ * @summary Replace Partner
10407
+ * @request PUT:/api/account/partners/{partnerProfileId}
10408
+ * @secure
10409
+ * @response `204` `void` No Content
10410
+ * @response `403` `ProblemDetails` Forbidden
10411
+ * @response `404` `ProblemDetails` Not Found
10412
+ * @response `409` `ProblemDetails` Conflict
10413
+ * @response `422` `ProblemDetails` Unprocessable Content
10414
+ */
10415
+ replacePartner: (
10416
+ partnerProfileId: string,
10417
+ data: UpdatePartnerRequest,
10418
+ params: RequestParams = {},
10419
+ ) =>
10420
+ this.request<void, ProblemDetails>({
10421
+ path: `/api/account/partners/${partnerProfileId}`,
10422
+ method: "PUT",
10423
+ body: data,
10424
+ secure: true,
10425
+ type: "application/json",
10426
+ ...params,
10427
+ }),
10428
+
10429
+ /**
10430
+ * @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
10431
+ *
10432
+ * @tags AccountPartners
10433
+ * @name DemotePartner
10434
+ * @summary Demote Partner
10435
+ * @request POST:/api/account/partners/{partnerProfileId}/demote
10436
+ * @secure
10437
+ * @response `204` `void` No Content
10438
+ * @response `403` `ProblemDetails` Forbidden
10439
+ * @response `404` `ProblemDetails` Not Found
10440
+ * @response `409` `ProblemDetails` Conflict
10441
+ */
10442
+ demotePartner: (partnerProfileId: string, params: RequestParams = {}) =>
10443
+ this.request<void, ProblemDetails>({
10444
+ path: `/api/account/partners/${partnerProfileId}/demote`,
10445
+ method: "POST",
10446
+ secure: true,
10447
+ ...params,
10448
+ }),
10449
+
10450
+ /**
10451
+ * @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
10452
+ *
10453
+ * @tags AccountPartners
10454
+ * @name CancelPartnerInvite
10455
+ * @summary Cancel Partner Invite
10456
+ * @request POST:/api/account/partners/{partnerProfileId}/cancel
10457
+ * @secure
10458
+ * @response `204` `void` No Content
10459
+ * @response `403` `ProblemDetails` Forbidden
10460
+ * @response `404` `ProblemDetails` Not Found
10461
+ * @response `409` `ProblemDetails` Conflict
10462
+ */
10463
+ cancelPartnerInvite: (
10464
+ partnerProfileId: string,
10465
+ params: RequestParams = {},
10466
+ ) =>
10467
+ this.request<void, ProblemDetails>({
10468
+ path: `/api/account/partners/${partnerProfileId}/cancel`,
10469
+ method: "POST",
10470
+ secure: true,
10471
+ ...params,
10472
+ }),
10473
+
10368
10474
  /**
10369
10475
  * No description
10370
10476
  *