Sha256: d8af66f894d44224708648e13200af1f84c4d7704e3f5b0f334b46d8aaef7d8e

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

module CoinsPaid
  module API
    class Withdrawal
      class Request < Dry::Struct
        attribute :foreign_id, Types::Coercible::String
        attribute :amount, Types::Coercible::String
        attribute :currency, Types::String
        attribute :address, Types::String
        attribute? :convert_to, Types::String
        attribute? :tag, Types::String
      end

      class Response < Dry::Struct
        attribute :external_id, Types::Integer
      end

      PATH = 'withdrawal/crypto'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coins_paid_api-2.2.0 lib/coins_paid/api/withdrawal.rb
coins_paid_api-2.1.0 lib/coins_paid/api/withdrawal.rb
coins_paid_api-2.0.0 lib/coins_paid/api/withdrawal.rb