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, }; }
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)); }
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, }; }