Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save renancaraujo/5b248a716279a7470acf20b26bb873d3 to your computer and use it in GitHub Desktop.
Save renancaraujo/5b248a716279a7470acf20b26bb873d3 to your computer and use it in GitHub Desktop.
import { IOfferJson, IDType, IntervalType } from '@/interfaces/Offer';
interface ICreditCardInfo {
installmentsNumber: number;
installmentsPrice: number;
discountPercentage: number;
isVisible: boolean;
paramToDisplay?: string;
isActive: boolean;
}
interface IBankSlipInfo {
discountPercentage: number;
isVisible: boolean;
paramToDisplay?: string;
isActive: boolean;
}
class OfferPlansWithPaymentCondition {
planId: IDType;
intervalType: IntervalType;
creditCardInfo?: ICreditCardInfo;
bankSlipInfo?: IBankSlipInfo;
}
class Author{
name: string;
id: IDType;
}
class Offer {
constructor(offerJSON: IOfferJson){
}
id: IDType;
price: number;
plan: Array<OfferPlansWithPaymentConmdition>;
}
export default Offer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment