UNPKG

@iletimerkezi/iletimerkezi-node

Version:
19 lines 557 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SmsResponse = void 0; const BaseResponse_1 = require("./BaseResponse"); class SmsResponse extends BaseResponse_1.BaseResponse { getOrderId() { return this.data?.order?.id; } toJSON() { return { success: this.ok(), statusCode: this.getStatusCode(), message: this.getMessage(), orderId: this.getOrderId() }; } } exports.SmsResponse = SmsResponse; //# sourceMappingURL=SmsResponse.js.map