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.14.7 lib/gillbus/cancel_order.rb
gillbus-0.14.6 lib/gillbus/cancel_order.rb
gillbus-0.14.5 lib/gillbus/cancel_order.rb
gillbus-0.14.4 lib/gillbus/cancel_order.rb
gillbus-0.14.3 lib/gillbus/cancel_order.rb
gillbus-0.14.2 lib/gillbus/cancel_order.rb
gillbus-0.14.1 lib/gillbus/cancel_order.rb
gillbus-0.14.0 lib/gillbus/cancel_order.rb
gillbus-0.13.0 lib/gillbus/cancel_order.rb
gillbus-0.12.0 lib/gillbus/cancel_order.rb
gillbus-0.11.0 lib/gillbus/cancel_order.rb