Created
May 30, 2019 17:59
-
-
Save renancaraujo/5b248a716279a7470acf20b26bb873d3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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