Exemple #1
0
        public StripeExternalAccountServiceTest()
        {
            this.service = new StripeExternalAccountService();

            this.createOptions = new StripeExternalAccountCreateOptions
            {
                ExternalAccountBankAccount = new StripeAccountBankAccountOptions
                {
                    AccountNumber = "000123456789",
                    Country       = "US",
                    Currency      = "usd",
                    RoutingNumber = "110000000",
                }
            };

            this.updateOptions = new StripeExternalAccountUpdateOptions()
            {
                Metadata = new Dictionary <string, string>()
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new StripeExternalAccountListOptions()
            {
                Limit = 1,
            };
        }
 public virtual Task <StripeList <StripeExternalAccount> > ListAsync(string accountId, StripeExternalAccountListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetEntityListAsync($"{Urls.BaseUrl}/accounts/{accountId}/external_accounts", requestOptions, cancellationToken, listOptions));
 }
 public virtual StripeList <StripeExternalAccount> List(string accountId, StripeExternalAccountListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return(GetEntityList($"{Urls.BaseUrl}/accounts/{accountId}/external_accounts", requestOptions, listOptions));
 }