public static CloseBillingAgreementResponse InvokeCloseBillingAgreement(IOffAmazonPaymentsService service, CloseBillingAgreementRequest request) { CloseBillingAgreementResponse response = null; try { response = service.CloseBillingAgreement(request); Console.WriteLine("Service Response"); Console.WriteLine("============================================================================="); Console.WriteLine(); Console.WriteLine(" CloseBillingAgreementResponse"); 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; }
public static CloseBillingAgreementResponse CloseBillingAgreement(OffAmazonPaymentsServicePropertyCollection propertiesCollection, IOffAmazonPaymentsService service, string billingAgreementId) { CloseBillingAgreementRequest request = new CloseBillingAgreementRequest(); request.AmazonBillingAgreementId = billingAgreementId; request.SellerId = propertiesCollection.MerchantID; return InvokeCloseBillingAgreement(service, request); }
public static CloseBillingAgreementResponse CloseBillingAgreement(OffAmazonPaymentsServicePropertyCollection propertiesCollection, IOffAmazonPaymentsService service, string billingAgreementId) { CloseBillingAgreementRequest request = new CloseBillingAgreementRequest(); request.AmazonBillingAgreementId = billingAgreementId; request.SellerId = propertiesCollection.MerchantID; return(InvokeCloseBillingAgreement(service, request)); }
public static CloseBillingAgreementResponse InvokeCloseBillingAgreement(IOffAmazonPaymentsService service, CloseBillingAgreementRequest request) { CloseBillingAgreementResponse response = null; try { response = service.CloseBillingAgreement(request); Console.WriteLine("Service Response"); Console.WriteLine("============================================================================="); Console.WriteLine(); Console.WriteLine(" CloseBillingAgreementResponse"); 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); }