invoices

package
v0.0.0-...-b6fc690 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalculateTaxBadRequest

type CalculateTaxBadRequest struct {
	Payload *mono_models.Message
}
CalculateTaxBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCalculateTaxBadRequest

func NewCalculateTaxBadRequest() *CalculateTaxBadRequest

NewCalculateTaxBadRequest creates a CalculateTaxBadRequest with default headers values

func (*CalculateTaxBadRequest) Error

func (o *CalculateTaxBadRequest) Error() string

func (*CalculateTaxBadRequest) GetPayload

func (o *CalculateTaxBadRequest) GetPayload() *mono_models.Message

type CalculateTaxForbidden

type CalculateTaxForbidden struct {
	Payload *mono_models.Message
}
CalculateTaxForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCalculateTaxForbidden

func NewCalculateTaxForbidden() *CalculateTaxForbidden

NewCalculateTaxForbidden creates a CalculateTaxForbidden with default headers values

func (*CalculateTaxForbidden) Error

func (o *CalculateTaxForbidden) Error() string

func (*CalculateTaxForbidden) GetPayload

func (o *CalculateTaxForbidden) GetPayload() *mono_models.Message

type CalculateTaxInternalServerError

type CalculateTaxInternalServerError struct {
	Payload *mono_models.Message
}
CalculateTaxInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewCalculateTaxInternalServerError

func NewCalculateTaxInternalServerError() *CalculateTaxInternalServerError

NewCalculateTaxInternalServerError creates a CalculateTaxInternalServerError with default headers values

func (*CalculateTaxInternalServerError) Error

func (*CalculateTaxInternalServerError) GetPayload

type CalculateTaxOK

type CalculateTaxOK struct {
	Payload float64
}
CalculateTaxOK describes a response with status code 200, with default header values.

Success

func NewCalculateTaxOK

func NewCalculateTaxOK() *CalculateTaxOK

NewCalculateTaxOK creates a CalculateTaxOK with default headers values

func (*CalculateTaxOK) Error

func (o *CalculateTaxOK) Error() string

func (*CalculateTaxOK) GetPayload

func (o *CalculateTaxOK) GetPayload() float64

type CalculateTaxParams

type CalculateTaxParams struct {

	// TaxOptions.
	TaxOptions *mono_models.TaxOptions

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

CalculateTaxParams contains all the parameters to send to the API endpoint

for the calculate tax operation.

Typically these are written to a http.Request.

func NewCalculateTaxParams

func NewCalculateTaxParams() *CalculateTaxParams

NewCalculateTaxParams creates a new CalculateTaxParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCalculateTaxParamsWithContext

func NewCalculateTaxParamsWithContext(ctx context.Context) *CalculateTaxParams

NewCalculateTaxParamsWithContext creates a new CalculateTaxParams object with the ability to set a context for a request.

func NewCalculateTaxParamsWithHTTPClient

func NewCalculateTaxParamsWithHTTPClient(client *http.Client) *CalculateTaxParams

NewCalculateTaxParamsWithHTTPClient creates a new CalculateTaxParams object with the ability to set a custom HTTPClient for a request.

func NewCalculateTaxParamsWithTimeout

func NewCalculateTaxParamsWithTimeout(timeout time.Duration) *CalculateTaxParams

NewCalculateTaxParamsWithTimeout creates a new CalculateTaxParams object with the ability to set a timeout on a request.

func (*CalculateTaxParams) SetContext

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

SetContext adds the context to the calculate tax params

func (*CalculateTaxParams) SetDefaults

func (o *CalculateTaxParams) SetDefaults()

SetDefaults hydrates default values in the calculate tax params (not the query body).

All values with no default are reset to their zero value.

func (*CalculateTaxParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the calculate tax params

func (*CalculateTaxParams) SetTaxOptions

func (o *CalculateTaxParams) SetTaxOptions(taxOptions *mono_models.TaxOptions)

SetTaxOptions adds the taxOptions to the calculate tax params

func (*CalculateTaxParams) SetTimeout

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

SetTimeout adds the timeout to the calculate tax params

func (*CalculateTaxParams) WithContext

WithContext adds the context to the calculate tax params

func (*CalculateTaxParams) WithDefaults

func (o *CalculateTaxParams) WithDefaults() *CalculateTaxParams

WithDefaults hydrates default values in the calculate tax params (not the query body).

All values with no default are reset to their zero value.

func (*CalculateTaxParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the calculate tax params

func (*CalculateTaxParams) WithTaxOptions

func (o *CalculateTaxParams) WithTaxOptions(taxOptions *mono_models.TaxOptions) *CalculateTaxParams

WithTaxOptions adds the taxOptions to the calculate tax params

func (*CalculateTaxParams) WithTimeout

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

WithTimeout adds the timeout to the calculate tax params

func (*CalculateTaxParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CalculateTaxReader

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

CalculateTaxReader is a Reader for the CalculateTax structure.

func (*CalculateTaxReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CancelSubscriptionBadRequest

type CancelSubscriptionBadRequest struct {
	Payload *mono_models.Message
}
CancelSubscriptionBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCancelSubscriptionBadRequest

func NewCancelSubscriptionBadRequest() *CancelSubscriptionBadRequest

NewCancelSubscriptionBadRequest creates a CancelSubscriptionBadRequest with default headers values

func (*CancelSubscriptionBadRequest) Error

func (*CancelSubscriptionBadRequest) GetPayload

type CancelSubscriptionForbidden

type CancelSubscriptionForbidden struct {
	Payload *mono_models.Message
}
CancelSubscriptionForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCancelSubscriptionForbidden

func NewCancelSubscriptionForbidden() *CancelSubscriptionForbidden

NewCancelSubscriptionForbidden creates a CancelSubscriptionForbidden with default headers values

func (*CancelSubscriptionForbidden) Error

func (*CancelSubscriptionForbidden) GetPayload

type CancelSubscriptionInternalServerError

type CancelSubscriptionInternalServerError struct {
	Payload *mono_models.Message
}
CancelSubscriptionInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewCancelSubscriptionInternalServerError

func NewCancelSubscriptionInternalServerError() *CancelSubscriptionInternalServerError

NewCancelSubscriptionInternalServerError creates a CancelSubscriptionInternalServerError with default headers values

func (*CancelSubscriptionInternalServerError) Error

func (*CancelSubscriptionInternalServerError) GetPayload

type CancelSubscriptionNotFound

type CancelSubscriptionNotFound struct {
	Payload *mono_models.Message
}
CancelSubscriptionNotFound describes a response with status code 404, with default header values.

Not Found

func NewCancelSubscriptionNotFound

func NewCancelSubscriptionNotFound() *CancelSubscriptionNotFound

NewCancelSubscriptionNotFound creates a CancelSubscriptionNotFound with default headers values

func (*CancelSubscriptionNotFound) Error

func (*CancelSubscriptionNotFound) GetPayload

type CancelSubscriptionOK

type CancelSubscriptionOK struct {
	Payload string
}
CancelSubscriptionOK describes a response with status code 200, with default header values.

Success

func NewCancelSubscriptionOK

func NewCancelSubscriptionOK() *CancelSubscriptionOK

NewCancelSubscriptionOK creates a CancelSubscriptionOK with default headers values

func (*CancelSubscriptionOK) Error

func (o *CancelSubscriptionOK) Error() string

func (*CancelSubscriptionOK) GetPayload

func (o *CancelSubscriptionOK) GetPayload() string

type CancelSubscriptionParams

type CancelSubscriptionParams struct {

	/* IdentifierType.

	   what kind of thing the provided organizationIdentifier is

	   Default: "URLname"
	*/
	IdentifierType *string

	/* OrganizationIdentifier.

	   identifier (URLname, by default) of the desired organization
	*/
	OrganizationIdentifier string

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

CancelSubscriptionParams contains all the parameters to send to the API endpoint

for the cancel subscription operation.

Typically these are written to a http.Request.

func NewCancelSubscriptionParams

func NewCancelSubscriptionParams() *CancelSubscriptionParams

NewCancelSubscriptionParams creates a new CancelSubscriptionParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCancelSubscriptionParamsWithContext

func NewCancelSubscriptionParamsWithContext(ctx context.Context) *CancelSubscriptionParams

NewCancelSubscriptionParamsWithContext creates a new CancelSubscriptionParams object with the ability to set a context for a request.

func NewCancelSubscriptionParamsWithHTTPClient

func NewCancelSubscriptionParamsWithHTTPClient(client *http.Client) *CancelSubscriptionParams

NewCancelSubscriptionParamsWithHTTPClient creates a new CancelSubscriptionParams object with the ability to set a custom HTTPClient for a request.

func NewCancelSubscriptionParamsWithTimeout

func NewCancelSubscriptionParamsWithTimeout(timeout time.Duration) *CancelSubscriptionParams

NewCancelSubscriptionParamsWithTimeout creates a new CancelSubscriptionParams object with the ability to set a timeout on a request.

func (*CancelSubscriptionParams) SetContext

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

SetContext adds the context to the cancel subscription params

func (*CancelSubscriptionParams) SetDefaults

func (o *CancelSubscriptionParams) SetDefaults()

SetDefaults hydrates default values in the cancel subscription params (not the query body).

All values with no default are reset to their zero value.

func (*CancelSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cancel subscription params

func (*CancelSubscriptionParams) SetIdentifierType

func (o *CancelSubscriptionParams) SetIdentifierType(identifierType *string)

SetIdentifierType adds the identifierType to the cancel subscription params

func (*CancelSubscriptionParams) SetOrganizationIdentifier

func (o *CancelSubscriptionParams) SetOrganizationIdentifier(organizationIdentifier string)

SetOrganizationIdentifier adds the organizationIdentifier to the cancel subscription params

func (*CancelSubscriptionParams) SetTimeout

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

SetTimeout adds the timeout to the cancel subscription params

func (*CancelSubscriptionParams) WithContext

WithContext adds the context to the cancel subscription params

func (*CancelSubscriptionParams) WithDefaults

WithDefaults hydrates default values in the cancel subscription params (not the query body).

All values with no default are reset to their zero value.

func (*CancelSubscriptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cancel subscription params

func (*CancelSubscriptionParams) WithIdentifierType

func (o *CancelSubscriptionParams) WithIdentifierType(identifierType *string) *CancelSubscriptionParams

WithIdentifierType adds the identifierType to the cancel subscription params

func (*CancelSubscriptionParams) WithOrganizationIdentifier

func (o *CancelSubscriptionParams) WithOrganizationIdentifier(organizationIdentifier string) *CancelSubscriptionParams

WithOrganizationIdentifier adds the organizationIdentifier to the cancel subscription params

func (*CancelSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the cancel subscription params

func (*CancelSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CancelSubscriptionReader

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

CancelSubscriptionReader is a Reader for the CancelSubscription structure.

func (*CancelSubscriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for invoices API

func (*Client) CalculateTax

func (a *Client) CalculateTax(params *CalculateTaxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CalculateTaxOK, error)

CalculateTax calculates the tax for the given address and options

func (*Client) CancelSubscription

func (a *Client) CancelSubscription(params *CancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelSubscriptionOK, error)

CancelSubscription cancels trial

Cancels the organization's paid tier trial; at the end of the trial period, paid tier access will end instead of starting a paid subscription.

func (*Client) CreateInvoice

func (a *Client) CreateInvoice(params *CreateInvoiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInvoiceOK, error)

CreateInvoice creates new invoice

Creates a new invoice for the organization

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CalculateTax(params *CalculateTaxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CalculateTaxOK, error)

	CancelSubscription(params *CancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelSubscriptionOK, error)

	CreateInvoice(params *CreateInvoiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInvoiceOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new invoices API client.

type CreateInvoiceBadRequest

type CreateInvoiceBadRequest struct {
	Payload *mono_models.Message
}
CreateInvoiceBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCreateInvoiceBadRequest

func NewCreateInvoiceBadRequest() *CreateInvoiceBadRequest

NewCreateInvoiceBadRequest creates a CreateInvoiceBadRequest with default headers values

func (*CreateInvoiceBadRequest) Error

func (o *CreateInvoiceBadRequest) Error() string

func (*CreateInvoiceBadRequest) GetPayload

func (o *CreateInvoiceBadRequest) GetPayload() *mono_models.Message

type CreateInvoiceForbidden

type CreateInvoiceForbidden struct {
	Payload *mono_models.Message
}
CreateInvoiceForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateInvoiceForbidden

func NewCreateInvoiceForbidden() *CreateInvoiceForbidden

NewCreateInvoiceForbidden creates a CreateInvoiceForbidden with default headers values

func (*CreateInvoiceForbidden) Error

func (o *CreateInvoiceForbidden) Error() string

func (*CreateInvoiceForbidden) GetPayload

func (o *CreateInvoiceForbidden) GetPayload() *mono_models.Message

type CreateInvoiceInternalServerError

type CreateInvoiceInternalServerError struct {
	Payload *mono_models.Message
}
CreateInvoiceInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewCreateInvoiceInternalServerError

func NewCreateInvoiceInternalServerError() *CreateInvoiceInternalServerError

NewCreateInvoiceInternalServerError creates a CreateInvoiceInternalServerError with default headers values

func (*CreateInvoiceInternalServerError) Error

func (*CreateInvoiceInternalServerError) GetPayload

type CreateInvoiceNotFound

type CreateInvoiceNotFound struct {
	Payload *mono_models.Message
}
CreateInvoiceNotFound describes a response with status code 404, with default header values.

Not Found

func NewCreateInvoiceNotFound

func NewCreateInvoiceNotFound() *CreateInvoiceNotFound

NewCreateInvoiceNotFound creates a CreateInvoiceNotFound with default headers values

func (*CreateInvoiceNotFound) Error

func (o *CreateInvoiceNotFound) Error() string

func (*CreateInvoiceNotFound) GetPayload

func (o *CreateInvoiceNotFound) GetPayload() *mono_models.Message

type CreateInvoiceOK

type CreateInvoiceOK struct {
	Payload string
}
CreateInvoiceOK describes a response with status code 200, with default header values.

Success

func NewCreateInvoiceOK

func NewCreateInvoiceOK() *CreateInvoiceOK

NewCreateInvoiceOK creates a CreateInvoiceOK with default headers values

func (*CreateInvoiceOK) Error

func (o *CreateInvoiceOK) Error() string

func (*CreateInvoiceOK) GetPayload

func (o *CreateInvoiceOK) GetPayload() string

type CreateInvoiceParams

type CreateInvoiceParams struct {

	/* IdentifierType.

	   what kind of thing the provided organizationIdentifier is

	   Default: "URLname"
	*/
	IdentifierType *string

	/* InvoiceInfo.

	   information used to create an invoice
	*/
	InvoiceInfo *mono_models.InvoiceInfo

	/* OrganizationIdentifier.

	   identifier (URLname, by default) of the desired organization
	*/
	OrganizationIdentifier string

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

CreateInvoiceParams contains all the parameters to send to the API endpoint

for the create invoice operation.

Typically these are written to a http.Request.

func NewCreateInvoiceParams

func NewCreateInvoiceParams() *CreateInvoiceParams

NewCreateInvoiceParams creates a new CreateInvoiceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateInvoiceParamsWithContext

func NewCreateInvoiceParamsWithContext(ctx context.Context) *CreateInvoiceParams

NewCreateInvoiceParamsWithContext creates a new CreateInvoiceParams object with the ability to set a context for a request.

func NewCreateInvoiceParamsWithHTTPClient

func NewCreateInvoiceParamsWithHTTPClient(client *http.Client) *CreateInvoiceParams

NewCreateInvoiceParamsWithHTTPClient creates a new CreateInvoiceParams object with the ability to set a custom HTTPClient for a request.

func NewCreateInvoiceParamsWithTimeout

func NewCreateInvoiceParamsWithTimeout(timeout time.Duration) *CreateInvoiceParams

NewCreateInvoiceParamsWithTimeout creates a new CreateInvoiceParams object with the ability to set a timeout on a request.

func (*CreateInvoiceParams) SetContext

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

SetContext adds the context to the create invoice params

func (*CreateInvoiceParams) SetDefaults

func (o *CreateInvoiceParams) SetDefaults()

SetDefaults hydrates default values in the create invoice params (not the query body).

All values with no default are reset to their zero value.

func (*CreateInvoiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create invoice params

func (*CreateInvoiceParams) SetIdentifierType

func (o *CreateInvoiceParams) SetIdentifierType(identifierType *string)

SetIdentifierType adds the identifierType to the create invoice params

func (*CreateInvoiceParams) SetInvoiceInfo

func (o *CreateInvoiceParams) SetInvoiceInfo(invoiceInfo *mono_models.InvoiceInfo)

SetInvoiceInfo adds the invoiceInfo to the create invoice params

func (*CreateInvoiceParams) SetOrganizationIdentifier

func (o *CreateInvoiceParams) SetOrganizationIdentifier(organizationIdentifier string)

SetOrganizationIdentifier adds the organizationIdentifier to the create invoice params

func (*CreateInvoiceParams) SetTimeout

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

SetTimeout adds the timeout to the create invoice params

func (*CreateInvoiceParams) WithContext

WithContext adds the context to the create invoice params

func (*CreateInvoiceParams) WithDefaults

func (o *CreateInvoiceParams) WithDefaults() *CreateInvoiceParams

WithDefaults hydrates default values in the create invoice params (not the query body).

All values with no default are reset to their zero value.

func (*CreateInvoiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create invoice params

func (*CreateInvoiceParams) WithIdentifierType

func (o *CreateInvoiceParams) WithIdentifierType(identifierType *string) *CreateInvoiceParams

WithIdentifierType adds the identifierType to the create invoice params

func (*CreateInvoiceParams) WithInvoiceInfo

func (o *CreateInvoiceParams) WithInvoiceInfo(invoiceInfo *mono_models.InvoiceInfo) *CreateInvoiceParams

WithInvoiceInfo adds the invoiceInfo to the create invoice params

func (*CreateInvoiceParams) WithOrganizationIdentifier

func (o *CreateInvoiceParams) WithOrganizationIdentifier(organizationIdentifier string) *CreateInvoiceParams

WithOrganizationIdentifier adds the organizationIdentifier to the create invoice params

func (*CreateInvoiceParams) WithTimeout

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

WithTimeout adds the timeout to the create invoice params

func (*CreateInvoiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateInvoiceReader

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

CreateInvoiceReader is a Reader for the CreateInvoice structure.

func (*CreateInvoiceReader) ReadResponse

func (o *CreateInvoiceReader) 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