Sha256: 9817943083b86969c7ce0e7784aec584d0da188a852010e210416220f874c468

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

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

      def initialize(sending_data:)
        super(sending_data: sending_data, parcels: [])
      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

3 entries across 3 versions & 1 rubygems

Version Path
czech_post_b2b_client-1.4.0 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.3.0 lib/czech_post_b2b_client/services/parcels_submission_closer.rb
czech_post_b2b_client-1.2.8 lib/czech_post_b2b_client/services/parcels_submission_closer.rb