Ejemplo n.º 1
0
 //Sync
 public virtual StripeTopup Create(StripeTopupCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeTopup> .MapFromJson(
                Requestor.PostString(this.ApplyAllParameters(createOptions, Urls.Topups, false),
                                     SetupRequestOptions(requestOptions))
                ));
 }
Ejemplo n.º 2
0
 //Async
 public virtual async Task <StripeTopup> CreateAsync(StripeTopupCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeTopup> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(createOptions, Urls.Topups, false),
                                                SetupRequestOptions(requestOptions),
                                                cancellationToken)
                ));
 }