@otr-app/shared-backend-generated-client 2.4.87 → 2.4.89

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.
@@ -68,11 +68,11 @@ export declare class CasePaymentControllerApi {
68
68
  *
69
69
  * @summary getPaymentPlanOptions
70
70
  * @param caseId caseId
71
- * @param feeInCents feeInCents
72
71
  * @param lawfirmId lawfirmId
72
+ * @param feeInCents feeInCents
73
73
  * @param userId userId
74
74
  */
75
- getPaymentPlanOptionsUsingGET(caseId: string, feeInCents: number, lawfirmId: number, userId?: number, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetAvailablePaymentPlansResponse>;
75
+ getPaymentPlanOptionsUsingGET(caseId: string, lawfirmId: number, feeInCents?: number, userId?: number, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetAvailablePaymentPlansResponse>;
76
76
  /**
77
77
  *
78
78
  * @summary getStripeCharge
@@ -226,11 +226,11 @@ export class CasePaymentControllerApi {
226
226
  *
227
227
  * @summary getPaymentPlanOptions
228
228
  * @param caseId caseId
229
- * @param feeInCents feeInCents
230
229
  * @param lawfirmId lawfirmId
230
+ * @param feeInCents feeInCents
231
231
  * @param userId userId
232
232
  */
233
- getPaymentPlanOptionsUsingGET(caseId, feeInCents, lawfirmId, userId, extraHttpRequestParams) {
233
+ getPaymentPlanOptionsUsingGET(caseId, lawfirmId, feeInCents, userId, extraHttpRequestParams) {
234
234
  const localVarPath = this.basePath + '/api/v1/cases/{caseId}/payment-plans'
235
235
  .replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)));
236
236
  let queryParameters = {};
@@ -239,10 +239,6 @@ export class CasePaymentControllerApi {
239
239
  if (caseId === null || caseId === undefined) {
240
240
  throw new Error('Required parameter caseId was null or undefined when calling getPaymentPlanOptionsUsingGET.');
241
241
  }
242
- // verify required parameter 'feeInCents' is not null or undefined
243
- if (feeInCents === null || feeInCents === undefined) {
244
- throw new Error('Required parameter feeInCents was null or undefined when calling getPaymentPlanOptionsUsingGET.');
245
- }
246
242
  // verify required parameter 'lawfirmId' is not null or undefined
247
243
  if (lawfirmId === null || lawfirmId === undefined) {
248
244
  throw new Error('Required parameter lawfirmId was null or undefined when calling getPaymentPlanOptionsUsingGET.');
@@ -26,6 +26,12 @@ export declare class RecurringBillingControllerApi {
26
26
  * @param isProrated isProrated
27
27
  */
28
28
  cancelBillingSubscriptionUsingDELETE(id: string, userId: string, isProrated?: boolean, extraHttpRequestParams?: any): ng.IHttpPromise<models.CancelBillingSubscriptionResponse>;
29
+ /**
30
+ *
31
+ * @summary clearBillingProductOptions
32
+ * @param caseId caseId
33
+ */
34
+ clearBillingProductOptionsUsingDELETE(caseId: string, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
29
35
  /**
30
36
  *
31
37
  * @summary createBillingSubscription
@@ -55,6 +55,31 @@ export class RecurringBillingControllerApi {
55
55
  }
56
56
  return this.$http(httpRequestParams);
57
57
  }
58
+ /**
59
+ *
60
+ * @summary clearBillingProductOptions
61
+ * @param caseId caseId
62
+ */
63
+ clearBillingProductOptionsUsingDELETE(caseId, extraHttpRequestParams) {
64
+ const localVarPath = this.basePath + '/api/v1/billing/cases/{caseId}/products'
65
+ .replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)));
66
+ let queryParameters = {};
67
+ let headerParams = Object.assign({}, this.defaultHeaders);
68
+ // verify required parameter 'caseId' is not null or undefined
69
+ if (caseId === null || caseId === undefined) {
70
+ throw new Error('Required parameter caseId was null or undefined when calling clearBillingProductOptionsUsingDELETE.');
71
+ }
72
+ let httpRequestParams = {
73
+ method: 'DELETE',
74
+ url: localVarPath,
75
+ params: queryParameters,
76
+ headers: headerParams
77
+ };
78
+ if (extraHttpRequestParams) {
79
+ httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
80
+ }
81
+ return this.$http(httpRequestParams);
82
+ }
58
83
  /**
59
84
  *
60
85
  * @summary createBillingSubscription
@@ -9,30 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import * as models from './models';
12
13
  export interface CasePaymentBreakdownItemModel {
13
14
  "amount"?: number;
14
15
  "friendlyTitle"?: string;
15
- "type"?: CasePaymentBreakdownItemModel.TypeEnum;
16
- }
17
- export declare namespace CasePaymentBreakdownItemModel {
18
- enum TypeEnum {
19
- ACCIDENTFEE,
20
- BASELEGALFEE,
21
- BONDFEE,
22
- BOOKINGFEE,
23
- CDLFEE,
24
- COURTFEE,
25
- DISPUTEFEE,
26
- FINEPAYMENT,
27
- FTAFEE,
28
- INITIALSUBSCRIPTIONFEE,
29
- LATEFEE,
30
- MBGREFUND,
31
- MVSFEE,
32
- OTHER,
33
- OTRCREDIT,
34
- OTRSUBSCRIPTIONCREDIT,
35
- PAYMENTPLANSERVICEFEE,
36
- WARRANTFEE
37
- }
16
+ "type"?: models.InvoiceLineItemModel;
38
17
  }
@@ -9,27 +9,4 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export var CasePaymentBreakdownItemModel;
13
- (function (CasePaymentBreakdownItemModel) {
14
- let TypeEnum;
15
- (function (TypeEnum) {
16
- TypeEnum[TypeEnum["ACCIDENTFEE"] = 'ACCIDENT_FEE'] = "ACCIDENTFEE";
17
- TypeEnum[TypeEnum["BASELEGALFEE"] = 'BASE_LEGAL_FEE'] = "BASELEGALFEE";
18
- TypeEnum[TypeEnum["BONDFEE"] = 'BOND_FEE'] = "BONDFEE";
19
- TypeEnum[TypeEnum["BOOKINGFEE"] = 'BOOKING_FEE'] = "BOOKINGFEE";
20
- TypeEnum[TypeEnum["CDLFEE"] = 'CDL_FEE'] = "CDLFEE";
21
- TypeEnum[TypeEnum["COURTFEE"] = 'COURT_FEE'] = "COURTFEE";
22
- TypeEnum[TypeEnum["DISPUTEFEE"] = 'DISPUTE_FEE'] = "DISPUTEFEE";
23
- TypeEnum[TypeEnum["FINEPAYMENT"] = 'FINE_PAYMENT'] = "FINEPAYMENT";
24
- TypeEnum[TypeEnum["FTAFEE"] = 'FTA_FEE'] = "FTAFEE";
25
- TypeEnum[TypeEnum["INITIALSUBSCRIPTIONFEE"] = 'INITIAL_SUBSCRIPTION_FEE'] = "INITIALSUBSCRIPTIONFEE";
26
- TypeEnum[TypeEnum["LATEFEE"] = 'LATE_FEE'] = "LATEFEE";
27
- TypeEnum[TypeEnum["MBGREFUND"] = 'MBG_REFUND'] = "MBGREFUND";
28
- TypeEnum[TypeEnum["MVSFEE"] = 'MVS_FEE'] = "MVSFEE";
29
- TypeEnum[TypeEnum["OTHER"] = 'OTHER'] = "OTHER";
30
- TypeEnum[TypeEnum["OTRCREDIT"] = 'OTR_CREDIT'] = "OTRCREDIT";
31
- TypeEnum[TypeEnum["OTRSUBSCRIPTIONCREDIT"] = 'OTR_SUBSCRIPTION_CREDIT'] = "OTRSUBSCRIPTIONCREDIT";
32
- TypeEnum[TypeEnum["PAYMENTPLANSERVICEFEE"] = 'PAYMENT_PLAN_SERVICE_FEE'] = "PAYMENTPLANSERVICEFEE";
33
- TypeEnum[TypeEnum["WARRANTFEE"] = 'WARRANT_FEE'] = "WARRANTFEE";
34
- })(TypeEnum = CasePaymentBreakdownItemModel.TypeEnum || (CasePaymentBreakdownItemModel.TypeEnum = {}));
35
- })(CasePaymentBreakdownItemModel || (CasePaymentBreakdownItemModel = {}));
12
+ export {};
@@ -41,8 +41,8 @@ export interface GetCasePaymentsUsingGETRequest {
41
41
  }
42
42
  export interface GetPaymentPlanOptionsUsingGETRequest {
43
43
  caseId: string;
44
- feeInCents: number;
45
44
  lawfirmId: number;
45
+ feeInCents?: number;
46
46
  userId?: number;
47
47
  }
48
48
  export interface GetStripeChargeUsingGETRequest {
@@ -235,9 +235,6 @@ export class CasePaymentControllerApi extends runtime.BaseAPI {
235
235
  if (requestParameters.caseId === null || requestParameters.caseId === undefined) {
236
236
  throw new runtime.RequiredError('caseId', 'Required parameter requestParameters.caseId was null or undefined when calling getPaymentPlanOptionsUsingGET.');
237
237
  }
238
- if (requestParameters.feeInCents === null || requestParameters.feeInCents === undefined) {
239
- throw new runtime.RequiredError('feeInCents', 'Required parameter requestParameters.feeInCents was null or undefined when calling getPaymentPlanOptionsUsingGET.');
240
- }
241
238
  if (requestParameters.lawfirmId === null || requestParameters.lawfirmId === undefined) {
242
239
  throw new runtime.RequiredError('lawfirmId', 'Required parameter requestParameters.lawfirmId was null or undefined when calling getPaymentPlanOptionsUsingGET.');
243
240
  }
@@ -16,6 +16,9 @@ export interface CancelBillingSubscriptionUsingDELETERequest {
16
16
  userId: string;
17
17
  isProrated?: boolean;
18
18
  }
19
+ export interface ClearBillingProductOptionsUsingDELETERequest {
20
+ caseId: string;
21
+ }
19
22
  export interface CreateBillingSubscriptionUsingPOSTRequest {
20
23
  userId: number;
21
24
  request: CreateBillingSubscriptionRequest;
@@ -52,6 +55,14 @@ export declare class RecurringBillingControllerApi extends runtime.BaseAPI {
52
55
  * cancelBillingSubscription
53
56
  */
54
57
  cancelBillingSubscriptionUsingDELETE(requestParameters: CancelBillingSubscriptionUsingDELETERequest): Promise<CancelBillingSubscriptionResponse>;
58
+ /**
59
+ * clearBillingProductOptions
60
+ */
61
+ clearBillingProductOptionsUsingDELETERaw(requestParameters: ClearBillingProductOptionsUsingDELETERequest): Promise<runtime.ApiResponse<void>>;
62
+ /**
63
+ * clearBillingProductOptions
64
+ */
65
+ clearBillingProductOptionsUsingDELETE(requestParameters: ClearBillingProductOptionsUsingDELETERequest): Promise<void>;
55
66
  /**
56
67
  * createBillingSubscription
57
68
  */
@@ -60,6 +60,33 @@ export class RecurringBillingControllerApi extends runtime.BaseAPI {
60
60
  return yield response.value();
61
61
  });
62
62
  }
63
+ /**
64
+ * clearBillingProductOptions
65
+ */
66
+ clearBillingProductOptionsUsingDELETERaw(requestParameters) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ if (requestParameters.caseId === null || requestParameters.caseId === undefined) {
69
+ throw new runtime.RequiredError('caseId', 'Required parameter requestParameters.caseId was null or undefined when calling clearBillingProductOptionsUsingDELETE.');
70
+ }
71
+ const queryParameters = {};
72
+ const headerParameters = {};
73
+ const response = yield this.request({
74
+ path: `/api/v1/billing/cases/{caseId}/products`.replace(`{${"caseId"}}`, encodeURIComponent(String(requestParameters.caseId))),
75
+ method: 'DELETE',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ });
79
+ return new runtime.VoidApiResponse(response);
80
+ });
81
+ }
82
+ /**
83
+ * clearBillingProductOptions
84
+ */
85
+ clearBillingProductOptionsUsingDELETE(requestParameters) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ yield this.clearBillingProductOptionsUsingDELETERaw(requestParameters);
88
+ });
89
+ }
63
90
  /**
64
91
  * createBillingSubscription
65
92
  */
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { InvoiceLineItemModel } from './';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -29,35 +30,11 @@ export interface CasePaymentBreakdownItemModel {
29
30
  friendlyTitle?: string;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {InvoiceLineItemModel}
33
34
  * @memberof CasePaymentBreakdownItemModel
34
35
  */
35
- type?: CasePaymentBreakdownItemModelTypeEnum;
36
+ type?: InvoiceLineItemModel;
36
37
  }
37
38
  export declare function CasePaymentBreakdownItemModelFromJSON(json: any): CasePaymentBreakdownItemModel;
38
39
  export declare function CasePaymentBreakdownItemModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): CasePaymentBreakdownItemModel;
39
40
  export declare function CasePaymentBreakdownItemModelToJSON(value?: CasePaymentBreakdownItemModel | null): any;
40
- /**
41
- * @export
42
- * @enum {string}
43
- */
44
- export declare enum CasePaymentBreakdownItemModelTypeEnum {
45
- ACCIDENTFEE = "ACCIDENT_FEE",
46
- BASELEGALFEE = "BASE_LEGAL_FEE",
47
- BONDFEE = "BOND_FEE",
48
- BOOKINGFEE = "BOOKING_FEE",
49
- CDLFEE = "CDL_FEE",
50
- COURTFEE = "COURT_FEE",
51
- DISPUTEFEE = "DISPUTE_FEE",
52
- FINEPAYMENT = "FINE_PAYMENT",
53
- FTAFEE = "FTA_FEE",
54
- INITIALSUBSCRIPTIONFEE = "INITIAL_SUBSCRIPTION_FEE",
55
- LATEFEE = "LATE_FEE",
56
- MBGREFUND = "MBG_REFUND",
57
- MVSFEE = "MVS_FEE",
58
- OTHER = "OTHER",
59
- OTRCREDIT = "OTR_CREDIT",
60
- OTRSUBSCRIPTIONCREDIT = "OTR_SUBSCRIPTION_CREDIT",
61
- PAYMENTPLANSERVICEFEE = "PAYMENT_PLAN_SERVICE_FEE",
62
- WARRANTFEE = "WARRANT_FEE"
63
- }
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { InvoiceLineItemModelFromJSON, InvoiceLineItemModelToJSON, } from './';
15
16
  export function CasePaymentBreakdownItemModelFromJSON(json) {
16
17
  return CasePaymentBreakdownItemModelFromJSONTyped(json, false);
17
18
  }
@@ -22,7 +23,7 @@ export function CasePaymentBreakdownItemModelFromJSONTyped(json, ignoreDiscrimin
22
23
  return {
23
24
  'amount': !exists(json, 'amount') ? undefined : json['amount'],
24
25
  'friendlyTitle': !exists(json, 'friendlyTitle') ? undefined : json['friendlyTitle'],
25
- 'type': !exists(json, 'type') ? undefined : json['type'],
26
+ 'type': !exists(json, 'type') ? undefined : InvoiceLineItemModelFromJSON(json['type']),
26
27
  };
27
28
  }
28
29
  export function CasePaymentBreakdownItemModelToJSON(value) {
@@ -35,31 +36,6 @@ export function CasePaymentBreakdownItemModelToJSON(value) {
35
36
  return {
36
37
  'amount': value.amount,
37
38
  'friendlyTitle': value.friendlyTitle,
38
- 'type': value.type,
39
+ 'type': InvoiceLineItemModelToJSON(value.type),
39
40
  };
40
41
  }
41
- /**
42
- * @export
43
- * @enum {string}
44
- */
45
- export var CasePaymentBreakdownItemModelTypeEnum;
46
- (function (CasePaymentBreakdownItemModelTypeEnum) {
47
- CasePaymentBreakdownItemModelTypeEnum["ACCIDENTFEE"] = "ACCIDENT_FEE";
48
- CasePaymentBreakdownItemModelTypeEnum["BASELEGALFEE"] = "BASE_LEGAL_FEE";
49
- CasePaymentBreakdownItemModelTypeEnum["BONDFEE"] = "BOND_FEE";
50
- CasePaymentBreakdownItemModelTypeEnum["BOOKINGFEE"] = "BOOKING_FEE";
51
- CasePaymentBreakdownItemModelTypeEnum["CDLFEE"] = "CDL_FEE";
52
- CasePaymentBreakdownItemModelTypeEnum["COURTFEE"] = "COURT_FEE";
53
- CasePaymentBreakdownItemModelTypeEnum["DISPUTEFEE"] = "DISPUTE_FEE";
54
- CasePaymentBreakdownItemModelTypeEnum["FINEPAYMENT"] = "FINE_PAYMENT";
55
- CasePaymentBreakdownItemModelTypeEnum["FTAFEE"] = "FTA_FEE";
56
- CasePaymentBreakdownItemModelTypeEnum["INITIALSUBSCRIPTIONFEE"] = "INITIAL_SUBSCRIPTION_FEE";
57
- CasePaymentBreakdownItemModelTypeEnum["LATEFEE"] = "LATE_FEE";
58
- CasePaymentBreakdownItemModelTypeEnum["MBGREFUND"] = "MBG_REFUND";
59
- CasePaymentBreakdownItemModelTypeEnum["MVSFEE"] = "MVS_FEE";
60
- CasePaymentBreakdownItemModelTypeEnum["OTHER"] = "OTHER";
61
- CasePaymentBreakdownItemModelTypeEnum["OTRCREDIT"] = "OTR_CREDIT";
62
- CasePaymentBreakdownItemModelTypeEnum["OTRSUBSCRIPTIONCREDIT"] = "OTR_SUBSCRIPTION_CREDIT";
63
- CasePaymentBreakdownItemModelTypeEnum["PAYMENTPLANSERVICEFEE"] = "PAYMENT_PLAN_SERVICE_FEE";
64
- CasePaymentBreakdownItemModelTypeEnum["WARRANTFEE"] = "WARRANT_FEE";
65
- })(CasePaymentBreakdownItemModelTypeEnum || (CasePaymentBreakdownItemModelTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otr-app/shared-backend-generated-client",
3
- "version": "2.4.87",
3
+ "version": "2.4.89",
4
4
  "main": "dist/otrBackendService.min.js",
5
5
  "files": [
6
6
  "/dist"