@adapty/capacitor
Version:
Official Adapty SDK for Capacitor
31 lines • 1.17 kB
JavaScript
import { SimpleCoder } from './coder';
import { DateCoder } from './date';
export class AdaptyNonSubscriptionCoder extends SimpleCoder {
constructor() {
super(...arguments);
this.properties = {
isConsumable: { key: 'is_consumable', required: true, type: 'boolean' },
isRefund: { key: 'is_refund', required: true, type: 'boolean' },
isSandbox: { key: 'is_sandbox', required: true, type: 'boolean' },
purchasedAt: {
key: 'purchased_at',
required: true,
type: 'string',
converter: new DateCoder(),
},
purchaseId: { key: 'purchase_id', required: true, type: 'string' },
store: { key: 'store', required: true, type: 'string' },
vendorProductId: {
key: 'vendor_product_id',
required: true,
type: 'string',
},
vendorTransactionId: {
key: 'vendor_transaction_id',
required: false,
type: 'string',
},
};
}
}
//# sourceMappingURL=adapty-non-subscription.js.map