~evanj/cms

ref: 99a3bb7fc511e3f448a358691896ba1300f73a93 cms/vendor/github.com/stripe/stripe-go/v71/exchangerate.go -rw-r--r-- 709 bytes
99a3bb7fEvan M Jones WIP(rbac): Decorator object complete. TODO: Specify role in invite. 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package stripe

// ExchangeRate is the resource representing the currency exchange rates at
// a given time.
type ExchangeRate struct {
	APIResource
	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 {
	APIResource
	ListMeta
	Data []*ExchangeRate `json:"data"`
}

// ExchangeRateListParams are the parameters allowed during ExchangeRate listing.
type ExchangeRateListParams struct {
	ListParams `form:"*"`
}