Sha256: 1127070f692fe1ac9495a7fd994d92dcfa63a58a79714a14844afc43b2848fc4

Contents?: true

Size: 833 Bytes

Versions: 46

Compression:

Stored size: 833 Bytes

Contents

class Gillbus
  module FindOrder
    Gillbus.register self, :find_order

    class Request < BaseRequest
      def path; '/online2/findOrder' end

      # orderId
      # Уникальный ИД заказа, переданный при отложенной продаже.
      attr_accessor :order_id

      # orderNumber
      # Номер заказа полученный при создании отложенной продажи.
      attr_accessor :order_number

      # Язык формирования данных.
      attr_accessor :locale

      def params
        compact(
          orderId: order_id,
          orderNumber: order_number,
          locale: translated_locale(locale),
        )
      end
    end

    class Response < BaseResponse
      field :tickets, [Ticket], key: 'TICKET'
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gillbus-0.23.0 lib/gillbus/find_order.rb
gillbus-0.22.9 lib/gillbus/find_order.rb
gillbus-0.22.8 lib/gillbus/find_order.rb
gillbus-0.22.7 lib/gillbus/find_order.rb
gillbus-0.22.6 lib/gillbus/find_order.rb
gillbus-0.22.5 lib/gillbus/find_order.rb
gillbus-0.22.4 lib/gillbus/find_order.rb
gillbus-0.22.3 lib/gillbus/find_order.rb
gillbus-0.22.2 lib/gillbus/find_order.rb
gillbus-0.22.1 lib/gillbus/find_order.rb
gillbus-0.22.0 lib/gillbus/find_order.rb
gillbus-0.21.0 lib/gillbus/find_order.rb
gillbus-0.20.9 lib/gillbus/find_order.rb
gillbus-0.20.8 lib/gillbus/find_order.rb
gillbus-0.20.7 lib/gillbus/find_order.rb
gillbus-0.20.6 lib/gillbus/find_order.rb
gillbus-0.20.5 lib/gillbus/find_order.rb
gillbus-0.20.4 lib/gillbus/find_order.rb
gillbus-0.20.3 lib/gillbus/find_order.rb
gillbus-0.20.2 lib/gillbus/find_order.rb