soap

package
v0.0.0-...-c4ab97c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogonRequestPayload

func NewLogonRequestPayload(params *LogonParams) (string, error)

Types

type Bank

type Bank struct {
	Code string `xml:",chardata"`
}

type Banks

type Banks struct {
	XMLName xml.Name `xml:"BANKS"`
	Banks   []Bank   `xml:"BankCode"`
}

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 LogonError struct {
	XMLName xml.Name `xml:"E"`
	Error   string   `xml:"Error"`
	Code    string   `xml:"Code"`
	Msg     string   `xml:"Msg"`
	Title   string   `xml:"Title"`
}

type LogonParams

type LogonParams struct {
	Version          string
	Channel          string
	Format           string
	Model            string
	Language         string
	User             string
	Password         *string
	ActivationCode   *string
	SmoneyClientType string
	Rooted           string
}

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 LogonResponse struct {
	XMLName     xml.Name `xml:"LogonResponse"`
	XMLNS       string   `xml:"xmlns,attr"`
	LogonResult string   `xml:"LogonResult"`
}

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 OAuth

type OAuth struct {
	XMLName      xml.Name `xml:"OAUTH"`
	AccessToken  string   `xml:"ACCESS_TOKEN"`
	TokenType    string   `xml:"TOKEN_TYPE"`
	ExpiresIn    string   `xml:"EXPIRES_IN"`
	RefreshToken string   `xml:"REFRESH_TOKEN"`
}

type ServicesInfo

type ServicesInfo struct {
	XMLName    xml.Name `xml:"SERVICE"`
	Id         string   `xml:"ID"`
	CguExpired string   `xml:"CGU_EXPIRED"`
}

type ServicesInfos

type ServicesInfos struct {
	XMLName       xml.Name `xml:"SERVICES_INFOS"`
	ServicesInfos []ServicesInfo
}

type TypeElement

type TypeElement struct {
	Type    string `xml:"i:type,attr"`
	Content string `xml:",chardata"`
}

type Up

type Up struct {
	XMLName     xml.Name `xml:"UP"`
	Balance     string   `xml:"BAL"`
	CashBalance string   `xml:"CASHBAL"`
	LUD         string   `xml:"LUD"`
}

Jump to

Keyboard shortcuts

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