Example #1
0
 /// <summary>
 /// Adds the specified PaymentMethod to the collection via POST.
 /// </summary>
 /// <param name="paymentMethod">The PaymentMethod to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created PaymentMethod.</returns>
 public System.Threading.Tasks.Task <PaymentMethod> AddAsync(PaymentMethod paymentMethod, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <PaymentMethod>(paymentMethod, cancellationToken));
 }
Example #2
0
 /// <summary>
 /// Adds the specified PaymentMethod to the collection via POST.
 /// </summary>
 /// <param name="paymentMethod">The PaymentMethod to add.</param>
 /// <returns>The created PaymentMethod.</returns>
 public System.Threading.Tasks.Task <PaymentMethod> AddAsync(PaymentMethod paymentMethod)
 {
     return(this.AddAsync(paymentMethod, CancellationToken.None));
 }