public ExternalAccountServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new ExternalAccountService(); this.createOptions = new ExternalAccountCreateOptions { ExternalAccountBankAccount = new AccountBankAccountOptions { AccountNumber = "000123456789", Country = "US", Currency = "usd", RoutingNumber = "110000000", } }; this.updateOptions = new ExternalAccountUpdateOptions { Metadata = new Dictionary <string, string> { { "key", "value" }, }, }; this.listOptions = new ExternalAccountListOptions { Limit = 1, }; }
public ExternalAccountServiceTest( StripeMockFixture stripeMockFixture, MockHttpClientFixture mockHttpClientFixture) : base(stripeMockFixture, mockHttpClientFixture) { this.service = new ExternalAccountService(this.StripeClient); this.createOptions = new ExternalAccountCreateOptions { ExternalAccount = "btok_123", }; this.updateOptions = new ExternalAccountUpdateOptions { Metadata = new Dictionary <string, string> { { "key", "value" }, }, Name = "Jenny Rosen", }; this.listOptions = new ExternalAccountListOptions { Limit = 1, }; }
public ExternalAccountServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new ExternalAccountService(); this.createOptions = new ExternalAccountCreateOptions { ExternalAccountTokenId = "btok_123", }; this.updateOptions = new ExternalAccountUpdateOptions { Metadata = new Dictionary <string, string> { { "key", "value" }, }, }; this.listOptions = new ExternalAccountListOptions { Limit = 1, }; }
public virtual IAsyncEnumerable <IExternalAccount> ListAutoPagingAsync(string accountId, ExternalAccountListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListNestedEntitiesAutoPagingAsync(accountId, options, requestOptions, cancellationToken)); }
public virtual IEnumerable <IExternalAccount> ListAutoPaging(string accountId, ExternalAccountListOptions options = null, RequestOptions requestOptions = null) { return(this.ListNestedEntitiesAutoPaging(accountId, options, requestOptions)); }
public virtual Task <StripeList <IExternalAccount> > ListAsync(string accountId, ExternalAccountListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListNestedEntitiesAsync(accountId, options, requestOptions, cancellationToken)); }
public virtual StripeList <IExternalAccount> List(string accountId, ExternalAccountListOptions options = null, RequestOptions requestOptions = null) { return(this.ListNestedEntities(accountId, options, requestOptions)); }