// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class DescribeSavingsPlanPriceResponseBodyPriceInfoPrice extends $dara.Model { currency?: string; discountPrice?: number; originalPrice?: number; tradePrice?: number; static names(): { [key: string]: string } { return { currency: 'Currency', discountPrice: 'DiscountPrice', originalPrice: 'OriginalPrice', tradePrice: 'TradePrice', }; } static types(): { [key: string]: any } { return { currency: 'string', discountPrice: 'number', originalPrice: 'number', tradePrice: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class DescribeSavingsPlanPriceResponseBodyPriceInfoRules extends $dara.Model { description?: string; ruleId?: string; static names(): { [key: string]: string } { return { description: 'Description', ruleId: 'RuleId', }; } static types(): { [key: string]: any } { return { description: 'string', ruleId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class DescribeSavingsPlanPriceResponseBodyPriceInfo extends $dara.Model { price?: DescribeSavingsPlanPriceResponseBodyPriceInfoPrice; rules?: DescribeSavingsPlanPriceResponseBodyPriceInfoRules[]; static names(): { [key: string]: string } { return { price: 'Price', rules: 'Rules', }; } static types(): { [key: string]: any } { return { price: DescribeSavingsPlanPriceResponseBodyPriceInfoPrice, rules: { 'type': 'array', 'itemType': DescribeSavingsPlanPriceResponseBodyPriceInfoRules }, }; } validate() { if(this.price && typeof (this.price as any).validate === 'function') { (this.price as any).validate(); } if(Array.isArray(this.rules)) { $dara.Model.validateArray(this.rules); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class DescribeSavingsPlanPriceResponseBody extends $dara.Model { priceInfo?: DescribeSavingsPlanPriceResponseBodyPriceInfo; requestId?: string; static names(): { [key: string]: string } { return { priceInfo: 'PriceInfo', requestId: 'RequestId', }; } static types(): { [key: string]: any } { return { priceInfo: DescribeSavingsPlanPriceResponseBodyPriceInfo, requestId: 'string', }; } validate() { if(this.priceInfo && typeof (this.priceInfo as any).validate === 'function') { (this.priceInfo as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }