countryspec

package
v37.0.0+incompatible Latest Latest
Warning

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

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

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, params *stripe.CountrySpecParams) (*stripe.CountrySpec, error)

Get returns a Country Spec for a given country code.

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, params *stripe.CountrySpecParams) (*stripe.CountrySpec, error)

Get returns a Country Spec for a given country code.

func (Client) List

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

List lists available Country Specs.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for Country Specs.

func List

func List(params *stripe.CountrySpecListParams) *Iter

List lists available Country Specs.

func (*Iter) CountrySpec

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

CountrySpec returns the Country Spec 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