public virtual void MergePatch(IMergePatchOrderItemShipGroupAssociationMvo c) { IOrderItemShipGroupAssociationMvoStateMergePatched e = Map(c); Apply(e); }
public virtual OrderItemShipGroupAssociationMvoStateMergePatchedDto ToOrderItemShipGroupAssociationMvoStateMergePatchedDto(IOrderItemShipGroupAssociationMvoStateMergePatched e) { var dto = new OrderItemShipGroupAssociationMvoStateMergePatchedDto(); dto.OrderItemShipGroupAssociationMvoEventId = e.OrderItemShipGroupAssociationMvoEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.CommandId = e.CommandId; dto.Quantity = e.Quantity; dto.CancelQuantity = e.CancelQuantity; dto.Version = e.Version; dto.Active = e.Active; dto.OrderShipGroupShipmentMethodTypeId = e.OrderShipGroupShipmentMethodTypeId; dto.OrderShipGroupSupplierPartyId = e.OrderShipGroupSupplierPartyId; dto.OrderShipGroupVendorPartyId = e.OrderShipGroupVendorPartyId; dto.OrderShipGroupCarrierPartyId = e.OrderShipGroupCarrierPartyId; dto.OrderShipGroupCarrierRoleTypeId = e.OrderShipGroupCarrierRoleTypeId; dto.OrderShipGroupFacilityId = e.OrderShipGroupFacilityId; dto.OrderShipGroupContactMechId = e.OrderShipGroupContactMechId; dto.OrderShipGroupTelecomContactMechId = e.OrderShipGroupTelecomContactMechId; dto.OrderShipGroupTrackingNumber = e.OrderShipGroupTrackingNumber; dto.OrderShipGroupShippingInstructions = e.OrderShipGroupShippingInstructions; dto.OrderShipGroupMaySplit = e.OrderShipGroupMaySplit; dto.OrderShipGroupGiftMessage = e.OrderShipGroupGiftMessage; dto.OrderShipGroupIsGift = e.OrderShipGroupIsGift; dto.OrderShipGroupShipAfterDate = e.OrderShipGroupShipAfterDate; dto.OrderShipGroupShipByDate = e.OrderShipGroupShipByDate; dto.OrderShipGroupEstimatedShipDate = e.OrderShipGroupEstimatedShipDate; dto.OrderShipGroupEstimatedDeliveryDate = e.OrderShipGroupEstimatedDeliveryDate; dto.OrderShipGroupPickwaveId = e.OrderShipGroupPickwaveId; dto.OrderShipGroupVersion = e.OrderShipGroupVersion; dto.OrderShipGroupCreatedBy = e.OrderShipGroupCreatedBy; dto.OrderShipGroupCreatedAt = e.OrderShipGroupCreatedAt; dto.OrderShipGroupUpdatedBy = e.OrderShipGroupUpdatedBy; dto.OrderShipGroupUpdatedAt = e.OrderShipGroupUpdatedAt; dto.OrderShipGroupActive = e.OrderShipGroupActive; dto.OrderShipGroupDeleted = e.OrderShipGroupDeleted; dto.OrderOrderTypeId = e.OrderOrderTypeId; dto.OrderOrderName = e.OrderOrderName; dto.OrderExternalId = e.OrderExternalId; dto.OrderSalesChannelEnumId = e.OrderSalesChannelEnumId; dto.OrderOrderDate = e.OrderOrderDate; dto.OrderPriority = e.OrderPriority; dto.OrderEntryDate = e.OrderEntryDate; dto.OrderPickSheetPrintedDate = e.OrderPickSheetPrintedDate; dto.OrderStatusId = e.OrderStatusId; dto.OrderCurrencyUom = e.OrderCurrencyUom; dto.OrderSyncStatusId = e.OrderSyncStatusId; dto.OrderBillingAccountId = e.OrderBillingAccountId; dto.OrderOriginFacilityId = e.OrderOriginFacilityId; dto.OrderWebSiteId = e.OrderWebSiteId; dto.OrderProductStoreId = e.OrderProductStoreId; dto.OrderTerminalId = e.OrderTerminalId; dto.OrderTransactionId = e.OrderTransactionId; dto.OrderAutoOrderShoppingListId = e.OrderAutoOrderShoppingListId; dto.OrderNeedsInventoryIssuance = e.OrderNeedsInventoryIssuance; dto.OrderIsRushOrder = e.OrderIsRushOrder; dto.OrderInternalCode = e.OrderInternalCode; dto.OrderRemainingSubTotal = e.OrderRemainingSubTotal; dto.OrderGrandTotal = e.OrderGrandTotal; dto.OrderInvoicePerShipment = e.OrderInvoicePerShipment; dto.OrderCreatedBy = e.OrderCreatedBy; dto.OrderCreatedAt = e.OrderCreatedAt; dto.OrderUpdatedBy = e.OrderUpdatedBy; dto.OrderUpdatedAt = e.OrderUpdatedAt; dto.OrderActive = e.OrderActive; dto.IsPropertyQuantityRemoved = e.IsPropertyQuantityRemoved; dto.IsPropertyCancelQuantityRemoved = e.IsPropertyCancelQuantityRemoved; dto.IsPropertyVersionRemoved = e.IsPropertyVersionRemoved; dto.IsPropertyActiveRemoved = e.IsPropertyActiveRemoved; dto.IsPropertyOrderShipGroupShipmentMethodTypeIdRemoved = e.IsPropertyOrderShipGroupShipmentMethodTypeIdRemoved; dto.IsPropertyOrderShipGroupSupplierPartyIdRemoved = e.IsPropertyOrderShipGroupSupplierPartyIdRemoved; dto.IsPropertyOrderShipGroupVendorPartyIdRemoved = e.IsPropertyOrderShipGroupVendorPartyIdRemoved; dto.IsPropertyOrderShipGroupCarrierPartyIdRemoved = e.IsPropertyOrderShipGroupCarrierPartyIdRemoved; dto.IsPropertyOrderShipGroupCarrierRoleTypeIdRemoved = e.IsPropertyOrderShipGroupCarrierRoleTypeIdRemoved; dto.IsPropertyOrderShipGroupFacilityIdRemoved = e.IsPropertyOrderShipGroupFacilityIdRemoved; dto.IsPropertyOrderShipGroupContactMechIdRemoved = e.IsPropertyOrderShipGroupContactMechIdRemoved; dto.IsPropertyOrderShipGroupTelecomContactMechIdRemoved = e.IsPropertyOrderShipGroupTelecomContactMechIdRemoved; dto.IsPropertyOrderShipGroupTrackingNumberRemoved = e.IsPropertyOrderShipGroupTrackingNumberRemoved; dto.IsPropertyOrderShipGroupShippingInstructionsRemoved = e.IsPropertyOrderShipGroupShippingInstructionsRemoved; dto.IsPropertyOrderShipGroupMaySplitRemoved = e.IsPropertyOrderShipGroupMaySplitRemoved; dto.IsPropertyOrderShipGroupGiftMessageRemoved = e.IsPropertyOrderShipGroupGiftMessageRemoved; dto.IsPropertyOrderShipGroupIsGiftRemoved = e.IsPropertyOrderShipGroupIsGiftRemoved; dto.IsPropertyOrderShipGroupShipAfterDateRemoved = e.IsPropertyOrderShipGroupShipAfterDateRemoved; dto.IsPropertyOrderShipGroupShipByDateRemoved = e.IsPropertyOrderShipGroupShipByDateRemoved; dto.IsPropertyOrderShipGroupEstimatedShipDateRemoved = e.IsPropertyOrderShipGroupEstimatedShipDateRemoved; dto.IsPropertyOrderShipGroupEstimatedDeliveryDateRemoved = e.IsPropertyOrderShipGroupEstimatedDeliveryDateRemoved; dto.IsPropertyOrderShipGroupPickwaveIdRemoved = e.IsPropertyOrderShipGroupPickwaveIdRemoved; dto.IsPropertyOrderShipGroupVersionRemoved = e.IsPropertyOrderShipGroupVersionRemoved; dto.IsPropertyOrderShipGroupCreatedByRemoved = e.IsPropertyOrderShipGroupCreatedByRemoved; dto.IsPropertyOrderShipGroupCreatedAtRemoved = e.IsPropertyOrderShipGroupCreatedAtRemoved; dto.IsPropertyOrderShipGroupUpdatedByRemoved = e.IsPropertyOrderShipGroupUpdatedByRemoved; dto.IsPropertyOrderShipGroupUpdatedAtRemoved = e.IsPropertyOrderShipGroupUpdatedAtRemoved; dto.IsPropertyOrderShipGroupActiveRemoved = e.IsPropertyOrderShipGroupActiveRemoved; dto.IsPropertyOrderShipGroupDeletedRemoved = e.IsPropertyOrderShipGroupDeletedRemoved; dto.IsPropertyOrderOrderTypeIdRemoved = e.IsPropertyOrderOrderTypeIdRemoved; dto.IsPropertyOrderOrderNameRemoved = e.IsPropertyOrderOrderNameRemoved; dto.IsPropertyOrderExternalIdRemoved = e.IsPropertyOrderExternalIdRemoved; dto.IsPropertyOrderSalesChannelEnumIdRemoved = e.IsPropertyOrderSalesChannelEnumIdRemoved; dto.IsPropertyOrderOrderDateRemoved = e.IsPropertyOrderOrderDateRemoved; dto.IsPropertyOrderPriorityRemoved = e.IsPropertyOrderPriorityRemoved; dto.IsPropertyOrderEntryDateRemoved = e.IsPropertyOrderEntryDateRemoved; dto.IsPropertyOrderPickSheetPrintedDateRemoved = e.IsPropertyOrderPickSheetPrintedDateRemoved; dto.IsPropertyOrderStatusIdRemoved = e.IsPropertyOrderStatusIdRemoved; dto.IsPropertyOrderCurrencyUomRemoved = e.IsPropertyOrderCurrencyUomRemoved; dto.IsPropertyOrderSyncStatusIdRemoved = e.IsPropertyOrderSyncStatusIdRemoved; dto.IsPropertyOrderBillingAccountIdRemoved = e.IsPropertyOrderBillingAccountIdRemoved; dto.IsPropertyOrderOriginFacilityIdRemoved = e.IsPropertyOrderOriginFacilityIdRemoved; dto.IsPropertyOrderWebSiteIdRemoved = e.IsPropertyOrderWebSiteIdRemoved; dto.IsPropertyOrderProductStoreIdRemoved = e.IsPropertyOrderProductStoreIdRemoved; dto.IsPropertyOrderTerminalIdRemoved = e.IsPropertyOrderTerminalIdRemoved; dto.IsPropertyOrderTransactionIdRemoved = e.IsPropertyOrderTransactionIdRemoved; dto.IsPropertyOrderAutoOrderShoppingListIdRemoved = e.IsPropertyOrderAutoOrderShoppingListIdRemoved; dto.IsPropertyOrderNeedsInventoryIssuanceRemoved = e.IsPropertyOrderNeedsInventoryIssuanceRemoved; dto.IsPropertyOrderIsRushOrderRemoved = e.IsPropertyOrderIsRushOrderRemoved; dto.IsPropertyOrderInternalCodeRemoved = e.IsPropertyOrderInternalCodeRemoved; dto.IsPropertyOrderRemainingSubTotalRemoved = e.IsPropertyOrderRemainingSubTotalRemoved; dto.IsPropertyOrderGrandTotalRemoved = e.IsPropertyOrderGrandTotalRemoved; dto.IsPropertyOrderInvoicePerShipmentRemoved = e.IsPropertyOrderInvoicePerShipmentRemoved; dto.IsPropertyOrderCreatedByRemoved = e.IsPropertyOrderCreatedByRemoved; dto.IsPropertyOrderCreatedAtRemoved = e.IsPropertyOrderCreatedAtRemoved; dto.IsPropertyOrderUpdatedByRemoved = e.IsPropertyOrderUpdatedByRemoved; dto.IsPropertyOrderUpdatedAtRemoved = e.IsPropertyOrderUpdatedAtRemoved; dto.IsPropertyOrderActiveRemoved = e.IsPropertyOrderActiveRemoved; return(dto); }
protected virtual IOrderItemShipGroupAssociationMvoStateMergePatched Map(IMergePatchOrderItemShipGroupAssociationMvo c) { var stateEventId = new OrderItemShipGroupAssociationMvoEventId(c.OrderItemShipGroupAssociationId, c.OrderVersion); IOrderItemShipGroupAssociationMvoStateMergePatched e = NewOrderItemShipGroupAssociationMvoStateMergePatched(stateEventId); e.Quantity = c.Quantity; e.CancelQuantity = c.CancelQuantity; e.Version = c.Version; e.Active = c.Active; e.OrderShipGroupShipmentMethodTypeId = c.OrderShipGroupShipmentMethodTypeId; e.OrderShipGroupSupplierPartyId = c.OrderShipGroupSupplierPartyId; e.OrderShipGroupVendorPartyId = c.OrderShipGroupVendorPartyId; e.OrderShipGroupCarrierPartyId = c.OrderShipGroupCarrierPartyId; e.OrderShipGroupCarrierRoleTypeId = c.OrderShipGroupCarrierRoleTypeId; e.OrderShipGroupFacilityId = c.OrderShipGroupFacilityId; e.OrderShipGroupContactMechId = c.OrderShipGroupContactMechId; e.OrderShipGroupTelecomContactMechId = c.OrderShipGroupTelecomContactMechId; e.OrderShipGroupTrackingNumber = c.OrderShipGroupTrackingNumber; e.OrderShipGroupShippingInstructions = c.OrderShipGroupShippingInstructions; e.OrderShipGroupMaySplit = c.OrderShipGroupMaySplit; e.OrderShipGroupGiftMessage = c.OrderShipGroupGiftMessage; e.OrderShipGroupIsGift = c.OrderShipGroupIsGift; e.OrderShipGroupShipAfterDate = c.OrderShipGroupShipAfterDate; e.OrderShipGroupShipByDate = c.OrderShipGroupShipByDate; e.OrderShipGroupEstimatedShipDate = c.OrderShipGroupEstimatedShipDate; e.OrderShipGroupEstimatedDeliveryDate = c.OrderShipGroupEstimatedDeliveryDate; e.OrderShipGroupPickwaveId = c.OrderShipGroupPickwaveId; e.OrderShipGroupVersion = c.OrderShipGroupVersion; e.OrderShipGroupCreatedBy = c.OrderShipGroupCreatedBy; e.OrderShipGroupCreatedAt = c.OrderShipGroupCreatedAt; e.OrderShipGroupUpdatedBy = c.OrderShipGroupUpdatedBy; e.OrderShipGroupUpdatedAt = c.OrderShipGroupUpdatedAt; e.OrderShipGroupActive = c.OrderShipGroupActive; e.OrderShipGroupDeleted = c.OrderShipGroupDeleted; e.OrderOrderTypeId = c.OrderOrderTypeId; e.OrderOrderName = c.OrderOrderName; e.OrderExternalId = c.OrderExternalId; e.OrderSalesChannelEnumId = c.OrderSalesChannelEnumId; e.OrderOrderDate = c.OrderOrderDate; e.OrderPriority = c.OrderPriority; e.OrderEntryDate = c.OrderEntryDate; e.OrderPickSheetPrintedDate = c.OrderPickSheetPrintedDate; e.OrderStatusId = c.OrderStatusId; e.OrderCurrencyUom = c.OrderCurrencyUom; e.OrderSyncStatusId = c.OrderSyncStatusId; e.OrderBillingAccountId = c.OrderBillingAccountId; e.OrderOriginFacilityId = c.OrderOriginFacilityId; e.OrderWebSiteId = c.OrderWebSiteId; e.OrderProductStoreId = c.OrderProductStoreId; e.OrderTerminalId = c.OrderTerminalId; e.OrderTransactionId = c.OrderTransactionId; e.OrderAutoOrderShoppingListId = c.OrderAutoOrderShoppingListId; e.OrderNeedsInventoryIssuance = c.OrderNeedsInventoryIssuance; e.OrderIsRushOrder = c.OrderIsRushOrder; e.OrderInternalCode = c.OrderInternalCode; e.OrderRemainingSubTotal = c.OrderRemainingSubTotal; e.OrderGrandTotal = c.OrderGrandTotal; e.OrderInvoicePerShipment = c.OrderInvoicePerShipment; e.OrderCreatedBy = c.OrderCreatedBy; e.OrderCreatedAt = c.OrderCreatedAt; e.OrderUpdatedBy = c.OrderUpdatedBy; e.OrderUpdatedAt = c.OrderUpdatedAt; e.OrderActive = c.OrderActive; e.IsPropertyQuantityRemoved = c.IsPropertyQuantityRemoved; e.IsPropertyCancelQuantityRemoved = c.IsPropertyCancelQuantityRemoved; e.IsPropertyVersionRemoved = c.IsPropertyVersionRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.IsPropertyOrderShipGroupShipmentMethodTypeIdRemoved = c.IsPropertyOrderShipGroupShipmentMethodTypeIdRemoved; e.IsPropertyOrderShipGroupSupplierPartyIdRemoved = c.IsPropertyOrderShipGroupSupplierPartyIdRemoved; e.IsPropertyOrderShipGroupVendorPartyIdRemoved = c.IsPropertyOrderShipGroupVendorPartyIdRemoved; e.IsPropertyOrderShipGroupCarrierPartyIdRemoved = c.IsPropertyOrderShipGroupCarrierPartyIdRemoved; e.IsPropertyOrderShipGroupCarrierRoleTypeIdRemoved = c.IsPropertyOrderShipGroupCarrierRoleTypeIdRemoved; e.IsPropertyOrderShipGroupFacilityIdRemoved = c.IsPropertyOrderShipGroupFacilityIdRemoved; e.IsPropertyOrderShipGroupContactMechIdRemoved = c.IsPropertyOrderShipGroupContactMechIdRemoved; e.IsPropertyOrderShipGroupTelecomContactMechIdRemoved = c.IsPropertyOrderShipGroupTelecomContactMechIdRemoved; e.IsPropertyOrderShipGroupTrackingNumberRemoved = c.IsPropertyOrderShipGroupTrackingNumberRemoved; e.IsPropertyOrderShipGroupShippingInstructionsRemoved = c.IsPropertyOrderShipGroupShippingInstructionsRemoved; e.IsPropertyOrderShipGroupMaySplitRemoved = c.IsPropertyOrderShipGroupMaySplitRemoved; e.IsPropertyOrderShipGroupGiftMessageRemoved = c.IsPropertyOrderShipGroupGiftMessageRemoved; e.IsPropertyOrderShipGroupIsGiftRemoved = c.IsPropertyOrderShipGroupIsGiftRemoved; e.IsPropertyOrderShipGroupShipAfterDateRemoved = c.IsPropertyOrderShipGroupShipAfterDateRemoved; e.IsPropertyOrderShipGroupShipByDateRemoved = c.IsPropertyOrderShipGroupShipByDateRemoved; e.IsPropertyOrderShipGroupEstimatedShipDateRemoved = c.IsPropertyOrderShipGroupEstimatedShipDateRemoved; e.IsPropertyOrderShipGroupEstimatedDeliveryDateRemoved = c.IsPropertyOrderShipGroupEstimatedDeliveryDateRemoved; e.IsPropertyOrderShipGroupPickwaveIdRemoved = c.IsPropertyOrderShipGroupPickwaveIdRemoved; e.IsPropertyOrderShipGroupVersionRemoved = c.IsPropertyOrderShipGroupVersionRemoved; e.IsPropertyOrderShipGroupCreatedByRemoved = c.IsPropertyOrderShipGroupCreatedByRemoved; e.IsPropertyOrderShipGroupCreatedAtRemoved = c.IsPropertyOrderShipGroupCreatedAtRemoved; e.IsPropertyOrderShipGroupUpdatedByRemoved = c.IsPropertyOrderShipGroupUpdatedByRemoved; e.IsPropertyOrderShipGroupUpdatedAtRemoved = c.IsPropertyOrderShipGroupUpdatedAtRemoved; e.IsPropertyOrderShipGroupActiveRemoved = c.IsPropertyOrderShipGroupActiveRemoved; e.IsPropertyOrderShipGroupDeletedRemoved = c.IsPropertyOrderShipGroupDeletedRemoved; e.IsPropertyOrderOrderTypeIdRemoved = c.IsPropertyOrderOrderTypeIdRemoved; e.IsPropertyOrderOrderNameRemoved = c.IsPropertyOrderOrderNameRemoved; e.IsPropertyOrderExternalIdRemoved = c.IsPropertyOrderExternalIdRemoved; e.IsPropertyOrderSalesChannelEnumIdRemoved = c.IsPropertyOrderSalesChannelEnumIdRemoved; e.IsPropertyOrderOrderDateRemoved = c.IsPropertyOrderOrderDateRemoved; e.IsPropertyOrderPriorityRemoved = c.IsPropertyOrderPriorityRemoved; e.IsPropertyOrderEntryDateRemoved = c.IsPropertyOrderEntryDateRemoved; e.IsPropertyOrderPickSheetPrintedDateRemoved = c.IsPropertyOrderPickSheetPrintedDateRemoved; e.IsPropertyOrderStatusIdRemoved = c.IsPropertyOrderStatusIdRemoved; e.IsPropertyOrderCurrencyUomRemoved = c.IsPropertyOrderCurrencyUomRemoved; e.IsPropertyOrderSyncStatusIdRemoved = c.IsPropertyOrderSyncStatusIdRemoved; e.IsPropertyOrderBillingAccountIdRemoved = c.IsPropertyOrderBillingAccountIdRemoved; e.IsPropertyOrderOriginFacilityIdRemoved = c.IsPropertyOrderOriginFacilityIdRemoved; e.IsPropertyOrderWebSiteIdRemoved = c.IsPropertyOrderWebSiteIdRemoved; e.IsPropertyOrderProductStoreIdRemoved = c.IsPropertyOrderProductStoreIdRemoved; e.IsPropertyOrderTerminalIdRemoved = c.IsPropertyOrderTerminalIdRemoved; e.IsPropertyOrderTransactionIdRemoved = c.IsPropertyOrderTransactionIdRemoved; e.IsPropertyOrderAutoOrderShoppingListIdRemoved = c.IsPropertyOrderAutoOrderShoppingListIdRemoved; e.IsPropertyOrderNeedsInventoryIssuanceRemoved = c.IsPropertyOrderNeedsInventoryIssuanceRemoved; e.IsPropertyOrderIsRushOrderRemoved = c.IsPropertyOrderIsRushOrderRemoved; e.IsPropertyOrderInternalCodeRemoved = c.IsPropertyOrderInternalCodeRemoved; e.IsPropertyOrderRemainingSubTotalRemoved = c.IsPropertyOrderRemainingSubTotalRemoved; e.IsPropertyOrderGrandTotalRemoved = c.IsPropertyOrderGrandTotalRemoved; e.IsPropertyOrderInvoicePerShipmentRemoved = c.IsPropertyOrderInvoicePerShipmentRemoved; e.IsPropertyOrderCreatedByRemoved = c.IsPropertyOrderCreatedByRemoved; e.IsPropertyOrderCreatedAtRemoved = c.IsPropertyOrderCreatedAtRemoved; e.IsPropertyOrderUpdatedByRemoved = c.IsPropertyOrderUpdatedByRemoved; e.IsPropertyOrderUpdatedAtRemoved = c.IsPropertyOrderUpdatedAtRemoved; e.IsPropertyOrderActiveRemoved = c.IsPropertyOrderActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var orderVersion = c.OrderVersion; return(e); }
public virtual void When(IOrderItemShipGroupAssociationMvoStateMergePatched e) { ThrowOnWrongEvent(e); if (e.Quantity == null) { if (e.IsPropertyQuantityRemoved) { this.Quantity = default(decimal?); } } else { this.Quantity = e.Quantity; } if (e.CancelQuantity == null) { if (e.IsPropertyCancelQuantityRemoved) { this.CancelQuantity = default(decimal?); } } else { this.CancelQuantity = e.CancelQuantity; } if (e.Version == null) { if (e.IsPropertyVersionRemoved) { this.Version = default(long); } } else { this.Version = (e.Version != null && e.Version.HasValue) ? e.Version.Value : default(long); } if (e.Active == null) { if (e.IsPropertyActiveRemoved) { this.Active = default(bool); } } else { this.Active = (e.Active != null && e.Active.HasValue) ? e.Active.Value : default(bool); } if (e.OrderShipGroupShipmentMethodTypeId == null) { if (e.IsPropertyOrderShipGroupShipmentMethodTypeIdRemoved) { this.OrderShipGroupShipmentMethodTypeId = default(string); } } else { this.OrderShipGroupShipmentMethodTypeId = e.OrderShipGroupShipmentMethodTypeId; } if (e.OrderShipGroupSupplierPartyId == null) { if (e.IsPropertyOrderShipGroupSupplierPartyIdRemoved) { this.OrderShipGroupSupplierPartyId = default(string); } } else { this.OrderShipGroupSupplierPartyId = e.OrderShipGroupSupplierPartyId; } if (e.OrderShipGroupVendorPartyId == null) { if (e.IsPropertyOrderShipGroupVendorPartyIdRemoved) { this.OrderShipGroupVendorPartyId = default(string); } } else { this.OrderShipGroupVendorPartyId = e.OrderShipGroupVendorPartyId; } if (e.OrderShipGroupCarrierPartyId == null) { if (e.IsPropertyOrderShipGroupCarrierPartyIdRemoved) { this.OrderShipGroupCarrierPartyId = default(string); } } else { this.OrderShipGroupCarrierPartyId = e.OrderShipGroupCarrierPartyId; } if (e.OrderShipGroupCarrierRoleTypeId == null) { if (e.IsPropertyOrderShipGroupCarrierRoleTypeIdRemoved) { this.OrderShipGroupCarrierRoleTypeId = default(string); } } else { this.OrderShipGroupCarrierRoleTypeId = e.OrderShipGroupCarrierRoleTypeId; } if (e.OrderShipGroupFacilityId == null) { if (e.IsPropertyOrderShipGroupFacilityIdRemoved) { this.OrderShipGroupFacilityId = default(string); } } else { this.OrderShipGroupFacilityId = e.OrderShipGroupFacilityId; } if (e.OrderShipGroupContactMechId == null) { if (e.IsPropertyOrderShipGroupContactMechIdRemoved) { this.OrderShipGroupContactMechId = default(string); } } else { this.OrderShipGroupContactMechId = e.OrderShipGroupContactMechId; } if (e.OrderShipGroupTelecomContactMechId == null) { if (e.IsPropertyOrderShipGroupTelecomContactMechIdRemoved) { this.OrderShipGroupTelecomContactMechId = default(string); } } else { this.OrderShipGroupTelecomContactMechId = e.OrderShipGroupTelecomContactMechId; } if (e.OrderShipGroupTrackingNumber == null) { if (e.IsPropertyOrderShipGroupTrackingNumberRemoved) { this.OrderShipGroupTrackingNumber = default(string); } } else { this.OrderShipGroupTrackingNumber = e.OrderShipGroupTrackingNumber; } if (e.OrderShipGroupShippingInstructions == null) { if (e.IsPropertyOrderShipGroupShippingInstructionsRemoved) { this.OrderShipGroupShippingInstructions = default(string); } } else { this.OrderShipGroupShippingInstructions = e.OrderShipGroupShippingInstructions; } if (e.OrderShipGroupMaySplit == null) { if (e.IsPropertyOrderShipGroupMaySplitRemoved) { this.OrderShipGroupMaySplit = default(string); } } else { this.OrderShipGroupMaySplit = e.OrderShipGroupMaySplit; } if (e.OrderShipGroupGiftMessage == null) { if (e.IsPropertyOrderShipGroupGiftMessageRemoved) { this.OrderShipGroupGiftMessage = default(string); } } else { this.OrderShipGroupGiftMessage = e.OrderShipGroupGiftMessage; } if (e.OrderShipGroupIsGift == null) { if (e.IsPropertyOrderShipGroupIsGiftRemoved) { this.OrderShipGroupIsGift = default(string); } } else { this.OrderShipGroupIsGift = e.OrderShipGroupIsGift; } if (e.OrderShipGroupShipAfterDate == null) { if (e.IsPropertyOrderShipGroupShipAfterDateRemoved) { this.OrderShipGroupShipAfterDate = default(DateTime?); } } else { this.OrderShipGroupShipAfterDate = e.OrderShipGroupShipAfterDate; } if (e.OrderShipGroupShipByDate == null) { if (e.IsPropertyOrderShipGroupShipByDateRemoved) { this.OrderShipGroupShipByDate = default(DateTime?); } } else { this.OrderShipGroupShipByDate = e.OrderShipGroupShipByDate; } if (e.OrderShipGroupEstimatedShipDate == null) { if (e.IsPropertyOrderShipGroupEstimatedShipDateRemoved) { this.OrderShipGroupEstimatedShipDate = default(DateTime?); } } else { this.OrderShipGroupEstimatedShipDate = e.OrderShipGroupEstimatedShipDate; } if (e.OrderShipGroupEstimatedDeliveryDate == null) { if (e.IsPropertyOrderShipGroupEstimatedDeliveryDateRemoved) { this.OrderShipGroupEstimatedDeliveryDate = default(DateTime?); } } else { this.OrderShipGroupEstimatedDeliveryDate = e.OrderShipGroupEstimatedDeliveryDate; } if (e.OrderShipGroupPickwaveId == null) { if (e.IsPropertyOrderShipGroupPickwaveIdRemoved) { this.OrderShipGroupPickwaveId = default(long?); } } else { this.OrderShipGroupPickwaveId = e.OrderShipGroupPickwaveId; } if (e.OrderShipGroupVersion == null) { if (e.IsPropertyOrderShipGroupVersionRemoved) { this.OrderShipGroupVersion = default(long); } } else { this.OrderShipGroupVersion = (e.OrderShipGroupVersion != null && e.OrderShipGroupVersion.HasValue) ? e.OrderShipGroupVersion.Value : default(long); } if (e.OrderShipGroupCreatedBy == null) { if (e.IsPropertyOrderShipGroupCreatedByRemoved) { this.OrderShipGroupCreatedBy = default(string); } } else { this.OrderShipGroupCreatedBy = e.OrderShipGroupCreatedBy; } if (e.OrderShipGroupCreatedAt == null) { if (e.IsPropertyOrderShipGroupCreatedAtRemoved) { this.OrderShipGroupCreatedAt = default(DateTime); } } else { this.OrderShipGroupCreatedAt = (e.OrderShipGroupCreatedAt != null && e.OrderShipGroupCreatedAt.HasValue) ? e.OrderShipGroupCreatedAt.Value : default(DateTime); } if (e.OrderShipGroupUpdatedBy == null) { if (e.IsPropertyOrderShipGroupUpdatedByRemoved) { this.OrderShipGroupUpdatedBy = default(string); } } else { this.OrderShipGroupUpdatedBy = e.OrderShipGroupUpdatedBy; } if (e.OrderShipGroupUpdatedAt == null) { if (e.IsPropertyOrderShipGroupUpdatedAtRemoved) { this.OrderShipGroupUpdatedAt = default(DateTime); } } else { this.OrderShipGroupUpdatedAt = (e.OrderShipGroupUpdatedAt != null && e.OrderShipGroupUpdatedAt.HasValue) ? e.OrderShipGroupUpdatedAt.Value : default(DateTime); } if (e.OrderShipGroupActive == null) { if (e.IsPropertyOrderShipGroupActiveRemoved) { this.OrderShipGroupActive = default(bool); } } else { this.OrderShipGroupActive = (e.OrderShipGroupActive != null && e.OrderShipGroupActive.HasValue) ? e.OrderShipGroupActive.Value : default(bool); } if (e.OrderShipGroupDeleted == null) { if (e.IsPropertyOrderShipGroupDeletedRemoved) { this.OrderShipGroupDeleted = default(bool); } } else { this.OrderShipGroupDeleted = (e.OrderShipGroupDeleted != null && e.OrderShipGroupDeleted.HasValue) ? e.OrderShipGroupDeleted.Value : default(bool); } if (e.OrderOrderTypeId == null) { if (e.IsPropertyOrderOrderTypeIdRemoved) { this.OrderOrderTypeId = default(string); } } else { this.OrderOrderTypeId = e.OrderOrderTypeId; } if (e.OrderOrderName == null) { if (e.IsPropertyOrderOrderNameRemoved) { this.OrderOrderName = default(string); } } else { this.OrderOrderName = e.OrderOrderName; } if (e.OrderExternalId == null) { if (e.IsPropertyOrderExternalIdRemoved) { this.OrderExternalId = default(string); } } else { this.OrderExternalId = e.OrderExternalId; } if (e.OrderSalesChannelEnumId == null) { if (e.IsPropertyOrderSalesChannelEnumIdRemoved) { this.OrderSalesChannelEnumId = default(string); } } else { this.OrderSalesChannelEnumId = e.OrderSalesChannelEnumId; } if (e.OrderOrderDate == null) { if (e.IsPropertyOrderOrderDateRemoved) { this.OrderOrderDate = default(DateTime?); } } else { this.OrderOrderDate = e.OrderOrderDate; } if (e.OrderPriority == null) { if (e.IsPropertyOrderPriorityRemoved) { this.OrderPriority = default(string); } } else { this.OrderPriority = e.OrderPriority; } if (e.OrderEntryDate == null) { if (e.IsPropertyOrderEntryDateRemoved) { this.OrderEntryDate = default(DateTime?); } } else { this.OrderEntryDate = e.OrderEntryDate; } if (e.OrderPickSheetPrintedDate == null) { if (e.IsPropertyOrderPickSheetPrintedDateRemoved) { this.OrderPickSheetPrintedDate = default(DateTime?); } } else { this.OrderPickSheetPrintedDate = e.OrderPickSheetPrintedDate; } if (e.OrderStatusId == null) { if (e.IsPropertyOrderStatusIdRemoved) { this.OrderStatusId = default(string); } } else { this.OrderStatusId = e.OrderStatusId; } if (e.OrderCurrencyUom == null) { if (e.IsPropertyOrderCurrencyUomRemoved) { this.OrderCurrencyUom = default(string); } } else { this.OrderCurrencyUom = e.OrderCurrencyUom; } if (e.OrderSyncStatusId == null) { if (e.IsPropertyOrderSyncStatusIdRemoved) { this.OrderSyncStatusId = default(string); } } else { this.OrderSyncStatusId = e.OrderSyncStatusId; } if (e.OrderBillingAccountId == null) { if (e.IsPropertyOrderBillingAccountIdRemoved) { this.OrderBillingAccountId = default(string); } } else { this.OrderBillingAccountId = e.OrderBillingAccountId; } if (e.OrderOriginFacilityId == null) { if (e.IsPropertyOrderOriginFacilityIdRemoved) { this.OrderOriginFacilityId = default(string); } } else { this.OrderOriginFacilityId = e.OrderOriginFacilityId; } if (e.OrderWebSiteId == null) { if (e.IsPropertyOrderWebSiteIdRemoved) { this.OrderWebSiteId = default(string); } } else { this.OrderWebSiteId = e.OrderWebSiteId; } if (e.OrderProductStoreId == null) { if (e.IsPropertyOrderProductStoreIdRemoved) { this.OrderProductStoreId = default(string); } } else { this.OrderProductStoreId = e.OrderProductStoreId; } if (e.OrderTerminalId == null) { if (e.IsPropertyOrderTerminalIdRemoved) { this.OrderTerminalId = default(string); } } else { this.OrderTerminalId = e.OrderTerminalId; } if (e.OrderTransactionId == null) { if (e.IsPropertyOrderTransactionIdRemoved) { this.OrderTransactionId = default(string); } } else { this.OrderTransactionId = e.OrderTransactionId; } if (e.OrderAutoOrderShoppingListId == null) { if (e.IsPropertyOrderAutoOrderShoppingListIdRemoved) { this.OrderAutoOrderShoppingListId = default(string); } } else { this.OrderAutoOrderShoppingListId = e.OrderAutoOrderShoppingListId; } if (e.OrderNeedsInventoryIssuance == null) { if (e.IsPropertyOrderNeedsInventoryIssuanceRemoved) { this.OrderNeedsInventoryIssuance = default(string); } } else { this.OrderNeedsInventoryIssuance = e.OrderNeedsInventoryIssuance; } if (e.OrderIsRushOrder == null) { if (e.IsPropertyOrderIsRushOrderRemoved) { this.OrderIsRushOrder = default(string); } } else { this.OrderIsRushOrder = e.OrderIsRushOrder; } if (e.OrderInternalCode == null) { if (e.IsPropertyOrderInternalCodeRemoved) { this.OrderInternalCode = default(string); } } else { this.OrderInternalCode = e.OrderInternalCode; } if (e.OrderRemainingSubTotal == null) { if (e.IsPropertyOrderRemainingSubTotalRemoved) { this.OrderRemainingSubTotal = default(decimal?); } } else { this.OrderRemainingSubTotal = e.OrderRemainingSubTotal; } if (e.OrderGrandTotal == null) { if (e.IsPropertyOrderGrandTotalRemoved) { this.OrderGrandTotal = default(decimal?); } } else { this.OrderGrandTotal = e.OrderGrandTotal; } if (e.OrderInvoicePerShipment == null) { if (e.IsPropertyOrderInvoicePerShipmentRemoved) { this.OrderInvoicePerShipment = default(string); } } else { this.OrderInvoicePerShipment = e.OrderInvoicePerShipment; } if (e.OrderCreatedBy == null) { if (e.IsPropertyOrderCreatedByRemoved) { this.OrderCreatedBy = default(string); } } else { this.OrderCreatedBy = e.OrderCreatedBy; } if (e.OrderCreatedAt == null) { if (e.IsPropertyOrderCreatedAtRemoved) { this.OrderCreatedAt = default(DateTime); } } else { this.OrderCreatedAt = (e.OrderCreatedAt != null && e.OrderCreatedAt.HasValue) ? e.OrderCreatedAt.Value : default(DateTime); } if (e.OrderUpdatedBy == null) { if (e.IsPropertyOrderUpdatedByRemoved) { this.OrderUpdatedBy = default(string); } } else { this.OrderUpdatedBy = e.OrderUpdatedBy; } if (e.OrderUpdatedAt == null) { if (e.IsPropertyOrderUpdatedAtRemoved) { this.OrderUpdatedAt = default(DateTime); } } else { this.OrderUpdatedAt = (e.OrderUpdatedAt != null && e.OrderUpdatedAt.HasValue) ? e.OrderUpdatedAt.Value : default(DateTime); } if (e.OrderActive == null) { if (e.IsPropertyOrderActiveRemoved) { this.OrderActive = default(bool); } } else { this.OrderActive = (e.OrderActive != null && e.OrderActive.HasValue) ? e.OrderActive.Value : default(bool); } this.UpdatedBy = e.CreatedBy; this.UpdatedAt = e.CreatedAt; }