@otr-app/shared-backend-generated-client 2.5.79 → 2.5.81
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/api/caseReferralCodeController.service.ts +0 -61
- package/dist/angular/model/saveBillingProductOptionRequest.ts +6 -0
- package/dist/otrBackendService.js +0 -42
- package/dist/otrBackendService.min.js +6 -6
- package/dist/typescript/api/CaseReferralCodeControllerApi.d.ts +0 -7
- package/dist/typescript/api/CaseReferralCodeControllerApi.js +0 -31
- package/dist/typescript/model/SaveBillingProductOptionRequest.d.ts +5 -0
- package/dist/typescript/model/SaveBillingProductOptionRequest.js +5 -0
- package/dist/typescript-fetch/apis/CaseReferralCodeControllerApi.d.ts +0 -12
- package/dist/typescript-fetch/apis/CaseReferralCodeControllerApi.js +0 -30
- package/dist/typescript-fetch/models/SaveBillingProductOptionRequest.d.ts +14 -0
- package/dist/typescript-fetch/models/SaveBillingProductOptionRequest.js +11 -0
- package/dist/typescript-open-api/otr-backend.d.ts +3 -46
- package/package.json +1 -1
|
@@ -154,67 +154,6 @@ export class CaseReferralCodeControllerService {
|
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
/**
|
|
158
|
-
* removeReferralCodeFromCase
|
|
159
|
-
* @param caseId caseId
|
|
160
|
-
* @param codeId codeId
|
|
161
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
162
|
-
* @param reportProgress flag to report request and response progress.
|
|
163
|
-
*/
|
|
164
|
-
public removeReferralCodeFromCaseUsingDELETE(caseId: string, codeId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
|
|
165
|
-
public removeReferralCodeFromCaseUsingDELETE(caseId: string, codeId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
|
|
166
|
-
public removeReferralCodeFromCaseUsingDELETE(caseId: string, codeId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
|
|
167
|
-
public removeReferralCodeFromCaseUsingDELETE(caseId: string, codeId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
|
|
168
|
-
if (caseId === null || caseId === undefined) {
|
|
169
|
-
throw new Error('Required parameter caseId was null or undefined when calling removeReferralCodeFromCaseUsingDELETE.');
|
|
170
|
-
}
|
|
171
|
-
if (codeId === null || codeId === undefined) {
|
|
172
|
-
throw new Error('Required parameter codeId was null or undefined when calling removeReferralCodeFromCaseUsingDELETE.');
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
let localVarHeaders = this.defaultHeaders;
|
|
176
|
-
|
|
177
|
-
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
178
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
179
|
-
// to determine the Accept header
|
|
180
|
-
const httpHeaderAccepts: string[] = [
|
|
181
|
-
];
|
|
182
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
183
|
-
}
|
|
184
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
185
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
189
|
-
if (localVarHttpContext === undefined) {
|
|
190
|
-
localVarHttpContext = new HttpContext();
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
195
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
196
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
197
|
-
responseType_ = 'text';
|
|
198
|
-
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
199
|
-
responseType_ = 'json';
|
|
200
|
-
} else {
|
|
201
|
-
responseType_ = 'blob';
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/referralcode/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
|
206
|
-
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
|
207
|
-
{
|
|
208
|
-
context: localVarHttpContext,
|
|
209
|
-
responseType: <any>responseType_,
|
|
210
|
-
withCredentials: this.configuration.withCredentials,
|
|
211
|
-
headers: localVarHeaders,
|
|
212
|
-
observe: observe,
|
|
213
|
-
reportProgress: reportProgress
|
|
214
|
-
}
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
157
|
/**
|
|
219
158
|
* removeReferralCodeFromCaseV2
|
|
220
159
|
* @param caseId caseId
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
export interface SaveBillingProductOptionRequest {
|
|
15
15
|
interval?: SaveBillingProductOptionRequest.IntervalEnum;
|
|
16
|
+
offerType?: SaveBillingProductOptionRequest.OfferTypeEnum;
|
|
16
17
|
}
|
|
17
18
|
export namespace SaveBillingProductOptionRequest {
|
|
18
19
|
export type IntervalEnum = 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY';
|
|
@@ -23,6 +24,11 @@ export namespace SaveBillingProductOptionRequest {
|
|
|
23
24
|
Weekly: 'WEEKLY' as IntervalEnum,
|
|
24
25
|
Yearly: 'YEARLY' as IntervalEnum
|
|
25
26
|
};
|
|
27
|
+
export type OfferTypeEnum = 'TRIAL_1M_MONTHLY' | 'TRIAL_2M_YEARLY_UPFRONT';
|
|
28
|
+
export const OfferTypeEnum = {
|
|
29
|
+
_1MMonthly: 'TRIAL_1M_MONTHLY' as OfferTypeEnum,
|
|
30
|
+
_2MYearlyUpfront: 'TRIAL_2M_YEARLY_UPFRONT' as OfferTypeEnum
|
|
31
|
+
};
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
|
|
@@ -3796,48 +3796,6 @@ angular.module('otrBackendService', [])
|
|
|
3796
3796
|
|
|
3797
3797
|
return deferred.promise;
|
|
3798
3798
|
};
|
|
3799
|
-
/**
|
|
3800
|
-
* removeReferralCodeFromCase
|
|
3801
|
-
* @method
|
|
3802
|
-
* @name OtrService#removeReferralCodeFromCaseUsingDELETE
|
|
3803
|
-
* @param {object} parameters - method options and parameters
|
|
3804
|
-
* @param {string} parameters.caseId - caseId
|
|
3805
|
-
* @param {string} parameters.codeId - codeId
|
|
3806
|
-
*/
|
|
3807
|
-
OtrService.prototype.removeReferralCodeFromCaseUsingDELETE = function(parameters) {
|
|
3808
|
-
if (parameters === undefined) {
|
|
3809
|
-
parameters = {};
|
|
3810
|
-
}
|
|
3811
|
-
var deferred = $q.defer();
|
|
3812
|
-
var domain = this.domain,
|
|
3813
|
-
path = '/api/v1/cases/{caseId}/referralcode/{codeId}';
|
|
3814
|
-
var body = {},
|
|
3815
|
-
queryParameters = {},
|
|
3816
|
-
headers = {},
|
|
3817
|
-
form = {};
|
|
3818
|
-
|
|
3819
|
-
headers['Accept'] = ['*/*'];
|
|
3820
|
-
|
|
3821
|
-
path = path.replace('{caseId}', parameters['caseId']);
|
|
3822
|
-
|
|
3823
|
-
if (parameters['caseId'] === undefined) {
|
|
3824
|
-
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
3825
|
-
return deferred.promise;
|
|
3826
|
-
}
|
|
3827
|
-
|
|
3828
|
-
path = path.replace('{codeId}', parameters['codeId']);
|
|
3829
|
-
|
|
3830
|
-
if (parameters['codeId'] === undefined) {
|
|
3831
|
-
deferred.reject(new Error('Missing required parameter: codeId'));
|
|
3832
|
-
return deferred.promise;
|
|
3833
|
-
}
|
|
3834
|
-
|
|
3835
|
-
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
3836
|
-
|
|
3837
|
-
this.request('DELETE', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
3838
|
-
|
|
3839
|
-
return deferred.promise;
|
|
3840
|
-
};
|
|
3841
3799
|
/**
|
|
3842
3800
|
* updateRefundEligibilityForCase
|
|
3843
3801
|
* @method
|