Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client
func (*Client) GetRates ¶ added in v1.0.6
func (c *Client) GetRates(queryFilter RatesQuery) (*RatesResponse, error)
func (*Client) RequestQuote ¶
func (c *Client) RequestQuote(request QuoteRequest) (*QuoteResponse, error)
type QuoteRequest ¶
type QuoteRequest struct { SourceCurrency common.Currency `json:"source_currency,omitempty"` SourceAmount int64 `json:"source_amount,omitempty"` DestinationCurrency common.Currency `json:"destination_currency,omitempty"` DestinationAmount int64 `json:"destination_amount,omitempty"` ProcessingChannelId string `json:"processing_channel_id,omitempty"` }
type QuoteResponse ¶
type QuoteResponse struct { HttpMetadata common.HttpMetadata `json:"http_metadata,omitempty"` Id string `json:"id,omitempty"` SourceCurrency common.Currency `json:"source_currency,omitempty"` SourceAmount int64 `json:"source_amount,omitempty"` DestinationCurrency common.Currency `json:"destination_currency,omitempty"` DestinationAmount int64 `json:"destination_amount,omitempty"` Rate float64 `json:"rate,omitempty"` ExpiresOn *time.Time `json:"expires_on,omitempty"` IsSingleUse bool `json:"is_single_use,omitempty"` }
type RatesQuery ¶ added in v1.0.6
type RatesResponse ¶ added in v1.0.6
Click to show internal directories.
Click to hide internal directories.