@otr-app/shared-backend-generated-client 2.3.201 → 2.3.202
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 +3 -0
- package/dist/angular/api/lawfirmTransactionsController.service.ts +84 -0
- package/dist/angular/model/balanceTransactionModel.ts +23 -0
- package/dist/angular/model/lawfirmBankPayoutModel.ts +63 -0
- package/dist/angular/model/listLawfirmBankPayoutsResponse.ts +18 -0
- package/dist/angular/model/models.ts +3 -0
- package/dist/otrBackendService.js +62 -0
- package/dist/otrBackendService.min.js +4 -4
- package/dist/typescript/api/LawfirmTransactionsControllerApi.d.ts +9 -0
- package/dist/typescript/api/LawfirmTransactionsControllerApi.js +45 -0
- package/dist/typescript/model/BalanceTransactionModel.d.ts +20 -0
- package/dist/typescript/model/BalanceTransactionModel.js +13 -0
- package/dist/typescript/model/LawfirmBankPayoutModel.d.ts +55 -0
- package/dist/typescript/model/LawfirmBankPayoutModel.js +41 -0
- package/dist/typescript/model/ListLawfirmBankPayoutsResponse.d.ts +15 -0
- package/dist/typescript/model/ListLawfirmBankPayoutsResponse.js +13 -0
- package/dist/typescript/model/models.d.ts +3 -0
- package/dist/typescript/model/models.js +3 -0
- package/package.json +1 -1
|
@@ -171,6 +171,7 @@ model/availableRegion.ts
|
|
|
171
171
|
model/awsCredentialsRequest.ts
|
|
172
172
|
model/backfillLawfirmTransactionRecordsRequest.ts
|
|
173
173
|
model/backfillLawfirmTransactionRecordsResponse.ts
|
|
174
|
+
model/balanceTransactionModel.ts
|
|
174
175
|
model/billingInvoiceModel.ts
|
|
175
176
|
model/billingPriceModel.ts
|
|
176
177
|
model/billingProductModel.ts
|
|
@@ -512,6 +513,7 @@ model/isRefundEligibleResponse.ts
|
|
|
512
513
|
model/isUserLoggedInResponse.ts
|
|
513
514
|
model/lastLoginDateModel.ts
|
|
514
515
|
model/lawfirmAuditEventModel.ts
|
|
516
|
+
model/lawfirmBankPayoutModel.ts
|
|
515
517
|
model/lawfirmBookingSummary.ts
|
|
516
518
|
model/lawfirmCaseDocument.ts
|
|
517
519
|
model/lawfirmCaseModel.ts
|
|
@@ -560,6 +562,7 @@ model/listDashboardCasesResponse.ts
|
|
|
560
562
|
model/listEligibleStatusResponse.ts
|
|
561
563
|
model/listEmployeesResponse.ts
|
|
562
564
|
model/listLawfirmAuditEventsByCursorResponse.ts
|
|
565
|
+
model/listLawfirmBankPayoutsResponse.ts
|
|
563
566
|
model/listLawfirmStorefrontsResponse.ts
|
|
564
567
|
model/listLawfirmSurchargeModel.ts
|
|
565
568
|
model/listLawfirmSurchargeTypeModel.ts
|
|
@@ -33,6 +33,8 @@ import { GetLawfirmPayoutsResponse } from '../model/getLawfirmPayoutsResponse';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { GetLawfirmTransactionsForCaseResponse } from '../model/getLawfirmTransactionsForCaseResponse';
|
|
35
35
|
// @ts-ignore
|
|
36
|
+
import { ListLawfirmBankPayoutsResponse } from '../model/listLawfirmBankPayoutsResponse';
|
|
37
|
+
// @ts-ignore
|
|
36
38
|
import { RefundLawfirmFeeRequest } from '../model/refundLawfirmFeeRequest';
|
|
37
39
|
// @ts-ignore
|
|
38
40
|
import { ReverseLawfirmPayoutRequest } from '../model/reverseLawfirmPayoutRequest';
|
|
@@ -722,6 +724,88 @@ export class LawfirmTransactionsControllerService {
|
|
|
722
724
|
);
|
|
723
725
|
}
|
|
724
726
|
|
|
727
|
+
/**
|
|
728
|
+
* listLawfirmBankPayouts
|
|
729
|
+
* @param includeTransactions includeTransactions
|
|
730
|
+
* @param index index
|
|
731
|
+
* @param lawfirmId lawfirmId
|
|
732
|
+
* @param size size
|
|
733
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
734
|
+
* @param reportProgress flag to report request and response progress.
|
|
735
|
+
*/
|
|
736
|
+
public listLawfirmBankPayoutsUsingGET(includeTransactions: boolean, index: number, lawfirmId: number, size?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListLawfirmBankPayoutsResponse>;
|
|
737
|
+
public listLawfirmBankPayoutsUsingGET(includeTransactions: boolean, index: number, lawfirmId: number, size?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListLawfirmBankPayoutsResponse>>;
|
|
738
|
+
public listLawfirmBankPayoutsUsingGET(includeTransactions: boolean, index: number, lawfirmId: number, size?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<ListLawfirmBankPayoutsResponse>>;
|
|
739
|
+
public listLawfirmBankPayoutsUsingGET(includeTransactions: boolean, index: number, lawfirmId: number, size?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
740
|
+
if (includeTransactions === null || includeTransactions === undefined) {
|
|
741
|
+
throw new Error('Required parameter includeTransactions was null or undefined when calling listLawfirmBankPayoutsUsingGET.');
|
|
742
|
+
}
|
|
743
|
+
if (index === null || index === undefined) {
|
|
744
|
+
throw new Error('Required parameter index was null or undefined when calling listLawfirmBankPayoutsUsingGET.');
|
|
745
|
+
}
|
|
746
|
+
if (lawfirmId === null || lawfirmId === undefined) {
|
|
747
|
+
throw new Error('Required parameter lawfirmId was null or undefined when calling listLawfirmBankPayoutsUsingGET.');
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
751
|
+
if (includeTransactions !== undefined && includeTransactions !== null) {
|
|
752
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
753
|
+
<any>includeTransactions, 'includeTransactions ');
|
|
754
|
+
}
|
|
755
|
+
if (index !== undefined && index !== null) {
|
|
756
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
757
|
+
<any>index, 'index');
|
|
758
|
+
}
|
|
759
|
+
if (size !== undefined && size !== null) {
|
|
760
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
761
|
+
<any>size, 'size');
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
let localVarHeaders = this.defaultHeaders;
|
|
765
|
+
|
|
766
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
767
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
768
|
+
// to determine the Accept header
|
|
769
|
+
const httpHeaderAccepts: string[] = [
|
|
770
|
+
'*/*'
|
|
771
|
+
];
|
|
772
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
773
|
+
}
|
|
774
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
775
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
779
|
+
if (localVarHttpContext === undefined) {
|
|
780
|
+
localVarHttpContext = new HttpContext();
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
785
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
786
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
787
|
+
responseType_ = 'text';
|
|
788
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
789
|
+
responseType_ = 'json';
|
|
790
|
+
} else {
|
|
791
|
+
responseType_ = 'blob';
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
let localVarPath = `/api/v1/lawfirms/${this.configuration.encodeParam({name: "lawfirmId", value: lawfirmId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/bank-payouts`;
|
|
796
|
+
return this.httpClient.request<ListLawfirmBankPayoutsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
797
|
+
{
|
|
798
|
+
context: localVarHttpContext,
|
|
799
|
+
params: localVarQueryParameters,
|
|
800
|
+
responseType: <any>responseType_,
|
|
801
|
+
withCredentials: this.configuration.withCredentials,
|
|
802
|
+
headers: localVarHeaders,
|
|
803
|
+
observe: observe,
|
|
804
|
+
reportProgress: reportProgress
|
|
805
|
+
}
|
|
806
|
+
);
|
|
807
|
+
}
|
|
808
|
+
|
|
725
809
|
/**
|
|
726
810
|
* refundLawfirmFee
|
|
727
811
|
* @param lawfirmFeeId lawfirmFeeId
|
|
@@ -0,0 +1,23 @@
|
|
|
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 BalanceTransactionModel {
|
|
15
|
+
amountInCents?: number;
|
|
16
|
+
availableAtDateUtc?: string;
|
|
17
|
+
creationDateUtc?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
stripePayoutId?: string;
|
|
20
|
+
transactionId?: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
import { BalanceTransactionModel } from './balanceTransactionModel';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface LawfirmBankPayoutModel {
|
|
16
|
+
amountInCents?: number;
|
|
17
|
+
arrivalDateUtc?: string;
|
|
18
|
+
automatic?: boolean;
|
|
19
|
+
balanceTransactionId?: string;
|
|
20
|
+
balanceTransactions?: Array<BalanceTransactionModel>;
|
|
21
|
+
currency?: string;
|
|
22
|
+
destinationId?: string;
|
|
23
|
+
failureAttributes?: string;
|
|
24
|
+
id?: number;
|
|
25
|
+
lawfirmId?: number;
|
|
26
|
+
method?: LawfirmBankPayoutModel.MethodEnum;
|
|
27
|
+
payoutCreationDateUtc?: string;
|
|
28
|
+
reconciliationStatus?: LawfirmBankPayoutModel.ReconciliationStatusEnum;
|
|
29
|
+
sourceAccountId?: string;
|
|
30
|
+
statementDescriptor?: string;
|
|
31
|
+
status?: LawfirmBankPayoutModel.StatusEnum;
|
|
32
|
+
stripePayoutId?: string;
|
|
33
|
+
stripePlatformAccountId?: string;
|
|
34
|
+
type?: LawfirmBankPayoutModel.TypeEnum;
|
|
35
|
+
}
|
|
36
|
+
export namespace LawfirmBankPayoutModel {
|
|
37
|
+
export type MethodEnum = 'INSTANT' | 'STANDARD';
|
|
38
|
+
export const MethodEnum = {
|
|
39
|
+
Instant: 'INSTANT' as MethodEnum,
|
|
40
|
+
Standard: 'STANDARD' as MethodEnum
|
|
41
|
+
};
|
|
42
|
+
export type ReconciliationStatusEnum = 'COMPLETED' | 'IN_PROGRESS' | 'NOT_APPLICABLE';
|
|
43
|
+
export const ReconciliationStatusEnum = {
|
|
44
|
+
Completed: 'COMPLETED' as ReconciliationStatusEnum,
|
|
45
|
+
InProgress: 'IN_PROGRESS' as ReconciliationStatusEnum,
|
|
46
|
+
NotApplicable: 'NOT_APPLICABLE' as ReconciliationStatusEnum
|
|
47
|
+
};
|
|
48
|
+
export type StatusEnum = 'CANCELED' | 'FAILED' | 'IN_TRANSIT' | 'PAID' | 'PENDING';
|
|
49
|
+
export const StatusEnum = {
|
|
50
|
+
Canceled: 'CANCELED' as StatusEnum,
|
|
51
|
+
Failed: 'FAILED' as StatusEnum,
|
|
52
|
+
InTransit: 'IN_TRANSIT' as StatusEnum,
|
|
53
|
+
Paid: 'PAID' as StatusEnum,
|
|
54
|
+
Pending: 'PENDING' as StatusEnum
|
|
55
|
+
};
|
|
56
|
+
export type TypeEnum = 'BANK_ACCOUNT' | 'CARD';
|
|
57
|
+
export const TypeEnum = {
|
|
58
|
+
BankAccount: 'BANK_ACCOUNT' as TypeEnum,
|
|
59
|
+
Card: 'CARD' as TypeEnum
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { LawfirmBankPayoutModel } from './lawfirmBankPayoutModel';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface ListLawfirmBankPayoutsResponse {
|
|
16
|
+
bankPayouts?: Array<LawfirmBankPayoutModel>;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -51,6 +51,7 @@ export * from './availableRegion';
|
|
|
51
51
|
export * from './awsCredentialsRequest';
|
|
52
52
|
export * from './backfillLawfirmTransactionRecordsRequest';
|
|
53
53
|
export * from './backfillLawfirmTransactionRecordsResponse';
|
|
54
|
+
export * from './balanceTransactionModel';
|
|
54
55
|
export * from './billingInvoiceModel';
|
|
55
56
|
export * from './billingPriceModel';
|
|
56
57
|
export * from './billingProductModel';
|
|
@@ -392,6 +393,7 @@ export * from './isRefundEligibleResponse';
|
|
|
392
393
|
export * from './isUserLoggedInResponse';
|
|
393
394
|
export * from './lastLoginDateModel';
|
|
394
395
|
export * from './lawfirmAuditEventModel';
|
|
396
|
+
export * from './lawfirmBankPayoutModel';
|
|
395
397
|
export * from './lawfirmBookingSummary';
|
|
396
398
|
export * from './lawfirmCaseDocument';
|
|
397
399
|
export * from './lawfirmCaseModel';
|
|
@@ -440,6 +442,7 @@ export * from './listDashboardCasesResponse';
|
|
|
440
442
|
export * from './listEligibleStatusResponse';
|
|
441
443
|
export * from './listEmployeesResponse';
|
|
442
444
|
export * from './listLawfirmAuditEventsByCursorResponse';
|
|
445
|
+
export * from './listLawfirmBankPayoutsResponse';
|
|
443
446
|
export * from './listLawfirmStorefrontsResponse';
|
|
444
447
|
export * from './listLawfirmSurchargeModel';
|
|
445
448
|
export * from './listLawfirmSurchargeTypeModel';
|
|
@@ -9461,6 +9461,68 @@ angular.module('otrBackendService', [])
|
|
|
9461
9461
|
|
|
9462
9462
|
return deferred.promise;
|
|
9463
9463
|
};
|
|
9464
|
+
/**
|
|
9465
|
+
* listLawfirmBankPayouts
|
|
9466
|
+
* @method
|
|
9467
|
+
* @name OtrService#listLawfirmBankPayoutsUsingGET
|
|
9468
|
+
* @param {object} parameters - method options and parameters
|
|
9469
|
+
* @param {boolean} parameters.includeTransactions - includeTransactions
|
|
9470
|
+
* @param {integer} parameters.index - index
|
|
9471
|
+
* @param {integer} parameters.lawfirmId - lawfirmId
|
|
9472
|
+
* @param {integer} parameters.size - size
|
|
9473
|
+
*/
|
|
9474
|
+
OtrService.prototype.listLawfirmBankPayoutsUsingGET = function(parameters) {
|
|
9475
|
+
if (parameters === undefined) {
|
|
9476
|
+
parameters = {};
|
|
9477
|
+
}
|
|
9478
|
+
var deferred = $q.defer();
|
|
9479
|
+
var domain = this.domain,
|
|
9480
|
+
path = '/api/v1/lawfirms/{lawfirmId}/bank-payouts';
|
|
9481
|
+
var body = {},
|
|
9482
|
+
queryParameters = {},
|
|
9483
|
+
headers = {},
|
|
9484
|
+
form = {};
|
|
9485
|
+
|
|
9486
|
+
headers['Accept'] = ['*/*'];
|
|
9487
|
+
|
|
9488
|
+
if (parameters['includeTransactions'] !== undefined) {
|
|
9489
|
+
queryParameters['includeTransactions '] = parameters['includeTransactions'];
|
|
9490
|
+
}
|
|
9491
|
+
|
|
9492
|
+
if (parameters['includeTransactions'] === undefined) {
|
|
9493
|
+
deferred.reject(new Error('Missing required parameter: includeTransactions'));
|
|
9494
|
+
return deferred.promise;
|
|
9495
|
+
}
|
|
9496
|
+
|
|
9497
|
+
if (parameters['index'] !== undefined) {
|
|
9498
|
+
queryParameters['index'] = parameters['index'];
|
|
9499
|
+
}
|
|
9500
|
+
|
|
9501
|
+
if (parameters['index'] === undefined) {
|
|
9502
|
+
deferred.reject(new Error('Missing required parameter: index'));
|
|
9503
|
+
return deferred.promise;
|
|
9504
|
+
}
|
|
9505
|
+
|
|
9506
|
+
path = path.replace('{lawfirmId}', parameters['lawfirmId']);
|
|
9507
|
+
|
|
9508
|
+
if (parameters['lawfirmId'] === undefined) {
|
|
9509
|
+
deferred.reject(new Error('Missing required parameter: lawfirmId'));
|
|
9510
|
+
return deferred.promise;
|
|
9511
|
+
}
|
|
9512
|
+
|
|
9513
|
+
/** set default value **/
|
|
9514
|
+
queryParameters['size'] = 10;
|
|
9515
|
+
|
|
9516
|
+
if (parameters['size'] !== undefined) {
|
|
9517
|
+
queryParameters['size'] = parameters['size'];
|
|
9518
|
+
}
|
|
9519
|
+
|
|
9520
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
9521
|
+
|
|
9522
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
9523
|
+
|
|
9524
|
+
return deferred.promise;
|
|
9525
|
+
};
|
|
9464
9526
|
/**
|
|
9465
9527
|
* getLawfirmCaseStats
|
|
9466
9528
|
* @method
|