func (client *Client) GetInvoice(invId string) (inv Invoice, err error) {
	url := client.ApiUri + "/invoices/" + invId
	htclient := setHttpClient(client)
	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Add("content-type", "application/json")
	req.Header.Add("X-accept-version", "2.0.0")
	publ := ku.ExtractCompressedPublicKey(client.Pem)
	req.Header.Add("X-Identity", publ)
	sig := ku.Sign(url, client.Pem)
	req.Header.Add("X-Signature", sig)
	response, err := htclient.Do(req)
	if err != nil {
		return inv, err
	}
	inv, err = processInvoice(response)
	return inv, err
}
// GetInvoice is a public facade method, any client which has the ApiUri field set can retrieve an invoice from that endpoint, provided they have the invoice id.
GetInvoice is a public facade method, any client which has the ApiUri field set can retrieve an invoice from that endpoint, provided they have the invoice id.
// GetInvoice is a public facade method any client which has the ApiUri field set can retrieve an invoice from that endpoint provided they have the invoice id .
func (client *Client) GetInvoice(invId string) (inv Invoice, err error) {
	url := client.ApiUri + "/invoices/" + invId
	htclient := setHttpClient(client)
	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Add("content-type", "application/json")
	req.Header.Add("X-accept-version", "2.0.0")
	publ := ku.ExtractCompressedPublicKey(client.Pem)
	req.Header.Add("X-Identity", publ)
	sig := ku.Sign(url, client.Pem)
	req.Header.Add("X-Signature", sig)
	response, err := htclient.Do(req)
	if err != nil {
		return inv, err
	}
	inv, err = processInvoice(response)
	return inv, err
}
func ( client * Client ) GetInvoice ( invId string ) ( inv Invoice , err error ) { url := client . ApiUri + " " + invId htclient := setHttpClient ( client ) req , _ := http . NewRequest ( " " , url , nil ) req . Header . Add ( " " , " " ) req . Header . Add ( " " , " " ) publ := ku . ExtractCompressedPublicKey ( client . Pem ) req . Header . Add ( " " , publ ) sig := ku . Sign ( url , client . Pem ) req . Header . Add ( " " , sig ) response , err := htclient . Do ( req ) if err != nil { return inv , err } inv , err = processInvoice ( response ) return inv , err }
GetInvoice is a public facade method, any client which has the ApiUri field set can retrieve an invoice from that endpoint, provided they have the invoice id.
GetInvoice is a public facade method any client which has the ApiUri field set can retrieve an invoice from that endpoint provided they have the invoice id .