cordova-plugin-qonversion
Version:
Qonversion Cordova Plugin
29 lines (28 loc) • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Transaction = void 0;
class Transaction {
originalTransactionId;
transactionId;
transactionDate;
environment;
ownershipType;
type;
expirationDate;
transactionRevocationDate;
offerCode;
promoOfferId;
constructor(originalTransactionId, transactionId, transactionTimestamp, environment, ownershipType, type, expirationTimestamp, transactionRevocationTimestamp, offerCode, promoOfferId) {
this.originalTransactionId = originalTransactionId;
this.transactionId = transactionId;
this.transactionDate = new Date(transactionTimestamp);
this.environment = environment;
this.ownershipType = ownershipType;
this.type = type;
this.expirationDate = expirationTimestamp ? new Date(expirationTimestamp) : undefined;
this.transactionRevocationDate = transactionRevocationTimestamp ? new Date(transactionRevocationTimestamp) : undefined;
this.offerCode = offerCode;
this.promoOfferId = promoOfferId;
}
}
exports.Transaction = Transaction;