Sha256: 08908a639d3642225f89380bf14a68175e357eba3110791119d903deae426df8

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 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 :convert_to, Types::String
        attribute :address, Types::String
        attribute? :tag, Types::String
      end

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

      PATH = 'withdrawal/crypto'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coins_paid_api-1.2.0 lib/coins_paid/api/withdrawal.rb
coins_paid_api-1.1.0 lib/coins_paid/api/withdrawal.rb
coins_paid_api-1.0.7 lib/coins_paid/api/withdrawal.rb
coins_paid_api-1.0.6 lib/coins_paid/api/withdrawal.rb