UNPKG

@adapty/capacitor

Version:
39 lines 1.36 kB
import { SimpleCoder } from './coder'; import { AdaptySubscriptionPeriodCoder } from './adapty-subscription-period'; import { AdaptyPriceCoder } from './adapty-price'; export class AdaptyDiscountPhaseCoder extends SimpleCoder { constructor() { super(...arguments); this.properties = { localizedNumberOfPeriods: { key: 'localized_number_of_periods', required: false, type: 'string', }, localizedSubscriptionPeriod: { key: 'localized_subscription_period', required: false, type: 'string', }, numberOfPeriods: { key: 'number_of_periods', required: true, type: 'number', }, paymentMode: { key: 'payment_mode', required: true, type: 'string' }, price: { key: 'price', required: true, type: 'object', converter: new AdaptyPriceCoder(), }, subscriptionPeriod: { key: 'subscription_period', required: true, type: 'object', converter: new AdaptySubscriptionPeriodCoder(), }, }; } } //# sourceMappingURL=adapty-discount-phase.js.map