示例#1
0
        public TransferServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new TransferService(this.StripeClient);

            this.createOptions = new TransferCreateOptions
            {
                Amount      = 123,
                Currency    = "usd",
                Destination = "acct_123",
            };

            this.updateOptions = new TransferUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new TransferListOptions
            {
                Limit = 1,
            };
        }
示例#2
0
        public virtual async Task <IEnumerable <Transfer> > List(TransferListOptions options = null)
        {
            var url = Urls.Transfers;

            url = this.ApplyAllParameters(options, url, true);

            var response = await Requestor.Get(url);

            return(Mapper <Transfer> .MapCollectionFromJson(response));
        }
示例#3
0
        public TransferServiceTest()
        {
            this.service = new TransferService();

            this.createOptions = new TransferCreateOptions
            {
                Amount      = 123,
                Currency    = "usd",
                Destination = "acct_123",
            };

            this.updateOptions = new TransferUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new TransferListOptions
            {
                Limit = 1,
            };
        }