Sha256: 0d33b72bbc91074eb7e8387e50792740d59ddeba7cc1e6d8b1a5ddef1f54e966

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 Bytes

Contents

module SynapsePay
  class WithdrawalEndpoint < APIEndpoint
    
    def all(params={}, headers={})
      method = APIMethod.new(:post, "/withdraw/show", params, headers, self)
      json = @client.execute(method)
      APIList.new(:Withdrawal, json[:withdraws], method, @client)
    end

    def create(params={}, headers={})
      method = APIMethod.new(:post, "/withdraw/add", params, headers, self)
      json = @client.execute(method)
      Withdrawal.new(json[:withdrawal], method, @client)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
synapse_pay-0.0.8 lib/synapse_pay/endpoints/withdrawal_endpoint.rb
synapse_pay-0.0.7 lib/synapse_pay/endpoints/withdrawal_endpoint.rb
synapse_pay-0.0.6 lib/synapse_pay/endpoints/withdrawal_endpoint.rb
synapse_pay-0.0.4 lib/synapse_pay/endpoints/withdrawal_endpoint.rb
synapse_pay-0.0.3 lib/synapse_pay/endpoints/withdrawal_endpoint.rb
synapse_pay-0.0.1 lib/synapse_pay/endpoints/withdrawal_endpoint.rb