Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHeaderProvider ¶
type AuthHeaderProvider struct {
// contains filtered or unexported fields
}
AuthHeaderProvider sends the required headers as part of the required authorization.
type BodyProvider ¶
type BodyProvider struct {
Body *models.InvoicesDoc
}
BodyProvider attaches the request body to the request call.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client describes the myDATA Client.
func NewClient ¶
NewClient returns a valid myDATA client or an error if the client cannot be constructed with the given configuration values.
func (Client) CancelDoc ¶
CancelDoc cancels an issued invoice without issuing a new one. If the operation is successful, the response returns the status and a unique identification number of the processed cancellation. If the api returns an error, or it is not accessible then the method returns an error with descriptive message.
func (Client) RequestDocs ¶
func (c Client) RequestDocs() (*models.RequestedDoc, error)
RequestDocs returns the invoices,cancellations etc., issued by third-party entities and are related to the entity associated to the authenticated user. If the api returns an error, or it is not accessible then the method returns an error with descriptive message.
func (Client) RequestTransmittedDocs ¶
func (c Client) RequestTransmittedDocs() (*models.RequestedDoc, error)
RequestTransmittedDocs returns the invoices,cancellations etc., issued by the entity associated to the authenticated user. If the api returns an error, or it is not accessible then the method returns an error with descriptive message.
func (Client) SendDocs ¶
SendDocs issues one or more invoices. If the operation is successful, the response returns for each processed invoice, the status, a unique identification number and the unique process number. If the api returns an error, or it is not accessible then the method returns an error with descriptive message.