public async Task <GetPaymentpolicyresponse> getPaymentpolicyService(string policyId) { RestHelper helper = new RestHelper(ApplicationConstants.PaymentPolicy_Url + policyId); var response = await helper.Get(); GetPaymentpolicyresponse getPaymentpolicyResponse = JsonConvert.DeserializeObject <GetPaymentpolicyresponse>(response); return(getPaymentpolicyResponse); }
public void getPaymentPolicy() { AccountService accountService = new AccountService(); EbaySdkLib.Messages.GetPaymentpolicyRequest getPaymentpolicy = new EbaySdkLib.Messages.GetPaymentpolicyRequest(); getPaymentpolicy.payment_policy_id = "5486492000"; string Id = getPaymentpolicy.payment_policy_id.ToString(); GetPaymentpolicyresponse response = accountService.PaymentpolicyService.getPaymentpolicyService(Id).Result; Assert.IsNotNull(response); }