shippingrate

package
v79.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package shippingrate provides the /shipping_rates APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Returns the shipping rate object with the given ID.

func New

Creates a new shipping rate object.

func Update

func Update(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)

Updates an existing shipping rate object.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /shipping_rates APIs.

func (Client) Get

Returns the shipping rate object with the given ID.

func (Client) List

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

Returns a list of your shipping rates.

func (Client) New

Creates a new shipping rate object.

func (Client) Update

func (c Client) Update(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)

Updates an existing shipping rate object.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for shipping rates.

func List

func List(params *stripe.ShippingRateListParams) *Iter

Returns a list of your shipping rates.

func (*Iter) ShippingRate

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

ShippingRate returns the shipping rate which the iterator is currently pointing to.

func (*Iter) ShippingRateList

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

ShippingRateList 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