Class: AlfaBank::Client

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/alfa_bank/client.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.adds_params_to_order(params) ⇒ Object



41
42
43
# File 'lib/alfa_bank/client.rb', line 41

def adds_params_to_order(params)
  send_request(:adds_params_to_order , params)
end

.bind_card(params) ⇒ Object



61
62
63
# File 'lib/alfa_bank/client.rb', line 61

def bind_card(params)
  send_request(:bind_card , params)
end

.binding_list(params) ⇒ Object



69
70
71
# File 'lib/alfa_bank/client.rb', line 69

def binding_list(params)
  send_request(:binding_list , params)
end

.binding_payment(params) ⇒ Object



53
54
55
# File 'lib/alfa_bank/client.rb', line 53

def binding_payment(params)
  send_request(:binding_payment , params)
end

.check_3ds(params) ⇒ Object



37
38
39
# File 'lib/alfa_bank/client.rb', line 37

def check_3ds(params)
  send_request(:check_3ds , params)
end

.extend_binding(params) ⇒ Object



65
66
67
# File 'lib/alfa_bank/client.rb', line 65

def extend_binding(params)
  send_request(:extend_binding , params)
end

.extend_request_order_status(params) ⇒ Object



25
26
27
# File 'lib/alfa_bank/client.rb', line 25

def extend_request_order_status(params)
  send_request(:extend_request_order_status , params)
end

.finish_order(params) ⇒ Object



17
18
19
# File 'lib/alfa_bank/client.rb', line 17

def finish_order(params)
  send_request(:finish_order , params)
end

.order_status(params) ⇒ Object



21
22
23
# File 'lib/alfa_bank/client.rb', line 21

def order_status(params)
  send_request(:order_status , params)
end

.payment_statistic(params) ⇒ Object



45
46
47
# File 'lib/alfa_bank/client.rb', line 45

def payment_statistic(params)
  send_request(:payment_statistic , params)
end

.payment_to_otherway(params) ⇒ Object



49
50
51
# File 'lib/alfa_bank/client.rb', line 49

def payment_to_otherway(params)
  send_request(:payment_to_otherway , params)
end

.preauth_register_order(params) ⇒ Object



13
14
15
# File 'lib/alfa_bank/client.rb', line 13

def preauth_register_order(params)
  send_request(:preauth_register_order , params)
end

.refund_order_sum(params) ⇒ Object



33
34
35
# File 'lib/alfa_bank/client.rb', line 33

def refund_order_sum(params)
  send_request(:refund_order_sum , params)
end

.register_order(params) ⇒ Object



9
10
11
# File 'lib/alfa_bank/client.rb', line 9

def register_order(params)
  send_request(:register_order , params)
end

.reverse_order_payment(params) ⇒ Object



29
30
31
# File 'lib/alfa_bank/client.rb', line 29

def reverse_order_payment(params)
  send_request(:reverse_order_payment , params)
end

.unbind_card(params) ⇒ Object



57
58
59
# File 'lib/alfa_bank/client.rb', line 57

def unbind_card(params)
  send_request(:unbind_card , params)
end

Instance Method Details

#send_request(request_type, opts) ⇒ Object



81
82
83
# File 'lib/alfa_bank/client.rb', line 81

def send_request(request_type, opts)
  RequestSender.new(request_type, opts).call
end