Documentation ¶
Index ¶
- Constants
- type Bkp
- type BkpDigestType
- type BkpEncodingType
- type CZDICType
- type CastkaType
- type Chyba
- type Data
- type DateTimeType
- type Dispatcher
- type DsCanonicalizationMethod
- type DsDigestMethod
- type DsDigestValue
- type DsKeyInfo
- type DsReference
- type DsSignature
- type DsSignatureMethod
- type DsSignatureValue
- type DsSignedInfo
- type DsTransform
- type DsTransforms
- type EcInclusiveNamespaces
- type Hlavicka
- type IdProvozType
- type KontrolniKody
- type Odpoved
- type OdpovedHlavicka
- type Pkp
- type PkpCipherType
- type PkpDigestType
- type PkpEncodingType
- type Potvrzeni
- type Receipt
- type Regime
- type Response
- type RezimType
- type SOAPBody
- type SOAPEnvelopeRequest
- type SOAPEnvelopeResponse
- type SOAPHeader
- type Service
- type Signer
- type String20
- type String25
- type Trzba
- type UUIDType
- type Varovani
- type WsseBinarySecurityToken
- type WsseReference
- type WsseSecurity
- type WsseSecurityTokenReference
Constants ¶
View Source
const ( NsSoapUrl = "http://schemas.xmlsoap.org/soap/envelope/" NsSoapEnvUrl = "http://schemas.xmlsoap.org/soap/envelope/" NsWsseUrl = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" NsWsuUrl = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" NsDsUrl = "http://www.w3.org/2000/09/xmldsig#" NsEcUrl = "http://www.w3.org/2001/10/xml-exc-c14n#" NsEetUrl = "http://fs.mfcr.cz/eet/schema/v3" NsSoap = "soap" NsSoapEnv = "SOAP-ENV" NsWsse = "wsse" NsWsu = "wsu" NsDs = "ds" NsEc = "ec" EncodingBase64Url = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueX509Url = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" AlgorithmC14N = "http://www.w3.org/2001/10/xml-exc-c14n#" AlgorithmSHA256 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" AlgorithmDigestSHA256 = "http://www.w3.org/2001/04/xmlenc#sha256" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bkp ¶
type Bkp struct { XMLName xml.Name `xml:"bkp"` Digest BkpDigestType `xml:"digest,attr"` Encoding BkpEncodingType `xml:"encoding,attr"` Value string `xml:",chardata"` }
type BkpEncodingType ¶
type BkpEncodingType string
const (
BkpEncodingTypeBase16 BkpEncodingType = "base16"
)
type CastkaType ¶
type CastkaType string
func NewCastkaType ¶
func NewCastkaType(castka float64) (CastkaType, error)
type Chyba ¶
type Data ¶
type Data struct { XMLName xml.Name `xml:"Data"` CelkTrzba CastkaType `xml:"celk_trzba,attr"` CerpZuct CastkaType `xml:"cerp_zuct,attr,omitempty"` CestSluz CastkaType `xml:"cest_sluz,attr,omitempty"` Dan1 CastkaType `xml:"dan1,attr,omitempty"` Dan2 CastkaType `xml:"dan2,attr,omitempty"` Dan3 CastkaType `xml:"dan3,attr,omitempty"` DatTrzby DateTimeType `xml:"dat_trzby,attr"` DicPopl CZDICType `xml:"dic_popl,attr"` DicPoverujiciho CZDICType `xml:"dic_poverujiciho,attr,omitempty"` IdPokl String20 `xml:"id_pokl,attr"` IdProvoz IdProvozType `xml:"id_provoz,attr"` PoradCis String25 `xml:"porad_cis,attr"` PouzitZboz1 CastkaType `xml:"pouzit_zboz1,attr,omitempty"` PouzitZboz2 CastkaType `xml:"pouzit_zboz2,attr,omitempty"` PouzitZboz3 CastkaType `xml:"pouzit_zboz3,attr,omitempty"` Rezim RezimType `xml:"rezim,attr"` UrcenoCerpZuct CastkaType `xml:"urceno_cerp_zuct,attr,omitempty"` ZaklDan1 CastkaType `xml:"zakl_dan1,attr,omitempty"` ZaklDan2 CastkaType `xml:"zakl_dan2,attr,omitempty"` ZaklDan3 CastkaType `xml:"zakl_dan3,attr,omitempty"` ZaklNepodlDph CastkaType `xml:"zakl_nepodl_dph,attr,omitempty"` }
type DateTimeType ¶
type DateTimeType string
func NewDateTimeType ¶
func NewDateTimeType(dateTime time.Time) DateTimeType
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(service Service, certPath, password string) (*Dispatcher, error)
func (*Dispatcher) SendPayment ¶
func (d *Dispatcher) SendPayment(receipt Receipt) (*Response, error)
type DsCanonicalizationMethod ¶
type DsCanonicalizationMethod struct { XMLName xml.Name `xml:"ds:CanonicalizationMethod"` Algorithm string `xml:"Algorithm,attr"` InclusiveNamespaces EcInclusiveNamespaces `xml:"ec:InclusiveNamespaces"` }
type DsDigestMethod ¶
type DsDigestValue ¶
type DsKeyInfo ¶
type DsKeyInfo struct { XMLName xml.Name `xml:"ds:KeyInfo"` Id string `xml:"Id,attr"` SecurityTokenReference WsseSecurityTokenReference `xml:"wsse:SecurityTokenReference"` }
type DsReference ¶
type DsReference struct { XMLName xml.Name `xml:"ds:Reference"` URI string `xml:"URI,attr"` Transforms DsTransforms `xml:"ds:Transforms"` DigestMethod DsDigestMethod `xml:"ds:DigestMethod"` DigestValue DsDigestValue `xml:"ds:DigestValue"` }
type DsSignature ¶
type DsSignature struct { XMLName xml.Name `xml:"ds:Signature"` XmlnsDs string `xml:"xmlns:ds,attr"` Id string `xml:"Id,attr"` SignedInfo DsSignedInfo `xml:"ds:SignedInfo"` SignatureValue DsSignatureValue `xml:"ds:SignatureValue"` KeyInfo DsKeyInfo `xml:"ds:KeyInfo"` }
type DsSignatureMethod ¶
type DsSignatureValue ¶
type DsSignedInfo ¶
type DsSignedInfo struct { XMLName xml.Name `xml:"ds:SignedInfo"` XmlnsDs string `xml:"xmlns:ds,attr"` XmlnsSoap string `xml:"xmlns:soap,attr"` CanonicalizationMethod DsCanonicalizationMethod `xml:"ds:CanonicalizationMethod"` SignatureMethod DsSignatureMethod `xml:"ds:SignatureMethod"` Reference DsReference `xml:"ds:Reference"` }
type DsTransform ¶
type DsTransform struct { XMLName xml.Name `xml:"ds:Transform"` Algorithm string `xml:"Algorithm,attr"` InclusiveNamespaces EcInclusiveNamespaces `xml:"ec:InclusiveNamespaces"` }
type DsTransforms ¶
type DsTransforms struct { XMLName xml.Name `xml:"ds:Transforms"` Transform DsTransform `xml:"ds:Transform"` }
type EcInclusiveNamespaces ¶
type IdProvozType ¶
type IdProvozType int32
func NewIdProvozType ¶
func NewIdProvozType(idProvozType int) (IdProvozType, error)
func (IdProvozType) String ¶
func (i IdProvozType) String() string
type KontrolniKody ¶
type OdpovedHlavicka ¶
type Pkp ¶
type Pkp struct { XMLName xml.Name `xml:"pkp"` Cipher PkpCipherType `xml:"cipher,attr"` Digest PkpDigestType `xml:"digest,attr"` Encoding PkpEncodingType `xml:"encoding,attr"` Value string `xml:",chardata"` }
type PkpCipherType ¶
type PkpCipherType string
const (
PkpCipherTypeRSA2048 PkpCipherType = "RSA2048"
)
type PkpDigestType ¶
type PkpDigestType string
const (
PkpDigestTypeSHA256 PkpDigestType = "SHA256"
)
type PkpEncodingType ¶
type PkpEncodingType string
const (
PkpEncodingTypeBase64 PkpEncodingType = "base64"
)
type Receipt ¶
type Receipt struct { UuidZpravy string PrvniZaslani bool DicPopl string DicPoverujiciho string IdProvoz int IdPokl string PoradCis string DatTrzby time.Time CelkTrzba float64 ZaklNepodlDph float64 ZaklDan1 float64 Dan1 float64 ZaklDan2 float64 Dan2 float64 ZaklDan3 float64 Dan3 float64 CestSluz float64 PouzitZboz1 float64 PouzitZboz2 float64 PouzitZboz3 float64 UrcenoCerpZuct float64 CerpZuct float64 Rezim Regime }
type Response ¶
type SOAPEnvelopeRequest ¶
type SOAPEnvelopeRequest struct { XMLName xml.Name `xml:"soap:Envelope"` XmlnsSoap string `xml:"xmlns:soap,attr"` Header SOAPHeader `xml:"SOAP-ENV:Header"` Body SOAPBody `xml:"soap:Body"` }
func NewSOAPEnvelopeRequest ¶
func NewSOAPEnvelopeRequest(content interface{}, signer *Signer) (SOAPEnvelopeRequest, error)
type SOAPEnvelopeResponse ¶
type SOAPHeader ¶
type SOAPHeader struct { XMLName xml.Name `xml:"SOAP-ENV:Header"` XmlnsSoapEnv string `xml:"xmlns:SOAP-ENV,attr"` Security WsseSecurity `xml:"wsse:Security"` }
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
func (*Signer) Base64Cert ¶
type Trzba ¶
type Trzba struct { XMLName xml.Name `xml:"http://fs.mfcr.cz/eet/schema/v3 Trzba"` Hlavicka Hlavicka `xml:"Hlavicka"` Data Data `xml:"Data"` KontrolniKody KontrolniKody `xml:"KontrolniKody"` }
type WsseBinarySecurityToken ¶
type WsseReference ¶
type WsseSecurity ¶
type WsseSecurity struct { XMLName xml.Name `xml:"wsse:Security"` XmlnsWsse string `xml:"xmlns:wsse,attr"` XmlnsWsu string `xml:"xmlns:wsu,attr"` MustUnderstand string `xml:"soap:mustUnderstand,attr"` BinarySecurityToken WsseBinarySecurityToken `xml:"wsse:BinarySecurityToken"` Signature DsSignature `xml:"ds:Signature"` }
Click to show internal directories.
Click to hide internal directories.