All changes to the gem are documented here.
- upgrade of all required gems to handle ruby 3
- CP cert can be passed by file path or content
- checked currently available Print Templates codes
- enhanced address sheet printing with ability to print ZPL sheets (templates 200, 201 and 202).
Result of
AddressSheetGenerator
now havepdf_content
andzpl_content
. - found new(?) API from Czech Post , see
documents/B2B-ZSKService-1.4.0.yaml
and https://www.ceskaposta.cz/napi/b2b.
- added new response codes
- fixed passing all errors from
parcelsServiceSync
response.
errorDescription
fromB2BError
response is now merged into error message.
- Added
configuration.log_messages_at_least_as
option, to be able debug client behaviour when app log level is higher (eg. production)
- Corrected order in XML
sequence
elements - Added
schemaLocation
to root element and placed publicly accessible XSDs into Github repo
- Printing templates now include @page_dimensions
- Forced secure SSL ciphers for requests
examples/try_api_call.rb
refactored to be more versatile (download XSDs [:do not work], pritn_selected_combinations)
- Breaking Introducing new Printing templates, improved some template names and scopes
- Added options
custom_card_number
andprint_options
toConfiguration
- Introducing new API documentation from Czech Post
- Added service
ParcelSyncSender
service which uses newly discoveredparcelsServiceSync
API endpoint - Renamed
ParcelSender
toParcelAsyncSender
. And created deprecating cloneParcelSender
, so no Breaking change! If You usit it callsParcelAsyncSender
and displays deprecation message.
- Added Czech Post service DiscountForOnlinePosting.
- Breaking: Renamed Post service "Size" classes
CzechPostB2bClient::PostServices::Size???
toCzechPostB2bClient::PostServices::ParcelSize???
(eg. :CzechPostB2bClient::PostServices::ParcelSizeXL
) I know, that I have breaking in every new version, I hope You are not fast enough.
- Added Czech Post services as classes, not just list in docs.
- Breaking: Renamed methods
CzechPostB2bClient::PrintingTemplate.all_template_classes
andCzechPostB2bClient::ResponseCodes.all_code_classes
toCzechPostB2bClient::PrintingTemplate.all_classes
, andCzechPostB2bClient::ResponseCodes.all_classes
Production ready release
- All the stuff