Sha256: 5c67670b265a30fa3c0f9b6a31d9b832654fc3d7e2ebf1889b9032a831db0561
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
# frozen_string_literal: true require 'logger' module CzechPostB2bClient class Configuration attr_accessor :customer_id, :contract_id, :sending_post_office_code, :sending_post_office_location_number, :certificate_path, :private_key_password, :private_key_path, :namespaces, :language, :logger, :b2b_api_base_uri, :print_options, :custom_card_number def initialize # set defaults here # ours, accessible, but maybe out of date, for test usage @namespaces = { 'xmlns' => 'https://raw.githubusercontent.com/foton/czech_post_b2b_client/master/documents/B2B_CP_POL_2020-05-21/B2BCommon-v1.1.xsd', 'xmlns:ns2' => 'https://raw.githubusercontent.com/foton/czech_post_b2b_client/master/documents/B2B_CP_POL_2020-05-21/B2B-POLServices-v1.8.xsd' } # original, accessible only with setup certificates @namespaces = { 'xmlns' => 'https://b2b.postaonline.cz/schema/B2BCommon-v1', 'xmlns:ns2' => 'https://b2b.postaonline.cz/schema/POLServices-v1' } @language = :cs @logger = defined?(Rails) ? ::Rails.logger : ::Logger.new(STDOUT) @b2b_api_base_uri = 'https://b2b.postaonline.cz/services/POLService/v1' @sending_post_office_location_number = 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
czech_post_b2b_client-1.2.2 | lib/czech_post_b2b_client/configuration.rb |
czech_post_b2b_client-1.2.1 | lib/czech_post_b2b_client/configuration.rb |