Esempio n. 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,
            };
        }
Esempio n. 2
0
        public virtual async Task <Transfer> Update(string transferId, TransferUpdateOptions updateOptions)
        {
            var url = string.Format("{0}/{1}", Urls.Transfers, transferId);

            url = this.ApplyAllParameters(updateOptions, url, false);

            var response = await Requestor.Post(url);

            return(Mapper <Transfer> .MapFromJson(response));
        }
Esempio n. 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,
            };
        }