Versions in this module Expand all Collapse all v0 v0.1.2 Mar 24, 2022 v0.1.1 Dec 28, 2021 v0.1.0 Dec 21, 2021 Changes in this version + const ResponseStatusFault + const ResponseStatusOk + type PacketAttributesFault struct + Detail Detail + Fault string + Status string + String string + XMLName xml.Name + func ToErrorResponse(err error) PacketAttributesFault + func (e *PacketAttributesFault) ToRfc7807Error(code int) error + func (e PacketAttributesFault) Error() string v0.0.3 Dec 15, 2021 Changes in this version + type CreatePacketResponse struct + Result CreatePacketResult + Status string + XMLName xml.Name + type CreatePacketResult struct + Barcode string + BarcodeText string + Id int v0.0.2 Dec 11, 2021 Changes in this version + const CurrencyCZK + const CurrencyEUR + const CurrencyHUF + const CurrencyPLN + const CurrencyRON + func ValidateAttribute(key string, value string) (isValidated bool, errorsArray []validator.FieldError) + func ValidateClaimAttributes() (isValidated bool, errorsArray []validator.FieldError) + func ValidateClaimWithPasswordAttributes() (isValidated bool, errorsArray []validator.FieldError) + func ValidateCourierInfoItem() (isValidated bool, errorsArray []validator.FieldError) + func ValidateCourierTrackingUrl() (isValidated bool, errorsArray []validator.FieldError) + func ValidateCurrentStatusRecord() (isValidated bool, errorsArray []validator.FieldError) + func ValidatePacketAttributes() (isValidated bool, errorsArray []validator.FieldError) + func ValidatePacketInfo() (isValidated bool, errorsArray []validator.FieldError) + func ValidateSize(s Size) (isValidated bool, errorsArray []validator.FieldError) + type Attribute struct + Key string + Value string + func NewAttribute(Key string, Value string) *Attribute + type AttributeCollection struct + Attribute []Attribute + func NewAttributeCollection(Attribute []Attribute) *AttributeCollection + type BarcodePng struct + ApiPassword string + Barcode string + XMLName xml.Name + func NewBarcodePng(ApiPassword string, Barcode string) *BarcodePng + type ClaimAttributes struct + Currency string + Email string + Eshop string + Id int + Number string + Phone string + SendLabelToEmail bool + Value float32 + func NewClaimAttributes(Id int, Number string, Email string, Phone string, Value float32, ...) *ClaimAttributes + func NewClaimAttributesRequired(Id int, Number string, Email string, Phone string, Value float32, Eshop string) *ClaimAttributes + type ClaimAttributesValid struct + ApiPassword string + ClaimAttributes ClaimAttributes + XMLName xml.Name + func NewClaimAttributesValid(ApiPassword string, ClaimAttributes ClaimAttributes) *ClaimAttributesValid + type ClaimWithPasswordAttributes struct + ConsignCountry string + Currency string + Email string + Eshop string + Id int + Number string + Phone string + SendEmailToCustomer bool + Value float32 + func NewClaimWithPasswordAttributes(Id int, Number string, Email string, Phone string, Value float32, ...) *ClaimWithPasswordAttributes + func NewClaimWithPasswordAttributesRequired(Id int, Number string, Email string, Phone string, Value float32, Eshop string, ...) *ClaimWithPasswordAttributes + type CourierBarcodes struct + CourierBarcode string + XMLName xml.Name + type CourierInfo struct + CourierInfoItem []CourierInfoItem + XMLName xml.Name + type CourierInfoItem struct + CourierBarcodes []CourierBarcodes + CourierId int + CourierName string + CourierNumbers []CourierNumbers + CourierTrackingNumbers []CourierTrackingNumbers + CourierTrackingUrls []CourierTrackingUrls + XMLName xml.Name + func NewCourierInfoItem(CourierId int, CourierName string, CourierNumbers []CourierNumbers, ...) *CourierInfoItem + func NewCourierInfoItemRequired(CourierId int, CourierName string) *CourierInfoItem + type CourierNumbers struct + CourierNumber string + XMLName xml.Name + type CourierTrackingNumbers struct + CourierTrackingNumber string + XMLName xml.Name + type CourierTrackingUrl struct + Lang string + Url string + XMLName xml.Name + func NewCourierTrackingUrls(Lang string, Url string) *CourierTrackingUrl + type CourierTrackingUrls struct + CourierTrackingUrl CourierTrackingUrl + XMLName xml.Name + type CreatePacket struct + ApiPassword string + PacketAttributes PacketAttributes + XMLName xml.Name + func NewCreatePacket(ApiPassword string, PacketAttributes PacketAttributes) *CreatePacket + type CreatePacketClaim struct + ApiPassword string + ClaimAttributes ClaimAttributes + XMLName xml.Name + func NewCreatePacketClaim(apiPassword string, ClaimAttributes ClaimAttributes) *CreatePacketClaim + type CreatePacketClaimWithPassword struct + ApiPassword string + CreatePacketClaimWithPassword ClaimWithPasswordAttributes + XMLName xml.Name + func NewCreatePacketClaimWithPassword(apiPassword string, c ClaimWithPasswordAttributes) *CreatePacketClaimWithPassword + type CurrentStatusRecord struct + BranchId int + CarrierId int + CarrierName string + CodeText string + DateTime ZasilkovnaDateTime + DestinationBranchId int + ExternalTrackingCode string + IsReturning *bool + StatusCode int + StatusText string + StoredUntil ZasilkovnaDate + func NewCurrentStatusRecord(DateTime ZasilkovnaDateTime, StatusCode int, CodeText string, ...) *CurrentStatusRecord + func NewCurrentStatusRecordRequired(DateTime ZasilkovnaDateTime, StatusCode int, CodeText string, ...) *CurrentStatusRecord + type Detail struct + Attributes ErrorAttributes + XMLName xml.Name + type ErrorAttributes struct + Fault []Fault + XMLName xml.Name + type ErrorResponse struct + Detail Detail + Fault string + Status string + XMLName xml.Name + type Fault struct + Fault string + Name string + XMLName xml.Name + type Ids struct + PacketIds []int + type Item struct + Attribute Attribute + func NewItem(Attribute Attribute) *Item + type ItemCollection struct + Item []Item + func NewItemCollection(Item []Item) *ItemCollection + type PacketAttributes struct + AddressId int + AdultContent bool + AttributeCollection AttributeCollection + CarrierPickupPoint string + CarrierService string + City string + Cod float32 + Company string + Currency string + CustomerBarcode string + CustomsDeclaration ItemCollection + DeliverOn ZasilkovnaDate + Email string + Eshop string + HouseNumber string + Id int + Items ItemCollection + Name string + Note string + Number string + Phone string + Province string + Size Size + Street string + Surname string + Value float32 + Weight float32 + Zip string + func NewPacketAttributes(Id int, Number string, Name string, Surname string, Company string, ...) *PacketAttributes + func NewPacketAttributesRequired(Number string, Name string, Surname string, Email string, Phone string, ...) *PacketAttributes + type PacketAttributesValid struct + ApiPassword string + PacketAttributes PacketAttributes + XMLName xml.Name + func NewPacketAttributesValid(ApiPassword string, PacketAttributes PacketAttributes) *PacketAttributesValid + type PacketDetail struct + Barcode string + BarcodeText string + Id int + Password string + XMLName xml.Name + type PacketGetStoredUntil struct + ApiPassword string + PacketId int + XMLName xml.Name + func NewPacketGetStoredUntil(apiPassword string, packetId int) *PacketGetStoredUntil + type PacketIdDetail struct + Barcode string + BarcodeText string + Id int + XMLName xml.Name + func NewPacketIdDetail(Id int, Barcode string, BarcodeText string) *PacketIdDetail + type PacketInfo struct + ApiPassword string + PacketId int + XMLName xml.Name + func NewPacketInfo(ApiPassword string, PacketId int) *PacketInfo + type PacketInfoResponse struct + Result PacketInfoResult + Status string + XMLName xml.Name + func NewPacketInfoResponse(Status string, Result PacketInfoResult) *PacketInfoResponse + type PacketInfoResult struct + BranchId int + CourierInfo CourierInfo + InvoicedWeightGrams int + XMLName xml.Name + func NewPacketInfoResult(BranchId int, InvoicedWeightGrams int, CourierInfo CourierInfo) *PacketInfoResult + type PacketLabelPdf struct + ApiPassword string + Format string + Offset int + PacketId int + XMLName xml.Name + func NewPacketLabelPdf(ApiPassword string, PacketId int, Format string, Offset int) *PacketLabelPdf + type PacketStatus struct + ApiPassword string + PacketId int + XMLName xml.Name + func NewPacketStatus(apiPassword string, packetId int) *PacketStatus + type PacketTracking struct + ApiPassword string + PacketId int + XMLName xml.Name + type PacketsLabelsPdf struct + ApiPassword string + Format string + Offset int + PacketIds Ids + XMLName xml.Name + func NewPacketsLabelsPdf(ApiPassword string, PacketIds Ids, Format string, Offset int) *PacketsLabelsPdf + type Size struct + Height int + Length int + Width int + func NewSize(Length int, Width int, Height int) *Size + type StatusRecord struct + BranchId int + CodeText string + DateTime ZasilkovnaDateTime + DestinationBranchId int + ExternalTrackingCode string + StatusCode int + StatusText string + XMLName xml.Name + func NewStatusRecord(DateTime ZasilkovnaDateTime, StatusCode int, CodeText string, ...) *StatusRecord + func NewStatusRecordRequired(DateTime ZasilkovnaDateTime, StatusCode int, CodeText string, ...) *StatusRecord + type StatusRecords struct + StatusRecord []StatusRecord + type ZasilkovnaDate time.Time + type ZasilkovnaDateTime time.Time v0.0.2-go113 Dec 11, 2021