Example #1
0
        public virtual OrderShipGroupStateMergePatchedDto ToOrderShipGroupStateMergePatchedDto(IOrderShipGroupStateMergePatched e)
        {
            var dto = new OrderShipGroupStateMergePatchedDto();

            dto.OrderShipGroupEventId = e.OrderShipGroupEventId;
            dto.CreatedAt             = e.CreatedAt;
            dto.CreatedBy             = e.CreatedBy;
            dto.Version              = e.Version;
            dto.CommandId            = e.CommandId;
            dto.ShipmentMethodTypeId = e.ShipmentMethodTypeId;
            dto.SupplierPartyId      = e.SupplierPartyId;
            dto.VendorPartyId        = e.VendorPartyId;
            dto.CarrierPartyId       = e.CarrierPartyId;
            dto.CarrierRoleTypeId    = e.CarrierRoleTypeId;
            dto.FacilityId           = e.FacilityId;
            dto.ContactMechId        = e.ContactMechId;
            dto.TelecomContactMechId = e.TelecomContactMechId;
            dto.TrackingNumber       = e.TrackingNumber;
            dto.ShippingInstructions = e.ShippingInstructions;
            dto.MaySplit             = e.MaySplit;
            dto.GiftMessage          = e.GiftMessage;
            dto.IsGift                = e.IsGift;
            dto.ShipAfterDate         = e.ShipAfterDate;
            dto.ShipByDate            = e.ShipByDate;
            dto.EstimatedShipDate     = e.EstimatedShipDate;
            dto.EstimatedDeliveryDate = e.EstimatedDeliveryDate;
            dto.PickwaveId            = e.PickwaveId;
            dto.Active                = e.Active;
            dto.IsPropertyShipmentMethodTypeIdRemoved = e.IsPropertyShipmentMethodTypeIdRemoved;
            dto.IsPropertySupplierPartyIdRemoved      = e.IsPropertySupplierPartyIdRemoved;
            dto.IsPropertyVendorPartyIdRemoved        = e.IsPropertyVendorPartyIdRemoved;
            dto.IsPropertyCarrierPartyIdRemoved       = e.IsPropertyCarrierPartyIdRemoved;
            dto.IsPropertyCarrierRoleTypeIdRemoved    = e.IsPropertyCarrierRoleTypeIdRemoved;
            dto.IsPropertyFacilityIdRemoved           = e.IsPropertyFacilityIdRemoved;
            dto.IsPropertyContactMechIdRemoved        = e.IsPropertyContactMechIdRemoved;
            dto.IsPropertyTelecomContactMechIdRemoved = e.IsPropertyTelecomContactMechIdRemoved;
            dto.IsPropertyTrackingNumberRemoved       = e.IsPropertyTrackingNumberRemoved;
            dto.IsPropertyShippingInstructionsRemoved = e.IsPropertyShippingInstructionsRemoved;
            dto.IsPropertyMaySplitRemoved             = e.IsPropertyMaySplitRemoved;
            dto.IsPropertyGiftMessageRemoved          = e.IsPropertyGiftMessageRemoved;
            dto.IsPropertyIsGiftRemoved                = e.IsPropertyIsGiftRemoved;
            dto.IsPropertyShipAfterDateRemoved         = e.IsPropertyShipAfterDateRemoved;
            dto.IsPropertyShipByDateRemoved            = e.IsPropertyShipByDateRemoved;
            dto.IsPropertyEstimatedShipDateRemoved     = e.IsPropertyEstimatedShipDateRemoved;
            dto.IsPropertyEstimatedDeliveryDateRemoved = e.IsPropertyEstimatedDeliveryDateRemoved;
            dto.IsPropertyPickwaveIdRemoved            = e.IsPropertyPickwaveIdRemoved;
            dto.IsPropertyActiveRemoved                = e.IsPropertyActiveRemoved;
            var orderItemShipGroupAssociationEvents = new List <OrderItemShipGroupAssociationStateCreatedOrMergePatchedOrRemovedDto>();

            foreach (var ee in e.OrderItemShipGroupAssociationEvents)
            {
                OrderItemShipGroupAssociationStateCreatedOrMergePatchedOrRemovedDto eeDto = OrderItemShipGroupAssociationStateEventDtoConverter.ToOrderItemShipGroupAssociationStateEventDto(ee);
                orderItemShipGroupAssociationEvents.Add(eeDto);
            }
            dto.OrderItemShipGroupAssociationEvents = orderItemShipGroupAssociationEvents.ToArray();


            return(dto);
        }
Example #2
0
        public virtual OrderShipGroupStateMergePatchedDto NewOrderShipGroupStateMergePatched(long?shipGroupSeqId)
        {
            var e   = new OrderShipGroupStateMergePatchedDto();
            var eId = NewOrderShipGroupEventId(shipGroupSeqId);

            e.OrderShipGroupEventId = eId;
            return(e);
        }