creditnote

package
v63.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package creditnote provides the /credit_notes APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.CreditNoteParams) (*stripe.CreditNote, error)

Get returns the details of a credit note.

func New

New creates a new credit note.

func Update

func Update(id string, params *stripe.CreditNoteParams) (*stripe.CreditNote, error)

Update updates a credit note.

func VoidCreditNote

func VoidCreditNote(id string, params *stripe.CreditNoteVoidParams) (*stripe.CreditNote, error)

VoidCreditNote voids a credit note.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is the client used to invoke /credit_notes APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.CreditNoteParams) (*stripe.CreditNote, error)

Get returns the details of a credit note.

func (Client) List

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

List returns a list of credit notes.

func (Client) New

func (c Client) New(params *stripe.CreditNoteParams) (*stripe.CreditNote, error)

New creates a new credit note.

func (Client) Update

func (c Client) Update(id string, params *stripe.CreditNoteParams) (*stripe.CreditNote, error)

Update updates a credit note.

func (Client) VoidCreditNote

func (c Client) VoidCreditNote(id string, params *stripe.CreditNoteVoidParams) (*stripe.CreditNote, error)

VoidCreditNote voids a credit note.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for credit notes.

func List

func List(params *stripe.CreditNoteListParams) *Iter

List returns a list of credit notes.

func (*Iter) CreditNote

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

CreditNote returns the cn 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