Beispiel #1
0
        public async Task WhenAsync(MergePatchOrderItemShipGroupAssociationMvoDto c)
        {
            var idObj         = OrderItemShipGroupAssociationMvoProxyUtils.ToIdString((c as IMergePatchOrderItemShipGroupAssociationMvo).OrderItemShipGroupAssociationId);
            var uriParameters = new OrderItemShipGroupAssociationMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new OrderItemShipGroupAssociationMvoPatchRequest(uriParameters, (MergePatchOrderItemShipGroupAssociationMvoDto)c);
            var resp = await _ramlClient.OrderItemShipGroupAssociationMvo.Patch(req);

            OrderItemShipGroupAssociationMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
Beispiel #2
0
        public async Task <IOrderItemShipGroupAssociationMvoEvent> GetStateEventAsync(OrderItemShipGroupAssociationId orderItemShipGroupAssociationId, long version)
        {
            var idObj         = OrderItemShipGroupAssociationMvoProxyUtils.ToIdString(orderItemShipGroupAssociationId);
            var uriParameters = new OrderItemShipGroupAssociationMvoStateEventUriParameters();

            uriParameters.Id      = idObj;
            uriParameters.Version = version.ToString();

            var req  = new OrderItemShipGroupAssociationMvoStateEventGetRequest(uriParameters);
            var resp = await _ramlClient.OrderItemShipGroupAssociationMvoStateEvent.Get(req);

            OrderItemShipGroupAssociationMvoProxyUtils.ThrowOnHttpResponseError(resp);
            return(resp.Content);
        }
Beispiel #3
0
        public async Task <IOrderItemShipGroupAssociationMvoState> GetHistoryStateAsync(OrderItemShipGroupAssociationId orderItemShipGroupAssociationId, long version)
        {
            var idObj         = OrderItemShipGroupAssociationMvoProxyUtils.ToIdString(orderItemShipGroupAssociationId);
            var uriParameters = new OrderItemShipGroupAssociationMvoHistoryStateUriParameters();

            uriParameters.Id      = idObj;
            uriParameters.Version = version.ToString();

            var req  = new OrderItemShipGroupAssociationMvoHistoryStateGetRequest(uriParameters);
            var resp = await _ramlClient.OrderItemShipGroupAssociationMvoHistoryState.Get(req);

            OrderItemShipGroupAssociationMvoProxyUtils.ThrowOnHttpResponseError(resp);
            return((resp.Content == null) ? null : resp.Content.ToOrderItemShipGroupAssociationMvoState());
        }
Beispiel #4
0
        public async Task <IOrderItemShipGroupAssociationMvoState> GetAsync(OrderItemShipGroupAssociationId orderItemShipGroupAssociationId)
        {
            IOrderItemShipGroupAssociationMvoState state = null;
            var idObj         = OrderItemShipGroupAssociationMvoProxyUtils.ToIdString(orderItemShipGroupAssociationId);
            var uriParameters = new OrderItemShipGroupAssociationMvoUriParameters();

            uriParameters.Id = idObj;

            var req = new OrderItemShipGroupAssociationMvoGetRequest(uriParameters);

            var resp = await _ramlClient.OrderItemShipGroupAssociationMvo.Get(req);

            OrderItemShipGroupAssociationMvoProxyUtils.ThrowOnHttpResponseError(resp);
            state = (resp.Content == null) ? null : resp.Content.ToOrderItemShipGroupAssociationMvoState();
            return(state);
        }
Beispiel #5
0
        public async Task WhenAsync(DeleteOrderItemShipGroupAssociationMvoDto c)
        {
            var idObj         = OrderItemShipGroupAssociationMvoProxyUtils.ToIdString((c as IDeleteOrderItemShipGroupAssociationMvo).OrderItemShipGroupAssociationId);
            var uriParameters = new OrderItemShipGroupAssociationMvoUriParameters();

            uriParameters.Id = idObj;

            var q = new OrderItemShipGroupAssociationMvoDeleteQuery();

            q.CommandId   = c.CommandId;
            q.RequesterId = c.RequesterId;
            q.Version     = Convert.ToString(c.OrderVersion);

            var req = new OrderItemShipGroupAssociationMvoDeleteRequest(uriParameters);

            req.Query = q;

            var resp = await _ramlClient.OrderItemShipGroupAssociationMvo.Delete(req);

            OrderItemShipGroupAssociationMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }