public virtual async Task<IEnumerable<Card>> List(string customerOrRecipientId, StripeListOptions options = null, bool isRecipient = false) { var url = this.SetupUrl(customerOrRecipientId, isRecipient); url = this.ApplyAllParameters(options, url, true); var response = await Requestor.Get(url); return Mapper<Card>.MapCollectionFromJson(response); }
public virtual async Task <IEnumerable <Coupon> > List(StripeListOptions listOptions = null) { var url = Urls.Coupons; url = this.ApplyAllParameters(listOptions, url, true); var response = await Requestor.Get(url); return(Mapper <Coupon> .MapCollectionFromJson(response)); }
public virtual async Task <IEnumerable <Refund> > List(string chargeId, StripeListOptions options = null) { var url = string.Format("{0}/{1}/refunds", Urls.Charges, chargeId); url = this.ApplyAllParameters(options, url, true); var response = await Requestor.Get(url); return(Mapper <Refund> .MapCollectionFromJson(response)); }
public apple_pay_domains_fixture() { DomainCreateOptions = new StripeApplePayDomainCreateOptions { DomainName = "example.com" }; DomainListOptions = new StripeListOptions(); var service = new StripeApplePayDomainService(Cache.ApiKey); Domain = service.Create(DomainCreateOptions); DomainRetrieved = service.Get(Domain.Id); Domains = service.List(DomainListOptions); service.Delete(Domain.Id); }
public virtual async Task <IEnumerable <Subscription> > List(string customerId, StripeListOptions listOptions = null) { var url = string.Format(Urls.Subscriptions, customerId); url = this.ApplyAllParameters(listOptions, url, true); var response = await Requestor.Get(url); return(Mapper <Subscription> .MapCollectionFromJson(response)); }
public IEnumerable<StripeSubscription> List(string customerId, StripeListOptions listOptions = null) { return _stripeSubscriptionService.List(customerId, listOptions); }