Exemplo n.º 1
0
 public virtual StripeList <StripeCharge> List(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeList <StripeCharge> > .MapFromJson(
                Requestor.GetString(Infrastructure.ParameterBuilder.ApplyAllParameters(this, listOptions, Urls.Charges, true),
                                    SetupRequestOptions(requestOptions))
                ));
 }
Exemplo n.º 2
0
 public virtual async Task <StripeList <StripeCharge> > ListAsync(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeList <StripeCharge> > .MapFromJson(
                await Requestor.GetStringAsync(Infrastructure.ParameterBuilder.ApplyAllParameters(this, listOptions, Urls.Charges, true),
                                               SetupRequestOptions(requestOptions),
                                               cancellationToken)
                ));
 }