Class: LemonWay::MoneyIn

Inherits:
Object
  • Object
show all
Defined in:
lib/lemon_way/money_in.rb

Class Method Summary collapse

Class Method Details

.init(params = {}) ⇒ Object



8
9
10
11
# File 'lib/lemon_way/money_in.rb', line 8

def init(params = {})
  params[:wallet] = params.delete(:id)
  LemonWay.client.send_request('MoneyInWebInit', '1.3', params)
end

.validate(params = {}) ⇒ Object



13
14
15
16
# File 'lib/lemon_way/money_in.rb', line 13

def validate(params = {})
  params[:transactionId] = params.delete(:id)
  LemonWay.client.send_request('MoneyInValidate', '1.0', params)
end