Class: Firekassa::Withdraw

Inherits:
Client
  • Object
show all
Defined in:
lib/firekassa/withdraw.rb

Overview

Withdraw API

Instance Method Summary collapse

Methods inherited from Client

#handle_error, #interpret_response, #send_request

Instance Method Details

#create_card(data) ⇒ Object



9
10
11
# File 'lib/firekassa/withdraw.rb', line 9

def create_card(data)
  create(:card, data)
end

#create_phone(data) ⇒ Object



17
18
19
# File 'lib/firekassa/withdraw.rb', line 17

def create_phone(data)
  create(:phone, data)
end

#create_qiwi_wallet(data) ⇒ Object



21
22
23
# File 'lib/firekassa/withdraw.rb', line 21

def create_qiwi_wallet(data)
  create("qiwi-wallet", data)
end

#create_sbp(data) ⇒ Object



13
14
15
# File 'lib/firekassa/withdraw.rb', line 13

def create_sbp(data)
  create(:sbp, data)
end

#create_usdt_erc20(data) ⇒ Object



33
34
35
# File 'lib/firekassa/withdraw.rb', line 33

def create_usdt_erc20(data)
  create("usdt-erc20", data)
end

#create_usdt_trc20(data) ⇒ Object



29
30
31
# File 'lib/firekassa/withdraw.rb', line 29

def create_usdt_trc20(data)
  create("usdt-trc20", data)
end

#create_yoomoney(data) ⇒ Object



25
26
27
# File 'lib/firekassa/withdraw.rb', line 25

def create_yoomoney(data)
  create(:yoomoney, data)
end

#sbp_banksObject



37
38
39
40
# File 'lib/firekassa/withdraw.rb', line 37

def sbp_banks
  paht = "/api/v2/sbp-banks"
  send_request(method: :get, path: paht)
end