exchangerate

package
v30.8.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 2 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) (*stripe.ExchangeRate, error)

Get returns an ExchangeRate 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) (*stripe.ExchangeRate, error)

func (Client) List

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

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of ExchangeRates. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.ExchangeRateListParams) *Iter

List lists available ExchangeRates.

func (*Iter) ExchangeRate

func (i *Iter) ExchangeRate() *stripe.ExchangeRate

ExchangeRate returns the most recent ExchangeRate visited by a call to Next.

Jump to

Keyboard shortcuts

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