invoices

package
v0.0.0-...-13576d3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for invoices API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new invoices API client.

func (*Client) ExecuteInvoice

func (a *Client) ExecuteInvoice(params *ExecuteInvoiceParams) (*ExecuteInvoiceOK, error)

ExecuteInvoice attempts payment for the outstanding value of an invoice

{"nickname":"Execute invoice","response":"executeInvoiceResponse.html","request":"ExecuteInvoiceRequest.html"}

func (*Client) GetInvoiceAsPDF

func (a *Client) GetInvoiceAsPDF(params *GetInvoiceAsPDFParams) (*GetInvoiceAsPDFOK, error)

GetInvoiceAsPDF retrieves a single invoice specified by the ID parameter

{ "nickname" : "PDF Invoice","response" : "getInvoiceByID.pdf"}

func (*Client) GetInvoiceByID

func (a *Client) GetInvoiceByID(params *GetInvoiceByIDParams) (*GetInvoiceByIDOK, error)

GetInvoiceByID retrieves a single invoice specified by the invoice ID parameter

{ "nickname" : "Retrieve an existing invoice","response" : "getInvoiceByID.html"}

func (*Client) GetInvoicesByAccountID

func (a *Client) GetInvoicesByAccountID(params *GetInvoicesByAccountIDParams) (*GetInvoicesByAccountIDOK, error)

GetInvoicesByAccountID retrieves a collection of invoices specified by the account ID parameter by default 10 values are returned records are returned in natural order

{ "nickname" : "Retrieve by account","response" : "getInvoiceByAccountID.html"}

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ExecuteInvoiceDefault

type ExecuteInvoiceDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

ExecuteInvoiceDefault handles this case with default header values.

error

func NewExecuteInvoiceDefault

func NewExecuteInvoiceDefault(code int) *ExecuteInvoiceDefault

NewExecuteInvoiceDefault creates a ExecuteInvoiceDefault with default headers values

func (*ExecuteInvoiceDefault) Code

func (o *ExecuteInvoiceDefault) Code() int

Code gets the status code for the execute invoice default response

func (*ExecuteInvoiceDefault) Error

func (o *ExecuteInvoiceDefault) Error() string

type ExecuteInvoiceOK

type ExecuteInvoiceOK struct {
	Payload *models.InvoicePagedMetadata
}

ExecuteInvoiceOK handles this case with default header values.

success

func NewExecuteInvoiceOK

func NewExecuteInvoiceOK() *ExecuteInvoiceOK

NewExecuteInvoiceOK creates a ExecuteInvoiceOK with default headers values

func (*ExecuteInvoiceOK) Error

func (o *ExecuteInvoiceOK) Error() string

type ExecuteInvoiceParams

type ExecuteInvoiceParams struct {

	/*InvoiceID*/
	InvoiceID string
	/*Request*/
	Request *models.ExecuteInvoiceRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ExecuteInvoiceParams contains all the parameters to send to the API endpoint for the execute invoice operation typically these are written to a http.Request

func NewExecuteInvoiceParams

func NewExecuteInvoiceParams() *ExecuteInvoiceParams

NewExecuteInvoiceParams creates a new ExecuteInvoiceParams object with the default values initialized.

func NewExecuteInvoiceParamsWithContext

func NewExecuteInvoiceParamsWithContext(ctx context.Context) *ExecuteInvoiceParams

NewExecuteInvoiceParamsWithContext creates a new ExecuteInvoiceParams object with the default values initialized, and the ability to set a context for a request

func NewExecuteInvoiceParamsWithHTTPClient

func NewExecuteInvoiceParamsWithHTTPClient(client *http.Client) *ExecuteInvoiceParams

NewExecuteInvoiceParamsWithHTTPClient creates a new ExecuteInvoiceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewExecuteInvoiceParamsWithTimeout

func NewExecuteInvoiceParamsWithTimeout(timeout time.Duration) *ExecuteInvoiceParams

NewExecuteInvoiceParamsWithTimeout creates a new ExecuteInvoiceParams object with the default values initialized, and the ability to set a timeout on a request

func (*ExecuteInvoiceParams) SetContext

func (o *ExecuteInvoiceParams) SetContext(ctx context.Context)

SetContext adds the context to the execute invoice params

func (*ExecuteInvoiceParams) SetHTTPClient

func (o *ExecuteInvoiceParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the execute invoice params

func (*ExecuteInvoiceParams) SetInvoiceID

func (o *ExecuteInvoiceParams) SetInvoiceID(invoiceID string)

SetInvoiceID adds the invoiceId to the execute invoice params

func (*ExecuteInvoiceParams) SetRequest

func (o *ExecuteInvoiceParams) SetRequest(request *models.ExecuteInvoiceRequest)

SetRequest adds the request to the execute invoice params

func (*ExecuteInvoiceParams) SetTimeout

func (o *ExecuteInvoiceParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the execute invoice params

func (*ExecuteInvoiceParams) WithContext

WithContext adds the context to the execute invoice params

func (*ExecuteInvoiceParams) WithHTTPClient

func (o *ExecuteInvoiceParams) WithHTTPClient(client *http.Client) *ExecuteInvoiceParams

WithHTTPClient adds the HTTPClient to the execute invoice params

func (*ExecuteInvoiceParams) WithInvoiceID

func (o *ExecuteInvoiceParams) WithInvoiceID(invoiceID string) *ExecuteInvoiceParams

WithInvoiceID adds the invoiceID to the execute invoice params

func (*ExecuteInvoiceParams) WithRequest

WithRequest adds the request to the execute invoice params

func (*ExecuteInvoiceParams) WithTimeout

func (o *ExecuteInvoiceParams) WithTimeout(timeout time.Duration) *ExecuteInvoiceParams

WithTimeout adds the timeout to the execute invoice params

func (*ExecuteInvoiceParams) WriteToRequest

func (o *ExecuteInvoiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ExecuteInvoiceReader

type ExecuteInvoiceReader struct {
	// contains filtered or unexported fields
}

ExecuteInvoiceReader is a Reader for the ExecuteInvoice structure.

func (*ExecuteInvoiceReader) ReadResponse

func (o *ExecuteInvoiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetInvoiceAsPDFDefault

type GetInvoiceAsPDFDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetInvoiceAsPDFDefault handles this case with default header values.

error

func NewGetInvoiceAsPDFDefault

func NewGetInvoiceAsPDFDefault(code int) *GetInvoiceAsPDFDefault

NewGetInvoiceAsPDFDefault creates a GetInvoiceAsPDFDefault with default headers values

func (*GetInvoiceAsPDFDefault) Code

func (o *GetInvoiceAsPDFDefault) Code() int

Code gets the status code for the get invoice as p d f default response

func (*GetInvoiceAsPDFDefault) Error

func (o *GetInvoiceAsPDFDefault) Error() string

type GetInvoiceAsPDFOK

type GetInvoiceAsPDFOK struct {
	Payload runtime.File
}

GetInvoiceAsPDFOK handles this case with default header values.

success

func NewGetInvoiceAsPDFOK

func NewGetInvoiceAsPDFOK() *GetInvoiceAsPDFOK

NewGetInvoiceAsPDFOK creates a GetInvoiceAsPDFOK with default headers values

func (*GetInvoiceAsPDFOK) Error

func (o *GetInvoiceAsPDFOK) Error() string

type GetInvoiceAsPDFParams

type GetInvoiceAsPDFParams struct {

	/*ID
	  The ID of the invoice.

	*/
	ID string
	/*GroupLineItemsBy*/
	GroupLineItemsBy *string
	/*IncludeFooter*/
	IncludeFooter *bool
	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*InclusiveEnd
	  Whether to present in the Invoice date range only those dates whose entirety are involved in the billing period. In other words: when true, this subtracts 1 from the "period end" date shown to the customer.

	*/
	InclusiveEnd *bool
	/*Offset
	  The offset from the first invoice to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*Records
	  The maximum number of invoices to return.

	*/
	Records *int32
	/*ShowPlanOnlyWhenAmbiguous
	  Whether to state which plan the Invoice lines came from, regardless of whether there's only one plan involved in this Invoice.

	*/
	ShowPlanOnlyWhenAmbiguous *bool
	/*ShowZeroCost
	  Whether to show zero-cost lines.

	*/
	ShowZeroCost *bool
	/*TierBreakdown
	  Whether to provide a breakdown of charge tiering.

	*/
	TierBreakdown *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetInvoiceAsPDFParams contains all the parameters to send to the API endpoint for the get invoice as p d f operation typically these are written to a http.Request

func NewGetInvoiceAsPDFParams

func NewGetInvoiceAsPDFParams() *GetInvoiceAsPDFParams

NewGetInvoiceAsPDFParams creates a new GetInvoiceAsPDFParams object with the default values initialized.

func NewGetInvoiceAsPDFParamsWithContext

func NewGetInvoiceAsPDFParamsWithContext(ctx context.Context) *GetInvoiceAsPDFParams

NewGetInvoiceAsPDFParamsWithContext creates a new GetInvoiceAsPDFParams object with the default values initialized, and the ability to set a context for a request

func NewGetInvoiceAsPDFParamsWithHTTPClient

func NewGetInvoiceAsPDFParamsWithHTTPClient(client *http.Client) *GetInvoiceAsPDFParams

NewGetInvoiceAsPDFParamsWithHTTPClient creates a new GetInvoiceAsPDFParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetInvoiceAsPDFParamsWithTimeout

func NewGetInvoiceAsPDFParamsWithTimeout(timeout time.Duration) *GetInvoiceAsPDFParams

NewGetInvoiceAsPDFParamsWithTimeout creates a new GetInvoiceAsPDFParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetInvoiceAsPDFParams) SetContext

func (o *GetInvoiceAsPDFParams) SetContext(ctx context.Context)

SetContext adds the context to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetGroupLineItemsBy

func (o *GetInvoiceAsPDFParams) SetGroupLineItemsBy(groupLineItemsBy *string)

SetGroupLineItemsBy adds the groupLineItemsBy to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetHTTPClient

func (o *GetInvoiceAsPDFParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetID

func (o *GetInvoiceAsPDFParams) SetID(id string)

SetID adds the id to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetIncludeFooter

func (o *GetInvoiceAsPDFParams) SetIncludeFooter(includeFooter *bool)

SetIncludeFooter adds the includeFooter to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetIncludeRetired

func (o *GetInvoiceAsPDFParams) SetIncludeRetired(includeRetired *bool)

SetIncludeRetired adds the includeRetired to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetInclusiveEnd

func (o *GetInvoiceAsPDFParams) SetInclusiveEnd(inclusiveEnd *bool)

SetInclusiveEnd adds the inclusiveEnd to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetOffset

func (o *GetInvoiceAsPDFParams) SetOffset(offset *int32)

SetOffset adds the offset to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetOrder

func (o *GetInvoiceAsPDFParams) SetOrder(order *string)

SetOrder adds the order to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetOrderBy

func (o *GetInvoiceAsPDFParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetOrganizations

func (o *GetInvoiceAsPDFParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetRecords

func (o *GetInvoiceAsPDFParams) SetRecords(records *int32)

SetRecords adds the records to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetShowPlanOnlyWhenAmbiguous

func (o *GetInvoiceAsPDFParams) SetShowPlanOnlyWhenAmbiguous(showPlanOnlyWhenAmbiguous *bool)

SetShowPlanOnlyWhenAmbiguous adds the showPlanOnlyWhenAmbiguous to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetShowZeroCost

func (o *GetInvoiceAsPDFParams) SetShowZeroCost(showZeroCost *bool)

SetShowZeroCost adds the showZeroCost to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetTierBreakdown

func (o *GetInvoiceAsPDFParams) SetTierBreakdown(tierBreakdown *bool)

SetTierBreakdown adds the tierBreakdown to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) SetTimeout

func (o *GetInvoiceAsPDFParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithContext

WithContext adds the context to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithGroupLineItemsBy

func (o *GetInvoiceAsPDFParams) WithGroupLineItemsBy(groupLineItemsBy *string) *GetInvoiceAsPDFParams

WithGroupLineItemsBy adds the groupLineItemsBy to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithHTTPClient

func (o *GetInvoiceAsPDFParams) WithHTTPClient(client *http.Client) *GetInvoiceAsPDFParams

WithHTTPClient adds the HTTPClient to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithID

WithID adds the id to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithIncludeFooter

func (o *GetInvoiceAsPDFParams) WithIncludeFooter(includeFooter *bool) *GetInvoiceAsPDFParams

WithIncludeFooter adds the includeFooter to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithIncludeRetired

func (o *GetInvoiceAsPDFParams) WithIncludeRetired(includeRetired *bool) *GetInvoiceAsPDFParams

WithIncludeRetired adds the includeRetired to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithInclusiveEnd

func (o *GetInvoiceAsPDFParams) WithInclusiveEnd(inclusiveEnd *bool) *GetInvoiceAsPDFParams

WithInclusiveEnd adds the inclusiveEnd to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithOffset

func (o *GetInvoiceAsPDFParams) WithOffset(offset *int32) *GetInvoiceAsPDFParams

WithOffset adds the offset to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithOrder

func (o *GetInvoiceAsPDFParams) WithOrder(order *string) *GetInvoiceAsPDFParams

WithOrder adds the order to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithOrderBy

func (o *GetInvoiceAsPDFParams) WithOrderBy(orderBy *string) *GetInvoiceAsPDFParams

WithOrderBy adds the orderBy to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithOrganizations

func (o *GetInvoiceAsPDFParams) WithOrganizations(organizations []string) *GetInvoiceAsPDFParams

WithOrganizations adds the organizations to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithRecords

func (o *GetInvoiceAsPDFParams) WithRecords(records *int32) *GetInvoiceAsPDFParams

WithRecords adds the records to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithShowPlanOnlyWhenAmbiguous

func (o *GetInvoiceAsPDFParams) WithShowPlanOnlyWhenAmbiguous(showPlanOnlyWhenAmbiguous *bool) *GetInvoiceAsPDFParams

WithShowPlanOnlyWhenAmbiguous adds the showPlanOnlyWhenAmbiguous to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithShowZeroCost

func (o *GetInvoiceAsPDFParams) WithShowZeroCost(showZeroCost *bool) *GetInvoiceAsPDFParams

WithShowZeroCost adds the showZeroCost to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithTierBreakdown

func (o *GetInvoiceAsPDFParams) WithTierBreakdown(tierBreakdown *bool) *GetInvoiceAsPDFParams

WithTierBreakdown adds the tierBreakdown to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WithTimeout

func (o *GetInvoiceAsPDFParams) WithTimeout(timeout time.Duration) *GetInvoiceAsPDFParams

WithTimeout adds the timeout to the get invoice as p d f params

func (*GetInvoiceAsPDFParams) WriteToRequest

func (o *GetInvoiceAsPDFParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetInvoiceAsPDFReader

type GetInvoiceAsPDFReader struct {
	// contains filtered or unexported fields
}

GetInvoiceAsPDFReader is a Reader for the GetInvoiceAsPDF structure.

func (*GetInvoiceAsPDFReader) ReadResponse

func (o *GetInvoiceAsPDFReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetInvoiceByIDDefault

type GetInvoiceByIDDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetInvoiceByIDDefault handles this case with default header values.

error

func NewGetInvoiceByIDDefault

func NewGetInvoiceByIDDefault(code int) *GetInvoiceByIDDefault

NewGetInvoiceByIDDefault creates a GetInvoiceByIDDefault with default headers values

func (*GetInvoiceByIDDefault) Code

func (o *GetInvoiceByIDDefault) Code() int

Code gets the status code for the get invoice by ID default response

func (*GetInvoiceByIDDefault) Error

func (o *GetInvoiceByIDDefault) Error() string

type GetInvoiceByIDOK

type GetInvoiceByIDOK struct {
	Payload *models.InvoicePagedMetadata
}

GetInvoiceByIDOK handles this case with default header values.

success

func NewGetInvoiceByIDOK

func NewGetInvoiceByIDOK() *GetInvoiceByIDOK

NewGetInvoiceByIDOK creates a GetInvoiceByIDOK with default headers values

func (*GetInvoiceByIDOK) Error

func (o *GetInvoiceByIDOK) Error() string

type GetInvoiceByIDParams

type GetInvoiceByIDParams struct {

	/*ExcludeChildren
	  Should child invoices be excluded.

	*/
	ExcludeChildren *bool
	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*InvoiceID
	  The ID of the invoice.

	*/
	InvoiceID string
	/*Offset
	  The offset from the first invoice to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*Records
	  The maximum number of invoices to return.

	*/
	Records *int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetInvoiceByIDParams contains all the parameters to send to the API endpoint for the get invoice by ID operation typically these are written to a http.Request

func NewGetInvoiceByIDParams

func NewGetInvoiceByIDParams() *GetInvoiceByIDParams

NewGetInvoiceByIDParams creates a new GetInvoiceByIDParams object with the default values initialized.

func NewGetInvoiceByIDParamsWithContext

func NewGetInvoiceByIDParamsWithContext(ctx context.Context) *GetInvoiceByIDParams

NewGetInvoiceByIDParamsWithContext creates a new GetInvoiceByIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetInvoiceByIDParamsWithHTTPClient

func NewGetInvoiceByIDParamsWithHTTPClient(client *http.Client) *GetInvoiceByIDParams

NewGetInvoiceByIDParamsWithHTTPClient creates a new GetInvoiceByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetInvoiceByIDParamsWithTimeout

func NewGetInvoiceByIDParamsWithTimeout(timeout time.Duration) *GetInvoiceByIDParams

NewGetInvoiceByIDParamsWithTimeout creates a new GetInvoiceByIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetInvoiceByIDParams) SetContext

func (o *GetInvoiceByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get invoice by ID params

func (*GetInvoiceByIDParams) SetExcludeChildren

func (o *GetInvoiceByIDParams) SetExcludeChildren(excludeChildren *bool)

SetExcludeChildren adds the excludeChildren to the get invoice by ID params

func (*GetInvoiceByIDParams) SetHTTPClient

func (o *GetInvoiceByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get invoice by ID params

func (*GetInvoiceByIDParams) SetIncludeRetired

func (o *GetInvoiceByIDParams) SetIncludeRetired(includeRetired *bool)

SetIncludeRetired adds the includeRetired to the get invoice by ID params

func (*GetInvoiceByIDParams) SetInvoiceID

func (o *GetInvoiceByIDParams) SetInvoiceID(invoiceID string)

SetInvoiceID adds the invoiceId to the get invoice by ID params

func (*GetInvoiceByIDParams) SetOffset

func (o *GetInvoiceByIDParams) SetOffset(offset *int32)

SetOffset adds the offset to the get invoice by ID params

func (*GetInvoiceByIDParams) SetOrder

func (o *GetInvoiceByIDParams) SetOrder(order *string)

SetOrder adds the order to the get invoice by ID params

func (*GetInvoiceByIDParams) SetOrderBy

func (o *GetInvoiceByIDParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get invoice by ID params

func (*GetInvoiceByIDParams) SetOrganizations

func (o *GetInvoiceByIDParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get invoice by ID params

func (*GetInvoiceByIDParams) SetRecords

func (o *GetInvoiceByIDParams) SetRecords(records *int32)

SetRecords adds the records to the get invoice by ID params

func (*GetInvoiceByIDParams) SetTimeout

func (o *GetInvoiceByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get invoice by ID params

func (*GetInvoiceByIDParams) WithContext

WithContext adds the context to the get invoice by ID params

func (*GetInvoiceByIDParams) WithExcludeChildren

func (o *GetInvoiceByIDParams) WithExcludeChildren(excludeChildren *bool) *GetInvoiceByIDParams

WithExcludeChildren adds the excludeChildren to the get invoice by ID params

func (*GetInvoiceByIDParams) WithHTTPClient

func (o *GetInvoiceByIDParams) WithHTTPClient(client *http.Client) *GetInvoiceByIDParams

WithHTTPClient adds the HTTPClient to the get invoice by ID params

func (*GetInvoiceByIDParams) WithIncludeRetired

func (o *GetInvoiceByIDParams) WithIncludeRetired(includeRetired *bool) *GetInvoiceByIDParams

WithIncludeRetired adds the includeRetired to the get invoice by ID params

func (*GetInvoiceByIDParams) WithInvoiceID

func (o *GetInvoiceByIDParams) WithInvoiceID(invoiceID string) *GetInvoiceByIDParams

WithInvoiceID adds the invoiceID to the get invoice by ID params

func (*GetInvoiceByIDParams) WithOffset

func (o *GetInvoiceByIDParams) WithOffset(offset *int32) *GetInvoiceByIDParams

WithOffset adds the offset to the get invoice by ID params

func (*GetInvoiceByIDParams) WithOrder

func (o *GetInvoiceByIDParams) WithOrder(order *string) *GetInvoiceByIDParams

WithOrder adds the order to the get invoice by ID params

func (*GetInvoiceByIDParams) WithOrderBy

func (o *GetInvoiceByIDParams) WithOrderBy(orderBy *string) *GetInvoiceByIDParams

WithOrderBy adds the orderBy to the get invoice by ID params

func (*GetInvoiceByIDParams) WithOrganizations

func (o *GetInvoiceByIDParams) WithOrganizations(organizations []string) *GetInvoiceByIDParams

WithOrganizations adds the organizations to the get invoice by ID params

func (*GetInvoiceByIDParams) WithRecords

func (o *GetInvoiceByIDParams) WithRecords(records *int32) *GetInvoiceByIDParams

WithRecords adds the records to the get invoice by ID params

func (*GetInvoiceByIDParams) WithTimeout

func (o *GetInvoiceByIDParams) WithTimeout(timeout time.Duration) *GetInvoiceByIDParams

WithTimeout adds the timeout to the get invoice by ID params

func (*GetInvoiceByIDParams) WriteToRequest

func (o *GetInvoiceByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetInvoiceByIDReader

type GetInvoiceByIDReader struct {
	// contains filtered or unexported fields
}

GetInvoiceByIDReader is a Reader for the GetInvoiceByID structure.

func (*GetInvoiceByIDReader) ReadResponse

func (o *GetInvoiceByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetInvoicesByAccountIDDefault

type GetInvoicesByAccountIDDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetInvoicesByAccountIDDefault handles this case with default header values.

error

func NewGetInvoicesByAccountIDDefault

func NewGetInvoicesByAccountIDDefault(code int) *GetInvoicesByAccountIDDefault

NewGetInvoicesByAccountIDDefault creates a GetInvoicesByAccountIDDefault with default headers values

func (*GetInvoicesByAccountIDDefault) Code

Code gets the status code for the get invoices by account ID default response

func (*GetInvoicesByAccountIDDefault) Error

type GetInvoicesByAccountIDOK

type GetInvoicesByAccountIDOK struct {
	Payload *models.InvoicePagedMetadata
}

GetInvoicesByAccountIDOK handles this case with default header values.

success

func NewGetInvoicesByAccountIDOK

func NewGetInvoicesByAccountIDOK() *GetInvoicesByAccountIDOK

NewGetInvoicesByAccountIDOK creates a GetInvoicesByAccountIDOK with default headers values

func (*GetInvoicesByAccountIDOK) Error

func (o *GetInvoicesByAccountIDOK) Error() string

type GetInvoicesByAccountIDParams

type GetInvoicesByAccountIDParams struct {

	/*AccountID
	  ID of the account.

	*/
	AccountID string
	/*ExcludeChildren
	  Should child invoices be excluded.

	*/
	ExcludeChildren *bool
	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*Offset
	  The offset from the first invoice to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*Records
	  The maximum number of invoices to return.

	*/
	Records *int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetInvoicesByAccountIDParams contains all the parameters to send to the API endpoint for the get invoices by account ID operation typically these are written to a http.Request

func NewGetInvoicesByAccountIDParams

func NewGetInvoicesByAccountIDParams() *GetInvoicesByAccountIDParams

NewGetInvoicesByAccountIDParams creates a new GetInvoicesByAccountIDParams object with the default values initialized.

func NewGetInvoicesByAccountIDParamsWithContext

func NewGetInvoicesByAccountIDParamsWithContext(ctx context.Context) *GetInvoicesByAccountIDParams

NewGetInvoicesByAccountIDParamsWithContext creates a new GetInvoicesByAccountIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetInvoicesByAccountIDParamsWithHTTPClient

func NewGetInvoicesByAccountIDParamsWithHTTPClient(client *http.Client) *GetInvoicesByAccountIDParams

NewGetInvoicesByAccountIDParamsWithHTTPClient creates a new GetInvoicesByAccountIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetInvoicesByAccountIDParamsWithTimeout

func NewGetInvoicesByAccountIDParamsWithTimeout(timeout time.Duration) *GetInvoicesByAccountIDParams

NewGetInvoicesByAccountIDParamsWithTimeout creates a new GetInvoicesByAccountIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetInvoicesByAccountIDParams) SetAccountID

func (o *GetInvoicesByAccountIDParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetContext

func (o *GetInvoicesByAccountIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetExcludeChildren

func (o *GetInvoicesByAccountIDParams) SetExcludeChildren(excludeChildren *bool)

SetExcludeChildren adds the excludeChildren to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetHTTPClient

func (o *GetInvoicesByAccountIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetIncludeRetired

func (o *GetInvoicesByAccountIDParams) SetIncludeRetired(includeRetired *bool)

SetIncludeRetired adds the includeRetired to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetOffset

func (o *GetInvoicesByAccountIDParams) SetOffset(offset *int32)

SetOffset adds the offset to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetOrder

func (o *GetInvoicesByAccountIDParams) SetOrder(order *string)

SetOrder adds the order to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetOrderBy

func (o *GetInvoicesByAccountIDParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetOrganizations

func (o *GetInvoicesByAccountIDParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetRecords

func (o *GetInvoicesByAccountIDParams) SetRecords(records *int32)

SetRecords adds the records to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) SetTimeout

func (o *GetInvoicesByAccountIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithAccountID

WithAccountID adds the accountID to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithContext

WithContext adds the context to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithExcludeChildren

func (o *GetInvoicesByAccountIDParams) WithExcludeChildren(excludeChildren *bool) *GetInvoicesByAccountIDParams

WithExcludeChildren adds the excludeChildren to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithIncludeRetired

func (o *GetInvoicesByAccountIDParams) WithIncludeRetired(includeRetired *bool) *GetInvoicesByAccountIDParams

WithIncludeRetired adds the includeRetired to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithOffset

WithOffset adds the offset to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithOrder

WithOrder adds the order to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithOrderBy

WithOrderBy adds the orderBy to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithOrganizations

func (o *GetInvoicesByAccountIDParams) WithOrganizations(organizations []string) *GetInvoicesByAccountIDParams

WithOrganizations adds the organizations to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithRecords

WithRecords adds the records to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WithTimeout

WithTimeout adds the timeout to the get invoices by account ID params

func (*GetInvoicesByAccountIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInvoicesByAccountIDReader

type GetInvoicesByAccountIDReader struct {
	// contains filtered or unexported fields
}

GetInvoicesByAccountIDReader is a Reader for the GetInvoicesByAccountID structure.

func (*GetInvoicesByAccountIDReader) ReadResponse

func (o *GetInvoicesByAccountIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL