Documentation ¶
Index ¶
Constants ¶
const URLWSAAProduction string = "https://wsaa.afip.gov.ar/ws/services/LoginCms?WSDL"
URLWSAAProduction ... wsdl de wsaa en ambiente de producción de afip
const URLWSAATesting string = "https://wsaahomo.afip.gov.ar/ws/services/LoginCms?WSDL"
URLWSAATesting ... wsdl de wsaa en ambiente de homolagación de afip
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Afip ¶
type Afip struct {
// contains filtered or unexported fields
}
Afip es la estructura global del paquete
func (*Afip) GetLoginTicket ¶
func (c *Afip) GetLoginTicket(serviceName string) (token string, sign string, expiration string, err error)
GetLoginTicket devuelve el ticket de acceso afip correspondiente al servicio pasado por parámetro.
func (*Afip) SetFileP12 ¶
SetFileP12 especifica el archivo .p12 que se utilizará para extraer el certificado y clave privada
type AnyType ¶
type AnyType struct {
InnerXML string `xml:",innerxml"`
}
AnyType es una estructura común a todos los paquetes generados por gowsdl
type AnyURI ¶
type AnyURI string
AnyURI es una variable común a todos los paquetes generados por gowsdl
type Credentials ¶
Credentials es la estructura que devuelve el response con la info principal
type Fault ¶
type Fault LoginFault
type HeaderLoginTicket ¶
type HeaderLoginTicket struct { Source string `xml:"source,omitempty"` Destination string `xml:"destination,omitempty"` UniqueID uint32 `xml:"uniqueId,omitempty"` GenerationTime string `xml:"generationTime,omitempty"` ExpirationTime string `xml:"expirationTime,omitempty"` }
HeaderLoginTicket es la cabecera de la estructura de request y response
type LoginCMS ¶
type LoginCMS interface { LoginCms(request *LoginCms) (*LoginCmsResponse, error) LoginCmsContext(ctx context.Context, request *LoginCms) (*LoginCmsResponse, error) }
func NewLoginCMS ¶
type LoginCmsResponse ¶
type LoginFault ¶
type LoginTicket ¶
LoginTicket es una estructura que representa un ticket de un servicio de afip
type LoginTicketRequest ¶
type LoginTicketRequest struct { XMLName xml.Name `xml:"loginTicketRequest"` Version string `xml:"version,attr"` Header *HeaderLoginTicket `xml:"header,omitempty"` Service string `xml:"service,omitempty"` }
LoginTicketRequest es la estructura general del request
type LoginTicketResponse ¶
type LoginTicketResponse struct { XMLName xml.Name `xml:"loginTicketResponse"` Header *HeaderLoginTicket `xml:"header,omitempty"` Credentials *Credentials `xml:"credentials,omitempty"` }
LoginTicketResponse ...