@iletimerkezi/iletimerkezi-node
Version:
İleti Merkezi Node.js SDK
30 lines • 743 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookReport = void 0;
class WebhookReport {
constructor(data) {
this.data = data || {};
}
getOrderId() {
return this.data.orderId || '';
}
getNumber() {
return this.data.number || '';
}
getStatus() {
return this.data.status || '';
}
getTimestamp() {
return this.data.timestamp || '';
}
toJSON() {
return {
orderId: this.getOrderId(),
number: this.getNumber(),
status: this.getStatus(),
timestamp: this.getTimestamp()
};
}
}
exports.WebhookReport = WebhookReport;
//# sourceMappingURL=WebhookReport.js.map