Sha256: a7c9946aa46112e3c07bc801a117da2c4b5f7264c4e12ef0eb217397d44aa42b

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

# frozen_string_literal: true
require 'vk/api/objects'
require 'vk/schema/namespace'

module Vk
  module API
    class Orders < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class Order < Vk::Schema::Object
        # @return [Integer] Order ID
        attribute :id, API::Types::Coercible::Int.optional
        # @return [Integer] App order ID
        attribute :app_order_id, API::Types::Coercible::Int.optional
        # @return [String] Order status
        attribute :status, API::Types::Coercible::String.optional
        # @return [Integer] User ID
        attribute :user_id, API::Types::Coercible::Int.optional
        # @return [Integer] Receiver ID
        attribute :receiver_id, API::Types::Coercible::Int.optional
        # @return [String] Order item
        attribute :item, API::Types::Coercible::String.optional
        # @return [Integer] Amount
        attribute :amount, API::Types::Coercible::Int.optional
        # @return [Integer] Date of creation in Unixtime
        attribute :date, API::Types::Coercible::Int.optional
        # @return [Integer] Transaction ID
        attribute :transaction_id, API::Types::Coercible::Int.optional
        # @return [Integer] Cancel transaction ID
        attribute :cancel_transaction_id, API::Types::Coercible::Int.optional
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/orders/order.rb