Module: Evropochta::Postal::HistoryOrders

Defined in:
lib/evropochta/postal/history_orders.rb

Class Method Summary collapse

Class Method Details

.call(opts: {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/evropochta/postal/history_orders.rb', line 6

def call(opts: {})
  Services::Shared.request(
    "Postal.HistoryOrders",
    {
      DateBegin: opts[:date_begin],
      DateEnd: opts[:date_end],
      Number: opts[:number],
      PostalItemExternalId: opts[:postal_item_external_id],
      Limit: opts[:limit],
      Offset: opts[:offset]
    }
  )
end