-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* temp fixes * add existing payment method option to checkout flow * use text color instead of checking card bg * adjust available plans logic
- Loading branch information
Showing
9 changed files
with
465 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
237 changes: 237 additions & 0 deletions
237
react/src/api/models/PlanGroupPlanDetailResponseData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,237 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Schematic API | ||
* Schematic API | ||
* | ||
* The version of the OpenAPI document: 0.1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from "../runtime"; | ||
import type { FeatureDetailResponseData } from "./FeatureDetailResponseData"; | ||
import { | ||
FeatureDetailResponseDataFromJSON, | ||
FeatureDetailResponseDataFromJSONTyped, | ||
FeatureDetailResponseDataToJSON, | ||
} from "./FeatureDetailResponseData"; | ||
import type { PlanEntitlementResponseData } from "./PlanEntitlementResponseData"; | ||
import { | ||
PlanEntitlementResponseDataFromJSON, | ||
PlanEntitlementResponseDataFromJSONTyped, | ||
PlanEntitlementResponseDataToJSON, | ||
} from "./PlanEntitlementResponseData"; | ||
import type { BillingPriceResponseData } from "./BillingPriceResponseData"; | ||
import { | ||
BillingPriceResponseDataFromJSON, | ||
BillingPriceResponseDataFromJSONTyped, | ||
BillingPriceResponseDataToJSON, | ||
} from "./BillingPriceResponseData"; | ||
import type { BillingProductDetailResponseData } from "./BillingProductDetailResponseData"; | ||
import { | ||
BillingProductDetailResponseDataFromJSON, | ||
BillingProductDetailResponseDataFromJSONTyped, | ||
BillingProductDetailResponseDataToJSON, | ||
} from "./BillingProductDetailResponseData"; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface PlanGroupPlanDetailResponseData | ||
*/ | ||
export interface PlanGroupPlanDetailResponseData { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
audienceType?: string | null; | ||
/** | ||
* | ||
* @type {BillingProductDetailResponseData} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
billingProduct?: BillingProductDetailResponseData; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
companyCount: number; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
createdAt: Date; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
description: string; | ||
/** | ||
* | ||
* @type {Array<PlanEntitlementResponseData>} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
entitlements: Array<PlanEntitlementResponseData>; | ||
/** | ||
* | ||
* @type {Array<FeatureDetailResponseData>} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
features: Array<FeatureDetailResponseData>; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
icon: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
id: string; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
isDefault: boolean; | ||
/** | ||
* | ||
* @type {BillingPriceResponseData} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
monthlyPrice?: BillingPriceResponseData; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
name: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
planType: string; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
updatedAt: Date; | ||
/** | ||
* | ||
* @type {BillingPriceResponseData} | ||
* @memberof PlanGroupPlanDetailResponseData | ||
*/ | ||
yearlyPrice?: BillingPriceResponseData; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the PlanGroupPlanDetailResponseData interface. | ||
*/ | ||
export function instanceOfPlanGroupPlanDetailResponseData( | ||
value: object, | ||
): value is PlanGroupPlanDetailResponseData { | ||
if (!("companyCount" in value) || value["companyCount"] === undefined) | ||
return false; | ||
if (!("createdAt" in value) || value["createdAt"] === undefined) return false; | ||
if (!("description" in value) || value["description"] === undefined) | ||
return false; | ||
if (!("entitlements" in value) || value["entitlements"] === undefined) | ||
return false; | ||
if (!("features" in value) || value["features"] === undefined) return false; | ||
if (!("icon" in value) || value["icon"] === undefined) return false; | ||
if (!("id" in value) || value["id"] === undefined) return false; | ||
if (!("isDefault" in value) || value["isDefault"] === undefined) return false; | ||
if (!("name" in value) || value["name"] === undefined) return false; | ||
if (!("planType" in value) || value["planType"] === undefined) return false; | ||
if (!("updatedAt" in value) || value["updatedAt"] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function PlanGroupPlanDetailResponseDataFromJSON( | ||
json: any, | ||
): PlanGroupPlanDetailResponseData { | ||
return PlanGroupPlanDetailResponseDataFromJSONTyped(json, false); | ||
} | ||
|
||
export function PlanGroupPlanDetailResponseDataFromJSONTyped( | ||
json: any, | ||
ignoreDiscriminator: boolean, | ||
): PlanGroupPlanDetailResponseData { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
audienceType: | ||
json["audience_type"] == null ? undefined : json["audience_type"], | ||
billingProduct: | ||
json["billing_product"] == null | ||
? undefined | ||
: BillingProductDetailResponseDataFromJSON(json["billing_product"]), | ||
companyCount: json["company_count"], | ||
createdAt: new Date(json["created_at"]), | ||
description: json["description"], | ||
entitlements: (json["entitlements"] as Array<any>).map( | ||
PlanEntitlementResponseDataFromJSON, | ||
), | ||
features: (json["features"] as Array<any>).map( | ||
FeatureDetailResponseDataFromJSON, | ||
), | ||
icon: json["icon"], | ||
id: json["id"], | ||
isDefault: json["is_default"], | ||
monthlyPrice: | ||
json["monthly_price"] == null | ||
? undefined | ||
: BillingPriceResponseDataFromJSON(json["monthly_price"]), | ||
name: json["name"], | ||
planType: json["plan_type"], | ||
updatedAt: new Date(json["updated_at"]), | ||
yearlyPrice: | ||
json["yearly_price"] == null | ||
? undefined | ||
: BillingPriceResponseDataFromJSON(json["yearly_price"]), | ||
}; | ||
} | ||
|
||
export function PlanGroupPlanDetailResponseDataToJSON( | ||
value?: PlanGroupPlanDetailResponseData | null, | ||
): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
audience_type: value["audienceType"], | ||
billing_product: BillingProductDetailResponseDataToJSON( | ||
value["billingProduct"], | ||
), | ||
company_count: value["companyCount"], | ||
created_at: value["createdAt"].toISOString(), | ||
description: value["description"], | ||
entitlements: (value["entitlements"] as Array<any>).map( | ||
PlanEntitlementResponseDataToJSON, | ||
), | ||
features: (value["features"] as Array<any>).map( | ||
FeatureDetailResponseDataToJSON, | ||
), | ||
icon: value["icon"], | ||
id: value["id"], | ||
is_default: value["isDefault"], | ||
monthly_price: BillingPriceResponseDataToJSON(value["monthlyPrice"]), | ||
name: value["name"], | ||
plan_type: value["planType"], | ||
updated_at: value["updatedAt"].toISOString(), | ||
yearly_price: BillingPriceResponseDataToJSON(value["yearlyPrice"]), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.