@otr-app/shared-backend-generated-client 2.5.59 → 2.5.60
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/model/createBillingSubscriptionRequest.ts +11 -0
- package/dist/typescript/model/CreateBillingSubscriptionRequest.d.ts +9 -0
- package/dist/typescript/model/CreateBillingSubscriptionRequest.js +9 -1
- package/dist/typescript-fetch/models/CreateBillingSubscriptionRequest.d.ts +21 -0
- package/dist/typescript-fetch/models/CreateBillingSubscriptionRequest.js +14 -0
- package/dist/typescript-open-api/otr-backend.d.ts +8 -0
- package/dist/typescript-open-api/otr-backend.js +6 -0
- package/package.json +1 -1
|
@@ -15,9 +15,20 @@ import { SubscriptionGuardianModel } from './subscriptionGuardianModel';
|
|
|
15
15
|
export interface CreateBillingSubscriptionRequest {
|
|
16
16
|
accountIdempotencyKey?: string;
|
|
17
17
|
cardId?: string;
|
|
18
|
+
caseId?: string;
|
|
18
19
|
guardian?: SubscriptionGuardianModel;
|
|
20
|
+
initialSubscriptionFlow?: CreateBillingSubscriptionRequest.InitialSubscriptionFlowEnum;
|
|
19
21
|
priceIds?: Array<string>;
|
|
20
22
|
productId?: string;
|
|
21
23
|
trialEndDate?: string;
|
|
22
24
|
}
|
|
25
|
+
export namespace CreateBillingSubscriptionRequest {
|
|
26
|
+
export type InitialSubscriptionFlowEnum = 'BOOKING_UPSELL' | 'FASTLANE_TEEN_FLOW' | 'HOME_PAGE_BANNER';
|
|
27
|
+
export const InitialSubscriptionFlowEnum = {
|
|
28
|
+
BookingUpsell: 'BOOKING_UPSELL' as InitialSubscriptionFlowEnum,
|
|
29
|
+
FastlaneTeenFlow: 'FASTLANE_TEEN_FLOW' as InitialSubscriptionFlowEnum,
|
|
30
|
+
HomePageBanner: 'HOME_PAGE_BANNER' as InitialSubscriptionFlowEnum
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
|
|
@@ -13,8 +13,17 @@ import * as models from './models';
|
|
|
13
13
|
export interface CreateBillingSubscriptionRequest {
|
|
14
14
|
"accountIdempotencyKey"?: string;
|
|
15
15
|
"cardId"?: string;
|
|
16
|
+
"caseId"?: string;
|
|
16
17
|
"guardian"?: models.SubscriptionGuardianModel;
|
|
18
|
+
"initialSubscriptionFlow"?: CreateBillingSubscriptionRequest.InitialSubscriptionFlowEnum;
|
|
17
19
|
"priceIds"?: Array<string>;
|
|
18
20
|
"productId"?: string;
|
|
19
21
|
"trialEndDate"?: string;
|
|
20
22
|
}
|
|
23
|
+
export declare namespace CreateBillingSubscriptionRequest {
|
|
24
|
+
enum InitialSubscriptionFlowEnum {
|
|
25
|
+
BOOKINGUPSELL,
|
|
26
|
+
FASTLANETEENFLOW,
|
|
27
|
+
HOMEPAGEBANNER
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -9,4 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export var CreateBillingSubscriptionRequest;
|
|
13
|
+
(function (CreateBillingSubscriptionRequest) {
|
|
14
|
+
let InitialSubscriptionFlowEnum;
|
|
15
|
+
(function (InitialSubscriptionFlowEnum) {
|
|
16
|
+
InitialSubscriptionFlowEnum[InitialSubscriptionFlowEnum["BOOKINGUPSELL"] = 'BOOKING_UPSELL'] = "BOOKINGUPSELL";
|
|
17
|
+
InitialSubscriptionFlowEnum[InitialSubscriptionFlowEnum["FASTLANETEENFLOW"] = 'FASTLANE_TEEN_FLOW'] = "FASTLANETEENFLOW";
|
|
18
|
+
InitialSubscriptionFlowEnum[InitialSubscriptionFlowEnum["HOMEPAGEBANNER"] = 'HOME_PAGE_BANNER'] = "HOMEPAGEBANNER";
|
|
19
|
+
})(InitialSubscriptionFlowEnum = CreateBillingSubscriptionRequest.InitialSubscriptionFlowEnum || (CreateBillingSubscriptionRequest.InitialSubscriptionFlowEnum = {}));
|
|
20
|
+
})(CreateBillingSubscriptionRequest || (CreateBillingSubscriptionRequest = {}));
|
|
@@ -28,12 +28,24 @@ export interface CreateBillingSubscriptionRequest {
|
|
|
28
28
|
* @memberof CreateBillingSubscriptionRequest
|
|
29
29
|
*/
|
|
30
30
|
cardId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateBillingSubscriptionRequest
|
|
35
|
+
*/
|
|
36
|
+
caseId?: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {SubscriptionGuardianModel}
|
|
34
40
|
* @memberof CreateBillingSubscriptionRequest
|
|
35
41
|
*/
|
|
36
42
|
guardian?: SubscriptionGuardianModel;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateBillingSubscriptionRequest
|
|
47
|
+
*/
|
|
48
|
+
initialSubscriptionFlow?: CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum;
|
|
37
49
|
/**
|
|
38
50
|
*
|
|
39
51
|
* @type {Array<string>}
|
|
@@ -56,3 +68,12 @@ export interface CreateBillingSubscriptionRequest {
|
|
|
56
68
|
export declare function CreateBillingSubscriptionRequestFromJSON(json: any): CreateBillingSubscriptionRequest;
|
|
57
69
|
export declare function CreateBillingSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBillingSubscriptionRequest;
|
|
58
70
|
export declare function CreateBillingSubscriptionRequestToJSON(value?: CreateBillingSubscriptionRequest | null): any;
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
* @enum {string}
|
|
74
|
+
*/
|
|
75
|
+
export declare enum CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum {
|
|
76
|
+
BOOKINGUPSELL = "BOOKING_UPSELL",
|
|
77
|
+
FASTLANETEENFLOW = "FASTLANE_TEEN_FLOW",
|
|
78
|
+
HOMEPAGEBANNER = "HOME_PAGE_BANNER"
|
|
79
|
+
}
|
|
@@ -23,7 +23,9 @@ export function CreateBillingSubscriptionRequestFromJSONTyped(json, ignoreDiscri
|
|
|
23
23
|
return {
|
|
24
24
|
'accountIdempotencyKey': !exists(json, 'accountIdempotencyKey') ? undefined : json['accountIdempotencyKey'],
|
|
25
25
|
'cardId': !exists(json, 'cardId') ? undefined : json['cardId'],
|
|
26
|
+
'caseId': !exists(json, 'caseId') ? undefined : json['caseId'],
|
|
26
27
|
'guardian': !exists(json, 'guardian') ? undefined : SubscriptionGuardianModelFromJSON(json['guardian']),
|
|
28
|
+
'initialSubscriptionFlow': !exists(json, 'initialSubscriptionFlow') ? undefined : json['initialSubscriptionFlow'],
|
|
27
29
|
'priceIds': !exists(json, 'priceIds') ? undefined : json['priceIds'],
|
|
28
30
|
'productId': !exists(json, 'productId') ? undefined : json['productId'],
|
|
29
31
|
'trialEndDate': !exists(json, 'trialEndDate') ? undefined : (new Date(json['trialEndDate'])),
|
|
@@ -39,9 +41,21 @@ export function CreateBillingSubscriptionRequestToJSON(value) {
|
|
|
39
41
|
return {
|
|
40
42
|
'accountIdempotencyKey': value.accountIdempotencyKey,
|
|
41
43
|
'cardId': value.cardId,
|
|
44
|
+
'caseId': value.caseId,
|
|
42
45
|
'guardian': SubscriptionGuardianModelToJSON(value.guardian),
|
|
46
|
+
'initialSubscriptionFlow': value.initialSubscriptionFlow,
|
|
43
47
|
'priceIds': value.priceIds,
|
|
44
48
|
'productId': value.productId,
|
|
45
49
|
'trialEndDate': value.trialEndDate === undefined ? undefined : (value.trialEndDate.toISOString().substr(0, 10)),
|
|
46
50
|
};
|
|
47
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
* @enum {string}
|
|
55
|
+
*/
|
|
56
|
+
export var CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum;
|
|
57
|
+
(function (CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum) {
|
|
58
|
+
CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum["BOOKINGUPSELL"] = "BOOKING_UPSELL";
|
|
59
|
+
CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum["FASTLANETEENFLOW"] = "FASTLANE_TEEN_FLOW";
|
|
60
|
+
CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum["HOMEPAGEBANNER"] = "HOME_PAGE_BANNER";
|
|
61
|
+
})(CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum || (CreateBillingSubscriptionRequestInitialSubscriptionFlowEnum = {}));
|
|
@@ -9519,7 +9519,10 @@ export interface components {
|
|
|
9519
9519
|
CreateBillingSubscriptionRequest: {
|
|
9520
9520
|
accountIdempotencyKey?: string;
|
|
9521
9521
|
cardId?: string;
|
|
9522
|
+
caseId?: string;
|
|
9522
9523
|
guardian?: components["schemas"]["SubscriptionGuardianModel"];
|
|
9524
|
+
/** @enum {string} */
|
|
9525
|
+
initialSubscriptionFlow?: CreateBillingSubscriptionRequestInitialSubscriptionFlow;
|
|
9523
9526
|
priceIds?: string[];
|
|
9524
9527
|
productId?: string;
|
|
9525
9528
|
/** Format: date */
|
|
@@ -40844,6 +40847,11 @@ export declare enum CoachingCardUsersModelPermissionType {
|
|
|
40844
40847
|
PARTICIPANT = "PARTICIPANT",
|
|
40845
40848
|
RECIPIENT = "RECIPIENT"
|
|
40846
40849
|
}
|
|
40850
|
+
export declare enum CreateBillingSubscriptionRequestInitialSubscriptionFlow {
|
|
40851
|
+
BOOKING_UPSELL = "BOOKING_UPSELL",
|
|
40852
|
+
FASTLANE_TEEN_FLOW = "FASTLANE_TEEN_FLOW",
|
|
40853
|
+
HOME_PAGE_BANNER = "HOME_PAGE_BANNER"
|
|
40854
|
+
}
|
|
40847
40855
|
export declare enum CreateLawfirmModelLawfirmPaymentModel {
|
|
40848
40856
|
DESTINATION_ACCOUNT = "DESTINATION_ACCOUNT",
|
|
40849
40857
|
SEPARATE_CHARGE = "SEPARATE_CHARGE",
|
|
@@ -778,6 +778,12 @@ export var CoachingCardUsersModelPermissionType;
|
|
|
778
778
|
CoachingCardUsersModelPermissionType["PARTICIPANT"] = "PARTICIPANT";
|
|
779
779
|
CoachingCardUsersModelPermissionType["RECIPIENT"] = "RECIPIENT";
|
|
780
780
|
})(CoachingCardUsersModelPermissionType || (CoachingCardUsersModelPermissionType = {}));
|
|
781
|
+
export var CreateBillingSubscriptionRequestInitialSubscriptionFlow;
|
|
782
|
+
(function (CreateBillingSubscriptionRequestInitialSubscriptionFlow) {
|
|
783
|
+
CreateBillingSubscriptionRequestInitialSubscriptionFlow["BOOKING_UPSELL"] = "BOOKING_UPSELL";
|
|
784
|
+
CreateBillingSubscriptionRequestInitialSubscriptionFlow["FASTLANE_TEEN_FLOW"] = "FASTLANE_TEEN_FLOW";
|
|
785
|
+
CreateBillingSubscriptionRequestInitialSubscriptionFlow["HOME_PAGE_BANNER"] = "HOME_PAGE_BANNER";
|
|
786
|
+
})(CreateBillingSubscriptionRequestInitialSubscriptionFlow || (CreateBillingSubscriptionRequestInitialSubscriptionFlow = {}));
|
|
781
787
|
export var CreateLawfirmModelLawfirmPaymentModel;
|
|
782
788
|
(function (CreateLawfirmModelLawfirmPaymentModel) {
|
|
783
789
|
CreateLawfirmModelLawfirmPaymentModel["DESTINATION_ACCOUNT"] = "DESTINATION_ACCOUNT";
|