convertToPigeon static method
Convert from SKProductDiscountWrapper to SKProductDiscountMessage
Implementation
@visibleForTesting
static SKProductDiscountMessage convertToPigeon(
SKProductDiscountWrapper wrapper) {
return SKProductDiscountMessage(
price: wrapper.price,
priceLocale: SKPriceLocaleWrapper.convertToPigeon(wrapper.priceLocale),
numberOfPeriods: wrapper.numberOfPeriods,
paymentMode:
SKProductDiscountPaymentMode.convertToPigeon(wrapper.paymentMode),
subscriptionPeriod: SKProductSubscriptionPeriodWrapper.convertToPigeon(
wrapper.subscriptionPeriod),
identifier: wrapper.identifier,
type: SKProductDiscountType.convertToPigeon(wrapper.type));
}