countryspec

package
v81.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 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

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 APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.CountrySpecParams) (*stripe.CountrySpec, error)

Returns a Country Spec for a given Country code.

func (Client) List

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

Lists all Country Spec objects available in the API.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for country specs.

func List

func List(params *stripe.CountrySpecListParams) *Iter

Lists all Country Spec objects available in the API.

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