/// <summary> /// Updates an existing Payment Plan to the amended values of the parameters passed in the request. /// </summary> /// <param name="planId"></param> /// <returns></returns> public HttpResponse <OkResponse> UpdatePaymentPlan(string planId, PaymentPlanUpdate requestModel) { return(new ApiHttpClient().PutRequest <OkResponse>(string.Format(ApiUrls.RecurringPaymentPlan, planId), AppSettings.SecretKey, requestModel)); }
public HttpResponse <OkResponse> UpdatePaymentPlan(string planId, PaymentPlanUpdate requestModel) { return(_recurringPaymentsServiceAsync.UpdatePaymentPlanAsync(planId, requestModel).Result); }
public Task <HttpResponse <OkResponse> > UpdatePaymentPlanAsync(string planId, PaymentPlanUpdate requestModel) { return(_apiHttpClient.PutRequest <OkResponse>(string.Format(_configuration.ApiUrls.RecurringPaymentPlan, planId), _configuration.SecretKey, requestModel)); }