countryspec

package
v72.31.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 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.

func (*Iter) CountrySpecList

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

CountrySpecList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

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