countryspec

package
v20.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: MIT Imports: 1 Imported by: 115

Documentation

Overview

Package countryspec provides the /country_specs APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(country string) (*stripe.CountrySpec, error)

Get returns a CountrySpec for a given country code For more details see https://stripe.com/docs/api/ruby#retrieve_country_spec

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /country_specs and countryspec-related APIs.

func (Client) Get

func (c Client) Get(country string) (*stripe.CountrySpec, error)

func (Client) List

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

type Iter

type Iter struct {
	*stripe.Iter
}

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

func List

func List(params *stripe.CountrySpecListParams) *Iter

List lists available CountrySpecs.

func (*Iter) CountrySpec

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

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

Jump to

Keyboard shortcuts

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