Documentation ¶
Overview ¶
Package shippingrate provides the /shipping_rates APIs
Index ¶
- func Get(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
- func New(params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
- func Update(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
- type Client
- func (c Client) Get(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
- func (c Client) List(listParams *stripe.ShippingRateListParams) *Iter
- func (c Client) New(params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
- func (c Client) Update(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
Get returns the details of a shipping rate.
func New ¶
func New(params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
New creates a new shipping rate.
func Update ¶
func Update(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
Update updates a shipping rate's properties.
Types ¶
type Client ¶
Client is used to invoke /shipping_rates APIs.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
Get returns the details of a shipping rate.
func (Client) List ¶
func (c Client) List(listParams *stripe.ShippingRateListParams) *Iter
List returns a list of shipping rates.
func (Client) New ¶
func (c Client) New(params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
New creates a new shipping rate.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.ShippingRateParams) (*stripe.ShippingRate, error)
Update updates a shipping rate's properties.
type Iter ¶
Iter is an iterator for shipping rates.
func List ¶
func List(params *stripe.ShippingRateListParams) *Iter
List returns a list of 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.