invoices_pkg

package
v0.0.0-...-2e3d4c0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INVOICES_IMPL

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

* Client structure as interface implementation

func NewINVOICES

func NewINVOICES(config configuration_pkg.CONFIGURATION) *INVOICES_IMPL

* Factory for the INVOICES interaface returning INVOICES_IMPL

func (*INVOICES_IMPL) CancelInvoice

func (me *INVOICES_IMPL) CancelInvoice(
	invoiceId string,
	idempotencyKey *string) (*models_pkg.GetInvoiceResponse, error)

*

  • Cancels an invoice
  • @param string invoiceId parameter: Required
  • @param *string idempotencyKey parameter: Optional
  • @return Returns the *models_pkg.GetInvoiceResponse response from the API call

func (*INVOICES_IMPL) CreateInvoice

func (me *INVOICES_IMPL) CreateInvoice(
	subscriptionId string,
	cycleId string,
	idempotencyKey *string,
	body *models_pkg.CreateInvoiceRequest) (*models_pkg.GetInvoiceResponse, error)

*

  • Create an Invoice
  • @param string subscriptionId parameter: Required
  • @param string cycleId parameter: Required
  • @param *string idempotencyKey parameter: Optional
  • @param *models_pkg.CreateInvoiceRequest body parameter: Optional
  • @return Returns the *models_pkg.GetInvoiceResponse response from the API call

func (*INVOICES_IMPL) GetInvoice

func (me *INVOICES_IMPL) GetInvoice(
	invoiceId string) (*models_pkg.GetInvoiceResponse, error)

*

  • Gets an invoice
  • @param string invoiceId parameter: Required
  • @return Returns the *models_pkg.GetInvoiceResponse response from the API call

func (*INVOICES_IMPL) GetInvoices

func (me *INVOICES_IMPL) GetInvoices(
	page *int64,
	size *int64,
	code *string,
	customerId *string,
	subscriptionId *string,
	createdSince *time.Time,
	createdUntil *time.Time,
	status *string,
	dueSince *time.Time,
	dueUntil *time.Time,
	customerDocument *string) (*models_pkg.ListInvoicesResponse, error)

*

  • Gets all invoices
  • @param *int64 page parameter: Optional
  • @param *int64 size parameter: Optional
  • @param *string code parameter: Optional
  • @param *string customerId parameter: Optional
  • @param *string subscriptionId parameter: Optional
  • @param *time.Time createdSince parameter: Optional
  • @param *time.Time createdUntil parameter: Optional
  • @param *string status parameter: Optional
  • @param *time.Time dueSince parameter: Optional
  • @param *time.Time dueUntil parameter: Optional
  • @param *string customerDocument parameter: Optional
  • @return Returns the *models_pkg.ListInvoicesResponse response from the API call

func (*INVOICES_IMPL) GetPartialInvoice

func (me *INVOICES_IMPL) GetPartialInvoice(
	subscriptionId string) (*models_pkg.GetInvoiceResponse, error)

*

  • GetPartialInvoice
  • @param string subscriptionId parameter: Required
  • @return Returns the *models_pkg.GetInvoiceResponse response from the API call

func (*INVOICES_IMPL) UpdateInvoiceMetadata

func (me *INVOICES_IMPL) UpdateInvoiceMetadata(
	invoiceId string,
	body *models_pkg.UpdateMetadataRequest,
	idempotencyKey *string) (*models_pkg.GetInvoiceResponse, error)

*

  • Updates the metadata from an invoice
  • @param string invoiceId parameter: Required
  • @param *models_pkg.UpdateMetadataRequest body parameter: Required
  • @param *string idempotencyKey parameter: Optional
  • @return Returns the *models_pkg.GetInvoiceResponse response from the API call

func (*INVOICES_IMPL) UpdateInvoiceStatus

func (me *INVOICES_IMPL) UpdateInvoiceStatus(
	invoiceId string,
	body *models_pkg.UpdateInvoiceStatusRequest,
	idempotencyKey *string) (*models_pkg.GetInvoiceResponse, error)

*

  • Updates the status from an invoice
  • @param string invoiceId parameter: Required
  • @param *models_pkg.UpdateInvoiceStatusRequest body parameter: Required
  • @param *string idempotencyKey parameter: Optional
  • @return Returns the *models_pkg.GetInvoiceResponse response from the API call

Jump to

Keyboard shortcuts

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