Documentation ¶
Index ¶
- Variables
- type DeleteCertReq
- type GatewayErrResp
- type Handler
- type ListCertIDsReq
- type ListCertIDsResp
- type PingEETResp
- type SendSaleReq
- type SendSaleResp
- type StoreCertReq
- type SuccessCertResp
- type UpdateCertIDJSONReq
- type UpdateCertIDURIReq
- type UpdateCertPasswordJSONReq
- type UpdateCertPasswordURIReq
Constants ¶
This section is empty.
Variables ¶
var ErrUnexpected = errors.New("unexpected error")
ErrUnexpected is returned if unexpected error is raised.
Functions ¶
This section is empty.
Types ¶
type DeleteCertReq ¶
type DeleteCertReq struct {
CertID string `uri:"cert_id" binding:"required"`
}
DeleteCertReq is a binding request structure for deleting certificates.
type GatewayErrResp ¶
type GatewayErrResp struct { GatewayError string `json:"gateway_error" example:"keystore service unavailable"` } //@name GatewayErrorResponse
GatewayErrResp represents an error response structure returned from the EET Gateway API (not from the FSCR).
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is HTTP requests handler.
func NewHandler ¶
NewHandler returns an implementation of Handler.
func (*Handler) HTTPHandler ¶
HTTPHandler implements server.Handler.
type ListCertIDsReq ¶
type ListCertIDsReq struct { Offset int64 `form:"offset" binding:"gte=0"` Limit int64 `form:"limit" binding:"gte=0"` }
ListCertIDsReq is a binding request structure for listing certificate IDs.
type ListCertIDsResp ¶
type ListCertIDsResp struct {
CertIDs []string `json:"cert_ids"`
}
ListCertIDsResp is a response structure for listing certificate IDs.
type PingEETResp ¶
type PingEETResp struct { EETGatewayStatus string `json:"eet_gateway"` TaxAdminStatus string `json:"tax_admin"` KeystoreStatus string `json:"keystore"` }
PingEETResp is a response structure for HTTP pings.
type SendSaleReq ¶
type SendSaleReq struct { CertID string `json:"cert_id,omitempty" binding:"required"` CertPassword string `json:"cert_password,omitempty" binding:"required"` UUIDZpravy eet.UUIDType `json:"uuid_zpravy" binding:"omitempty,uuid_zpravy"` DatOdesl *eet.DateTime `json:"dat_odesl,omitempty" binding:""` PrvniZaslani bool `json:"prvni_zaslani" binding:""` Overeni bool `json:"overeni" binding:""` DICPopl eet.CZDICType `json:"dic_popl" binding:"required,dic"` DICPoverujiciho eet.CZDICType `json:"dic_poverujiciho" binding:"omitempty,dic,necsfield=Dicpopl"` IDProvoz int `json:"id_provoz" binding:"required,id_provoz"` IDPokl eet.String20 `json:"id_pokl" binding:"required,id_pokl"` PoradCis eet.String25 `json:"porad_cis" binding:"required,porad_cis"` DatTrzby *eet.DateTime `json:"dat_trzby,omitempty" binding:"required"` CelkTrzba eet.CastkaType `json:"celk_trzba" binding:"required,fin_poloz"` ZaklNepodlDPH eet.CastkaType `json:"zakl_nepodl_dph" binding:"omitempty,fin_poloz"` ZaklDan1 eet.CastkaType `json:"zakl_dan1" binding:"omitempty,fin_poloz"` Dan1 eet.CastkaType `json:"dan1" binding:"omitempty,fin_poloz"` ZaklDan2 eet.CastkaType `json:"zakl_dan2" binding:"omitempty,fin_poloz"` Dan2 eet.CastkaType `json:"dan2" binding:"omitempty,fin_poloz"` ZaklDan3 eet.CastkaType `json:"zakl_dan3" binding:"omitempty,fin_poloz"` Dan3 eet.CastkaType `json:"dan3" binding:"omitempty,fin_poloz"` CestSluz eet.CastkaType `json:"cest_sluz" binding:"omitempty,fin_poloz"` PouzitZboz1 eet.CastkaType `json:"pouzit_zboz1" binding:"omitempty,fin_poloz"` PouzitZboz2 eet.CastkaType `json:"pouzit_zboz2" binding:"omitempty,fin_poloz"` PouzitZboz3 eet.CastkaType `json:"pouzit_zboz3" binding:"omitempty,fin_poloz"` UrcenoCerpzZuct eet.CastkaType `json:"urceno_cerp_zuct" binding:"omitempty,fin_poloz"` CerpZuct eet.CastkaType `json:"cerp_zuct" binding:"omitempty,fin_poloz"` Rezim eet.RezimType `json:"rezim" binding:"omitempty,rezim"` }
SendSaleReq is a binding request structure for sales.
type SendSaleResp ¶
type SendSaleResp struct { CertID string `json:"cert_id"` DatOdmit *eet.DateTime `json:"dat_odmit,omitempty"` ChybZprava string `json:"chyb_zprava,omitempty"` ChybKod int `json:"chyb_kod,omitempty"` DatPrij *eet.DateTime `json:"dat_prij,omitempty"` FIK eet.FikType `json:"fik,omitempty"` BKP string `json:"bkp,omitempty"` Test bool `json:"test,omitempty"` Varovani []eet.OdpovedVarovaniType `json:"varovani,omitempty"` Trzba *SendSaleReq `json:"trzba,omitempty"` }
SendSaleResp is a reponse structure to sale requests.
type StoreCertReq ¶
type StoreCertReq struct { CertID string `json:"cert_id" binding:"required"` CertPassword string `json:"cert_password" binding:"required"` PKCS12Data string `json:"pkcs12_data" binding:"required,base64"` PKCS12Password string `json:"pkcs12_password" binding:"required"` }
StoreCertReq is a binding request structure for storing certificates.
type SuccessCertResp ¶
type SuccessCertResp struct { CertID string `json:"cert_id" example:"d406ccda-1bc5-44ab-a081-af6e8740634c"` } //@name SuccessResponse
SuccessCertResp is a response of a successful action related to certificate.
type UpdateCertIDJSONReq ¶
type UpdateCertIDJSONReq struct {
NewID string `json:"new_id" binding:"required"`
}
UpdateCertIDJSONReq is a JSON binding request structure for certificate ID updates.
type UpdateCertIDURIReq ¶
type UpdateCertIDURIReq struct {
CertID string `uri:"cert_id" binding:"required"`
}
UpdateCertIDURIReq is a URI binding request structure for certificate ID updates.
type UpdateCertPasswordJSONReq ¶
type UpdateCertPasswordJSONReq struct { CertPassword string `json:"cert_password" binding:"required"` NewPassword string `json:"new_password" binding:"required,necsfield=CertPassword"` }
UpdateCertPasswordJSONReq is a JSON binding request structure for password updates.
type UpdateCertPasswordURIReq ¶
type UpdateCertPasswordURIReq struct {
CertID string `uri:"cert_id" binding:"required"`
}
UpdateCertPasswordURIReq is a URI binding request structure for password updates.