コード例 #1
0
ファイル: CardService.cs プロジェクト: jbarker4682/stripe.net
		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);
		}
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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));
        }
コード例 #6
0
		public IEnumerable<StripeSubscription> List(string customerId, StripeListOptions listOptions = null)
		{
			return _stripeSubscriptionService.List(customerId, listOptions);
		}