Documentation
¶
Index ¶
- func NewLogonRequestPayload(params *LogonParams) (string, error)
- type Bank
- type Banks
- type Logon
- type LogonError
- type LogonParams
- type LogonRequestBody
- type LogonRequestEnvelope
- type LogonRequestHeader
- type LogonResponse
- type LogonResponseBody
- type LogonResponseEnvelope
- type LogonResult
- type LogonSecondStepResult
- type NullElement
- type OAuth
- type ServicesInfo
- type ServicesInfos
- type TypeElement
- type Up
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogonRequestPayload ¶
func NewLogonRequestPayload(params *LogonParams) (string, error)
Types ¶
type Logon ¶
type Logon struct {
XMLName xml.Name `xml:"Logon"`
XMLNS string `xml:"xmlns,attr"`
ID string `xml:"id,attr"`
Root string `xml:"c:root,attr"`
Version TypeElement `xml:"version"`
Channel TypeElement `xml:"channel"`
Format TypeElement `xml:"format"`
Model TypeElement `xml:"model"`
Language TypeElement `xml:"language"`
User TypeElement `xml:"user"`
Password interface{} `xml:"password"`
ActivationCode *TypeElement `xml:"actCode,omitempty"`
SmoneyClientType TypeElement `xml:"smoneyClientType"`
Rooted TypeElement `xml:"rooted"`
}
type LogonError ¶
type LogonParams ¶
type LogonRequestBody ¶
type LogonRequestBody struct {
Logon Logon `xml:"Logon"`
}
type LogonRequestEnvelope ¶
type LogonRequestEnvelope struct {
XMLName xml.Name `xml:"v:Envelope"`
XMLNSI string `xml:"xmlns:i,attr"`
XMLNSD string `xml:"xmlns:d,attr"`
XMLNSC string `xml:"xmlns:c,attr"`
XMLNSV string `xml:"xmlns:v,attr"`
Header LogonRequestHeader `xml:"v:Header"`
Body LogonRequestBody `xml:"v:Body"`
}
type LogonRequestHeader ¶
type LogonRequestHeader struct{}
type LogonResponse ¶
type LogonResponseBody ¶
type LogonResponseBody struct {
LogonResponse LogonResponse `xml:"LogonResponse"`
}
type LogonResponseEnvelope ¶
type LogonResponseEnvelope struct {
XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
Body LogonResponseBody `xml:"Body"`
}
type LogonResult ¶
type LogonResult struct {
XMLName xml.Name `xml:"UserData"`
UID string `xml:"UID"`
Salt string `xml:"SALT"`
}
func ParseLogonResponse ¶
func ParseLogonResponse(xmlData string) (*LogonResult, error)
type LogonSecondStepResult ¶
type LogonSecondStepResult struct {
XMLName xml.Name `xml:"Logon"`
Banks Banks
UserId string `xml:"USER_ID"`
Age string `xml:"AGE"`
ZipCode string `xml:"ZIP_CODE"`
Crous string `xml:"CROUS"`
CategoryUserId string `xml:"CATEGORY_USERID"`
Optin string `xml:"OPTIN"`
ServicesInfos ServicesInfos
UID string `xml:"UID"`
SID string `xml:"SID"`
P2PPAYMIN string `xml:"P2PPAYMIN"`
P2PPAYMAX string `xml:"P2PPAYMAX"`
P2PPAYPARTMIN string `xml:"P2PPAYPARTMIN"`
P2PPAYPARTMAX string `xml:"P2PPAYPARTMAX"`
Currency string `xml:"CUR"`
MONEYINMIN string `xml:"MONEYINMIN"`
MONEYINMAX string `xml:"MONEYINMAX"`
MONEYOUTMIN string `xml:"MONEYOUTMIN"`
MONEYOUTMAX string `xml:"MONEYOUTMAX"`
NBP2PREQUEST string `xml:"NBP2PREQUEST"`
NBP2PGET string `xml:"NBP2PGET"`
Token string `xml:"TOKEN"`
UserStatus string `xml:"USERSTATUS"`
PROCASHIER string `xml:"PROCASHIER"`
FirstName string `xml:"FNAME"`
LastName string `xml:"LNAME"`
Email string `xml:"EMAIL"`
Alias string `xml:"ALIAS"`
Status string `xml:"STATUS"`
OPTINPARTNERS string `xml:"OPTINPARTNERS"`
Blocked string `xml:"BLOCKED"`
NewVersion string `xml:"NEWVERSION"`
OAuth OAuth
CguExpired string `xml:"CGU_EXPIRED"`
PROG7 string `xml:"PROG7"`
CrousName string `xml:"CROUS_NAME"`
SubscriptionDate string `xml:"SUBSCRIPTION_DATE"`
TermsAndConditionsAgreementDate string `xml:"TERMS_CONDITIONS_AGREEMENT_DATE"`
Up Up
HasNewActu string `xml:"HAS_NEW_ACTU"`
Seed string `xml:"SEED"`
NSSE string `xml:"NSSE"`
UserPublicId string `xml:"USER_PUBLIC_ID"`
QrCodePrivateKey string `xml:"QR_CODE_PRIVATE_KEY"`
}
func ParseLogonSecondStepResponse ¶
func ParseLogonSecondStepResponse(xmlData string) (*LogonSecondStepResult, error)
type NullElement ¶
type NullElement struct {
Null string `xml:"i:null,attr"`
}
type ServicesInfo ¶
type ServicesInfos ¶
type ServicesInfos struct {
XMLName xml.Name `xml:"SERVICES_INFOS"`
ServicesInfos []ServicesInfo
}
type TypeElement ¶
Click to show internal directories.
Click to hide internal directories.