@otr-app/shared-backend-generated-client 2.4.81 → 2.4.83

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.
@@ -99,10 +99,9 @@ export declare class CasePaymentControllerApi {
99
99
  * @summary saveCasePaymentPlan
100
100
  * @param caseId caseId
101
101
  * @param paymentPlanTypeId paymentPlanTypeId
102
- * @param period period
103
- * @param productId productId
102
+ * @param request request
104
103
  */
105
- saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, extraHttpRequestParams?: any): ng.IHttpPromise<models.ListCostItemsForCustomerResponse>;
104
+ saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: models.SaveCasePaymentPlanRequest, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
106
105
  /**
107
106
  *
108
107
  * @summary scheduleNewPayment
@@ -361,10 +361,9 @@ export class CasePaymentControllerApi {
361
361
  * @summary saveCasePaymentPlan
362
362
  * @param caseId caseId
363
363
  * @param paymentPlanTypeId paymentPlanTypeId
364
- * @param period period
365
- * @param productId productId
364
+ * @param request request
366
365
  */
367
- saveCasePaymentPlanUsingPOST(caseId, paymentPlanTypeId, period, productId, extraHttpRequestParams) {
366
+ saveCasePaymentPlanUsingPOST(caseId, paymentPlanTypeId, request, extraHttpRequestParams) {
368
367
  const localVarPath = this.basePath + '/api/v1/cases/{caseId}/payment-plans/{paymentPlanTypeId}'
369
368
  .replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)))
370
369
  .replace('{' + 'paymentPlanTypeId' + '}', encodeURIComponent(String(paymentPlanTypeId)));
@@ -378,15 +377,14 @@ export class CasePaymentControllerApi {
378
377
  if (paymentPlanTypeId === null || paymentPlanTypeId === undefined) {
379
378
  throw new Error('Required parameter paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
380
379
  }
381
- if (period !== undefined) {
382
- queryParameters['period'] = period;
383
- }
384
- if (productId !== undefined) {
385
- queryParameters['productId'] = productId;
380
+ // verify required parameter 'request' is not null or undefined
381
+ if (request === null || request === undefined) {
382
+ throw new Error('Required parameter request was null or undefined when calling saveCasePaymentPlanUsingPOST.');
386
383
  }
387
384
  let httpRequestParams = {
388
385
  method: 'POST',
389
386
  url: localVarPath,
387
+ data: request,
390
388
  params: queryParameters,
391
389
  headers: headerParams
392
390
  };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface SaveCasePaymentPlanRequest {
13
+ "interval"?: SaveCasePaymentPlanRequest.IntervalEnum;
14
+ "productId"?: string;
15
+ }
16
+ export declare namespace SaveCasePaymentPlanRequest {
17
+ enum IntervalEnum {
18
+ DAILY,
19
+ MONTHLY,
20
+ QUARTERLY,
21
+ WEEKLY,
22
+ YEARLY
23
+ }
24
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export var SaveCasePaymentPlanRequest;
13
+ (function (SaveCasePaymentPlanRequest) {
14
+ let IntervalEnum;
15
+ (function (IntervalEnum) {
16
+ IntervalEnum[IntervalEnum["DAILY"] = 'DAILY'] = "DAILY";
17
+ IntervalEnum[IntervalEnum["MONTHLY"] = 'MONTHLY'] = "MONTHLY";
18
+ IntervalEnum[IntervalEnum["QUARTERLY"] = 'QUARTERLY'] = "QUARTERLY";
19
+ IntervalEnum[IntervalEnum["WEEKLY"] = 'WEEKLY'] = "WEEKLY";
20
+ IntervalEnum[IntervalEnum["YEARLY"] = 'YEARLY'] = "YEARLY";
21
+ })(IntervalEnum = SaveCasePaymentPlanRequest.IntervalEnum || (SaveCasePaymentPlanRequest.IntervalEnum = {}));
22
+ })(SaveCasePaymentPlanRequest || (SaveCasePaymentPlanRequest = {}));
@@ -608,6 +608,7 @@ export * from './SSLCertificateResponse';
608
608
  export * from './SaveAgentBookingRequest';
609
609
  export * from './SaveAgentBookingResponse';
610
610
  export * from './SaveCaseNotesRequest';
611
+ export * from './SaveCasePaymentPlanRequest';
611
612
  export * from './SaveCaseUserRequest';
612
613
  export * from './SaveCoachingCardRequest';
613
614
  export * from './SaveCoachingCardUserRequest';
@@ -608,6 +608,7 @@ export * from './SSLCertificateResponse';
608
608
  export * from './SaveAgentBookingRequest';
609
609
  export * from './SaveAgentBookingResponse';
610
610
  export * from './SaveCaseNotesRequest';
611
+ export * from './SaveCasePaymentPlanRequest';
611
612
  export * from './SaveCaseUserRequest';
612
613
  export * from './SaveCoachingCardRequest';
613
614
  export * from './SaveCoachingCardUserRequest';
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AuthorizeChargeForCasePaymentRequest, AuthorizeChargeForCasePaymentResponse, CaptureChargeFromCasePaymentRequest, GetAvailablePaymentPlansResponse, GetCasePaymentsResponse, GetStripeChargeResponse, GetStripeChargesResponse, ListCostItemsForCustomerResponse, ScheduleNewPaymentRequest, UpdateCasePaymentRequest, UpdatePaymentDueDateRequest } from '../models';
13
+ import { AuthorizeChargeForCasePaymentRequest, AuthorizeChargeForCasePaymentResponse, CaptureChargeFromCasePaymentRequest, GetAvailablePaymentPlansResponse, GetCasePaymentsResponse, GetStripeChargeResponse, GetStripeChargesResponse, ListCostItemsForCustomerResponse, SaveCasePaymentPlanRequest, ScheduleNewPaymentRequest, UpdateCasePaymentRequest, UpdatePaymentDueDateRequest } from '../models';
14
14
  export interface AuthorizeChargeForCasePaymentUsingPOSTRequest {
15
15
  caseId: string;
16
16
  casePaymentId: string;
@@ -60,8 +60,7 @@ export interface ListCostItemsForCustomerUsingGETRequest {
60
60
  export interface SaveCasePaymentPlanUsingPOSTRequest {
61
61
  caseId: string;
62
62
  paymentPlanTypeId: string;
63
- period?: SaveCasePaymentPlanUsingPOSTPeriodEnum;
64
- productId?: string;
63
+ request: SaveCasePaymentPlanRequest;
65
64
  }
66
65
  export interface ScheduleNewPaymentUsingPOSTRequest {
67
66
  caseId: string;
@@ -166,11 +165,11 @@ export declare class CasePaymentControllerApi extends runtime.BaseAPI {
166
165
  /**
167
166
  * saveCasePaymentPlan
168
167
  */
169
- saveCasePaymentPlanUsingPOSTRaw(requestParameters: SaveCasePaymentPlanUsingPOSTRequest): Promise<runtime.ApiResponse<ListCostItemsForCustomerResponse>>;
168
+ saveCasePaymentPlanUsingPOSTRaw(requestParameters: SaveCasePaymentPlanUsingPOSTRequest): Promise<runtime.ApiResponse<void>>;
170
169
  /**
171
170
  * saveCasePaymentPlan
172
171
  */
173
- saveCasePaymentPlanUsingPOST(requestParameters: SaveCasePaymentPlanUsingPOSTRequest): Promise<ListCostItemsForCustomerResponse>;
172
+ saveCasePaymentPlanUsingPOST(requestParameters: SaveCasePaymentPlanUsingPOSTRequest): Promise<void>;
174
173
  /**
175
174
  * scheduleNewPayment
176
175
  */
@@ -226,17 +225,6 @@ export declare enum ListCostItemsForCustomerUsingGETPeriodEnum {
226
225
  WEEKLY = "WEEKLY",
227
226
  YEARLY = "YEARLY"
228
227
  }
229
- /**
230
- * @export
231
- * @enum {string}
232
- */
233
- export declare enum SaveCasePaymentPlanUsingPOSTPeriodEnum {
234
- DAILY = "DAILY",
235
- MONTHLY = "MONTHLY",
236
- QUARTERLY = "QUARTERLY",
237
- WEEKLY = "WEEKLY",
238
- YEARLY = "YEARLY"
239
- }
240
228
  /**
241
229
  * @export
242
230
  * @enum {string}
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AuthorizeChargeForCasePaymentRequestToJSON, AuthorizeChargeForCasePaymentResponseFromJSON, CaptureChargeFromCasePaymentRequestToJSON, GetAvailablePaymentPlansResponseFromJSON, GetCasePaymentsResponseFromJSON, GetStripeChargeResponseFromJSON, GetStripeChargesResponseFromJSON, ListCostItemsForCustomerResponseFromJSON, ScheduleNewPaymentRequestToJSON, UpdateCasePaymentRequestToJSON, UpdatePaymentDueDateRequestToJSON, } from '../models';
24
+ import { AuthorizeChargeForCasePaymentRequestToJSON, AuthorizeChargeForCasePaymentResponseFromJSON, CaptureChargeFromCasePaymentRequestToJSON, GetAvailablePaymentPlansResponseFromJSON, GetCasePaymentsResponseFromJSON, GetStripeChargeResponseFromJSON, GetStripeChargesResponseFromJSON, ListCostItemsForCustomerResponseFromJSON, SaveCasePaymentPlanRequestToJSON, ScheduleNewPaymentRequestToJSON, UpdateCasePaymentRequestToJSON, UpdatePaymentDueDateRequestToJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -374,21 +374,20 @@ export class CasePaymentControllerApi extends runtime.BaseAPI {
374
374
  if (requestParameters.paymentPlanTypeId === null || requestParameters.paymentPlanTypeId === undefined) {
375
375
  throw new runtime.RequiredError('paymentPlanTypeId', 'Required parameter requestParameters.paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
376
376
  }
377
- const queryParameters = {};
378
- if (requestParameters.period !== undefined) {
379
- queryParameters['period'] = requestParameters.period;
380
- }
381
- if (requestParameters.productId !== undefined) {
382
- queryParameters['productId'] = requestParameters.productId;
377
+ if (requestParameters.request === null || requestParameters.request === undefined) {
378
+ throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling saveCasePaymentPlanUsingPOST.');
383
379
  }
380
+ const queryParameters = {};
384
381
  const headerParameters = {};
382
+ headerParameters['Content-Type'] = 'application/json';
385
383
  const response = yield this.request({
386
384
  path: `/api/v1/cases/{caseId}/payment-plans/{paymentPlanTypeId}`.replace(`{${"caseId"}}`, encodeURIComponent(String(requestParameters.caseId))).replace(`{${"paymentPlanTypeId"}}`, encodeURIComponent(String(requestParameters.paymentPlanTypeId))),
387
385
  method: 'POST',
388
386
  headers: headerParameters,
389
387
  query: queryParameters,
388
+ body: SaveCasePaymentPlanRequestToJSON(requestParameters.request),
390
389
  });
391
- return new runtime.JSONApiResponse(response, (jsonValue) => ListCostItemsForCustomerResponseFromJSON(jsonValue));
390
+ return new runtime.VoidApiResponse(response);
392
391
  });
393
392
  }
394
393
  /**
@@ -396,8 +395,7 @@ export class CasePaymentControllerApi extends runtime.BaseAPI {
396
395
  */
397
396
  saveCasePaymentPlanUsingPOST(requestParameters) {
398
397
  return __awaiter(this, void 0, void 0, function* () {
399
- const response = yield this.saveCasePaymentPlanUsingPOSTRaw(requestParameters);
400
- return yield response.value();
398
+ yield this.saveCasePaymentPlanUsingPOSTRaw(requestParameters);
401
399
  });
402
400
  }
403
401
  /**
@@ -554,18 +552,6 @@ export var ListCostItemsForCustomerUsingGETPeriodEnum;
554
552
  ListCostItemsForCustomerUsingGETPeriodEnum["WEEKLY"] = "WEEKLY";
555
553
  ListCostItemsForCustomerUsingGETPeriodEnum["YEARLY"] = "YEARLY";
556
554
  })(ListCostItemsForCustomerUsingGETPeriodEnum || (ListCostItemsForCustomerUsingGETPeriodEnum = {}));
557
- /**
558
- * @export
559
- * @enum {string}
560
- */
561
- export var SaveCasePaymentPlanUsingPOSTPeriodEnum;
562
- (function (SaveCasePaymentPlanUsingPOSTPeriodEnum) {
563
- SaveCasePaymentPlanUsingPOSTPeriodEnum["DAILY"] = "DAILY";
564
- SaveCasePaymentPlanUsingPOSTPeriodEnum["MONTHLY"] = "MONTHLY";
565
- SaveCasePaymentPlanUsingPOSTPeriodEnum["QUARTERLY"] = "QUARTERLY";
566
- SaveCasePaymentPlanUsingPOSTPeriodEnum["WEEKLY"] = "WEEKLY";
567
- SaveCasePaymentPlanUsingPOSTPeriodEnum["YEARLY"] = "YEARLY";
568
- })(SaveCasePaymentPlanUsingPOSTPeriodEnum || (SaveCasePaymentPlanUsingPOSTPeriodEnum = {}));
569
555
  /**
570
556
  * @export
571
557
  * @enum {string}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SaveCasePaymentPlanRequest
16
+ */
17
+ export interface SaveCasePaymentPlanRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SaveCasePaymentPlanRequest
22
+ */
23
+ interval?: SaveCasePaymentPlanRequestIntervalEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SaveCasePaymentPlanRequest
28
+ */
29
+ productId?: string;
30
+ }
31
+ export declare function SaveCasePaymentPlanRequestFromJSON(json: any): SaveCasePaymentPlanRequest;
32
+ export declare function SaveCasePaymentPlanRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCasePaymentPlanRequest;
33
+ export declare function SaveCasePaymentPlanRequestToJSON(value?: SaveCasePaymentPlanRequest | null): any;
34
+ /**
35
+ * @export
36
+ * @enum {string}
37
+ */
38
+ export declare enum SaveCasePaymentPlanRequestIntervalEnum {
39
+ DAILY = "DAILY",
40
+ MONTHLY = "MONTHLY",
41
+ QUARTERLY = "QUARTERLY",
42
+ WEEKLY = "WEEKLY",
43
+ YEARLY = "YEARLY"
44
+ }
@@ -0,0 +1,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OffTheRecord Rest Service API - Devo
5
+ * A service to handle your traffic tickets
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ export function SaveCasePaymentPlanRequestFromJSON(json) {
16
+ return SaveCasePaymentPlanRequestFromJSONTyped(json, false);
17
+ }
18
+ export function SaveCasePaymentPlanRequestFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'interval': !exists(json, 'interval') ? undefined : json['interval'],
24
+ 'productId': !exists(json, 'productId') ? undefined : json['productId'],
25
+ };
26
+ }
27
+ export function SaveCasePaymentPlanRequestToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'interval': value.interval,
36
+ 'productId': value.productId,
37
+ };
38
+ }
39
+ /**
40
+ * @export
41
+ * @enum {string}
42
+ */
43
+ export var SaveCasePaymentPlanRequestIntervalEnum;
44
+ (function (SaveCasePaymentPlanRequestIntervalEnum) {
45
+ SaveCasePaymentPlanRequestIntervalEnum["DAILY"] = "DAILY";
46
+ SaveCasePaymentPlanRequestIntervalEnum["MONTHLY"] = "MONTHLY";
47
+ SaveCasePaymentPlanRequestIntervalEnum["QUARTERLY"] = "QUARTERLY";
48
+ SaveCasePaymentPlanRequestIntervalEnum["WEEKLY"] = "WEEKLY";
49
+ SaveCasePaymentPlanRequestIntervalEnum["YEARLY"] = "YEARLY";
50
+ })(SaveCasePaymentPlanRequestIntervalEnum || (SaveCasePaymentPlanRequestIntervalEnum = {}));
@@ -608,6 +608,7 @@ export * from './SSLCertificateResponse';
608
608
  export * from './SaveAgentBookingRequest';
609
609
  export * from './SaveAgentBookingResponse';
610
610
  export * from './SaveCaseNotesRequest';
611
+ export * from './SaveCasePaymentPlanRequest';
611
612
  export * from './SaveCaseUserRequest';
612
613
  export * from './SaveCoachingCardRequest';
613
614
  export * from './SaveCoachingCardUserRequest';
@@ -608,6 +608,7 @@ export * from './SSLCertificateResponse';
608
608
  export * from './SaveAgentBookingRequest';
609
609
  export * from './SaveAgentBookingResponse';
610
610
  export * from './SaveCaseNotesRequest';
611
+ export * from './SaveCasePaymentPlanRequest';
611
612
  export * from './SaveCaseUserRequest';
612
613
  export * from './SaveCoachingCardRequest';
613
614
  export * from './SaveCoachingCardUserRequest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otr-app/shared-backend-generated-client",
3
- "version": "2.4.81",
3
+ "version": "2.4.83",
4
4
  "main": "dist/otrBackendService.min.js",
5
5
  "files": [
6
6
  "/dist"