public static CancelOrderReferenceResponse InvokeCancelOrderReference(IOffAmazonPaymentsService service, CancelOrderReferenceRequest request)
 {
     CancelOrderReferenceResponse response = null;
     try
     {
         response = service.CancelOrderReference(request);
         Console.WriteLine("Service Response");
         Console.WriteLine("=============================================================================");
         Console.WriteLine();
         Console.WriteLine("        CancelOrderReferenceResponse");
         if (response.IsSetResponseMetadata())
         {
             Console.WriteLine("            ResponseMetadata");
             ResponseMetadata responseMetadata = response.ResponseMetadata;
             if (responseMetadata.IsSetRequestId())
             {
                 Console.WriteLine("                RequestId");
                 Console.WriteLine("                    {0}", responseMetadata.RequestId);
             }
         }
     }
     catch (OffAmazonPaymentsServiceException ex)
     {
         PrintException(ex);
     }
     return response;
 }
        //Invoke the CancelOrderReference method
        public CancelOrderReferenceResponse CancelOrderReference(string orderReferenceId)
        {
            CancelOrderReferenceRequest request = new CancelOrderReferenceRequest();
            request.SellerId = propertiesCollection.MerchantID;
            request.AmazonOrderReferenceId = orderReferenceId;

            return CancelOrderReferenceSample.InvokeCancelOrderReference(service, request);
        }
Ejemplo n.º 3
0
        public void CancelOrderReference(AmazonPayClient client, string orderReferenceId)
        {
            var request = new CancelOrderReferenceRequest();

            request.SellerId = client.Settings.SellerId;
            request.AmazonOrderReferenceId = orderReferenceId;

            var response = client.Service.CancelOrderReference(request);
        }
Ejemplo n.º 4
0
        //Invoke the CancelOrderReference method
        public CancelOrderReferenceResponse CancelOrderReference(string orderReferenceId)
        {
            CancelOrderReferenceRequest request = new CancelOrderReferenceRequest();

            request.SellerId = propertiesCollection.MerchantID;
            request.AmazonOrderReferenceId = orderReferenceId;

            return(CancelOrderReferenceSample.InvokeCancelOrderReference(service, request));
        }
Ejemplo n.º 5
0
        public void CancelOrderReference(AmazonPayClient client, string orderReferenceId)
        {
            var request = new CancelOrderReferenceRequest();
            request.SellerId = client.Settings.SellerId;
            request.AmazonOrderReferenceId = orderReferenceId;

            var response = client.Service.CancelOrderReference(request);
        }
Ejemplo n.º 6
0
        public static CancelOrderReferenceResponse InvokeCancelOrderReference(IOffAmazonPaymentsService service, CancelOrderReferenceRequest request)
        {
            CancelOrderReferenceResponse response = null;

            try
            {
                response = service.CancelOrderReference(request);
                Console.WriteLine("Service Response");
                Console.WriteLine("=============================================================================");
                Console.WriteLine();
                Console.WriteLine("        CancelOrderReferenceResponse");
                if (response.IsSetResponseMetadata())
                {
                    Console.WriteLine("            ResponseMetadata");
                    ResponseMetadata responseMetadata = response.ResponseMetadata;
                    if (responseMetadata.IsSetRequestId())
                    {
                        Console.WriteLine("                RequestId");
                        Console.WriteLine("                    {0}", responseMetadata.RequestId);
                    }
                }
            }
            catch (OffAmazonPaymentsServiceException ex)
            {
                PrintException(ex);
            }
            return(response);
        }