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