Documentation ¶
Overview ¶
Package registration provides the /tax/registrations APIs
Index ¶
- func Get(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
- func New(params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
- func Update(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
- type Client
- func (c Client) Get(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
- func (c Client) List(listParams *stripe.TaxRegistrationListParams) *Iter
- func (c Client) New(params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
- func (c Client) Update(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
Returns a Tax Registration object.
func New ¶
func New(params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
Creates a new Tax Registration object.
func Update ¶
func Update(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
Updates an existing Tax Registration object.
A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.
Types ¶
type Client ¶
Client is used to invoke /tax/registrations APIs.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
Returns a Tax Registration object.
func (Client) List ¶
func (c Client) List(listParams *stripe.TaxRegistrationListParams) *Iter
Returns a list of Tax Registration objects.
func (Client) New ¶
func (c Client) New(params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
Creates a new Tax Registration object.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error)
Updates an existing Tax Registration object.
A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.
type Iter ¶
Iter is an iterator for tax registrations.
func List ¶
func List(params *stripe.TaxRegistrationListParams) *Iter
Returns a list of Tax Registration objects.
func (*Iter) TaxRegistration ¶
func (i *Iter) TaxRegistration() *stripe.TaxRegistration
TaxRegistration returns the tax registration which the iterator is currently pointing to.
func (*Iter) TaxRegistrationList ¶
func (i *Iter) TaxRegistrationList() *stripe.TaxRegistrationList
TaxRegistrationList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.