czech_post_b2b_client 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/czech_post_b2b_client/response_codes.rb +7 -0
- data/lib/czech_post_b2b_client/version.rb +1 -1
- metadata +3 -460
- data/doc/CzechPostB2bClient/B2BErrors/BadRequestError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/BaseError.html +0 -411
- data/doc/CzechPostB2bClient/B2BErrors/CustomerRequestsCountOverflowError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/InternalB2BServerError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/InternalBackendServerError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/InternalDataPersistenceServerError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/ProcessingUnfinishedYetError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/ServiceBusyError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/UnauthorizedContractAccessError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors/UnauthorizedRoleAccessError.html +0 -145
- data/doc/CzechPostB2bClient/B2BErrors.html +0 -255
- data/doc/CzechPostB2bClient/Configuration.html +0 -1013
- data/doc/CzechPostB2bClient/Error.html +0 -128
- data/doc/CzechPostB2bClient/PostServices/AddreseeVerification.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/AddresseeAlertOfArrivalByEmail.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/AddresseeAlertOfArrivalBySms.html +0 -140
- data/doc/CzechPostB2bClient/PostServices/AddresseeAlertOfArrivalBySmsAndEmail.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/AddresseeVerificationOnDelivery.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/AfternoonDelivery.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/Base.html +0 -351
- data/doc/CzechPostB2bClient/PostServices/CashOnDeliveryByPKA.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/CashOnDeliveryByPKC.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/CashOnDeliveryInternational.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/CertificateOfDelivery.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/CertificateOfDeliveryWithDeliverToAdresseeOnly.html +0 -140
- data/doc/CzechPostB2bClient/PostServices/CertificateOfDeliveryWithDeliverToAdresseePersonOnly.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/CompanyRegisteredMail.html +0 -141
- data/doc/CzechPostB2bClient/PostServices/CompleteDelivery.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/Consignment.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/CumbersomeParcel.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DeliverToAdresseeOnly.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DeliverToAdresseePersonOnly.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DeliverToCompany.html +0 -147
- data/doc/CzechPostB2bClient/PostServices/DepositFor10Days.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DepositFor10WorkingDays.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DepositFor3Days.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DepositFor7Days.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DepositFor90Days.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DepositIfAdresseeIsUnreachable.html +0 -141
- data/doc/CzechPostB2bClient/PostServices/DiscountForCollectiveShippment.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DiscountForOnlinePosting.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DoNotDeposit.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DoNotExtendCollectionTime.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/DoNotPutIntoMailbox.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DoNotResend.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DoNotReturnLeaveItInMailbox.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DoNotReturnToSender.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/Document.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/DocumentlessCashOnDelivery.html +0 -147
- data/doc/CzechPostB2bClient/PostServices/DocumentsSignedAtDelivery.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/EAlertOfDeliveryEmail.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/EAlertOfDeliverySms.html +0 -140
- data/doc/CzechPostB2bClient/PostServices/EAlertOfDeliverySmsAndEmail.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/EconomyDelivery.html +0 -140
- data/doc/CzechPostB2bClient/PostServices/ExtendedCollectionTime.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ForenoonDelivery.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/Fragile.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/GiftOrNonCommercialGoods.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/GoodsWithExportDocumentsProcessed.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/GuaranteedDeliveryTimeAtSaturday.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/GuaranteedDeliveryTimeAtWeekend.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/GuaranteedDeliveryTimeTo2PM.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/HeavyParcelDeliveryToHand.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/InformSenderAboutDelivery.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/InternationalMail.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/InternationalMailForBlinds.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/InternationalPrintedMatterBag.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/InternationalRegisteredMail.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/InternationalRegisteredMailForBlinds.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/InternationalRegisteredPrintedMatterBag.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ListedPrice.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/Missed.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/Missive.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/MissiveStandard.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/MultiParcelShippment.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/MultiParcelShippmentBig.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/NonStandardPackage.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/OldApplianceRemoval.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/OnPalette.html +0 -140
- data/doc/CzechPostB2bClient/PostServices/ParcelSizeL.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ParcelSizeM.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ParcelSizeS.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ParcelSizeXL.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/PickupByThirdPerson.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/PosteRestante.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/PreprocessedBySorting.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/PrioritaireByAir.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/RegisteredMail.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/RegisteredMailForBlinds.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/RegisteredMailStandard.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ResendToOtherAddress.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ResponseEnvelope.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ResponseShipment.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ReturnByAir.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ReturnEconomically.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ReturnOfGoods.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ReturnToSenderAfterXDays.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/ReturnToSenderImmediately.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/SaveKey.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/SubmissionByPostbox.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/SubmissionReceiptCopy.html +0 -129
- data/doc/CzechPostB2bClient/PostServices/ThisSideUp.html +0 -148
- data/doc/CzechPostB2bClient/PostServices/ValuableContent.html +0 -129
- data/doc/CzechPostB2bClient/PostServices.html +0 -197
- data/doc/CzechPostB2bClient/PrintingTemplates/AddressData3x8.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/Blank.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/Blank4OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/BlankLandscape.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/EMS.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/EMS2x4.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/HarmonizedLabel.html +0 -141
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/HarmonizedLabel4OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/Standard.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/Standard2OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/Standard4OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/Valuable.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage/Valuable4OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/ForeignPackage.html +0 -115
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/Simple.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel/SimpleWithCODVoucherA.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/AdressLabel.html +0 -117
- data/doc/CzechPostB2bClient/PrintingTemplates/Base.html +0 -279
- data/doc/CzechPostB2bClient/PrintingTemplates/CODVoucherA.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CODVoucherA3OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CODVoucherC.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CODVoucherForCSOB.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclaration/CN22.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclaration/CN224OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclaration/CN22WithCK.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclaration/CN22WithCK4OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclaration/CN23.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclaration.html +0 -115
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclarationCN22.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/CustomDeclarationCN23.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/DeliveryTicket.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/Envelope/EnvelopeB4.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/Envelope/EnvelopeC5.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/Envelope/EnvelopeC6.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/Envelope/EnvelopeDL.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/Envelope.html +0 -115
- data/doc/CzechPostB2bClient/PrintingTemplates/HarmonizedLabel.html +0 -141
- data/doc/CzechPostB2bClient/PrintingTemplates/HarmonizedLabel4OnPage.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/IntegratedDocument.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates/RRLabels3x8.html +0 -129
- data/doc/CzechPostB2bClient/PrintingTemplates.html +0 -199
- data/doc/CzechPostB2bClient/RequestBuilders/BaseBuilder.html +0 -396
- data/doc/CzechPostB2bClient/RequestBuilders/GetParcelStateBuilder.html +0 -329
- data/doc/CzechPostB2bClient/RequestBuilders/GetParcelsPrintingBuilder.html +0 -470
- data/doc/CzechPostB2bClient/RequestBuilders/GetResultParcelsBuilder.html +0 -329
- data/doc/CzechPostB2bClient/RequestBuilders/GetStatsBuilder.html +0 -403
- data/doc/CzechPostB2bClient/RequestBuilders/ParcelServiceSyncBuilder.html +0 -414
- data/doc/CzechPostB2bClient/RequestBuilders/SendParcelsBuilder.html +0 -414
- data/doc/CzechPostB2bClient/RequestBuilders.html +0 -117
- data/doc/CzechPostB2bClient/ResponseCodes/AddressAllowedForBalikovnaOnly.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/AddressIsNotValidForSubject.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/AddressNeedsPhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/AddressSuitableForLocalDelivery.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/AddressValidOnlyForNaPostu.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/AddressValidOnlyForNaPostuDuplicate.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/AddresseeCityRequired.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/AlreadyAssignedOrderNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadAddressee.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadCODAmount.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadFormatReturnNumberDays.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadHeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadLength.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadPrefix.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadPrefixForAddress.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadPrice.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadVariableSymbol.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadWeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BadWidth.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BaseCode.html +0 -640
- data/doc/CzechPostB2bClient/ResponseCodes/BatchClosed.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BatchInvalid.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/BatchUnfinished.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/CODAmountOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/CODAmountTooBig.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/CanceledOrderNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/CustomGoodQuantityOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/CustomerIDNotInAccordanceWithParcelCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/DensityOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/DuplicateDuplicateParcelCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/DuplicateParcel.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/DuplicateParcelCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/DuplicitParcelCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/FullSequence.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/FullSequenceDuplicate.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/IllegalCombinationOfServices.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoAddRequiredService75.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoAddService1A.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoAddService1B.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoAddService1D.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoAddService9.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoAddressWasModified.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoAddresseeToLong.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelCustCardNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelCustCardNumberAddresseeDocument.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelHeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelLength.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelMobilePhoneOrEmailAddresseeDocument.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelPalettsNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelPersonalIdentificationNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1AB.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1ABForService40.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1AForPostCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1AForService40.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1AWith1B.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1B.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1BAddService1A.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1BForPostCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1BWith1A.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1D.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1E.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService1V.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService25.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService27.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService29.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService30.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService31.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService34.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService34InvalidPhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService45.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService45InvalidPhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService46.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService47.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService5B.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService5BAnd5C.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService5BAnd5D.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService5C.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService5CAnd5D.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService5D.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelService9.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelVSVoucher.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCancelWidth.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoCityChanged.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInexactAddress.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidAccount.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidBankCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidBirthDay.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidCODAmount.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidCategoryCustomDecalaration.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidEmail.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidMobilePhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidPhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidPrefixAccount.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidPrice.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidSpecificSymbol.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidTelephoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoInvalidWeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoMissingPartCityServiceDeliveryOnSundayOrHolidayMayNotBeRealized.html +0 -145
- data/doc/CzechPostB2bClient/ResponseCodes/InfoPriceIsNotNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoPriceIsTooBig.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoService29And47.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InfoSpecialPackagingRequest.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InternalApplicationError.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressAddresseeDocumentForParcelType.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressAddresseeDocumentObjectNotFound.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressAddresseeDocumentWrongCity.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressForBalikovna.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressForBigPackage.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressForCODAmountOver20000.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressForParcelType.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAddressee.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAmount.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAmountCurrency.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidAmountType.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCODAmount.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCODCurrency.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCODCurrencyAccordance.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCategoryCustomDecalaration.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidContentCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCurrencyCustomDecalaration.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCustomGoodNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCustomerCardNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidCustomerId.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidDensity.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidEmail.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidHeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidHsCodeCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidIsoCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidIsoCustomGoodFormat.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidLength.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidLocation.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidMRNCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidMRNCodeControl.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidNumberClosure.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidOrderNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidParcelBarcode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidParcelBarcodeDuplicate.html +0 -145
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidParcelCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidParcelCodeControl.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidParcelResponseCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidParcelTypeForID.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPartnerCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPayday.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPostCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPrefixAccordance.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPrefixCombination.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPrefixForDimensionsAndFragile.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPrice.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPriceCurrency.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPriceCurrencyAccordance.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidPriceCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidQuantityCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidResponsibleConsignmentNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidReturnNumberDays.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidService18.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidService19.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidServiceCombination.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidServicesForDimensions.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidSignNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidSubisoCountry.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidTareWeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidTiming.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidTransmissionDate.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidTypePrefix.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidUseOfService36.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidUseOfService37.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidUseOfService38.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidWeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidWeightCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidWeightCustomGoodSummary.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidWeightForService11.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidWidth.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidZPROOrderNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidZPROOrderNumberFormat.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/InvalidostCodeOrCity.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MIssingParcelCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingAddressee.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingAddresseeCity.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingAddresseeStreet.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingAddresseeZipCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingCODAmount.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingCODAmountType.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingCategoryCustomDecalaration.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingCompanyName.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingContentCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingCurrencyCustomDeclaration.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingHandlingInstructions.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingHeight.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingHsCodeCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingIsoCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingLength.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingPalettsNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingParcelCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingParcelCustomGoods.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingPhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingPrefix.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingPrice.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingPriceCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingQuantityCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredAddresseeDocument.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredAddresseeDocumentDuplicate.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredAddresseeEmail.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredEmail.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredFirstNameAddresseeDocument.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredMRNCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredMobileNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredMobileNumberOrEmail.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredParcelCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredPayday.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredPhoneNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredPhoneNumberOrEmail.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredPhoneNumberOrWhat.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredPrice.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService10.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService1AB.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService1X.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService2X.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService3X.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService3XTrinity.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService4.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService4X.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredService4x.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredVoucherPrice.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingRequiredZPROOrderNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingReturnInstructions.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingReturnNumberDays.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingSenderEmail.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingSizeCategory.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingSurname.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingVariableSymbol.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingVariableSymbolDuplicate.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingWeightCustomGood.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/MissingWidth.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/NfoCancelService9.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/NoContractService41.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/NoContractServiceReturnReceipt.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/NotExistingOrderNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/Ok.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/OverenoVecerniDorucovani.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/PalettsNumberOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/ParcelCodeNotAllowed.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/ParcelCodeNotInAssignedRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/ParcelDoesNotMeetTheRequirementsForm.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/PriceAndCODAmountTooBig.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/PriceOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/PriceTooBig.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/PriceTooLow.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/ResponsibleConsignmentNumberCannotBeImported.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/ResponsibleConsignmentNumberOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/ServicesCombinationNotAllowed.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/TransmissionAlreadyClosed.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/TransmissionNotExists.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/TransmissionOpened.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/TransmissionUnfinished.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/UnauthorizedAccess.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/UnknownAddresseeCity.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/UnknownAddresseePostCode.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/UnknownPrefix.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/VariableSymbolIsNotNumber.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/WeightCustomGoodOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/WeightIsOutOfRange.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes/WeightIsOutOfRangeDuplicate.html +0 -134
- data/doc/CzechPostB2bClient/ResponseCodes.html +0 -266
- data/doc/CzechPostB2bClient/ResponseParsers/BaseParser.html +0 -283
- data/doc/CzechPostB2bClient/ResponseParsers/GetParcelStateParser.html +0 -548
- data/doc/CzechPostB2bClient/ResponseParsers/GetParcelsPrintingParser.html +0 -463
- data/doc/CzechPostB2bClient/ResponseParsers/GetResultParcelsParser.html +0 -631
- data/doc/CzechPostB2bClient/ResponseParsers/GetStatsParser.html +0 -347
- data/doc/CzechPostB2bClient/ResponseParsers/ParcelServiceSyncParser.html +0 -805
- data/doc/CzechPostB2bClient/ResponseParsers/SendParcelsParser.html +0 -374
- data/doc/CzechPostB2bClient/ResponseParsers.html +0 -117
- data/doc/CzechPostB2bClient/Services/AddressSheetsGenerator.html +0 -451
- data/doc/CzechPostB2bClient/Services/ApiCaller.html +0 -311
- data/doc/CzechPostB2bClient/Services/Communicator.html +0 -220
- data/doc/CzechPostB2bClient/Services/DeliveringInspector.html +0 -324
- data/doc/CzechPostB2bClient/Services/Orchestrator.html +0 -143
- data/doc/CzechPostB2bClient/Services/ParcelsAsyncSender.html +0 -402
- data/doc/CzechPostB2bClient/Services/ParcelsSendProcessUpdater.html +0 -377
- data/doc/CzechPostB2bClient/Services/ParcelsSender.html +0 -190
- data/doc/CzechPostB2bClient/Services/ParcelsSubmissionCloser.html +0 -337
- data/doc/CzechPostB2bClient/Services/ParcelsSyncSender.html +0 -464
- data/doc/CzechPostB2bClient/Services/TimePeriodStatisticator.html +0 -398
- data/doc/CzechPostB2bClient/Services/XsdsDownloader.html +0 -289
- data/doc/CzechPostB2bClient/Services.html +0 -117
- data/doc/CzechPostB2bClient.html +0 -475
- data/doc/SteppedService/Base.html +0 -706
- data/doc/SteppedService/Errors.html +0 -365
- data/doc/SteppedService.html +0 -225
- data/doc/_index.html +0 -3323
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -496
- data/doc/file.README.html +0 -382
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -382
- data/doc/js/app.js +0 -314
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1131
- data/doc/top-level-namespace.html +0 -110
data/doc/file.README.html
DELETED
@@ -1,382 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
File: README
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.24
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "README";
|
19
|
-
relpath = '';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="file_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="_index.html">Index</a> »
|
40
|
-
<span class="title">File: README</span>
|
41
|
-
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<div id="search">
|
45
|
-
|
46
|
-
<a class="full_list_link" id="class_list_link"
|
47
|
-
href="class_list.html">
|
48
|
-
|
49
|
-
<svg width="24" height="24">
|
50
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
51
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
52
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
</svg>
|
54
|
-
</a>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
<div class="clear"></div>
|
58
|
-
</div>
|
59
|
-
|
60
|
-
<div id="content"><div id='filecontents'><h1>CzechPostB2bClient</h1>
|
61
|
-
|
62
|
-
<p>Accessing B2B API of Czech Post for bulk processing of parcels ("B2B - WS PodáníOnline").</p>
|
63
|
-
|
64
|
-
<p>There are these supported operations of API:</p>
|
65
|
-
|
66
|
-
<ul>
|
67
|
-
<li><em>parcelServiceSync</em> - stores data of one parcel and return package_code and optional PDF adress sheet [HTTP POST - sync response]
|
68
|
-
Seems to me, that there are is no place extensive Cash On Delivery data, just <code>amount</code> and <code>currency</code></li>
|
69
|
-
<li><em>sendParcels</em> - stores data of parcels for async processing [HTTP POST - async response]</li>
|
70
|
-
<li><em>getResultParcels</em> - return results of such processing [HTTP GET - sync response]</li>
|
71
|
-
<li><em>getStats</em> - returns statistics of parcels sent in time period [HTTP GET - sync response]</li>
|
72
|
-
<li><em>getParcelState</em> - returns all known states for listed parcels [HTTP GET - sync response]</li>
|
73
|
-
<li><em>getParcelsPrinting</em> - returns PDF with address labels/stickers for listed parcels [HTTP GET - sync response]</li>
|
74
|
-
</ul>
|
75
|
-
|
76
|
-
<h2>Installation</h2>
|
77
|
-
|
78
|
-
<h3>1) Registration at Czech Post (CP)</h3>
|
79
|
-
|
80
|
-
<p>The longterm and hardest part.</p>
|
81
|
-
|
82
|
-
<ul>
|
83
|
-
<li>Connect Czech Post representative and make a contract with them.</li>
|
84
|
-
<li>Ask them for ALL documentation!(I have to ask 3 times to collect enough of it). They like to put files into DOCX file, so click on file icons!</li>
|
85
|
-
<li>You have to obtain "komerční certifikát PostSignum".</li>
|
86
|
-
</ul>
|
87
|
-
|
88
|
-
<p>Instructions (in czech) are in <a href="./documents/Postup_pro_zaveden%C3%AD_API_slu%C5%BEeb_%C4%8Cesk%C3%A9_po%C5%A1ty.docx"><code>documents/Postup_pro_zavedení_API_služeb_České_pošty.docx</code></a></p>
|
89
|
-
|
90
|
-
<h3>2) Preparations on PodaniOnline app</h3>
|
91
|
-
|
92
|
-
<p>1) Sign in to <a href="https://www.postaonline.cz/rap/prihlaseni">PostaOnline</a>
|
93
|
-
2) Go to <a href="https://www.postaonline.cz/klientskazona?p_p_id=clientzone_WAR_clientZoneportlet&p_p_lifecycle=0&_clientzone_WAR_clientZoneportlet_action=showPol&_clientzone_WAR_clientZoneportlet_implicitModel=true">"Podání Online"</a>
|
94
|
-
3) When You are in, select tab <strong>Nastavení</strong> and menu <strong>Podací místa</strong>
|
95
|
-
4) Add <em>Podací místo</em> and write down it's ID (will be used in <code>sending_post_office_location_number</code>)
|
96
|
-
5) Switch tab to <strong>Zásilky</strong> and go to menu <strong>Zásilky => Přednastavení údajů</strong>
|
97
|
-
6) Write down value(s) in <em>Výběr technologického čísla</em> (it will be used as <code>customer_id</code>).</p>
|
98
|
-
|
99
|
-
<h3>3) Gem installation</h3>
|
100
|
-
|
101
|
-
<p>Add this line to your application's Gemfile:</p>
|
102
|
-
|
103
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>czech_post_b2b_client</span><span class='tstring_end'>'</span></span>
|
104
|
-
</code></pre>
|
105
|
-
|
106
|
-
<p>And then execute:</p>
|
107
|
-
|
108
|
-
<pre class="code ruby"><code class="ruby">$ bundle
|
109
|
-
</code></pre>
|
110
|
-
|
111
|
-
<p>Or install it yourself as:</p>
|
112
|
-
|
113
|
-
<pre class="code ruby"><code class="ruby">$ gem install czech_post_b2b_client
|
114
|
-
</code></pre>
|
115
|
-
|
116
|
-
<h3>4) Setting up gem</h3>
|
117
|
-
|
118
|
-
<p>Set up your <code>contract_id</code>, <code>customer_id</code> (both from CP signed contract), <code>certificate_path</code>, <code>private_key_path</code> and <code>private_key_password</code> in configuration:</p>
|
119
|
-
|
120
|
-
<pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="CzechPostB2bClient.html" title="CzechPostB2bClient (module)">CzechPostB2bClient</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'><span class='object_link'><a href="CzechPostB2bClient.html#configure-class_method" title="CzechPostB2bClient.configure (method)">configure</a></span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
121
|
-
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_contract_id'>contract_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>contract_id</span><span class='tstring_end'>'</span></span>
|
122
|
-
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_customer_id'>customer_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>customer_id</span><span class='tstring_end'>'</span></span>
|
123
|
-
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_certificate_path'>certificate_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>full_path/to/your/postsignum_certificate.pem</span><span class='tstring_end'>'</span></span>
|
124
|
-
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_private_key_path'>private_key_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>full_path/to/your/postsignum_private.key</span><span class='tstring_end'>'</span></span>
|
125
|
-
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_private_key_password'>private_key_password</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>your_password or nil</span><span class='tstring_end'>'</span></span>
|
126
|
-
|
127
|
-
<span class='comment'># this actually do not work, I have to use `sending_post_office_location_number`. But it is REQUIRED!
|
128
|
-
</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_sending_post_office_code'>sending_post_office_code</span> <span class='op'>=</span> <span class='int'>12_345</span> <span class='comment'># PSC of post office where parcels will be physically delivered and submitted
|
129
|
-
</span>
|
130
|
-
<span class='comment'># and You can override defaults
|
131
|
-
</span> <span class='comment'># config.sending_post_office_location_number => 1
|
132
|
-
</span> <span class='comment'># config.namespaces #XML namespaces
|
133
|
-
</span> <span class='comment'># config.language => :cs # other languages are not supported now
|
134
|
-
</span> <span class='comment'># config.logger => ::Rails.logger or ::Logger.new(STDOUT),
|
135
|
-
</span> <span class='comment'># config.b2b_api_base_uri => 'https://b2b.postaonline.cz/services/POLService/v1'
|
136
|
-
</span><span class='kw'>end</span>
|
137
|
-
</code></pre>
|
138
|
-
|
139
|
-
<ul>
|
140
|
-
<li><code>contract_id</code> is <em>"ID CČK"</em> (can be found in contract; eg.: <em>"2511327004"</em>)</li>
|
141
|
-
<li><code>customer_id</code> is <em>"Technologické číslo"</em> (can be found in contract; eg.: <em>"U123"</em> or <em>"L03022"</em>; also is visible at <a href="https://www.postaonline.cz/podanionline/PrednastaveniUdajuZasilky.action">PodaníOnline</a></li>
|
142
|
-
</ul>
|
143
|
-
|
144
|
-
<p>Because PostSignum Certificate Authority is not trusted by default, correct certificate chain is in <code>certs/</code> folder. If You have problem with them, create a issue here. Maybe they are outdated now.</p>
|
145
|
-
|
146
|
-
<h2>Usage</h2>
|
147
|
-
|
148
|
-
<p><strong>You have to know which parcel type (according to CP) you sending!</strong> Eg. 'BA' or 'RR'. See <a href="./documents/parcel_types.md"><code>documents/parcel_types.md</code></a>.</p>
|
149
|
-
|
150
|
-
<p><strong>And what services You will use for each parcel</strong>, see <a href="./documents/services_list.md"><code>documents/services_list.md</code></a> and <a href="./documents/parcels_type_and_services_restrictions.md"><code>documents/parcels_type_and_services_restrictions.md</code></a>.</p>
|
151
|
-
|
152
|
-
<p>Hashes used is service calls bellow:</p>
|
153
|
-
|
154
|
-
<pre class="code ruby"><code class="ruby">short_sender_data = { address: {
|
155
|
-
company_name: 'Oriflame',
|
156
|
-
addition_to_name: 'perfume', # optional
|
157
|
-
street: 'V olšinách',
|
158
|
-
house_number: '16',
|
159
|
-
city_part: 'Strašnice',
|
160
|
-
city: 'Praha',
|
161
|
-
post_code: 10_000,
|
162
|
-
},
|
163
|
-
mobile_phone: '+420777888999',
|
164
|
-
email: 'rehor.jan@cpost.cz' }
|
165
|
-
sending_data = { contract_id: configuration.contract_id,
|
166
|
-
parcels_sending_date: Date.today,
|
167
|
-
sending_post_office_location_number: 1,
|
168
|
-
sender: short_sender_data,
|
169
|
-
cash_on_delivery: {
|
170
|
-
address: short_sender_data[:address]
|
171
|
-
bank_account: '123456-1234567890/1234'
|
172
|
-
} }
|
173
|
-
|
174
|
-
short_addressee_data = { address: {
|
175
|
-
first_name: 'Petr',
|
176
|
-
last_name: 'Foton',
|
177
|
-
street: 'Fischerova',
|
178
|
-
house_number: '686',
|
179
|
-
sequence_number: '32',
|
180
|
-
city_part: 'Nové Sady',
|
181
|
-
city: 'Olomouc',
|
182
|
-
post_code: 77_900
|
183
|
-
},
|
184
|
-
email: 'foton@github.com',
|
185
|
-
mobile_phone: '+420777888999' }
|
186
|
-
|
187
|
-
parcels = [
|
188
|
-
{
|
189
|
-
addressee: short_addressee_data,
|
190
|
-
params: { parcel_id: 'package_1of2',
|
191
|
-
parcel_code_prefix: 'BA',
|
192
|
-
weight_in_kg: 1.0,
|
193
|
-
parcel_order: 1,
|
194
|
-
parcels_count: 2 },
|
195
|
-
services: [70, 7, 'S']
|
196
|
-
},
|
197
|
-
{
|
198
|
-
addressee: short_addressee_data,
|
199
|
-
params: { parcel_id: 'package_2of2',
|
200
|
-
parcel_code_prefix: 'BA',
|
201
|
-
weight_in_kg: 1.6,
|
202
|
-
parcel_order: 2,
|
203
|
-
parcels_count: 2 },
|
204
|
-
services: [70,'S']
|
205
|
-
},
|
206
|
-
{
|
207
|
-
addressee: short_addressee_data,
|
208
|
-
params: { parcel_id: 'package_3',
|
209
|
-
parcel_code_prefix: 'BA',
|
210
|
-
weight_in_kg: 1.9 },
|
211
|
-
services: [7,'M']
|
212
|
-
}
|
213
|
-
]
|
214
|
-
</code></pre>
|
215
|
-
|
216
|
-
<p>1 ) Pack your parcel(s)</p>
|
217
|
-
|
218
|
-
<p>2 ) If you have many parcels and treats them as bulk, use ASYNC registration process (steps 3a - 7a)[15 000 calls per day allowed]. If You want to register parcel and get parcel_code and address sheet immediatelly (3 sec), use SYNC process (step 3b)[1 000 calls per day allowed]</p>
|
219
|
-
|
220
|
-
<p>3a) Call <code>ParcelsAsyncSender</code>, this will setup <code>transmission_id</code> and expected time to ask for results.</p>
|
221
|
-
|
222
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_psender'>psender</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="CzechPostB2bClient.html" title="CzechPostB2bClient (module)">CzechPostB2bClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services.html" title="CzechPostB2bClient::Services (module)">Services</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services/ParcelsAsyncSender.html" title="CzechPostB2bClient::Services::ParcelsAsyncSender (class)">ParcelsAsyncSender</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'><span class='object_link'><a href="SteppedService/Base.html#call-class_method" title="SteppedService::Base.call (method)">call</a></span></span><span class='lparen'>(</span><span class='label'>sending_data:</span> <span class='id identifier rubyid_sending_data'>sending_data</span><span class='comma'>,</span> <span class='label'>parcels:</span> <span class='id identifier rubyid_parcels'>parcels</span><span class='rparen'>)</span>
|
223
|
-
|
224
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_psender'>psender</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span>
|
225
|
-
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_psender'>psender</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
226
|
-
<span class='id identifier rubyid_processing_end_time_utc'>processing_end_time_utc</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_processing_end_expected_at'>processing_end_expected_at</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='int'>60</span> <span class='op'>*</span><span class='int'>60</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_utc'>utc</span> <span class='comment'># API returns time in CET but marked as UTC
|
227
|
-
</span> <span class='id identifier rubyid_transaction_id'>transaction_id</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_transaction_id'>transaction_id</span>
|
228
|
-
<span class='kw'>else</span>
|
229
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_psender'>psender</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_full_messages'>full_messages</span>
|
230
|
-
<span class='kw'>end</span>
|
231
|
-
</code></pre>
|
232
|
-
|
233
|
-
<p>For now, <code>parcels</code> is array of complicated hashes; each parcel must have <code>parcel_id</code> key (your ID of parcel).</p>
|
234
|
-
|
235
|
-
<p>4a) When such expected time pass, ask for results by calling <code>ParcelsSendProcessUpdater</code>. You can get error <code>Processing is not yet finished</code> or hash based on <code>parcel_id</code> keys.</p>
|
236
|
-
|
237
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_pudater'>pudater</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="CzechPostB2bClient.html" title="CzechPostB2bClient (module)">CzechPostB2bClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services.html" title="CzechPostB2bClient::Services (module)">Services</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services/ParcelsSendProcessUpdater.html" title="CzechPostB2bClient::Services::ParcelsSendProcessUpdater (class)">ParcelsSendProcessUpdater</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'><span class='object_link'><a href="SteppedService/Base.html#call-class_method" title="SteppedService::Base.call (method)">call</a></span></span><span class='lparen'>(</span><span class='label'>transmission_id:</span> <span class='id identifier rubyid_transmission_id'>transmission_id</span><span class='rparen'>)</span>
|
238
|
-
|
239
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_pupdater'>pupdater</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span>
|
240
|
-
<span class='id identifier rubyid_update_my_parcels_with'>update_my_parcels_with</span><span class='lparen'>(</span><span class='id identifier rubyid_pupdater'>pupdater</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span> <span class='comment'># => { 'parcel_1of2' => { parcel_code: 'BA12354678', states: [{ code: 1, text: 'OK' }]},
|
241
|
-
</span> <span class='comment'># 'parcel_2of2' => { parcel_code: 'BA12354679', states: [{ code: 1, text: 'OK' }]},
|
242
|
-
</span> <span class='comment'># 'parcel_3' => { parcel_code: 'BA12354680', states: [{ code: 1, text: 'OK' }]}
|
243
|
-
</span><span class='kw'>else</span>
|
244
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_psender'>psender</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_full_messages'>full_messages</span> <span class='comment'># => "response_state: ResponseCode[19 BATCH_INVALID] V dávce se vyskytují chybné záznamy"
|
245
|
-
</span> <span class='comment'># "parcels: Parcel[parcel_2of2] => ResponseCode[104 INVALID_WEIGHT] Hmotnost mimo povolený rozsah"
|
246
|
-
</span> <span class='comment'># "parcels: Parcel[parcel_2of2] => ResponseCode[261 MISSING_SIZE_CATEGORY] Neuvedena rozměrová kategorie zásilky"
|
247
|
-
</span> <span class='comment'># "parcels: Parcel[parcel_3] => ResponseCode[310 INVALID_PREFIX] Neplatný typ zásilky"
|
248
|
-
</span><span class='kw'>end</span>
|
249
|
-
</code></pre>
|
250
|
-
|
251
|
-
<p><code>parcel_code</code> is CzechPost Tracking number of parcel and is used in following calls.</p>
|
252
|
-
|
253
|
-
<p>5a) Print address sheets of parcel(s) by calling <code>AddressSheetsGenerator</code>.
|
254
|
-
See <a href="./lib/czech_post_b2b_client/printing_templates.rb">template_classes</a> for available templates.</p>
|
255
|
-
|
256
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_parcel_codes'>parcel_codes</span> <span class='op'>=</span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>RA123456789</span><span class='words_sep'> </span><span class='tstring_content'>RR123456789F</span><span class='words_sep'> </span><span class='tstring_content'>RR123456789G</span><span class='words_sep'>]</span> <span class='comment'># beware of parcel_id!
|
257
|
-
</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
258
|
-
<span class='label'>customer_id:</span> <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_customer_id'>customer_id</span><span class='comma'>,</span> <span class='comment'># required
|
259
|
-
</span> <span class='label'>contract_number:</span> <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_contract_id'>contract_id</span><span class='comma'>,</span> <span class='comment'># not required
|
260
|
-
</span> <span class='label'>template_id:</span> <span class='int'>24</span><span class='comma'>,</span> <span class='comment'># 'obalka 3 - B4' #
|
261
|
-
</span> <span class='label'>margin_in_mm:</span> <span class='lbrace'>{</span> <span class='label'>top:</span> <span class='int'>5</span><span class='comma'>,</span> <span class='label'>left:</span> <span class='int'>3</span> <span class='rbrace'>}</span> <span class='comment'># required
|
262
|
-
</span> <span class='rbrace'>}</span>
|
263
|
-
|
264
|
-
<span class='id identifier rubyid_adrprinter'>adrprinter</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="CzechPostB2bClient.html" title="CzechPostB2bClient (module)">CzechPostB2bClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services.html" title="CzechPostB2bClient::Services (module)">Services</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services/AddressSheetsGenerator.html" title="CzechPostB2bClient::Services::AddressSheetsGenerator (class)">AddressSheetsGenerator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'><span class='object_link'><a href="SteppedService/Base.html#call-class_method" title="SteppedService::Base.call (method)">call</a></span></span><span class='lparen'>(</span><span class='label'>parcel_codes:</span> <span class='id identifier rubyid_parcel_codes'>parcel_codes</span><span class='comma'>,</span> <span class='label'>options:</span> <span class='id identifier rubyid_options'>options</span> <span class='rparen'>)</span>
|
265
|
-
|
266
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_adrprinter'>adrprinter</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span>
|
267
|
-
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>adrsheet.pdf</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_adrprinter'>adrprinter</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_pdf_content'>pdf_content</span><span class='rparen'>)</span>
|
268
|
-
<span class='kw'>else</span>
|
269
|
-
<span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span><span class='id identifier rubyid_adrprinter'>adrprinter</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_full_messages'>full_messages</span><span class='rparen'>)</span>
|
270
|
-
<span class='kw'>end</span>
|
271
|
-
</code></pre>
|
272
|
-
|
273
|
-
<p>6a) Repeat steps 1-4 until You decide to deliver packages to post office.</p>
|
274
|
-
|
275
|
-
<p>7a) Close your parcels submission with call <code>ParcelsSubmissionCloser.call(sending_data: sender_data)</code>.</p>
|
276
|
-
|
277
|
-
<p>3b) For immediate (one) parcel registering call <code>ParcelsSyncSender</code>. You can optionally request address sheet pdf in response (see step 5a for info)</p>
|
278
|
-
|
279
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_s_data'>s_data</span> <span class='op'>=</span> <span class='id identifier rubyid_sending_data'>sending_data</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='label'>print_params:</span> <span class='lbrace'>{</span> <span class='label'>template_id:</span> <span class='int'>40</span><span class='comma'>,</span> <span class='label'>margin_in_mm:</span> <span class='lbrace'>{</span> <span class='label'>top:</span> <span class='int'>1</span><span class='comma'>,</span> <span class='label'>left:</span> <span class='int'>1</span> <span class='rbrace'>}</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
280
|
-
<span class='id identifier rubyid_psender'>psender</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="CzechPostB2bClient.html" title="CzechPostB2bClient (module)">CzechPostB2bClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services.html" title="CzechPostB2bClient::Services (module)">Services</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services/ParcelsSyncSender.html" title="CzechPostB2bClient::Services::ParcelsSyncSender (class)">ParcelsSyncSender</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'><span class='object_link'><a href="SteppedService/Base.html#call-class_method" title="SteppedService::Base.call (method)">call</a></span></span><span class='lparen'>(</span><span class='label'>sending_data:</span> <span class='id identifier rubyid_s_data'>s_data</span><span class='comma'>,</span> <span class='label'>parcels:</span> <span class='lbracket'>[</span><span class='id identifier rubyid_parcels'>parcels</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
281
|
-
|
282
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_psender'>psender</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span>
|
283
|
-
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_psender'>psender</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
284
|
-
<span class='id identifier rubyid_update_my_parcels_with'>update_my_parcels_with</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span> <span class='comment'># => { 'parcel_1of2' => { parcel_code: 'BA12354678', states: [{ code: 1, text: 'OK' }]},
|
285
|
-
</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>adrsheet.pdf</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_pdf_content'>pdf_content</span><span class='rparen'>)</span>
|
286
|
-
<span class='kw'>else</span>
|
287
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_psender'>psender</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_full_messages'>full_messages</span>
|
288
|
-
<span class='kw'>end</span>
|
289
|
-
</code></pre>
|
290
|
-
|
291
|
-
<p><code>parcel_code</code> is CzechPost Tracking number of parcel and is used in following calls.</p>
|
292
|
-
|
293
|
-
<p>8_) <em>They will await You at post office with warm welcome (hopefully). Parcels which are not delivered within 60 days are removed from CzechPost systems for free :-)</em></p>
|
294
|
-
|
295
|
-
<p>9_) You can check current status of delivering with <code>DeliveringInspector</code>, which will return hash based on <code>parcel_code</code> keys.</p>
|
296
|
-
|
297
|
-
<pre class="code ruby"><code class="ruby">delivery_boy = CzechPostB2bClient::Services::DeliveringInspector.call(parcel_codes: parcel_codes)
|
298
|
-
|
299
|
-
if delivery_boy.success?
|
300
|
-
update_my_parcels_delivery_status_with(delivery_boy.result)
|
301
|
-
# result is like:
|
302
|
-
# { 'RA12345687' => { current_state: { id: '91',
|
303
|
-
date: Date.parse('2015-09-04'),
|
304
|
-
text: 'Dodání zásilky.',
|
305
|
-
post_code: '25756',
|
306
|
-
post_name: 'Neveklov'},
|
307
|
-
deposited_until: Date.new(2015, 9, 2),
|
308
|
-
deposited_for_days: 15,
|
309
|
-
all_states: [
|
310
|
-
{ id: '21', date: Date.parse('2015-09-02'), text: 'Podání zásilky.', post_code: '26701', post_name: 'Králův Dvůr u Berouna' },
|
311
|
-
{ id: '-F', date: Date.parse('2015-09-03'), text: 'Vstup zásilky na SPU.', post_code: '22200', post_name: 'SPU Praha 022' },
|
312
|
-
{ id: '-I', date: Date.parse('2015-09-03'), text: 'Výstup zásilky z SPU.', post_code: '22200', post_name: 'SPU Praha 022' },
|
313
|
-
{ id: '-B', date: Date.parse('2015-09-03'), text: 'Přeprava zásilky k dodací poště.', post_code: nil, post_name: nil },
|
314
|
-
{ id: '51', date: Date.parse('2015-09-04'), text: 'Příprava zásilky k doručení.', post_code: '25607', post_name: 'Depo Benešov 70' },
|
315
|
-
{ id: '53', date: Date.parse('2015-09-04'), text: 'Doručování zásilky.', post_code: '25756', post_name: 'Neveklov' },
|
316
|
-
{ id: '91', date: Date.parse('2015-09-04'), text: 'Dodání zásilky.', post_code: '25756', post_name: 'Neveklov' }
|
317
|
-
]},
|
318
|
-
'BA56487125' => {...}
|
319
|
-
}
|
320
|
-
else
|
321
|
-
puts(delivery_boy.errors.full_messages)
|
322
|
-
end
|
323
|
-
</code></pre>
|
324
|
-
|
325
|
-
<p>10_) And You can always ask for statistics!</p>
|
326
|
-
|
327
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_tps'>tps</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="CzechPostB2bClient.html" title="CzechPostB2bClient (module)">CzechPostB2bClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services.html" title="CzechPostB2bClient::Services (module)">Services</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CzechPostB2bClient/Services/TimePeriodStatisticator.html" title="CzechPostB2bClient::Services::TimePeriodStatisticator (class)">TimePeriodStatisticator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'><span class='object_link'><a href="SteppedService/Base.html#call-class_method" title="SteppedService::Base.call (method)">call</a></span></span><span class='lparen'>(</span><span class='label'>from_date:</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span> <span class='op'>-</span> <span class='int'>5</span><span class='comma'>,</span> <span class='label'>to_date:</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='rparen'>)</span>
|
328
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_tps'>tps</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span>
|
329
|
-
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_tps'>tps</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
330
|
-
<span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_requests'>requests</span><span class='period'>.</span><span class='id identifier rubyid_total'>total</span> <span class='comment'># => 26,
|
331
|
-
</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_requests'>requests</span><span class='period'>.</span><span class='id identifier rubyid_with_errors'>with_errors</span> <span class='comment'># => 16
|
332
|
-
</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_requests'>requests</span><span class='period'>.</span><span class='id identifier rubyid_successful'>successful</span> <span class='comment'># => 10
|
333
|
-
</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_imported_parcels'>imported_parcels</span> <span class='comment'># => 3
|
334
|
-
</span><span class='kw'>else</span>
|
335
|
-
<span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span><span class='id identifier rubyid_tps'>tps</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_full_messages'>full_messages</span><span class='rparen'>)</span>
|
336
|
-
<span class='kw'>end</span>
|
337
|
-
</code></pre>
|
338
|
-
|
339
|
-
<h3>Example usage</h3>
|
340
|
-
|
341
|
-
<p>See <code>test/integration_test.rb</code> for almost production usage. HTTP calls to B2B services are blocked and responses from them are stubbed.</p>
|
342
|
-
|
343
|
-
<p>You can quickly check you setup by altering config and run <code>ruby try_api_calls.rb</code> see <a href="./examples/try_api_calls.rb"><code>try_api_calls.rb</code></a>.</p>
|
344
|
-
|
345
|
-
<h2>Troubleshooting</h2>
|
346
|
-
|
347
|
-
<p>1) Read all stuff in <a href="./documents/"><code>./documents</code></a> and <a href="./doc/index.html">Yard docs</a>, maybe it helps.
|
348
|
-
2) If You get "handshake protocol failed" You do not have correct setup for certificates. If You get any xml response (see logger in debug mode) certificates are ok.
|
349
|
-
You can always try <code>TimePeriodStatisticator</code> for that check, it do not need any "before" actions.
|
350
|
-
3) Error <code>UNAUTHORIZED_ROLE_ACCESS</code> means wrong <code>customer_id</code> or You are not yet registered in "PodáníOnline"
|
351
|
-
4) Error <code>11: INVALID_LOCATION</code> was occuring when only <code>sending_post_office_code</code> was used. Try to use <code>sending_post_office_location_number</code>.
|
352
|
-
5) And last tip <code>261 MISSING_SIZE_CATEGORY</code> -> add correct "size service" to services (eg: 'S', 'M')
|
353
|
-
6) Compare resulting request XML with examples in <code>test/request_builders</code></p>
|
354
|
-
|
355
|
-
<h2>Development</h2>
|
356
|
-
|
357
|
-
<p>After checking out the repo, run <code>bin/setup</code> to install dependencies. Then, run <code>rake test</code> to run the tests. You can also run <code>bin/console</code> for an interactive prompt that will allow you to experiment.</p>
|
358
|
-
|
359
|
-
<p>To install this gem onto your local machine, run <code>bundle exec rake install</code>. To release a new version, update the version number in <code>lib/czech_post_b2b_client/version.rb</code>, and then run <code>bundle exec rake release</code>, which will create a git tag for the version, push git commits and tags, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.</p>
|
360
|
-
|
361
|
-
<h2>Contributing</h2>
|
362
|
-
|
363
|
-
<p>Bug reports and pull requests are welcome on GitHub at <a href="https://github.com/%5BUSERNAME%5D/czech_post_b2b_client">https://github.com/[USERNAME]/czech_post_b2b_client</a>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the <a href="http://contributor-covenant.org">Contributor Covenant</a> code of conduct.</p>
|
364
|
-
|
365
|
-
<h2>License</h2>
|
366
|
-
|
367
|
-
<p>The gem is available as open source under the terms of the <a href="https://opensource.org/licenses/MIT">MIT License</a>.</p>
|
368
|
-
|
369
|
-
<h2>Code of Conduct</h2>
|
370
|
-
|
371
|
-
<p>Everyone interacting in the CzechPostB2bClient project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the <a href="https://github.com/%5BUSERNAME%5D/czech_post_b2b_client/blob/master/CODE_OF_CONDUCT.md">code of conduct</a>.</p>
|
372
|
-
</div></div>
|
373
|
-
|
374
|
-
<div id="footer">
|
375
|
-
Generated on Thu May 28 17:06:47 2020 by
|
376
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
377
|
-
0.9.24 (ruby-2.4.1).
|
378
|
-
</div>
|
379
|
-
|
380
|
-
</div>
|
381
|
-
</body>
|
382
|
-
</html>
|
data/doc/file_list.html
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5
|
-
<meta charset="utf-8" />
|
6
|
-
|
7
|
-
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" />
|
8
|
-
|
9
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
-
|
17
|
-
|
18
|
-
<title>File List</title>
|
19
|
-
<base id="base_target" target="_parent" />
|
20
|
-
</head>
|
21
|
-
<body>
|
22
|
-
<div id="content">
|
23
|
-
<div class="fixed_header">
|
24
|
-
<h1 id="full_list_header">File List</h1>
|
25
|
-
<div id="full_list_nav">
|
26
|
-
|
27
|
-
<span><a target="_self" href="class_list.html">
|
28
|
-
Classes
|
29
|
-
</a></span>
|
30
|
-
|
31
|
-
<span><a target="_self" href="method_list.html">
|
32
|
-
Methods
|
33
|
-
</a></span>
|
34
|
-
|
35
|
-
<span><a target="_self" href="file_list.html">
|
36
|
-
Files
|
37
|
-
</a></span>
|
38
|
-
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="search">Search: <input type="text" /></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<ul id="full_list" class="file">
|
45
|
-
|
46
|
-
|
47
|
-
<li id="object_README" class="odd">
|
48
|
-
<div class="item"><span class="object_link"><a href="index.html" title="README">README</a></span></div>
|
49
|
-
</li>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</ul>
|
54
|
-
</div>
|
55
|
-
</body>
|
56
|
-
</html>
|
data/doc/frames.html
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>Documentation by YARD 0.9.24</title>
|
6
|
-
</head>
|
7
|
-
<script type="text/javascript">
|
8
|
-
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
9
|
-
var name = match ? match[1] : 'index.html';
|
10
|
-
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
11
|
-
window.top.location = name;
|
12
|
-
</script>
|
13
|
-
<noscript>
|
14
|
-
<h1>Oops!</h1>
|
15
|
-
<h2>YARD requires JavaScript!</h2>
|
16
|
-
</noscript>
|
17
|
-
</html>
|