Sha256: 8201b75abef04ecaf9df34f291577ce049f8a8f45249b51117d8307124546f9e

Contents?: true

Size: 935 Bytes

Versions: 31

Compression:

Stored size: 935 Bytes

Contents

class Gillbus
  module CancelOrder

    Gillbus.register self, :cancel_order

    class Request < BaseRequest

      def path; '/online2/cancelOrder' end

      # orderNumber
      # The order number
      attr_accessor :order_number

      # cancelReason
      # Cancellation reason
      attr_accessor :cancel_reason

      def params
        compact(
          orderNumber: order_number,
          cancelReason: cancel_reason,
        )
      end

    end


    class Response < BaseResponse

      class OrderCancel

        extend Fields

        # The order number
        field :number

        # The cancellation reason
        field :reason

        # The flag, which indicates successful order cancellation.
        field :confirmation, :yesno_bool

        # The request’s performing date
        # String. FIXME (Kiiv timezone?)
        field :date

      end

      field :order_cancel, OrderCancel

    end

  end

end

Version data entries

31 entries across 31 versions & 1 rubygems

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