public async Task <ClientResponse> MarkForCaptureAsync(MarkForCaptureType markForCapture, string traceNumber = null)
        {
            markForCaptureType item = markForCapture.CopyToBase();
            var xmlBody             = new Request {
                Item = item
            };
            var url     = Endpoint.Url();
            var request = new ClientRequest
            {
                Request     = xmlBody,
                TraceNumber = traceNumber,
            };

            return(await SendRequestAsync(url, request));
        }
Example #2
0
 public async Task <ClientResponse> MarkForCaptureAsync(MarkForCaptureType markForCapture, string traceNumber = null)
 {
     return(await _client.MarkForCaptureAsync(markForCapture, traceNumber));
 }
Example #3
0
 public ClientResponse MarkForCapture(MarkForCaptureType markForCapture, string traceNumber = null)
 {
     return(_client.MarkForCapture(markForCapture, traceNumber));
 }
 public ClientResponse MarkForCapture(MarkForCaptureType markForCapture, string traceNumber = null)
 {
     return(MarkForCaptureAsync(markForCapture, traceNumber).GetAwaiter().GetResult());
 }