@otr-app/shared-backend-generated-client 2.4.84 → 2.4.86
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 -1
- package/dist/angular/api/casePaymentController.service.ts +4 -9
- package/dist/angular/api/recurringBillingController.service.ts +77 -0
- package/dist/angular/model/models.ts +1 -1
- package/dist/angular/model/saveBillingProductOptionRequest.ts +28 -0
- package/dist/angular/model/saveCasePlanRequest.ts +29 -0
- package/dist/otrBackendService.js +53 -5
- package/dist/otrBackendService.min.js +7 -7
- package/dist/typescript/api/CasePaymentControllerApi.d.ts +1 -1
- package/dist/typescript/api/CasePaymentControllerApi.js +0 -4
- package/dist/typescript/api/RecurringBillingControllerApi.d.ts +8 -0
- package/dist/typescript/api/RecurringBillingControllerApi.js +37 -0
- package/dist/typescript/model/SaveBillingProductOptionRequest.d.ts +23 -0
- package/dist/typescript/model/SaveBillingProductOptionRequest.js +22 -0
- package/dist/typescript/model/SaveCasePlanRequest.d.ts +24 -0
- package/dist/typescript/model/SaveCasePlanRequest.js +22 -0
- package/dist/typescript/model/models.d.ts +1 -1
- package/dist/typescript/model/models.js +1 -1
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.d.ts +2 -2
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.js +2 -5
- package/dist/typescript-fetch/apis/RecurringBillingControllerApi.d.ts +14 -1
- package/dist/typescript-fetch/apis/RecurringBillingControllerApi.js +36 -1
- package/dist/typescript-fetch/models/SaveBillingProductOptionRequest.d.ts +38 -0
- package/dist/typescript-fetch/models/SaveBillingProductOptionRequest.js +48 -0
- package/dist/typescript-fetch/models/index.d.ts +1 -1
- package/dist/typescript-fetch/models/index.js +1 -1
- package/package.json +1 -1
- package/dist/typescript-fetch/models/SaveCasePaymentPlanRequest.d.ts +0 -44
- package/dist/typescript-fetch/models/SaveCasePaymentPlanRequest.js +0 -50
|
@@ -732,8 +732,8 @@ model/sNSNotificationRequest.ts
|
|
|
732
732
|
model/sSLCertificateResponse.ts
|
|
733
733
|
model/saveAgentBookingRequest.ts
|
|
734
734
|
model/saveAgentBookingResponse.ts
|
|
735
|
+
model/saveBillingProductOptionRequest.ts
|
|
735
736
|
model/saveCaseNotesRequest.ts
|
|
736
|
-
model/saveCasePaymentPlanRequest.ts
|
|
737
737
|
model/saveCaseUserRequest.ts
|
|
738
738
|
model/saveCoachingCardRequest.ts
|
|
739
739
|
model/saveCoachingCardUserRequest.ts
|
|
@@ -35,8 +35,6 @@ import { GetStripeChargesResponse } from '../model/getStripeChargesResponse';
|
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { ListCostItemsForCustomerResponse } from '../model/listCostItemsForCustomerResponse';
|
|
37
37
|
// @ts-ignore
|
|
38
|
-
import { SaveCasePaymentPlanRequest } from '../model/saveCasePaymentPlanRequest';
|
|
39
|
-
// @ts-ignore
|
|
40
38
|
import { ScheduleNewPaymentRequest } from '../model/scheduleNewPaymentRequest';
|
|
41
39
|
// @ts-ignore
|
|
42
40
|
import { UpdateCasePaymentRequest } from '../model/updateCasePaymentRequest';
|
|
@@ -813,19 +811,16 @@ export class CasePaymentControllerService {
|
|
|
813
811
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
814
812
|
* @param reportProgress flag to report request and response progress.
|
|
815
813
|
*/
|
|
816
|
-
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request
|
|
817
|
-
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request
|
|
818
|
-
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request
|
|
819
|
-
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request
|
|
814
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
|
|
815
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
|
|
816
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
|
|
817
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
|
|
820
818
|
if (caseId === null || caseId === undefined) {
|
|
821
819
|
throw new Error('Required parameter caseId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
822
820
|
}
|
|
823
821
|
if (paymentPlanTypeId === null || paymentPlanTypeId === undefined) {
|
|
824
822
|
throw new Error('Required parameter paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
825
823
|
}
|
|
826
|
-
if (request === null || request === undefined) {
|
|
827
|
-
throw new Error('Required parameter request was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
828
|
-
}
|
|
829
824
|
|
|
830
825
|
let localVarHeaders = this.defaultHeaders;
|
|
831
826
|
|
|
@@ -30,6 +30,8 @@ import { ListBillingProductsResponse } from '../model/listBillingProductsRespons
|
|
|
30
30
|
import { ListBillingSubscriptionsResponse } from '../model/listBillingSubscriptionsResponse';
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { ListSubscriptionInvoicesResponse } from '../model/listSubscriptionInvoicesResponse';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { SaveBillingProductOptionRequest } from '../model/saveBillingProductOptionRequest';
|
|
33
35
|
|
|
34
36
|
// @ts-ignore
|
|
35
37
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
@@ -456,4 +458,79 @@ export class RecurringBillingControllerService {
|
|
|
456
458
|
);
|
|
457
459
|
}
|
|
458
460
|
|
|
461
|
+
/**
|
|
462
|
+
* saveBillingProductOption
|
|
463
|
+
* @param caseId caseId
|
|
464
|
+
* @param productId productId
|
|
465
|
+
* @param request request
|
|
466
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
467
|
+
* @param reportProgress flag to report request and response progress.
|
|
468
|
+
*/
|
|
469
|
+
public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
|
|
470
|
+
public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
|
|
471
|
+
public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
|
|
472
|
+
public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
|
|
473
|
+
if (caseId === null || caseId === undefined) {
|
|
474
|
+
throw new Error('Required parameter caseId was null or undefined when calling saveBillingProductOptionUsingPOST.');
|
|
475
|
+
}
|
|
476
|
+
if (productId === null || productId === undefined) {
|
|
477
|
+
throw new Error('Required parameter productId was null or undefined when calling saveBillingProductOptionUsingPOST.');
|
|
478
|
+
}
|
|
479
|
+
if (request === null || request === undefined) {
|
|
480
|
+
throw new Error('Required parameter request was null or undefined when calling saveBillingProductOptionUsingPOST.');
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
let localVarHeaders = this.defaultHeaders;
|
|
484
|
+
|
|
485
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
486
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
487
|
+
// to determine the Accept header
|
|
488
|
+
const httpHeaderAccepts: string[] = [
|
|
489
|
+
];
|
|
490
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
491
|
+
}
|
|
492
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
493
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
497
|
+
if (localVarHttpContext === undefined) {
|
|
498
|
+
localVarHttpContext = new HttpContext();
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
// to determine the Content-Type header
|
|
503
|
+
const consumes: string[] = [
|
|
504
|
+
'application/json'
|
|
505
|
+
];
|
|
506
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
507
|
+
if (httpContentTypeSelected !== undefined) {
|
|
508
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
512
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
513
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
514
|
+
responseType_ = 'text';
|
|
515
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
516
|
+
responseType_ = 'json';
|
|
517
|
+
} else {
|
|
518
|
+
responseType_ = 'blob';
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
let localVarPath = `/api/v1/billing/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/products/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
|
523
|
+
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
524
|
+
{
|
|
525
|
+
context: localVarHttpContext,
|
|
526
|
+
body: request,
|
|
527
|
+
responseType: <any>responseType_,
|
|
528
|
+
withCredentials: this.configuration.withCredentials,
|
|
529
|
+
headers: localVarHeaders,
|
|
530
|
+
observe: observe,
|
|
531
|
+
reportProgress: reportProgress
|
|
532
|
+
}
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
|
|
459
536
|
}
|
|
@@ -607,8 +607,8 @@ export * from './sNSNotificationRequest';
|
|
|
607
607
|
export * from './sSLCertificateResponse';
|
|
608
608
|
export * from './saveAgentBookingRequest';
|
|
609
609
|
export * from './saveAgentBookingResponse';
|
|
610
|
+
export * from './saveBillingProductOptionRequest';
|
|
610
611
|
export * from './saveCaseNotesRequest';
|
|
611
|
-
export * from './saveCasePaymentPlanRequest';
|
|
612
612
|
export * from './saveCaseUserRequest';
|
|
613
613
|
export * from './saveCoachingCardRequest';
|
|
614
614
|
export * from './saveCoachingCardUserRequest';
|
|
@@ -0,0 +1,28 @@
|
|
|
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 interface SaveBillingProductOptionRequest {
|
|
15
|
+
interval?: SaveBillingProductOptionRequest.IntervalEnum;
|
|
16
|
+
}
|
|
17
|
+
export namespace SaveBillingProductOptionRequest {
|
|
18
|
+
export type IntervalEnum = 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY';
|
|
19
|
+
export const IntervalEnum = {
|
|
20
|
+
Daily: 'DAILY' as IntervalEnum,
|
|
21
|
+
Monthly: 'MONTHLY' as IntervalEnum,
|
|
22
|
+
Quarterly: 'QUARTERLY' as IntervalEnum,
|
|
23
|
+
Weekly: 'WEEKLY' as IntervalEnum,
|
|
24
|
+
Yearly: 'YEARLY' as IntervalEnum
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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 interface SaveCasePlanRequest {
|
|
15
|
+
interval?: SaveCasePlanRequest.IntervalEnum;
|
|
16
|
+
productId?: string;
|
|
17
|
+
}
|
|
18
|
+
export namespace SaveCasePlanRequest {
|
|
19
|
+
export type IntervalEnum = 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY';
|
|
20
|
+
export const IntervalEnum = {
|
|
21
|
+
Daily: 'DAILY' as IntervalEnum,
|
|
22
|
+
Monthly: 'MONTHLY' as IntervalEnum,
|
|
23
|
+
Quarterly: 'QUARTERLY' as IntervalEnum,
|
|
24
|
+
Weekly: 'WEEKLY' as IntervalEnum,
|
|
25
|
+
Yearly: 'YEARLY' as IntervalEnum
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
@@ -568,6 +568,59 @@ angular.module('otrBackendService', [])
|
|
|
568
568
|
|
|
569
569
|
return deferred.promise;
|
|
570
570
|
};
|
|
571
|
+
/**
|
|
572
|
+
* saveBillingProductOption
|
|
573
|
+
* @method
|
|
574
|
+
* @name OtrService#saveBillingProductOptionUsingPOST
|
|
575
|
+
* @param {object} parameters - method options and parameters
|
|
576
|
+
* @param {string} parameters.caseId - caseId
|
|
577
|
+
* @param {string} parameters.productId - productId
|
|
578
|
+
* @param {} parameters.request - request
|
|
579
|
+
*/
|
|
580
|
+
OtrService.prototype.saveBillingProductOptionUsingPOST = function(parameters) {
|
|
581
|
+
if (parameters === undefined) {
|
|
582
|
+
parameters = {};
|
|
583
|
+
}
|
|
584
|
+
var deferred = $q.defer();
|
|
585
|
+
var domain = this.domain,
|
|
586
|
+
path = '/api/v1/billing/cases/{caseId}/products/{productId}';
|
|
587
|
+
var body = {},
|
|
588
|
+
queryParameters = {},
|
|
589
|
+
headers = {},
|
|
590
|
+
form = {};
|
|
591
|
+
|
|
592
|
+
headers['Accept'] = ['*/*'];
|
|
593
|
+
headers['Content-Type'] = ['application/json'];
|
|
594
|
+
|
|
595
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
596
|
+
|
|
597
|
+
if (parameters['caseId'] === undefined) {
|
|
598
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
599
|
+
return deferred.promise;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
path = path.replace('{productId}', parameters['productId']);
|
|
603
|
+
|
|
604
|
+
if (parameters['productId'] === undefined) {
|
|
605
|
+
deferred.reject(new Error('Missing required parameter: productId'));
|
|
606
|
+
return deferred.promise;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
if (parameters['request'] !== undefined) {
|
|
610
|
+
body = parameters['request'];
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (parameters['request'] === undefined) {
|
|
614
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
615
|
+
return deferred.promise;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
619
|
+
|
|
620
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
621
|
+
|
|
622
|
+
return deferred.promise;
|
|
623
|
+
};
|
|
571
624
|
/**
|
|
572
625
|
* listBillingProducts
|
|
573
626
|
* @method
|
|
@@ -3177,11 +3230,6 @@ angular.module('otrBackendService', [])
|
|
|
3177
3230
|
body = parameters['request'];
|
|
3178
3231
|
}
|
|
3179
3232
|
|
|
3180
|
-
if (parameters['request'] === undefined) {
|
|
3181
|
-
deferred.reject(new Error('Missing required parameter: request'));
|
|
3182
|
-
return deferred.promise;
|
|
3183
|
-
}
|
|
3184
|
-
|
|
3185
3233
|
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
3186
3234
|
|
|
3187
3235
|
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|