public virtual OrderItemShipGroupAssociationStateCreatedDto NewOrderItemShipGroupAssociationStateCreated(string orderItemSeqId) { var e = new OrderItemShipGroupAssociationStateCreatedDto(); var eId = NewOrderItemShipGroupAssociationEventId(orderItemSeqId); e.OrderItemShipGroupAssociationEventId = eId; return(e); }
public virtual OrderItemShipGroupAssociationStateCreatedDto ToOrderItemShipGroupAssociationStateCreatedDto(IOrderItemShipGroupAssociationStateCreated e) { var dto = new OrderItemShipGroupAssociationStateCreatedDto(); dto.OrderItemShipGroupAssociationEventId = e.OrderItemShipGroupAssociationEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.Version = e.Version; dto.CommandId = e.CommandId; dto.Quantity = e.Quantity; dto.CancelQuantity = e.CancelQuantity; dto.Active = e.Active; return(dto); }
public virtual OrderShipGroupStateCreatedDto ToOrderShipGroupStateCreatedDto(IOrderShipGroupStateCreated e) { var dto = new OrderShipGroupStateCreatedDto(); 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.DestinationFacilityId = e.DestinationFacilityId; dto.ContactMechId = e.ContactMechId; dto.TelecomContactMechId = e.TelecomContactMechId; dto.TrackingNumber = e.TrackingNumber; dto.ContactPartyId = e.ContactPartyId; dto.VehiclePlateNumber = e.VehiclePlateNumber; 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.NumberOfPackages = e.NumberOfPackages; dto.NumberOfContainers = e.NumberOfContainers; dto.NumberOfPakagesPerContainer = e.NumberOfPakagesPerContainer; dto.OrderShipGroupStatusId = e.OrderShipGroupStatusId; dto.Active = e.Active; var orderItemShipGroupAssociationEvents = new List <OrderItemShipGroupAssociationStateCreatedDto>(); foreach (var ee in e.OrderItemShipGroupAssociationEvents) { OrderItemShipGroupAssociationStateCreatedDto eeDto = OrderItemShipGroupAssociationStateEventDtoConverter.ToOrderItemShipGroupAssociationStateCreatedDto(ee); orderItemShipGroupAssociationEvents.Add(eeDto); } dto.OrderItemShipGroupAssociationEvents = orderItemShipGroupAssociationEvents.ToArray(); return(dto); }