Documentation ¶
Overview ¶
Package exchangerate provides the /exchange_rates APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(currency string, params *stripe.ExchangeRateParams) (*stripe.ExchangeRate, error)
Get returns the exchante rate for a given currency.
Types ¶
type Client ¶
Client is used to invoke /exchange_rates and exchangerates-related APIs.
func (Client) Get ¶
func (c Client) Get(currency string, params *stripe.ExchangeRateParams) (*stripe.ExchangeRate, error)
Get returns the exchante rate for a given currency.
type Iter ¶
Iter is an iterator for exchange rates.
func List ¶
func List(params *stripe.ExchangeRateListParams) *Iter
List lists available exchange rates.
func (*Iter) ExchangeRate ¶
func (i *Iter) ExchangeRate() *stripe.ExchangeRate
ExchangeRate returns the exchange rate which the iterator is currently pointing to.
func (*Iter) ExchangeRateList ¶ added in v71.44.0
func (i *Iter) ExchangeRateList() *stripe.ExchangeRateList
ExchangeRateList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
Click to show internal directories.
Click to hide internal directories.