public HttpStatusCode UpdateRecurrentPaymentNextPaymentDate(Guid recurrentId, MerchantAuthentication merchantAuthentication, DateTime nextPaymentDate) { var restRequest = new RestRequest(@"RecurrentPayment/{recurrentId}/NextPaymentDate", Method.PUT) { RequestFormat = DataFormat.Json }; AddHeaders(restRequest, merchantAuthentication); restRequest.AddUrlSegment("recurrentId", recurrentId.ToString()); restRequest.AddBody(nextPaymentDate); var response = RestClient.Execute <HttpStatusCode>(restRequest); return(response.StatusCode); }
public FraudManagementClient(MerchantAuthentication merchantAuthentication, bool isTestMode, int retryCount = 3) : base(merchantAuthentication, isTestMode, retryCount) { }
public RecurringBillingClient(MerchantAuthentication merchantAuthentication, bool isTestMode, int retryCount = 3) : base(merchantAuthentication, isTestMode, retryCount) { }
private static void AddHeaders(IRestRequest request, MerchantAuthentication merchantAuthentication) { request.AddHeader("Content-Type", "application/json"); request.AddHeader("MerchantId", merchantAuthentication.MerchantId.ToString()); request.AddHeader("MerchantKey", merchantAuthentication.MerchantKey); }
public CustomerProfileClient(MerchantAuthentication merchantAuthentication, bool isTestMode, int retryCount = 3) : base(merchantAuthentication, isTestMode, retryCount) { }