Module: Evropochta::Postal::GetPdfContent
- Defined in:
- lib/evropochta/postal/get_pdf_content.rb
Class Method Summary collapse
Class Method Details
.call(serial_numbers: [], postal_item_external_id: []) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/evropochta/postal/get_pdf_content.rb', line 6 def call(serial_numbers: [], postal_item_external_id: []) external_ids = postal_item_external_id.map { |external_id| { PostalItemExternalId: external_id } } numbers = serial_numbers.map { |serial_number| { SerialNumber: serial_number } } Services::Shared.request( "Postal.GetPDFContent", { SerialNumber: numbers, PostalItemExternalId: external_ids } ) end |