invoicerenderingtemplate

package
v81.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package invoicerenderingtemplate provides the /invoice_rendering_templates APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.

func Get

Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.

func Unarchive

Unarchive an invoice rendering template so it can be used on new Stripe objects again.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /invoice_rendering_templates APIs.

func (Client) Archive

Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.

func (Client) Get

Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.

func (Client) List

List all templates, ordered by creation date, with the most recently created template appearing first.

func (Client) Unarchive

Unarchive an invoice rendering template so it can be used on new Stripe objects again.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for invoice rendering templates.

func List

List all templates, ordered by creation date, with the most recently created template appearing first.

func (*Iter) InvoiceRenderingTemplate

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

InvoiceRenderingTemplate returns the invoice rendering template which the iterator is currently pointing to.

func (*Iter) InvoiceRenderingTemplateList

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

InvoiceRenderingTemplateList 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