Documentation ¶
Overview ¶
Package quote provides the /quotes APIs
Index ¶
- func Accept(id string, params *stripe.QuoteAcceptParams) (*stripe.Quote, error)
- func Cancel(id string, params *stripe.QuoteCancelParams) (*stripe.Quote, error)
- func FinalizeQuote(id string, params *stripe.QuoteFinalizeQuoteParams) (*stripe.Quote, error)
- func Get(id string, params *stripe.QuoteParams) (*stripe.Quote, error)
- func MarkDraft(id string, params *stripe.QuoteMarkDraftParams) (*stripe.Quote, error)
- func MarkStale(id string, params *stripe.QuoteMarkStaleParams) (*stripe.Quote, error)
- func New(params *stripe.QuoteParams) (*stripe.Quote, error)
- func PDF(id string, params *stripe.QuotePDFParams) (*stripe.APIStream, error)
- func Reestimate(id string, params *stripe.QuoteReestimateParams) (*stripe.Quote, error)
- func Update(id string, params *stripe.QuoteParams) (*stripe.Quote, error)
- type Client
- func (c Client) Accept(id string, params *stripe.QuoteAcceptParams) (*stripe.Quote, error)
- func (c Client) Cancel(id string, params *stripe.QuoteCancelParams) (*stripe.Quote, error)
- func (c Client) FinalizeQuote(id string, params *stripe.QuoteFinalizeQuoteParams) (*stripe.Quote, error)
- func (c Client) Get(id string, params *stripe.QuoteParams) (*stripe.Quote, error)
- func (c Client) List(listParams *stripe.QuoteListParams) *Iter
- func (c Client) ListComputedUpfrontLineItems(listParams *stripe.QuoteListComputedUpfrontLineItemsParams) *LineItemIter
- func (c Client) ListLineItems(listParams *stripe.QuoteListLineItemsParams) *LineItemIter
- func (c Client) ListLines(listParams *stripe.QuoteListLinesParams) *LineIter
- func (c Client) ListPreviewInvoiceLines(listParams *stripe.QuoteListPreviewInvoiceLinesParams) *InvoiceLineItemIter
- func (c Client) MarkDraft(id string, params *stripe.QuoteMarkDraftParams) (*stripe.Quote, error)
- func (c Client) MarkStale(id string, params *stripe.QuoteMarkStaleParams) (*stripe.Quote, error)
- func (c Client) New(params *stripe.QuoteParams) (*stripe.Quote, error)
- func (c Client) PDF(id string, params *stripe.QuotePDFParams) (*stripe.APIStream, error)
- func (c Client) Reestimate(id string, params *stripe.QuoteReestimateParams) (*stripe.Quote, error)
- func (c Client) Update(id string, params *stripe.QuoteParams) (*stripe.Quote, error)
- type InvoiceLineItemIter
- type Iter
- type LineItemIter
- type LineIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinalizeQuote ¶
FinalizeQuote is the method for the `POST /v1/quotes/{quote}/finalize` API.
func Reestimate ¶
Reestimate is the method for the `POST /v1/quotes/{quote}/reestimate` API.
Types ¶
type Client ¶
Client is used to invoke /quotes APIs.
func (Client) FinalizeQuote ¶
func (c Client) FinalizeQuote(id string, params *stripe.QuoteFinalizeQuoteParams) (*stripe.Quote, error)
FinalizeQuote is the method for the `POST /v1/quotes/{quote}/finalize` API.
func (Client) List ¶
func (c Client) List(listParams *stripe.QuoteListParams) *Iter
List returns a list of quotes.
func (Client) ListComputedUpfrontLineItems ¶
func (c Client) ListComputedUpfrontLineItems(listParams *stripe.QuoteListComputedUpfrontLineItemsParams) *LineItemIter
ListComputedUpfrontLineItems is the method for the `GET /v1/quotes/{quote}/computed_upfront_line_items` API.
func (Client) ListLineItems ¶
func (c Client) ListLineItems(listParams *stripe.QuoteListLineItemsParams) *LineItemIter
ListLineItems is the method for the `GET /v1/quotes/{quote}/line_items` API.
func (Client) ListLines ¶
func (c Client) ListLines(listParams *stripe.QuoteListLinesParams) *LineIter
ListLines is the method for the `GET /v1/quotes/{quote}/lines` API.
func (Client) ListPreviewInvoiceLines ¶
func (c Client) ListPreviewInvoiceLines(listParams *stripe.QuoteListPreviewInvoiceLinesParams) *InvoiceLineItemIter
ListPreviewInvoiceLines is the method for the `GET /v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines` API.
func (Client) Reestimate ¶
Reestimate is the method for the `POST /v1/quotes/{quote}/reestimate` API.
type InvoiceLineItemIter ¶
InvoiceLineItemIter is an iterator for invoice line items.
func ListPreviewInvoiceLines ¶
func ListPreviewInvoiceLines(params *stripe.QuoteListPreviewInvoiceLinesParams) *InvoiceLineItemIter
ListPreviewInvoiceLines is the method for the `GET /v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines` API.
func (*InvoiceLineItemIter) InvoiceLineItem ¶
func (i *InvoiceLineItemIter) InvoiceLineItem() *stripe.InvoiceLineItem
InvoiceLineItem returns the invoice line item which the iterator is currently pointing to.
func (*InvoiceLineItemIter) InvoiceLineItemList ¶
func (i *InvoiceLineItemIter) InvoiceLineItemList() *stripe.InvoiceLineItemList
InvoiceLineItemList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
type Iter ¶
Iter is an iterator for quotes.
type LineItemIter ¶
LineItemIter is an iterator for line items.
func ListComputedUpfrontLineItems ¶
func ListComputedUpfrontLineItems(params *stripe.QuoteListComputedUpfrontLineItemsParams) *LineItemIter
ListComputedUpfrontLineItems is the method for the `GET /v1/quotes/{quote}/computed_upfront_line_items` API.
func ListLineItems ¶
func ListLineItems(params *stripe.QuoteListLineItemsParams) *LineItemIter
ListLineItems is the method for the `GET /v1/quotes/{quote}/line_items` API.
func (*LineItemIter) LineItem ¶
func (i *LineItemIter) LineItem() *stripe.LineItem
LineItem returns the line item which the iterator is currently pointing to.
func (*LineItemIter) LineItemList ¶
func (i *LineItemIter) LineItemList() *stripe.LineItemList
LineItemList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
type LineIter ¶
LineIter is an iterator for quote lines.
func ListLines ¶
func ListLines(params *stripe.QuoteListLinesParams) *LineIter
ListLines is the method for the `GET /v1/quotes/{quote}/lines` API.
func (*LineIter) QuoteLine ¶
QuoteLine returns the quote line which the iterator is currently pointing to.
func (*LineIter) QuoteLineList ¶
func (i *LineIter) QuoteLineList() *stripe.QuoteLineList
QuoteLineList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.