@otr-app/shared-backend-generated-client 2.4.82 → 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.
- package/dist/angular/.openapi-generator/FILES +1 -0
- package/dist/angular/api/casePaymentController.service.ts +19 -16
- package/dist/angular/model/models.ts +1 -0
- package/dist/angular/model/saveCasePaymentPlanRequest.ts +29 -0
- package/dist/otrBackendService.js +6 -6
- package/dist/otrBackendService.min.js +2 -2
- package/dist/typescript/api/CasePaymentControllerApi.d.ts +2 -3
- package/dist/typescript/api/CasePaymentControllerApi.js +6 -8
- package/dist/typescript/model/SaveCasePaymentPlanRequest.d.ts +24 -0
- package/dist/typescript/model/SaveCasePaymentPlanRequest.js +22 -0
- package/dist/typescript/model/models.d.ts +1 -0
- package/dist/typescript/model/models.js +1 -0
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.d.ts +2 -14
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.js +6 -19
- package/dist/typescript-fetch/models/SaveCasePaymentPlanRequest.d.ts +44 -0
- package/dist/typescript-fetch/models/SaveCasePaymentPlanRequest.js +50 -0
- package/dist/typescript-fetch/models/index.d.ts +1 -0
- package/dist/typescript-fetch/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -99,10 +99,9 @@ export declare class CasePaymentControllerApi {
|
|
|
99
99
|
* @summary saveCasePaymentPlan
|
|
100
100
|
* @param caseId caseId
|
|
101
101
|
* @param paymentPlanTypeId paymentPlanTypeId
|
|
102
|
-
* @param
|
|
103
|
-
* @param productId productId
|
|
102
|
+
* @param request request
|
|
104
103
|
*/
|
|
105
|
-
saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string,
|
|
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
|
|
365
|
-
* @param productId productId
|
|
364
|
+
* @param request request
|
|
366
365
|
*/
|
|
367
|
-
saveCasePaymentPlanUsingPOST(caseId, paymentPlanTypeId,
|
|
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
|
-
|
|
382
|
-
|
|
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
|
-
|
|
64
|
-
productId?: string;
|
|
63
|
+
request: SaveCasePaymentPlanRequest;
|
|
65
64
|
}
|
|
66
65
|
export interface ScheduleNewPaymentUsingPOSTRequest {
|
|
67
66
|
caseId: string;
|
|
@@ -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,19 +374,18 @@ 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
|
-
|
|
378
|
-
|
|
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
390
|
return new runtime.VoidApiResponse(response);
|
|
392
391
|
});
|
|
@@ -553,18 +552,6 @@ export var ListCostItemsForCustomerUsingGETPeriodEnum;
|
|
|
553
552
|
ListCostItemsForCustomerUsingGETPeriodEnum["WEEKLY"] = "WEEKLY";
|
|
554
553
|
ListCostItemsForCustomerUsingGETPeriodEnum["YEARLY"] = "YEARLY";
|
|
555
554
|
})(ListCostItemsForCustomerUsingGETPeriodEnum || (ListCostItemsForCustomerUsingGETPeriodEnum = {}));
|
|
556
|
-
/**
|
|
557
|
-
* @export
|
|
558
|
-
* @enum {string}
|
|
559
|
-
*/
|
|
560
|
-
export var SaveCasePaymentPlanUsingPOSTPeriodEnum;
|
|
561
|
-
(function (SaveCasePaymentPlanUsingPOSTPeriodEnum) {
|
|
562
|
-
SaveCasePaymentPlanUsingPOSTPeriodEnum["DAILY"] = "DAILY";
|
|
563
|
-
SaveCasePaymentPlanUsingPOSTPeriodEnum["MONTHLY"] = "MONTHLY";
|
|
564
|
-
SaveCasePaymentPlanUsingPOSTPeriodEnum["QUARTERLY"] = "QUARTERLY";
|
|
565
|
-
SaveCasePaymentPlanUsingPOSTPeriodEnum["WEEKLY"] = "WEEKLY";
|
|
566
|
-
SaveCasePaymentPlanUsingPOSTPeriodEnum["YEARLY"] = "YEARLY";
|
|
567
|
-
})(SaveCasePaymentPlanUsingPOSTPeriodEnum || (SaveCasePaymentPlanUsingPOSTPeriodEnum = {}));
|
|
568
555
|
/**
|
|
569
556
|
* @export
|
|
570
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';
|