/// <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));
 }
示例#2
0
 public HttpResponse <OkResponse> UpdatePaymentPlan(string planId, PaymentPlanUpdate requestModel)
 {
     return(_recurringPaymentsServiceAsync.UpdatePaymentPlanAsync(planId, requestModel).Result);
 }
示例#3
0
 public Task <HttpResponse <OkResponse> > UpdatePaymentPlanAsync(string planId, PaymentPlanUpdate requestModel)
 {
     return(_apiHttpClient.PutRequest <OkResponse>(string.Format(_configuration.ApiUrls.RecurringPaymentPlan, planId), _configuration.SecretKey, requestModel));
 }