UNPKG

@gobolt/models

Version:

This is a shared repository that includes models that should be shared across all BoxKnight services. Do not include anything for the controller, service or repository layers of your application in this package.

221 lines 8.35 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RateResponse = void 0; const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations"); const dispatcherType_1 = require("../merchant/strategies/speed/dispatcherType"); const speedPricingType_1 = require("../merchant/strategies/speed/speedPricingType"); class RateResponse { constructor() { this.getPrice = () => { return this.price; }; this.setPrice = (value) => { this.price = value; }; this.getService = () => { return this.service; }; this.setService = (value) => { this.service = value; }; this.getName = () => { return this.name; }; this.setName = (value) => { this.name = value; }; this.getDescription = () => { return this.description; }; this.setDescription = (value) => { this.description = value; }; this.getEstimateDay = () => { return this.estimateDay; }; this.setEstimateDay = (value) => { this.estimateDay = value; }; this.getEstimateFrom = () => { return this.estimateFrom; }; this.setEstimateFrom = (value) => { this.estimateFrom = value; }; this.getEstimateTo = () => { return this.estimateTo; }; this.setEstimateTo = (value) => { this.estimateTo = value; }; this.getEpochEstimateFrom = () => { return this.epochEstimateFrom; }; this.setEpochEstimateFrom = (value) => { this.epochEstimateFrom = value; }; this.getEpochEstimateTo = () => { return this.epochEstimateTo; }; this.setEpochEstimateTo = (value) => { this.epochEstimateTo = value; }; this.getPickupEpochEstimateFrom = () => { return this.epochPickupEstimateFrom; }; this.setPickupEpochEstimateFrom = (value) => { this.epochPickupEstimateFrom = value; }; this.getPickupEpochEstimateTo = () => { return this.epochPickupEstimateTo; }; this.setPickupEpochEstimateTo = (value) => { this.epochPickupEstimateTo = value; }; this.getPricingBreakdown = () => { return this.pricingBreakdown; }; this.setPricingBreakdown = (value) => { this.pricingBreakdown = value; }; this.getDispatcher = () => { return this.dispatcher; }; this.setDispatcher = (value) => { this.dispatcher = value; }; this.getDestinationTimezone = () => { return this.destinationTimezone; }; this.setDestinationTimezone = (value) => { this.destinationTimezone = value; }; this.getOriginTimezone = () => { return this.originTimezone; }; this.setOriginTimezone = (value) => { this.originTimezone = value; }; this.getInTransitDays = () => { return this.inTransitDays; }; this.setInTransitDays = (value) => { this.inTransitDays = value; }; this.getDeliveryService = () => { return this.deliveryService; }; this.setDeliveryService = (deliveryServiceType) => { this.deliveryService = deliveryServiceType; }; this.getDestinationPostalPrefix = () => { return this.destinationPostalPrefix; }; this.setDestinationPostalPrefix = (destinationPostalPrefix) => { this.destinationPostalPrefix = destinationPostalPrefix; }; this.getOriginFacility = () => { return this.originFacility; }; this.setOriginFacility = (facility) => { this.originFacility = facility; }; this.getDestinationFacility = () => { return this.destinationFacility; }; this.setDestinationFacility = (facility) => { this.destinationFacility = facility; }; } } exports.RateResponse = RateResponse; __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", Number) ], RateResponse.prototype, "price", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "service", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "deliveryService", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "name", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "description", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "estimateDay", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "estimateFrom", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "estimateTo", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", Number) ], RateResponse.prototype, "epochEstimateFrom", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", Number) ], RateResponse.prototype, "epochEstimateTo", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", Number) ], RateResponse.prototype, "epochPickupEstimateFrom", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", Number) ], RateResponse.prototype, "epochPickupEstimateTo", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", Array) ], RateResponse.prototype, "pricingBreakdown", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "dispatcher", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "destinationTimezone", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "destinationPostalPrefix", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "originTimezone", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", Number) ], RateResponse.prototype, "inTransitDays", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "originFacility", void 0); __decorate([ (0, dynamodb_data_mapper_annotations_1.attribute)(), __metadata("design:type", String) ], RateResponse.prototype, "destinationFacility", void 0); //# sourceMappingURL=rateResponse.js.map