@gobolt/models 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/merchant/Shop.d.ts +4 -0
- package/dist/merchant/Shop.js +25 -0
- package/dist/merchant/Shop.js.map +1 -0
- package/dist/merchant/address/address.d.ts +17 -0
- package/dist/merchant/address/address.js +78 -0
- package/dist/merchant/address/address.js.map +1 -0
- package/dist/merchant/address/location.d.ts +4 -0
- package/dist/merchant/address/location.js +25 -0
- package/dist/merchant/address/location.js.map +1 -0
- package/dist/merchant/address/recipient.d.ts +5 -0
- package/dist/merchant/address/recipient.js +29 -0
- package/dist/merchant/address/recipient.js.map +1 -0
- package/dist/merchant/constraints/datedDeliveryConstraint.d.ts +8 -0
- package/dist/merchant/constraints/datedDeliveryConstraint.js +41 -0
- package/dist/merchant/constraints/datedDeliveryConstraint.js.map +1 -0
- package/dist/merchant/constraints/datedPickupConstraint.d.ts +4 -0
- package/dist/merchant/constraints/datedPickupConstraint.js +25 -0
- package/dist/merchant/constraints/datedPickupConstraint.js.map +1 -0
- package/dist/merchant/constraints/deliveryConstraint.d.ts +6 -0
- package/dist/merchant/constraints/deliveryConstraint.js +32 -0
- package/dist/merchant/constraints/deliveryConstraint.js.map +1 -0
- package/dist/merchant/constraints/deliveryConstraintsByWeek.d.ts +6 -0
- package/dist/merchant/constraints/deliveryConstraintsByWeek.js +28 -0
- package/dist/merchant/constraints/deliveryConstraintsByWeek.js.map +1 -0
- package/dist/merchant/constraints/pickupConstraint.d.ts +5 -0
- package/dist/merchant/constraints/pickupConstraint.js +28 -0
- package/dist/merchant/constraints/pickupConstraint.js.map +1 -0
- package/dist/merchant/constraints/pickupConstraintsByWeek.d.ts +6 -0
- package/dist/merchant/constraints/pickupConstraintsByWeek.js +28 -0
- package/dist/merchant/constraints/pickupConstraintsByWeek.js.map +1 -0
- package/dist/merchant/constraints/timeWindow.d.ts +4 -0
- package/dist/merchant/constraints/timeWindow.js +28 -0
- package/dist/merchant/constraints/timeWindow.js.map +1 -0
- package/dist/merchant/constraints/weekdayDeliveryConstraint.d.ts +4 -0
- package/dist/merchant/constraints/weekdayDeliveryConstraint.js +25 -0
- package/dist/merchant/constraints/weekdayDeliveryConstraint.js.map +1 -0
- package/dist/merchant/constraints/weekdayPickupConstraint.d.ts +4 -0
- package/dist/merchant/constraints/weekdayPickupConstraint.js +25 -0
- package/dist/merchant/constraints/weekdayPickupConstraint.js.map +1 -0
- package/dist/merchant/customNotifications.d.ts +4 -0
- package/dist/merchant/customNotifications.js +25 -0
- package/dist/merchant/customNotifications.js.map +1 -0
- package/dist/merchant/emailNotifications.d.ts +6 -0
- package/dist/merchant/emailNotifications.js +33 -0
- package/dist/merchant/emailNotifications.js.map +1 -0
- package/dist/merchant/integrationInfo.d.ts +10 -0
- package/dist/merchant/integrationInfo.js +52 -0
- package/dist/merchant/integrationInfo.js.map +1 -0
- package/dist/merchant/labelingFormatType.d.ts +10 -0
- package/dist/merchant/labelingFormatType.js +15 -0
- package/dist/merchant/labelingFormatType.js.map +1 -0
- package/dist/merchant/mappingItem.d.ts +9 -0
- package/dist/merchant/mappingItem.js +40 -0
- package/dist/merchant/mappingItem.js.map +1 -0
- package/dist/merchant/mappingParameterType.d.ts +4 -0
- package/dist/merchant/mappingParameterType.js +9 -0
- package/dist/merchant/mappingParameterType.js.map +1 -0
- package/dist/merchant/merchant.d.ts +186 -0
- package/dist/merchant/merchant.js +585 -0
- package/dist/merchant/merchant.js.map +1 -0
- package/dist/merchant/merchantDisplayLogoUrl.d.ts +8 -0
- package/dist/merchant/merchantDisplayLogoUrl.js +39 -0
- package/dist/merchant/merchantDisplayLogoUrl.js.map +1 -0
- package/dist/merchant/merchantLocation.d.ts +20 -0
- package/dist/merchant/merchantLocation.js +82 -0
- package/dist/merchant/merchantLocation.js.map +1 -0
- package/dist/merchant/otherLocation.d.ts +9 -0
- package/dist/merchant/otherLocation.js +43 -0
- package/dist/merchant/otherLocation.js.map +1 -0
- package/dist/merchant/rateShowingOptionType.d.ts +10 -0
- package/dist/merchant/rateShowingOptionType.js +15 -0
- package/dist/merchant/rateShowingOptionType.js.map +1 -0
- package/dist/merchant/report.d.ts +8 -0
- package/dist/merchant/report.js +39 -0
- package/dist/merchant/report.js.map +1 -0
- package/dist/merchant/shipHero.d.ts +5 -0
- package/dist/merchant/shipHero.js +29 -0
- package/dist/merchant/shipHero.js.map +1 -0
- package/dist/merchant/shippingRule.d.ts +14 -0
- package/dist/merchant/shippingRule.js +55 -0
- package/dist/merchant/shippingRule.js.map +1 -0
- package/dist/merchant/shipstation.d.ts +6 -0
- package/dist/merchant/shipstation.js +33 -0
- package/dist/merchant/shipstation.js.map +1 -0
- package/dist/merchant/status.d.ts +5 -0
- package/dist/merchant/status.js +9 -0
- package/dist/merchant/status.js.map +1 -0
- package/dist/merchant/strategies/location/locationPricing.d.ts +5 -0
- package/dist/merchant/strategies/location/locationPricing.js +26 -0
- package/dist/merchant/strategies/location/locationPricing.js.map +1 -0
- package/dist/merchant/strategies/location/locationPricingRow.d.ts +5 -0
- package/dist/merchant/strategies/location/locationPricingRow.js +26 -0
- package/dist/merchant/strategies/location/locationPricingRow.js.map +1 -0
- package/dist/merchant/strategies/multipack/multipackPricing.d.ts +5 -0
- package/dist/merchant/strategies/multipack/multipackPricing.js +26 -0
- package/dist/merchant/strategies/multipack/multipackPricing.js.map +1 -0
- package/dist/merchant/strategies/multipack/multipackPricingRow.d.ts +6 -0
- package/dist/merchant/strategies/multipack/multipackPricingRow.js +27 -0
- package/dist/merchant/strategies/multipack/multipackPricingRow.js.map +1 -0
- package/dist/merchant/strategies/multipack/multipackPricingType.d.ts +18 -0
- package/dist/merchant/strategies/multipack/multipackPricingType.js +23 -0
- package/dist/merchant/strategies/multipack/multipackPricingType.js.map +1 -0
- package/dist/merchant/strategies/namedPricingStrategy.d.ts +7 -0
- package/dist/merchant/strategies/namedPricingStrategy.js +35 -0
- package/dist/merchant/strategies/namedPricingStrategy.js.map +1 -0
- package/dist/merchant/strategies/pricingEntry.d.ts +6 -0
- package/dist/merchant/strategies/pricingEntry.js +34 -0
- package/dist/merchant/strategies/pricingEntry.js.map +1 -0
- package/dist/merchant/strategies/pricingRow.d.ts +4 -0
- package/dist/merchant/strategies/pricingRow.js +24 -0
- package/dist/merchant/strategies/pricingRow.js.map +1 -0
- package/dist/merchant/strategies/pricingStrategy.d.ts +4 -0
- package/dist/merchant/strategies/pricingStrategy.js +24 -0
- package/dist/merchant/strategies/pricingStrategy.js.map +1 -0
- package/dist/merchant/strategies/signature/signaturePricing.d.ts +5 -0
- package/dist/merchant/strategies/signature/signaturePricing.js +26 -0
- package/dist/merchant/strategies/signature/signaturePricing.js.map +1 -0
- package/dist/merchant/strategies/signature/signaturePricingRow.d.ts +6 -0
- package/dist/merchant/strategies/signature/signaturePricingRow.js +27 -0
- package/dist/merchant/strategies/signature/signaturePricingRow.js.map +1 -0
- package/dist/merchant/strategies/signature/signaturePricingType.d.ts +10 -0
- package/dist/merchant/strategies/signature/signaturePricingType.js +15 -0
- package/dist/merchant/strategies/signature/signaturePricingType.js.map +1 -0
- package/dist/merchant/strategies/size/sizeOptions.d.ts +6 -0
- package/dist/merchant/strategies/size/sizeOptions.js +33 -0
- package/dist/merchant/strategies/size/sizeOptions.js.map +1 -0
- package/dist/merchant/strategies/size/sizePricing.d.ts +5 -0
- package/dist/merchant/strategies/size/sizePricing.js +26 -0
- package/dist/merchant/strategies/size/sizePricing.js.map +1 -0
- package/dist/merchant/strategies/size/sizePricingRow.d.ts +6 -0
- package/dist/merchant/strategies/size/sizePricingRow.js +27 -0
- package/dist/merchant/strategies/size/sizePricingRow.js.map +1 -0
- package/dist/merchant/strategies/size/sizePricingType.d.ts +18 -0
- package/dist/merchant/strategies/size/sizePricingType.js +23 -0
- package/dist/merchant/strategies/size/sizePricingType.js.map +1 -0
- package/dist/merchant/strategies/speed/dispatcherType.d.ts +4 -0
- package/dist/merchant/strategies/speed/dispatcherType.js +9 -0
- package/dist/merchant/strategies/speed/dispatcherType.js.map +1 -0
- package/dist/merchant/strategies/speed/locales.d.ts +6 -0
- package/dist/merchant/strategies/speed/locales.js +26 -0
- package/dist/merchant/strategies/speed/locales.js.map +1 -0
- package/dist/merchant/strategies/speed/speedPricing.d.ts +5 -0
- package/dist/merchant/strategies/speed/speedPricing.js +26 -0
- package/dist/merchant/strategies/speed/speedPricing.js.map +1 -0
- package/dist/merchant/strategies/speed/speedPricingRow.d.ts +12 -0
- package/dist/merchant/strategies/speed/speedPricingRow.js +35 -0
- package/dist/merchant/strategies/speed/speedPricingRow.js.map +1 -0
- package/dist/merchant/strategies/speed/speedPricingType.d.ts +30 -0
- package/dist/merchant/strategies/speed/speedPricingType.js +35 -0
- package/dist/merchant/strategies/speed/speedPricingType.js.map +1 -0
- package/dist/merchant/strategies/weight/weightOptions.d.ts +4 -0
- package/dist/merchant/strategies/weight/weightOptions.js +25 -0
- package/dist/merchant/strategies/weight/weightOptions.js.map +1 -0
- package/dist/merchant/strategies/weight/weightPricing.d.ts +5 -0
- package/dist/merchant/strategies/weight/weightPricing.js +26 -0
- package/dist/merchant/strategies/weight/weightPricing.js.map +1 -0
- package/dist/merchant/strategies/weight/weightPricingRow.d.ts +5 -0
- package/dist/merchant/strategies/weight/weightPricingRow.js +26 -0
- package/dist/merchant/strategies/weight/weightPricingRow.js.map +1 -0
- package/dist/merchant/taskTimeCreationType.d.ts +14 -0
- package/dist/merchant/taskTimeCreationType.js +19 -0
- package/dist/merchant/taskTimeCreationType.js.map +1 -0
- package/dist/merchant/webhookItem.d.ts +4 -0
- package/dist/merchant/webhookItem.js +25 -0
- package/dist/merchant/webhookItem.js.map +1 -0
- package/dist/merchant/webhooks.d.ts +7 -0
- package/dist/merchant/webhooks.js +33 -0
- package/dist/merchant/webhooks.js.map +1 -0
- package/dist/merchant/zone.d.ts +7 -0
- package/dist/merchant/zone.js +34 -0
- package/dist/merchant/zone.js.map +1 -0
- package/dist/order/OrderItem.d.ts +13 -0
- package/dist/order/OrderItem.js +61 -0
- package/dist/order/OrderItem.js.map +1 -0
- package/dist/order/address.d.ts +13 -0
- package/dist/order/address.js +61 -0
- package/dist/order/address.js.map +1 -0
- package/dist/order/customField.d.ts +4 -0
- package/dist/order/customField.js +25 -0
- package/dist/order/customField.js.map +1 -0
- package/dist/order/deliveryClassificationType.d.ts +5 -0
- package/dist/order/deliveryClassificationType.js +9 -0
- package/dist/order/deliveryClassificationType.js.map +1 -0
- package/dist/order/dtoAddress.d.ts +9 -0
- package/dist/order/dtoAddress.js +7 -0
- package/dist/order/dtoAddress.js.map +1 -0
- package/dist/order/emailTrigger.d.ts +6 -0
- package/dist/order/emailTrigger.js +11 -0
- package/dist/order/emailTrigger.js.map +1 -0
- package/dist/order/event.d.ts +4 -0
- package/dist/order/event.js +25 -0
- package/dist/order/event.js.map +1 -0
- package/dist/order/goboltLabelStatusType.d.ts +12 -0
- package/dist/order/goboltLabelStatusType.js +16 -0
- package/dist/order/goboltLabelStatusType.js.map +1 -0
- package/dist/order/goboltTrackingEvent.d.ts +9 -0
- package/dist/order/goboltTrackingEvent.js +43 -0
- package/dist/order/goboltTrackingEvent.js.map +1 -0
- package/dist/order/goboltTrackingEventType.d.ts +12 -0
- package/dist/order/goboltTrackingEventType.js +18 -0
- package/dist/order/goboltTrackingEventType.js.map +1 -0
- package/dist/order/location.d.ts +4 -0
- package/dist/order/location.js +25 -0
- package/dist/order/location.js.map +1 -0
- package/dist/order/locationSummary.d.ts +5 -0
- package/dist/order/locationSummary.js +29 -0
- package/dist/order/locationSummary.js.map +1 -0
- package/dist/order/order.d.ts +92 -0
- package/dist/order/order.js +325 -0
- package/dist/order/order.js.map +1 -0
- package/dist/order/orderSourceType.d.ts +7 -0
- package/dist/order/orderSourceType.js +11 -0
- package/dist/order/orderSourceType.js.map +1 -0
- package/dist/order/otherScans.d.ts +12 -0
- package/dist/order/otherScans.js +54 -0
- package/dist/order/otherScans.js.map +1 -0
- package/dist/order/package.d.ts +10 -0
- package/dist/order/package.js +39 -0
- package/dist/order/package.js.map +1 -0
- package/dist/order/packageReceived.d.ts +5 -0
- package/dist/order/packageReceived.js +29 -0
- package/dist/order/packageReceived.js.map +1 -0
- package/dist/order/pickup.d.ts +25 -0
- package/dist/order/pickup.js +108 -0
- package/dist/order/pickup.js.map +1 -0
- package/dist/order/pickupRecipientName.d.ts +4 -0
- package/dist/order/pickupRecipientName.js +25 -0
- package/dist/order/pickupRecipientName.js.map +1 -0
- package/dist/order/recipient.d.ts +6 -0
- package/dist/order/recipient.js +33 -0
- package/dist/order/recipient.js.map +1 -0
- package/dist/order/savedAddress.d.ts +10 -0
- package/dist/order/savedAddress.js +50 -0
- package/dist/order/savedAddress.js.map +1 -0
- package/dist/order/scanEvent.d.ts +5 -0
- package/dist/order/scanEvent.js +25 -0
- package/dist/order/scanEvent.js.map +1 -0
- package/dist/order/status.d.ts +30 -0
- package/dist/order/status.js +35 -0
- package/dist/order/status.js.map +1 -0
- package/dist/order/task.d.ts +14 -0
- package/dist/order/task.js +62 -0
- package/dist/order/task.js.map +1 -0
- package/dist/order/taskStatus.d.ts +7 -0
- package/dist/order/taskStatus.js +12 -0
- package/dist/order/taskStatus.js.map +1 -0
- package/dist/order/timeChangeEvent.d.ts +12 -0
- package/dist/order/timeChangeEvent.js +57 -0
- package/dist/order/timeChangeEvent.js.map +1 -0
- package/dist/order/timelineEvent.d.ts +11 -0
- package/dist/order/timelineEvent.js +46 -0
- package/dist/order/timelineEvent.js.map +1 -0
- package/dist/order/type.d.ts +4 -0
- package/dist/order/type.js +9 -0
- package/dist/order/type.js.map +1 -0
- package/dist/rate/deliveryServiceType.d.ts +7 -0
- package/dist/rate/deliveryServiceType.js +11 -0
- package/dist/rate/deliveryServiceType.js.map +1 -0
- package/dist/rate/pickupResponse.d.ts +17 -0
- package/dist/rate/pickupResponse.js +69 -0
- package/dist/rate/pickupResponse.js.map +1 -0
- package/dist/rate/rateResponse.d.ts +66 -0
- package/dist/rate/rateResponse.js +221 -0
- package/dist/rate/rateResponse.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NamedPricingStrategy = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const pricingStrategy_1 = require("./pricingStrategy");
|
|
15
|
+
class NamedPricingStrategy {
|
|
16
|
+
constructor(name, pricingTypeName, pricingStrategy) {
|
|
17
|
+
this.name = name;
|
|
18
|
+
this.pricingTypeName = pricingTypeName;
|
|
19
|
+
this.pricingStrategy = pricingStrategy;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.NamedPricingStrategy = NamedPricingStrategy;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], NamedPricingStrategy.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], NamedPricingStrategy.prototype, "pricingTypeName", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
33
|
+
__metadata("design:type", pricingStrategy_1.PricingStrategy)
|
|
34
|
+
], NamedPricingStrategy.prototype, "pricingStrategy", void 0);
|
|
35
|
+
//# sourceMappingURL=namedPricingStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namedPricingStrategy.js","sourceRoot":"","sources":["../../../src/models/merchant/strategies/namedPricingStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,uDAAoD;AAEpD,MAAa,oBAAoB;IAU/B,YAAY,IAAY,EAAE,eAAuB,EAAE,eAAgC;QACjF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;CACF;AAfD,oDAeC;AAbQ;IADN,IAAA,4CAAS,GAAE;;kDACQ;AAGb;IADN,IAAA,4CAAS,GAAE;;6DACmB;AAGxB;IADN,IAAA,4CAAS,GAAE;8BACY,iCAAe;6DAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PricingEntry = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class PricingEntry {
|
|
15
|
+
constructor(price, serviceType, service) {
|
|
16
|
+
this.price = price;
|
|
17
|
+
this.serviceType = serviceType;
|
|
18
|
+
this.service = service;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.PricingEntry = PricingEntry;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], PricingEntry.prototype, "price", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PricingEntry.prototype, "serviceType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], PricingEntry.prototype, "service", void 0);
|
|
34
|
+
//# sourceMappingURL=pricingEntry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricingEntry.js","sourceRoot":"","sources":["../../../src/models/merchant/strategies/pricingEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAElE,MAAa,YAAY;IAUvB,YAAY,KAAa,EAAE,WAAmB,EAAE,OAAe;QAC7D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAfD,oCAeC;AAbQ;IADN,IAAA,4CAAS,GAAE;;2CACS;AAGd;IADN,IAAA,4CAAS,GAAE;;iDACe;AAGpB;IADN,IAAA,4CAAS,GAAE;;6CACW"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PricingRow = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class PricingRow {
|
|
15
|
+
constructor(price) {
|
|
16
|
+
this.price = price;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.PricingRow = PricingRow;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], PricingRow.prototype, "price", void 0);
|
|
24
|
+
//# sourceMappingURL=pricingRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricingRow.js","sourceRoot":"","sources":["../../../src/models/merchant/strategies/pricingRow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAElE,MAAa,UAAU;IAIrB,YAAY,KAAa;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAPD,gCAOC;AALQ;IADN,IAAA,4CAAS,GAAE;;yCACS"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PricingStrategy = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class PricingStrategy {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.pricingRows = Array();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.PricingStrategy = PricingStrategy;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], PricingStrategy.prototype, "pricingRows", void 0);
|
|
24
|
+
//# sourceMappingURL=pricingStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricingStrategy.js","sourceRoot":"","sources":["../../../src/models/merchant/strategies/pricingStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAGlE,MAAa,eAAe;IAA5B;QAES,gBAAW,GAAiB,KAAK,EAAc,CAAC;IACzD,CAAC;CAAA;AAHD,0CAGC;AADQ;IADN,IAAA,4CAAS,GAAE;;oDAC2C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SignaturePricing = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const pricingStrategy_1 = require("../pricingStrategy");
|
|
15
|
+
class SignaturePricing extends pricingStrategy_1.PricingStrategy {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.pricingRows = new Array();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.SignaturePricing = SignaturePricing;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], SignaturePricing.prototype, "pricingRows", void 0);
|
|
26
|
+
//# sourceMappingURL=signaturePricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signaturePricing.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/signature/signaturePricing.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,wDAAqD;AAGrD,MAAa,gBAAiB,SAAQ,iCAAe;IAArD;;QAES,gBAAW,GAA0B,IAAI,KAAK,EAAuB,CAAC;IAC/E,CAAC;CAAA;AAHD,4CAGC;AADQ;IADN,IAAA,4CAAS,GAAE;;qDACiE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PricingRow } from '../pricingRow';
|
|
2
|
+
import { SignaturePricingType } from './signaturePricingType';
|
|
3
|
+
export declare class SignaturePricingRow extends PricingRow {
|
|
4
|
+
signaturePricingType: SignaturePricingType;
|
|
5
|
+
constructor(signaturePricingType: SignaturePricingType, price: number);
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SignaturePricingRow = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const pricingRow_1 = require("../pricingRow");
|
|
15
|
+
const signaturePricingType_1 = require("./signaturePricingType");
|
|
16
|
+
class SignaturePricingRow extends pricingRow_1.PricingRow {
|
|
17
|
+
constructor(signaturePricingType, price) {
|
|
18
|
+
super(price);
|
|
19
|
+
this.signaturePricingType = signaturePricingType;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.SignaturePricingRow = SignaturePricingRow;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SignaturePricingRow.prototype, "signaturePricingType", void 0);
|
|
27
|
+
//# sourceMappingURL=signaturePricingRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signaturePricingRow.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/signature/signaturePricingRow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,8CAA2C;AAC3C,iEAA8D;AAE9D,MAAa,mBAAoB,SAAQ,uBAAU;IAIjD,YAAY,oBAA0C,EAAE,KAAa;QACnE,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;CACF;AARD,kDAQC;AANQ;IADN,IAAA,4CAAS,GAAE;;iEACsC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SignaturePricingType = void 0;
|
|
4
|
+
var SignaturePricingType;
|
|
5
|
+
(function (SignaturePricingType) {
|
|
6
|
+
/**
|
|
7
|
+
* Signature unwanted
|
|
8
|
+
*/
|
|
9
|
+
SignaturePricingType["UNWANTED"] = "UNWANTED";
|
|
10
|
+
/**
|
|
11
|
+
* Signature required
|
|
12
|
+
*/
|
|
13
|
+
SignaturePricingType["REQUIRED"] = "REQUIRED";
|
|
14
|
+
})(SignaturePricingType || (exports.SignaturePricingType = SignaturePricingType = {}));
|
|
15
|
+
//# sourceMappingURL=signaturePricingType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signaturePricingType.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/signature/signaturePricingType.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC9B;;OAEG;IACH,6CAAqB,CAAA;IACrB;;OAEG;IACH,6CAAqB,CAAA;AACvB,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SizeOptions = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class SizeOptions {
|
|
15
|
+
}
|
|
16
|
+
exports.SizeOptions = SizeOptions;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], SizeOptions.prototype, "length", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], SizeOptions.prototype, "width", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], SizeOptions.prototype, "height", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SizeOptions.prototype, "unit", void 0);
|
|
33
|
+
//# sourceMappingURL=sizeOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizeOptions.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/size/sizeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAElE,MAAa,WAAW;CAYvB;AAZD,kCAYC;AAVQ;IADN,IAAA,4CAAS,GAAE;;2CACW;AAGhB;IADN,IAAA,4CAAS,GAAE;;0CACU;AAGf;IADN,IAAA,4CAAS,GAAE;;2CACW;AAGhB;IADN,IAAA,4CAAS,GAAE;;yCACS"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SizePricing = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const pricingStrategy_1 = require("../pricingStrategy");
|
|
15
|
+
class SizePricing extends pricingStrategy_1.PricingStrategy {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.pricingRows = new Array();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.SizePricing = SizePricing;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], SizePricing.prototype, "pricingRows", void 0);
|
|
26
|
+
//# sourceMappingURL=sizePricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizePricing.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/size/sizePricing.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,wDAAqD;AAGrD,MAAa,WAAY,SAAQ,iCAAe;IAAhD;;QAES,gBAAW,GAAqB,IAAI,KAAK,EAAkB,CAAC;IACrE,CAAC;CAAA;AAHD,kCAGC;AADQ;IADN,IAAA,4CAAS,GAAE;;gDACuD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SizePricingRow = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const pricingRow_1 = require("../pricingRow");
|
|
15
|
+
const sizePricingType_1 = require("./sizePricingType");
|
|
16
|
+
class SizePricingRow extends pricingRow_1.PricingRow {
|
|
17
|
+
constructor(sizePricingType, price) {
|
|
18
|
+
super(price);
|
|
19
|
+
this.sizePricingType = sizePricingType;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.SizePricingRow = SizePricingRow;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SizePricingRow.prototype, "sizePricingType", void 0);
|
|
27
|
+
//# sourceMappingURL=sizePricingRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizePricingRow.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/size/sizePricingRow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,8CAA2C;AAC3C,uDAAoD;AAEpD,MAAa,cAAe,SAAQ,uBAAU;IAI5C,YAAY,eAAgC,EAAE,KAAa;QACzD,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;CACF;AARD,wCAQC;AANQ;IADN,IAAA,4CAAS,GAAE;;uDAC4B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum SizePricingType {
|
|
2
|
+
/**
|
|
3
|
+
* Documents
|
|
4
|
+
*/
|
|
5
|
+
ENVELOPE = "ENVELOPE",
|
|
6
|
+
/**
|
|
7
|
+
* Fits in a standard card seat
|
|
8
|
+
*/
|
|
9
|
+
SMALL = "SMALL",
|
|
10
|
+
/**
|
|
11
|
+
* Fits on tow standard car seats
|
|
12
|
+
*/
|
|
13
|
+
MEDIUM = "MEDIUM",
|
|
14
|
+
/**
|
|
15
|
+
* fits in three car seats of a truck
|
|
16
|
+
*/
|
|
17
|
+
LARGE = "LARGE"
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SizePricingType = void 0;
|
|
4
|
+
var SizePricingType;
|
|
5
|
+
(function (SizePricingType) {
|
|
6
|
+
/**
|
|
7
|
+
* Documents
|
|
8
|
+
*/
|
|
9
|
+
SizePricingType["ENVELOPE"] = "ENVELOPE";
|
|
10
|
+
/**
|
|
11
|
+
* Fits in a standard card seat
|
|
12
|
+
*/
|
|
13
|
+
SizePricingType["SMALL"] = "SMALL";
|
|
14
|
+
/**
|
|
15
|
+
* Fits on tow standard car seats
|
|
16
|
+
*/
|
|
17
|
+
SizePricingType["MEDIUM"] = "MEDIUM";
|
|
18
|
+
/**
|
|
19
|
+
* fits in three car seats of a truck
|
|
20
|
+
*/
|
|
21
|
+
SizePricingType["LARGE"] = "LARGE";
|
|
22
|
+
})(SizePricingType || (exports.SizePricingType = SizePricingType = {}));
|
|
23
|
+
//# sourceMappingURL=sizePricingType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizePricingType.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/size/sizePricingType.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAiBX;AAjBD,WAAY,eAAe;IACzB;;OAEG;IACH,wCAAqB,CAAA;IACrB;;OAEG;IACH,kCAAe,CAAA;IACf;;OAEG;IACH,oCAAiB,CAAA;IACjB;;OAEG;IACH,kCAAe,CAAA;AACjB,CAAC,EAjBW,eAAe,+BAAf,eAAe,QAiB1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DispatcherType = void 0;
|
|
4
|
+
var DispatcherType;
|
|
5
|
+
(function (DispatcherType) {
|
|
6
|
+
DispatcherType["ONFLEET"] = "ONFLEET";
|
|
7
|
+
DispatcherType["GOBOLT"] = "GOBOLT";
|
|
8
|
+
})(DispatcherType || (exports.DispatcherType = DispatcherType = {}));
|
|
9
|
+
//# sourceMappingURL=dispatcherType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatcherType.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/speed/dispatcherType.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Locale = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class Locale {
|
|
15
|
+
constructor(name, description, locale) {
|
|
16
|
+
this.name = name;
|
|
17
|
+
this.description = description;
|
|
18
|
+
this.locale = locale;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Locale = Locale;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Locale.prototype, "name", void 0);
|
|
26
|
+
//# sourceMappingURL=locales.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/speed/locales.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAElE,MAAa,MAAM;IAMjB,YAAY,IAAY,EAAE,WAAmB,EAAE,MAAc;QAC3D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAXD,wBAWC;AATQ;IADN,IAAA,4CAAS,GAAE;;oCACQ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SpeedPricing = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const pricingStrategy_1 = require("../pricingStrategy");
|
|
15
|
+
class SpeedPricing extends pricingStrategy_1.PricingStrategy {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.pricingRows = new Array();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.SpeedPricing = SpeedPricing;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], SpeedPricing.prototype, "pricingRows", void 0);
|
|
26
|
+
//# sourceMappingURL=speedPricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speedPricing.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/speed/speedPricing.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,wDAAqD;AAGrD,MAAa,YAAa,SAAQ,iCAAe;IAAjD;;QAES,gBAAW,GAAsB,IAAI,KAAK,EAAmB,CAAC;IACvE,CAAC;CAAA;AAHD,oCAGC;AADQ;IADN,IAAA,4CAAS,GAAE;;iDACyD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PricingRow } from '../pricingRow';
|
|
2
|
+
import { DispatcherType } from './dispatcherType';
|
|
3
|
+
import { Locale } from './locales';
|
|
4
|
+
import { SpeedPricingType } from './speedPricingType';
|
|
5
|
+
export declare class SpeedPricingRow extends PricingRow {
|
|
6
|
+
speedPricingType: SpeedPricingType;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
locales?: Locale[];
|
|
10
|
+
dispatcher?: DispatcherType;
|
|
11
|
+
constructor(speedPricingType: SpeedPricingType, price: number, name: string, description: string, locales?: Locale[], dispatcher?: DispatcherType);
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SpeedPricingRow = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const pricingRow_1 = require("../pricingRow");
|
|
15
|
+
const speedPricingType_1 = require("./speedPricingType");
|
|
16
|
+
class SpeedPricingRow extends pricingRow_1.PricingRow {
|
|
17
|
+
constructor(speedPricingType, price, name, description, locales, dispatcher) {
|
|
18
|
+
super(price);
|
|
19
|
+
this.speedPricingType = speedPricingType;
|
|
20
|
+
this.name = name;
|
|
21
|
+
this.description = description;
|
|
22
|
+
if (locales != null) {
|
|
23
|
+
this.locales = locales;
|
|
24
|
+
}
|
|
25
|
+
if (dispatcher != null) {
|
|
26
|
+
this.dispatcher = dispatcher;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.SpeedPricingRow = SpeedPricingRow;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], SpeedPricingRow.prototype, "speedPricingType", void 0);
|
|
35
|
+
//# sourceMappingURL=speedPricingRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speedPricingRow.js","sourceRoot":"","sources":["../../../../src/models/merchant/strategies/speed/speedPricingRow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,8CAA2C;AAG3C,yDAAsD;AAEtD,MAAa,eAAgB,SAAQ,uBAAU;IAO7C,YACE,gBAAkC,EAClC,KAAa,EACb,IAAY,EACZ,WAAmB,EACnB,OAAkB,EAClB,UAA2B;QAE3B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;YACpB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QACD,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC/B,CAAC;IACH,CAAC;CACF;AA1BD,0CA0BC;AAxBQ;IADN,IAAA,4CAAS,GAAE;;yDAC8B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum SpeedPricingType {
|
|
2
|
+
/**
|
|
3
|
+
* Next calendar day
|
|
4
|
+
*/
|
|
5
|
+
NEXTDAY = "NEXTDAY",
|
|
6
|
+
/**
|
|
7
|
+
* Same calendar day
|
|
8
|
+
*/
|
|
9
|
+
SAMEDAY = "SAMEDAY",
|
|
10
|
+
/**
|
|
11
|
+
* Given a window of delivery
|
|
12
|
+
*/
|
|
13
|
+
SCHEDULED = "SCHEDULED",
|
|
14
|
+
/**
|
|
15
|
+
* Delivery window is given once order arrives in the warehouse
|
|
16
|
+
*/
|
|
17
|
+
CUSTOMER_BOOKING = "CUSTOMER_BOOKING",
|
|
18
|
+
/**
|
|
19
|
+
* Delivery window is a range of days set by a third party
|
|
20
|
+
*/
|
|
21
|
+
FLEX = "FLEX",
|
|
22
|
+
/**
|
|
23
|
+
* NEXTDAY, BUT ONLY CALCULATE WINDOW WHEN PICKUPREADY
|
|
24
|
+
*/
|
|
25
|
+
STANDARD = "STANDARD",
|
|
26
|
+
/**
|
|
27
|
+
* NEXTDAY, BUT PICKUP SAME DAY AS DELIVERY
|
|
28
|
+
*/
|
|
29
|
+
NEXTDAYPLUS = "NEXTDAYPLUS"
|
|
30
|
+
}
|