Class: Firekassa::Deposit

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

Overview

Deposit API

Instance Method Summary collapse

Methods inherited from Client

#handle_error, #interpret_response, #send_request

Instance Method Details

#create(type, data) ⇒ Object



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

def create(type, data)
  path = "/api/v2/deposit/#{type}"
  send_request(method: :post, path: path, body: data)
end

#create_card(data) ⇒ Object



14
15
16
# File 'lib/firekassa/deposit.rb', line 14

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

#create_sbp(data) ⇒ Object



18
19
20
# File 'lib/firekassa/deposit.rb', line 18

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

#create_sbpa(data) ⇒ Object



22
23
24
# File 'lib/firekassa/deposit.rb', line 22

def create_sbpa(data)
  create("sbp-a", data)
end

#create_usdt_erc20(data) ⇒ Object



30
31
32
# File 'lib/firekassa/deposit.rb', line 30

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

#create_usdt_trc20(data) ⇒ Object



26
27
28
# File 'lib/firekassa/deposit.rb', line 26

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