gunsmith-common 2.3.11 → 2.3.13
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/esm2020/shared/services/work-order.service.mjs +17 -1
- package/esm2020/shared/types/address.mjs +1 -1
- package/esm2020/shared/types/billing-info.mjs +3 -0
- package/esm2020/shared/types/index.mjs +4 -1
- package/esm2020/shared/types/work-order-billing-transaction.mjs +3 -0
- package/esm2020/shared/types/work-order-total.mjs +3 -0
- package/fesm2015/gunsmith-common.mjs +26 -1
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +26 -1
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.13.tgz +0 -0
- package/package.json +1 -1
- package/shared/services/work-order.service.d.ts +6 -1
- package/shared/types/address.d.ts +2 -0
- package/shared/types/billing-info.d.ts +6 -0
- package/shared/types/index.d.ts +3 -0
- package/shared/types/work-order-billing-transaction.d.ts +15 -0
- package/shared/types/work-order-total.d.ts +6 -0
- package/gunsmith-common-2.3.11.tgz +0 -0
|
@@ -538,6 +538,15 @@ class MillingTypeAddon {
|
|
|
538
538
|
class Address {
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
+
class BillingInfo {
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
class WorkOrderTotal {
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
class WorkOrderBillingTransaction {
|
|
548
|
+
}
|
|
549
|
+
|
|
541
550
|
class CustomerService {
|
|
542
551
|
constructor(http, env) {
|
|
543
552
|
this.http = http;
|
|
@@ -847,6 +856,9 @@ class WorkOrderService {
|
|
|
847
856
|
params: this.createWorkOrderParams(statuses, id, customerName, customerEmail, serialNumber, orderTypes, projectTypes, users, specialOrder)
|
|
848
857
|
});
|
|
849
858
|
}
|
|
859
|
+
readWorkOrderTotal(id) {
|
|
860
|
+
return this.http.get(`${this.url}/${id}/totals`);
|
|
861
|
+
}
|
|
850
862
|
createWorkOrderParams(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, orderTypes = null, projectTypes = null, users = null, specialOrder = null) {
|
|
851
863
|
const params = {};
|
|
852
864
|
if (statuses) {
|
|
@@ -1006,6 +1018,19 @@ class WorkOrderService {
|
|
|
1006
1018
|
createInventoryItems(workOrderId, inventoryItems) {
|
|
1007
1019
|
return this.http.post(`${this.url}/${workOrderId}/inventory-items/collection`, inventoryItems);
|
|
1008
1020
|
}
|
|
1021
|
+
// Billing
|
|
1022
|
+
processTransaction(workOrderId, billingInfo) {
|
|
1023
|
+
return this.http.post(`${this.url}/${workOrderId}/billing`, billingInfo);
|
|
1024
|
+
}
|
|
1025
|
+
getTransactions(workOrderId) {
|
|
1026
|
+
return this.http.get(`${this.url}/${workOrderId}/billing`);
|
|
1027
|
+
}
|
|
1028
|
+
refundTransaction(workOrderId, transactionId, refundAmount) {
|
|
1029
|
+
return this.http.post(`${this.url}/${workOrderId}/billing/${transactionId}/refund`, refundAmount);
|
|
1030
|
+
}
|
|
1031
|
+
createBillingTransaction(workOrderId, billingTransaction) {
|
|
1032
|
+
return this.http.post(`${this.url}/${workOrderId}/billing/transaction`, billingTransaction);
|
|
1033
|
+
}
|
|
1009
1034
|
}
|
|
1010
1035
|
WorkOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1011
1036
|
WorkOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, providedIn: 'root' });
|
|
@@ -2526,5 +2551,5 @@ var NotificationType;
|
|
|
2526
2551
|
* Generated bundle index. Do not edit.
|
|
2527
2552
|
*/
|
|
2528
2553
|
|
|
2529
|
-
export { Address, BaseService, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, FinishDateHelperService, Firearm, FirearmMillingTypeService, FirearmOptic, FirearmOpticService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeAddon, MillingTypeAddonOption, MillingTypeAddonService, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderType, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2554
|
+
export { Address, BaseService, BillingInfo, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, FinishDateHelperService, Firearm, FirearmMillingTypeService, FirearmOptic, FirearmOpticService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeAddon, MillingTypeAddonOption, MillingTypeAddonService, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderBillingTransaction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderTotal, WorkOrderType, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2530
2555
|
//# sourceMappingURL=gunsmith-common.mjs.map
|