@iletimerkezi/iletimerkezi-node
Version:
İleti Merkezi Node.js SDK
19 lines • 557 B
JavaScript
;
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