Sha256: 230fad1eb87532b2e792973c3dca9cb3f3a243d60bce3696d26d346c3c5dc74f

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 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
        attribute :receiver_amount, Types::Coercible::Float
      end

      PATH = 'withdrawal/crypto'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coins_paid_api-1.3.0 lib/coins_paid/api/withdrawal.rb