Module: Privatbank::P24
- Defined in:
- lib/privatbank/p24.rb,
lib/privatbank/p24/info.rb,
lib/privatbank/p24/send_money_pb.rb,
lib/privatbank/p24/exchange_rates.rb,
lib/privatbank/p24/payment_status.rb,
lib/privatbank/p24/items/exchanges.rb,
lib/privatbank/p24/send_money_visa.rb,
lib/privatbank/p24/account_statement.rb,
lib/privatbank/p24/items/transaction.rb
Defined Under Namespace
Modules: Items
Classes: AccountStatement, ExchangeRates, Info, PaymentStatus, SendMoneyPB, SendMoneyVisa
Class Method Summary
collapse
-
.account_statement(card_number, options) ⇒ Object
-
.info(card_number, country = 'UA', options = {}) ⇒ Object
-
.payment_status(payment_id, ref, options = {}) ⇒ Object
-
.send_money_pb(receiver, payment_id, amount, details, currency = 'UAH', options = {}) ⇒ Object
-
.send_money_visa(receiver, full_name, payment_id, amount, details, currency = 'UAH', options = {}) ⇒ Object
Class Method Details
.account_statement(card_number, options) ⇒ Object
10
11
12
13
14
|
# File 'lib/privatbank/p24.rb', line 10
def self.account_statement card_number, options
options.merge!(merchant_id: Privatbank.configuration.merchant_id,
merchant_password: Privatbank.configuration.merchant_password)
AccountStatement.new(card_number, options).request
end
|
.info(card_number, country = 'UA', options = {}) ⇒ Object
28
29
30
31
32
|
# File 'lib/privatbank/p24.rb', line 28
def self.info card_number, country = 'UA', options = {}
options.merge!(merchant_id: Privatbank.configuration.merchant_id,
merchant_password: Privatbank.configuration.merchant_password)
Info.new(card_number, country, options).request
end
|
.payment_status(payment_id, ref, options = {}) ⇒ Object
34
35
36
37
38
|
# File 'lib/privatbank/p24.rb', line 34
def self.payment_status payment_id, ref, options = {}
options.merge!(merchant_id: Privatbank.configuration.merchant_id,
merchant_password: Privatbank.configuration.merchant_password)
PaymentStatus.new(payment_id, ref, options).request
end
|
.send_money_pb(receiver, payment_id, amount, details, currency = 'UAH', options = {}) ⇒ Object
16
17
18
19
20
|
# File 'lib/privatbank/p24.rb', line 16
def self.send_money_pb receiver, payment_id, amount, details, currency = 'UAH', options = {}
options.merge!(merchant_id: Privatbank.configuration.merchant_id,
merchant_password: Privatbank.configuration.merchant_password)
SendMoneyPB.new(receiver, payment_id, amount, currency, details, options).request
end
|
.send_money_visa(receiver, full_name, payment_id, amount, details, currency = 'UAH', options = {}) ⇒ Object
22
23
24
25
26
|
# File 'lib/privatbank/p24.rb', line 22
def self.send_money_visa receiver, full_name, payment_id, amount, details, currency = 'UAH', options = {}
options.merge!(merchant_id: Privatbank.configuration.merchant_id,
merchant_password: Privatbank.configuration.merchant_password)
SendMoneyVisa.new(receiver, full_name, payment_id, amount, currency, details, options).request
end
|