Sha256: 72a3698357f9531c7f5119078199517bdf8c15dd472742e12623a805bcc0e025

Contents?: true

Size: 749 Bytes

Versions: 31

Compression:

Stored size: 749 Bytes

Contents

class Gillbus
  module BuyTickets

    Gillbus.register self, :buy_tickets

    class Request < BaseRequest

      def path; '/online2/buyTickets' end

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

      def params
        {orderId: order_id}
      end
    end

    class Response < BaseResponse

      class TicketConfirmation

        extend Fields
        # String. пока не выяснится, в какой таймзоне это значение и зачем
        field :date
        field :order_id
        field :confirmation, :yesno_bool

      end

      field :ticket, TicketConfirmation

    end

  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
gillbus-0.16.7 lib/gillbus/buy_tickets.rb
gillbus-0.16.6 lib/gillbus/buy_tickets.rb
gillbus-0.16.5 lib/gillbus/buy_tickets.rb
gillbus-0.16.4 lib/gillbus/buy_tickets.rb
gillbus-0.16.3 lib/gillbus/buy_tickets.rb
gillbus-0.16.2 lib/gillbus/buy_tickets.rb
gillbus-0.16.1 lib/gillbus/buy_tickets.rb
gillbus-0.15.7 lib/gillbus/buy_tickets.rb
gillbus-0.15.6 lib/gillbus/buy_tickets.rb
gillbus-0.15.5 lib/gillbus/buy_tickets.rb
gillbus-0.15.4 lib/gillbus/buy_tickets.rb
gillbus-0.15.3 lib/gillbus/buy_tickets.rb
gillbus-0.15.2 lib/gillbus/buy_tickets.rb
gillbus-0.15.1 lib/gillbus/buy_tickets.rb
gillbus-0.15.0 lib/gillbus/buy_tickets.rb
gillbus-0.14.12 lib/gillbus/buy_tickets.rb
gillbus-0.14.11 lib/gillbus/buy_tickets.rb
gillbus-0.14.10 lib/gillbus/buy_tickets.rb
gillbus-0.14.9 lib/gillbus/buy_tickets.rb
gillbus-0.14.8 lib/gillbus/buy_tickets.rb