Пример #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,
            };
        }