exchangerate

package
v36.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2018 License: MIT Imports: 3 Imported by: 0

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

type Client struct {
	B   stripe.Backend
	Key string
}

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.

func (Client) List

func (c Client) List(listParams *stripe.ExchangeRateListParams) *Iter

List lists available exchange rates.

type Iter

type Iter struct {
	*stripe.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL