Sha256: 8241fee17f19fb3c78cde916201c3037ab6a658d11fbaf2c4fd8d121a9f9bb5c

Contents?: true

Size: 504 Bytes

Versions: 8

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

module CzechPostB2bClient
  module Services
    class ParcelsSubmissionCloser < CzechPostB2bClient::Services::ParcelsAsyncSender
      attr_reader :sending_data

      def initialize(sending_data:)
        @sending_data = sending_data
      end

      private

      def request_builder_args
        { common_data: common_closing_data, parcels: [] }
      end

      def common_closing_data
        common_data.merge(close_requests_batch: true)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
czech_post_b2b_client-1.2.7 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.2.6 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.2.5 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.2.4 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.2.3 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.2.2 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.2.1 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.1.0 lib/czech_post_b2b_client/services/parcels_submission_closer.rb