mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-06 02:36:40 +00:00
25 lines
683 B
Go
25 lines
683 B
Go
package stripe
|
|
|
|
// ExchangeRate is the resource representing the currency exchange rates at
|
|
// a given time.
|
|
type ExchangeRate struct {
|
|
ID string `json:"id"`
|
|
Rates map[Currency]float64 `json:"rates"`
|
|
}
|
|
|
|
// ExchangeRateParams is the set of parameters that can be used when retrieving
|
|
// exchange rates.
|
|
type ExchangeRateParams struct {
|
|
Params `form:"*"`
|
|
}
|
|
|
|
// ExchangeRateList is a list of exchange rates as retrieved from a list endpoint.
|
|
type ExchangeRateList struct {
|
|
ListMeta
|
|
Data []*ExchangeRate `json:"data"`
|
|
}
|
|
|
|
// ExchangeRateListParams are the parameters allowed during ExchangeRate listing.
|
|
type ExchangeRateListParams struct {
|
|
ListParams `form:"*"`
|
|
}
|