czech_post_b2b_client 1.2.5 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +7 -0
- data/lib/czech_post_b2b_client/b2b_errors.rb +4 -2
- data/lib/czech_post_b2b_client/configuration.rb +1 -1
- data/lib/czech_post_b2b_client/post_services.rb +3 -2
- data/lib/czech_post_b2b_client/printing_templates.rb +0 -4
- data/lib/czech_post_b2b_client/request_builders/base_builder.rb +1 -0
- data/lib/czech_post_b2b_client/request_builders/get_parcel_state_builder.rb +1 -0
- data/lib/czech_post_b2b_client/request_builders/get_parcels_printing_builder.rb +1 -0
- data/lib/czech_post_b2b_client/request_builders/get_result_parcels_builder.rb +1 -0
- data/lib/czech_post_b2b_client/request_builders/get_stats_builder.rb +1 -0
- data/lib/czech_post_b2b_client/request_builders/parcel_service_sync_builder.rb +22 -18
- data/lib/czech_post_b2b_client/request_builders/send_parcels_builder.rb +6 -7
- data/lib/czech_post_b2b_client/response_codes.rb +43 -0
- data/lib/czech_post_b2b_client/response_parsers/base_parser.rb +14 -13
- data/lib/czech_post_b2b_client/response_parsers/get_parcel_state_parser.rb +1 -1
- data/lib/czech_post_b2b_client/response_parsers/get_parcels_printing_parser.rb +9 -9
- data/lib/czech_post_b2b_client/response_parsers/get_result_parcels_parser.rb +2 -2
- data/lib/czech_post_b2b_client/response_parsers/get_stats_parser.rb +5 -8
- data/lib/czech_post_b2b_client/response_parsers/parcel_service_sync_parser.rb +8 -5
- data/lib/czech_post_b2b_client/response_parsers/send_parcels_parser.rb +2 -2
- data/lib/czech_post_b2b_client/services/address_sheets_generator.rb +6 -3
- data/lib/czech_post_b2b_client/services/api_caller.rb +7 -4
- data/lib/czech_post_b2b_client/services/delivering_inspector.rb +1 -0
- data/lib/czech_post_b2b_client/services/orchestrator.rb +1 -1
- data/lib/czech_post_b2b_client/services/parcels_async_sender.rb +5 -2
- data/lib/czech_post_b2b_client/services/parcels_send_process_updater.rb +8 -3
- data/lib/czech_post_b2b_client/services/parcels_submission_closer.rb +1 -1
- data/lib/czech_post_b2b_client/services/parcels_sync_sender.rb +9 -4
- data/lib/czech_post_b2b_client/services/time_period_statisticator.rb +10 -4
- data/lib/czech_post_b2b_client/services/xsds_downloader.rb +3 -1
- data/lib/czech_post_b2b_client/version.rb +1 -1
- metadata +5 -462
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3f8150daa70de566a1a90f4287c3bb29f1547e9269409e573b6e7521a446df5
|
4
|
+
data.tar.gz: 23a3271bcf33470fc45e85d4e1db58ee9ea192a864fc0266c887acc9a2d6b56b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbd09471e42a1af7f0f4bb7e8c6c34309e083dd224ad392ae11a84ec15c1aebedc178782f944a51d5be678a455daa769171dc02e2bf4d8cf50d18d0f98c9c643
|
7
|
+
data.tar.gz: 84bdfde9c41917ffa85c0f191123aca5a6d8b6373907c4969d3bf38c65b8782e6d4466e912a3a0db48c258cf089ca8ca74ea7d5b27f421b5f0ff7ae5c6615b85
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
All changes to the gem are documented here.
|
4
4
|
|
5
|
+
## [1.2.8] - 2022-03-22
|
6
|
+
- added new response codes
|
7
|
+
|
8
|
+
## [1.2.6] - 2020-10-27
|
9
|
+
|
10
|
+
- fixed passing all errors from `parcelsServiceSync` response.
|
11
|
+
|
5
12
|
## [1.2.5] - 2020-10-06
|
6
13
|
|
7
14
|
- `errorDescription` from `B2BError` response is now merged into error message.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
4
|
|
5
5
|
# response <B2BFaultMessage>
|
6
6
|
# Chybový kód | Detail chyby | Popis
|
@@ -36,10 +36,12 @@ module CzechPostB2bClient
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def initialize(details = '')
|
39
|
+
super
|
39
40
|
self.details = details
|
40
41
|
end
|
41
42
|
|
42
43
|
attr_accessor :details
|
44
|
+
|
43
45
|
def code
|
44
46
|
self.class.code
|
45
47
|
end
|
@@ -108,4 +110,4 @@ module CzechPostB2bClient
|
|
108
110
|
end
|
109
111
|
end
|
110
112
|
|
111
|
-
# rubocop:enable
|
113
|
+
# rubocop:enable Layout/LineLength
|
@@ -32,7 +32,7 @@ module CzechPostB2bClient
|
|
32
32
|
}
|
33
33
|
|
34
34
|
@language = :cs
|
35
|
-
@logger = defined?(Rails) ? ::Rails.logger : ::Logger.new(
|
35
|
+
@logger = defined?(Rails) ? ::Rails.logger : ::Logger.new($stdout)
|
36
36
|
@b2b_api_base_uri = 'https://b2b.postaonline.cz/services/POLService/v1'
|
37
37
|
@sending_post_office_location_number = 1
|
38
38
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable Layout/LineLength
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
4
|
|
5
5
|
# Hopefully complete list of services which can be assigned to parcels
|
6
6
|
# It is hard to get list of current services and even harder to find out what does they mean (so You pick right name in English).
|
@@ -84,6 +84,7 @@ module CzechPostB2bClient
|
|
84
84
|
@description = 'Cenný obsah'
|
85
85
|
# ; Balík Do ruky (DR, DV, DE) ; Balík Na poštu (NP, NV) |
|
86
86
|
end
|
87
|
+
|
87
88
|
class EconomyDelivery < Base
|
88
89
|
@code = '1K'
|
89
90
|
@abbreviation = 'EK'
|
@@ -774,4 +775,4 @@ module CzechPostB2bClient
|
|
774
775
|
end
|
775
776
|
end
|
776
777
|
|
777
|
-
# rubocop:enable Layout/LineLength
|
778
|
+
# rubocop:enable Layout/LineLength
|
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable Style/AsciiComments
|
4
|
-
|
5
3
|
# Available printing templates, which can be used in AdressSheetsGenerator `options[:template_id]`
|
6
4
|
#
|
7
5
|
# Do not miss `CzechPostB2bClient::PrintingTemplates.all_classes` method,
|
@@ -261,5 +259,3 @@ module CzechPostB2bClient
|
|
261
259
|
end
|
262
260
|
end
|
263
261
|
end
|
264
|
-
|
265
|
-
# rubocop:enable Style/AsciiComments
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable Layout/LineLength
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
4
|
|
5
5
|
module CzechPostB2bClient
|
6
6
|
module RequestBuilders
|
@@ -8,6 +8,7 @@ module CzechPostB2bClient
|
|
8
8
|
attr_reader :common_data, :parcel
|
9
9
|
|
10
10
|
def initialize(common_data:, parcel:, request_id: 1)
|
11
|
+
super()
|
11
12
|
@common_data = common_data
|
12
13
|
@parcel = parcel
|
13
14
|
@request_id = request_id
|
@@ -61,36 +62,38 @@ module CzechPostB2bClient
|
|
61
62
|
errors.add(:parcel, "Missing value for key { :#{key_chain.join(' => :')} } for parcel (parcel_id: '#{parcel_id}')!")
|
62
63
|
end
|
63
64
|
end
|
65
|
+
|
66
|
+
# TODO: check custom goods if present
|
64
67
|
end
|
65
68
|
|
66
69
|
def parcel_service_sync
|
67
70
|
new_element('ns2:parcelServiceSyncRequest').tap do |ps_sync_request|
|
68
71
|
add_element_to(ps_sync_request, do_parcel_header) # REQUIRED
|
69
|
-
add_element_to(ps_sync_request, do_parcel_data) #
|
72
|
+
add_element_to(ps_sync_request, do_parcel_data) # REQUIRED
|
70
73
|
end
|
71
74
|
end
|
72
75
|
|
73
76
|
def do_parcel_header # rubocop:disable Metrics/AbcSize
|
74
77
|
new_element('ns2:doPOLSyncParcelHeader').tap do |parcel_header|
|
75
78
|
add_element_to(parcel_header, 'ns2:transmissionDate', value: common_data[:parcels_sending_date].strftime('%d.%m.%Y')) # Predpokladane datum podani (format DD.MM.YYYY !)
|
76
|
-
add_element_to(parcel_header, 'ns2:customerID', value: common_data[:customer_id]) # Technologicke cislo podavatele
|
79
|
+
add_element_to(parcel_header, 'ns2:customerID', value: common_data[:customer_id]) # Nepovinne: Technologicke cislo podavatele
|
77
80
|
add_element_to(parcel_header, 'ns2:postCode', value: common_data[:sending_post_office_code]) # PSC podaci posty
|
78
81
|
add_element_to(parcel_header, 'ns2:contractNumber', value: common_data[:contract_number]) # Nepovinne: Cislo zakazky
|
79
82
|
add_element_to(parcel_header, 'ns2:frankingNumber', value: common_data[:franking_machine_number]) # Nepovinne: Cislo vyplatniho stroje
|
80
83
|
add_element_to(parcel_header, 'ns2:transmissionEnd', value: common_data[:close_requests_batch]) # Nepovinna, default true: Indikace zda uzavrit podani, nebo budou jeste nasledovat dalsi requesty pro stejne podani
|
81
84
|
add_element_to(parcel_header, 'ns2:locationNumber', value: common_data[:sending_post_office_location_number]) # Nepovinne: cislo podaciho mista (z nastaveni v Podani Online)
|
82
85
|
add_element_to(parcel_header, 'ns2:senderCustCardNum', value: sender_data[:custom_card_number]) # Nepovinne: cislo zakaznicke karty odesilatele
|
83
|
-
add_element_to(parcel_header, print_params)
|
86
|
+
add_element_to(parcel_header, print_params) # Nepovinne
|
84
87
|
end
|
85
88
|
end
|
86
89
|
|
87
90
|
def do_parcel_data
|
88
91
|
new_element('ns2:doPOLSyncParcelData').tap do |do_parcel_data|
|
89
|
-
add_element_to(do_parcel_data, do_parcel_params)
|
92
|
+
add_element_to(do_parcel_data, do_parcel_params) # 1-5x
|
90
93
|
add_element_to(do_parcel_data, do_parcel_address)
|
91
|
-
add_element_to(do_parcel_data, do_parcel_address_document)
|
92
|
-
add_element_to(do_parcel_data, do_parcel_customs_declaration)
|
93
|
-
add_customs_documents_to(do_parcel_data)
|
94
|
+
add_element_to(do_parcel_data, do_parcel_address_document) # 0-1x
|
95
|
+
add_element_to(do_parcel_data, do_parcel_customs_declaration) # 0-1x
|
96
|
+
add_customs_documents_to(do_parcel_data) # 0-3x
|
94
97
|
end
|
95
98
|
end
|
96
99
|
|
@@ -205,7 +208,7 @@ module CzechPostB2bClient
|
|
205
208
|
add_element_to(do_parcel_address, 'ns2:custCardNum', value: addressee_data[:custom_card_number]) # Nepovinne: cislo zakaznicke karty
|
206
209
|
|
207
210
|
(addressee_data[:advice_informations] || []).each_with_index do |adv_info, index|
|
208
|
-
add_element_to(do_parcel_address,
|
211
|
+
add_element_to(do_parcel_address, "ns2:adviceInformation#{index + 1}", value: adv_info) # Nepovinne: Informace 1- 6 k dodejce
|
209
212
|
end
|
210
213
|
add_element_to(do_parcel_address, 'ns2:adviceNote', value: addressee_data[:advice_note]) # Nepovinne: Poznamka k dodejce
|
211
214
|
end
|
@@ -221,6 +224,7 @@ module CzechPostB2bClient
|
|
221
224
|
add_element_to(do_p_customs_declaration, 'ns2:customValCur', value: declaration_data[:value_currency_iso_code]) # ISO kod meny celni hodnoty
|
222
225
|
add_element_to(do_p_customs_declaration, 'ns2:importerRefNum', value: declaration_data[:importer_reference_number]) # Nepovinne: Cislo dovozce
|
223
226
|
|
227
|
+
# 0-99x
|
224
228
|
(declaration_data[:content_descriptions] || []).each do |dsc|
|
225
229
|
do_p_customs_declaration << custom_goods_for(dsc)
|
226
230
|
end
|
@@ -242,20 +246,20 @@ module CzechPostB2bClient
|
|
242
246
|
|
243
247
|
def custom_goods_for(description_data)
|
244
248
|
new_element('ns2:doPOLParcelCustomsGoods').tap do |do_p_customs_goods|
|
245
|
-
add_element_to(do_p_customs_goods, 'ns2:sequence', value: description_data[:order].to_i) #
|
246
|
-
add_element_to(do_p_customs_goods, 'ns2:customCont', value: description_data[:description]) #
|
247
|
-
add_element_to(do_p_customs_goods, 'ns2:quantity', value: description_data[:quantity]) #
|
248
|
-
add_element_to(do_p_customs_goods, 'ns2:weight', value: description_data[:weight_in_kg]) #
|
249
|
-
add_element_to(do_p_customs_goods, 'ns2:customVal', value: description_data[:value]) #
|
250
|
-
add_element_to(do_p_customs_goods, 'ns2:hsCode', value: description_data[:hs_code]) #
|
251
|
-
add_element_to(do_p_customs_goods, 'ns2:iso', value: description_data[:origin_country_iso_code]) #
|
249
|
+
add_element_to(do_p_customs_goods, 'ns2:sequence', value: description_data[:order].to_i) # Poradi , cisl0 1-20
|
250
|
+
add_element_to(do_p_customs_goods, 'ns2:customCont', value: description_data[:description]) # Popis zbozi
|
251
|
+
add_element_to(do_p_customs_goods, 'ns2:quantity', value: description_data[:quantity]) # Mnozstvi
|
252
|
+
add_element_to(do_p_customs_goods, 'ns2:weight', value: description_data[:weight_in_kg]) # Hmotnost
|
253
|
+
add_element_to(do_p_customs_goods, 'ns2:customVal', value: description_data[:value]) # Celni hodnota
|
254
|
+
add_element_to(do_p_customs_goods, 'ns2:hsCode', value: description_data[:hs_code]) # HS kod
|
255
|
+
add_element_to(do_p_customs_goods, 'ns2:iso', value: description_data[:origin_country_iso_code]) # Zeme puvodu zbozi
|
252
256
|
end
|
253
257
|
end
|
254
258
|
|
255
259
|
def add_bank_elements(parent_element, bank_account)
|
256
260
|
return if bank_account.to_s == ''
|
257
261
|
|
258
|
-
if (m = bank_account.match(%r{(?:(\d+)-)?(\d+)
|
262
|
+
if (m = bank_account.match(%r{(?:(\d+)-)?(\d+)/(\d+)}))
|
259
263
|
prefix = m[1]
|
260
264
|
account = m[2]
|
261
265
|
bank = m[3]
|
@@ -281,4 +285,4 @@ module CzechPostB2bClient
|
|
281
285
|
end
|
282
286
|
end
|
283
287
|
|
284
|
-
# rubocop:enable Layout/LineLength
|
288
|
+
# rubocop:enable Layout/LineLength
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable Layout/LineLength
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
4
|
|
5
5
|
module CzechPostB2bClient
|
6
6
|
module RequestBuilders
|
@@ -8,6 +8,7 @@ module CzechPostB2bClient
|
|
8
8
|
attr_reader :common_data, :parcels
|
9
9
|
|
10
10
|
def initialize(common_data:, parcels:, request_id: 1)
|
11
|
+
super()
|
11
12
|
@common_data = common_data
|
12
13
|
@parcels = parcels
|
13
14
|
@request_id = request_id
|
@@ -225,7 +226,7 @@ module CzechPostB2bClient
|
|
225
226
|
add_element_to(do_parcel_address, 'ns2:custCardNum', value: addressee_data[:custom_card_number]) # Nepovinne: cislo zakaznicke karty
|
226
227
|
|
227
228
|
(addressee_data[:advice_informations] || []).each_with_index do |adv_info, index|
|
228
|
-
add_element_to(do_parcel_address,
|
229
|
+
add_element_to(do_parcel_address, "ns2:adviceInformation#{index + 1}", value: adv_info) # Nepovinne: Informace 1- 6 k dodejce
|
229
230
|
end
|
230
231
|
add_element_to(do_parcel_address, 'ns2:adviceNote', value: addressee_data[:advice_note]) # Nepovinne: Poznamka k dodejce
|
231
232
|
end
|
@@ -263,9 +264,7 @@ module CzechPostB2bClient
|
|
263
264
|
return if address_data.nil?
|
264
265
|
|
265
266
|
address_tags_and_values(address_data).each_pair do |xml_tag, value|
|
266
|
-
|
267
|
-
add_element_to(parent_element, xml_tag, value: value) unless value.nil?
|
268
|
-
end
|
267
|
+
add_element_to(parent_element, xml_tag, value: value) if !without.include?(xml_tag) && !value.nil?
|
269
268
|
end
|
270
269
|
end
|
271
270
|
|
@@ -289,7 +288,7 @@ module CzechPostB2bClient
|
|
289
288
|
def add_bank_elements(parent_element, bank_account)
|
290
289
|
return if bank_account.to_s == ''
|
291
290
|
|
292
|
-
if (m = bank_account.match(%r{(?:(\d+)-)?(\d+)
|
291
|
+
if (m = bank_account.match(%r{(?:(\d+)-)?(\d+)/(\d+)}))
|
293
292
|
prefix = m[1]
|
294
293
|
account = m[2]
|
295
294
|
bank = m[3]
|
@@ -315,4 +314,4 @@ module CzechPostB2bClient
|
|
315
314
|
end
|
316
315
|
end
|
317
316
|
|
318
|
-
# rubocop:enable Layout/LineLength
|
317
|
+
# rubocop:enable Layout/LineLength
|
@@ -24,6 +24,7 @@ module CzechPostB2bClient
|
|
24
24
|
end
|
25
25
|
|
26
26
|
attr_reader :details
|
27
|
+
|
27
28
|
def initialize(details = '')
|
28
29
|
@details = details
|
29
30
|
end
|
@@ -2001,6 +2002,48 @@ module CzechPostB2bClient
|
|
2001
2002
|
@type = :info
|
2002
2003
|
end
|
2003
2004
|
|
2005
|
+
class InfoService40CanceledDueMissingContactToAddressee < CzechPostB2bClient::ResponseCodes::BaseCode
|
2006
|
+
@code = 424
|
2007
|
+
@text = 'INFO_CANCEL_SERVICE_40'
|
2008
|
+
@description = 'Zrušena služba 40 - neuveden kontaktní údaj adresáta'
|
2009
|
+
@type = :info
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
class InfoService29CanceledDueMissingContactToAddressee < CzechPostB2bClient::ResponseCodes::BaseCode
|
2013
|
+
@code = 425
|
2014
|
+
@text = 'INFO_CANCEL_SERVICE_29'
|
2015
|
+
@description = 'Zrušena dopl. sl. 29 – neuveden kontaktní údaj'
|
2016
|
+
@type = :info
|
2017
|
+
end
|
2018
|
+
|
2019
|
+
class InfoService40CanceledNotAllowedTogetherWithService29 < CzechPostB2bClient::ResponseCodes::BaseCode
|
2020
|
+
@code = 426
|
2021
|
+
@text = 'INFO_CANCEL_SERVICE_40'
|
2022
|
+
@description = 'Zrušena služba 40 – nepovolena se sl. 29'
|
2023
|
+
@type = :info
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
class InfoService40CanceledPackageIsPosteRestante < CzechPostB2bClient::ResponseCodes::BaseCode
|
2027
|
+
@code = 427
|
2028
|
+
@text = 'INFO_CANCEL_SERVICE_40'
|
2029
|
+
@description = 'Zrušena služba 40 – zásilka Poste restante'
|
2030
|
+
@type = :info
|
2031
|
+
end
|
2032
|
+
|
2033
|
+
class InfoService7KCancelledNotArrangedForClient < CzechPostB2bClient::ResponseCodes::BaseCode
|
2034
|
+
@code = 428
|
2035
|
+
@text = 'INFO_CANCEL_SERVICE_7K'
|
2036
|
+
@description = 'Zrušena služba 7K - nesjednaná služba pro zákaznické řešení'
|
2037
|
+
@type = :info
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
class InfoAvizoServiceAppended < CzechPostB2bClient::ResponseCodes::BaseCode
|
2041
|
+
@code = 429
|
2042
|
+
@text = 'INFO_NOTIFICIATON_WAS_MODIFIED'
|
2043
|
+
@description = 'Služba avizování přiřazena dle kontaktních údajů'
|
2044
|
+
@type = :info
|
2045
|
+
end
|
2046
|
+
|
2004
2047
|
# must be at end to collect all classes defined before
|
2005
2048
|
def self.all_classes
|
2006
2049
|
base_class = CzechPostB2bClient::ResponseCodes::BaseCode
|
@@ -6,6 +6,7 @@ module CzechPostB2bClient
|
|
6
6
|
module ResponseParsers
|
7
7
|
class BaseParser < SteppedService::Base
|
8
8
|
def initialize(xml:)
|
9
|
+
super()
|
9
10
|
@response_xml = xml
|
10
11
|
end
|
11
12
|
|
@@ -34,41 +35,41 @@ module CzechPostB2bClient
|
|
34
35
|
|
35
36
|
def build_result
|
36
37
|
@result = {
|
37
|
-
request: { created_at: request_data
|
38
|
-
contract_id: request_data
|
39
|
-
request_id: request_data
|
38
|
+
request: { created_at: request_data[:time_stamp],
|
39
|
+
contract_id: request_data[:id_contract],
|
40
|
+
request_id: request_data[:id_ext_transaction] },
|
40
41
|
response: { created_at: response_time }
|
41
42
|
}
|
42
43
|
end
|
43
44
|
|
44
45
|
def response_service_data
|
45
|
-
b2b_response_hash
|
46
|
+
b2b_response_hash['serviceData']
|
46
47
|
end
|
47
48
|
|
48
49
|
def response_header
|
49
|
-
b2b_response_hash
|
50
|
+
b2b_response_hash['header']
|
50
51
|
end
|
51
52
|
|
52
53
|
def response_root_node
|
53
|
-
return response_service_data
|
54
|
+
return response_service_data[response_root_node_name] if response_service_data.keys.include?(response_root_node_name)
|
54
55
|
|
55
56
|
errors.add(:xml, "Cannot find `#{response_root_node_name}` in `serviceData` node.")
|
56
57
|
fail_on_structure_parsing
|
57
58
|
end
|
58
59
|
|
59
60
|
def b2b_response_hash
|
60
|
-
response_hash
|
61
|
+
response_hash['b2bSyncResponse'] || response_hash['b2bASyncResponse']
|
61
62
|
end
|
62
63
|
|
63
64
|
def request_data
|
64
|
-
b2b_request_hash = response_header
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
b2b_request_hash = response_header['b2bRequestHeader']
|
66
|
+
{ id_ext_transaction: b2b_request_hash['idExtTransaction'].to_s,
|
67
|
+
time_stamp: Time.parse(b2b_request_hash['timeStamp']),
|
68
|
+
id_contract: b2b_request_hash['idContract'].to_s }
|
68
69
|
end
|
69
70
|
|
70
71
|
def response_time
|
71
|
-
Time.parse(response_header
|
72
|
+
Time.parse(response_header['timeStamp'])
|
72
73
|
rescue TypeError
|
73
74
|
Time.now.utc
|
74
75
|
end
|
@@ -87,7 +88,7 @@ module CzechPostB2bClient
|
|
87
88
|
end
|
88
89
|
|
89
90
|
def handle_result_building_error(error)
|
90
|
-
@result = { result_builder_error: error.message
|
91
|
+
@result = { result_builder_error: "#{error.message} at line: #{error.backtrace.first}",
|
91
92
|
response_hash: response_hash }
|
92
93
|
fail_on_structure_parsing
|
93
94
|
end
|
@@ -21,7 +21,7 @@ module CzechPostB2bClient
|
|
21
21
|
def response_parcel_hashes
|
22
22
|
return [] if response_root_node.nil?
|
23
23
|
|
24
|
-
[response_root_node
|
24
|
+
[response_root_node['parcel']].flatten.compact # to always get array of hash(es)
|
25
25
|
end
|
26
26
|
|
27
27
|
def parcel_data_from(rp_hash) # rubocop:disable Metrics/AbcSize
|
@@ -7,20 +7,20 @@ module CzechPostB2bClient
|
|
7
7
|
class GetParcelsPrintingParser < BaseParser
|
8
8
|
def build_result
|
9
9
|
super
|
10
|
-
@result[:response][:state] = state_hash_from(printing_response_header_result
|
10
|
+
@result[:response][:state] = state_hash_from(printing_response_header_result['doPrintingStateResponse'])
|
11
11
|
@result[:printings] = { options: options_hash,
|
12
12
|
pdf_content: pdf_content }
|
13
13
|
end
|
14
14
|
|
15
15
|
def options_hash
|
16
|
-
options_response = printing_response_header_result
|
16
|
+
options_response = printing_response_header_result['doPrintingHeader']
|
17
17
|
{
|
18
|
-
customer_id: options_response
|
19
|
-
contract_number: options_response
|
20
|
-
template_id: options_response
|
21
|
-
margin_in_mm: { top: options_response
|
22
|
-
left: options_response
|
23
|
-
position_order: options_response
|
18
|
+
customer_id: options_response['customerID'],
|
19
|
+
contract_number: options_response['contractNumber'],
|
20
|
+
template_id: options_response['idForm'].to_i,
|
21
|
+
margin_in_mm: { top: options_response['shiftVertical'].to_i,
|
22
|
+
left: options_response['shiftHorizontal'].to_i },
|
23
|
+
position_order: options_response['position'].to_i
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
@@ -36,7 +36,7 @@ module CzechPostB2bClient
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def printing_response_header_result
|
39
|
-
response_root_node
|
39
|
+
response_root_node['doPrintingHeaderResult']
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
@@ -25,7 +25,7 @@ module CzechPostB2bClient
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def response_parcel_hashes
|
28
|
-
[response_root_node
|
28
|
+
[response_root_node['doParcelParamResult']].flatten.compact # to always get array of hash(es)
|
29
29
|
end
|
30
30
|
|
31
31
|
def parcel_parcel_id_from(rp_hash)
|
@@ -34,7 +34,7 @@ module CzechPostB2bClient
|
|
34
34
|
|
35
35
|
def parcel_data_from(rp_hash)
|
36
36
|
{ parcel_code: rp_hash['parcelCode'],
|
37
|
-
states: [state_hash_from(rp_hash
|
37
|
+
states: [state_hash_from(rp_hash['doParcelStateResponse'])] }
|
38
38
|
end
|
39
39
|
|
40
40
|
def updated_result_value_for(value, parcel_params_result_hash)
|
@@ -5,18 +5,15 @@ module CzechPostB2bClient
|
|
5
5
|
class GetStatsParser < BaseParser
|
6
6
|
def build_result
|
7
7
|
super
|
8
|
-
@result[:imports] =
|
9
|
-
with_errors: imports.err,
|
10
|
-
successful: imports.ok,
|
11
|
-
imported_parcels: imports.parcels }
|
8
|
+
@result[:imports] = imports
|
12
9
|
end
|
13
10
|
|
14
11
|
def imports
|
15
12
|
imports_hash = response_root_node
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
{ requested: imports_hash['importAll'].to_i,
|
14
|
+
with_errors: imports_hash['importErr'].to_i,
|
15
|
+
successful: imports_hash['importOk'].to_i,
|
16
|
+
imported_parcels: imports_hash['parcels'].to_i }
|
20
17
|
end
|
21
18
|
|
22
19
|
def response_root_node_name
|
@@ -35,7 +35,7 @@ module CzechPostB2bClient
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def response_print_hash
|
38
|
-
response_root_node
|
38
|
+
response_root_node['responsePrintParams']
|
39
39
|
end
|
40
40
|
|
41
41
|
def parcel_parcel_id_from(rp_hash)
|
@@ -44,14 +44,18 @@ module CzechPostB2bClient
|
|
44
44
|
|
45
45
|
def parcel_data_from(rp_hash)
|
46
46
|
{ parcel_code: rp_hash['parcelCode'],
|
47
|
-
states:
|
47
|
+
states: parcel_states_form(rp_hash['parcelDataResponse']) }
|
48
|
+
end
|
49
|
+
|
50
|
+
def parcel_states_form(data_responses)
|
51
|
+
[data_responses].flatten.collect { |data_response| state_hash_from(data_response) }
|
48
52
|
end
|
49
53
|
|
50
54
|
def print_data_from(print_hash)
|
51
55
|
return nil if print_hash.nil? || print_hash.empty?
|
52
56
|
|
53
|
-
{ pdf_content: pdf_content_from(print_hash
|
54
|
-
state: state_hash_from(print_hash
|
57
|
+
{ pdf_content: pdf_content_from(print_hash['file']),
|
58
|
+
state: state_hash_from(print_hash['printParamsResponse']) }
|
55
59
|
end
|
56
60
|
|
57
61
|
def pdf_content_from(pdf_content_encoded)
|
@@ -62,7 +66,6 @@ module CzechPostB2bClient
|
|
62
66
|
|
63
67
|
def updated_result_value_for(value, parcel_params_result_hash)
|
64
68
|
pd_hash = parcel_data_from(parcel_params_result_hash)
|
65
|
-
|
66
69
|
return pd_hash if value.nil?
|
67
70
|
|
68
71
|
# merging states
|
@@ -7,8 +7,8 @@ module CzechPostB2bClient
|
|
7
7
|
super
|
8
8
|
|
9
9
|
@result[:async_result] = {
|
10
|
-
transaction_id: response_header
|
11
|
-
processing_end_expected_at: parse_time_with_correction(response_header
|
10
|
+
transaction_id: response_header['idTransaction'],
|
11
|
+
processing_end_expected_at: parse_time_with_correction(response_header['timeStampProcessing'])
|
12
12
|
}
|
13
13
|
end
|
14
14
|
|
@@ -5,7 +5,10 @@ module CzechPostB2bClient
|
|
5
5
|
class AddressSheetsGenerator < CzechPostB2bClient::Services::Communicator
|
6
6
|
attr_reader :parcel_codes, :options
|
7
7
|
|
8
|
+
AddressSheetsGeneratorResult = Struct.new(:pdf_content, :state_text, :state_code, keyword_init: true)
|
9
|
+
|
8
10
|
def initialize(parcel_codes:, options: {})
|
11
|
+
super()
|
9
12
|
@parcel_codes = parcel_codes
|
10
13
|
@options = options
|
11
14
|
end
|
@@ -37,9 +40,9 @@ module CzechPostB2bClient
|
|
37
40
|
end
|
38
41
|
|
39
42
|
def build_result_from(response_hash)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
+
AddressSheetsGeneratorResult.new(pdf_content: response_hash.dig(:printings, :pdf_content),
|
44
|
+
state_text: response_hash.dig(:response, :state, :text),
|
45
|
+
state_code: response_hash.dig(:response, :state, :code))
|
43
46
|
end
|
44
47
|
|
45
48
|
def check_for_state_errors
|