Sha256: 3241e17130fc944a9757c1596cc43e5d231cefeb3e63fe6b9662b97a5264ecc5

Contents?: true

Size: 569 Bytes

Versions: 5

Compression:

Stored size: 569 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
      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

5 entries across 5 versions & 1 rubygems

Version Path
coins_paid_api-1.0.5 lib/coins_paid/api/withdrawal.rb
coins_paid_api-1.0.4 lib/coins_paid/api/withdrawal.rb
coins_paid_api-1.0.3 lib/coins_paid/api/withdrawal.rb
coins_paid_api-1.0.2 lib/coins_paid/api/withdrawal.rb
coins_paid_api-1.0.1 lib/coins_paid/api/withdrawal.rb