Class: Nps::Sdk
- Inherits:
-
SoapClient
- Object
- SoapClient
- Nps::Sdk
- Defined in:
- lib/nps/sdk.rb
Instance Method Summary collapse
- #authorize_2p(params) ⇒ Object
- #authorize_3p(params) ⇒ Object
- #bank_payment_2p(params) ⇒ Object
- #bank_payment_3p(params) ⇒ Object
- #capture(params) ⇒ Object
- #cash_payment_3p(params) ⇒ Object
- #change_secret_key(params) ⇒ Object
- #create_client_session(params) ⇒ Object
- #create_customer(params) ⇒ Object
- #create_payment_method(params) ⇒ Object
- #create_payment_method_from_payment(params) ⇒ Object
- #create_payment_method_token(params) ⇒ Object
- #delete_customer(params) ⇒ Object
- #delete_payment_method(params) ⇒ Object
- #fraud_screening(params) ⇒ Object
- #get_iin_details(params) ⇒ Object
- #get_installments_options(params) ⇒ Object
- #notify_fraud_screening_review(params) ⇒ Object
- #pay_online_2p(params) ⇒ Object
- #pay_online_3p(params) ⇒ Object
- #query_card_details(params) ⇒ Object
- #query_card_number(params) ⇒ Object
- #query_txs(params) ⇒ Object
- #recache_payment_method_token(params) ⇒ Object
- #refund(params) ⇒ Object
- #retrieve_customer(params) ⇒ Object
- #retrieve_payment_method(params) ⇒ Object
- #retrieve_payment_method_token(params) ⇒ Object
- #simple_query_tx(params) ⇒ Object
- #split_authorize_2p(params) ⇒ Object
- #split_authorize_3p(params) ⇒ Object
- #split_pay_online_2p(params) ⇒ Object
- #split_pay_online_3p(params) ⇒ Object
- #update_customer(params) ⇒ Object
- #update_payment_method(params) ⇒ Object
Methods inherited from SoapClient
#add_extra_data, #add_secure_hash, #create_hmac_sha256, #create_hmac_sha512, #create_md5_hash, #initialize, #setup, #soap_call, #url_valid?, #valid_url_1?
Constructor Details
This class inherits a constructor from Nps::SoapClient
Instance Method Details
#authorize_2p(params) ⇒ Object
14 15 16 |
# File 'lib/nps/sdk.rb', line 14 def (params) soap_call(Services::AUTHORIZE_2P, params) end |
#authorize_3p(params) ⇒ Object
22 23 24 |
# File 'lib/nps/sdk.rb', line 22 def (params) soap_call(Services::AUTHORIZE_3P, params) end |
#bank_payment_2p(params) ⇒ Object
42 43 44 |
# File 'lib/nps/sdk.rb', line 42 def bank_payment_2p(params) soap_call(Services::BANK_PAYMENT_2P, params) end |
#bank_payment_3p(params) ⇒ Object
38 39 40 |
# File 'lib/nps/sdk.rb', line 38 def bank_payment_3p(params) soap_call(Services::BANK_PAYMENT_3P, params) end |
#capture(params) ⇒ Object
46 47 48 |
# File 'lib/nps/sdk.rb', line 46 def capture(params) soap_call(Services::CAPTURE, params) end |
#cash_payment_3p(params) ⇒ Object
34 35 36 |
# File 'lib/nps/sdk.rb', line 34 def cash_payment_3p(params) soap_call(Services::CASH_PAYMENT_3P, params) end |
#change_secret_key(params) ⇒ Object
62 63 64 |
# File 'lib/nps/sdk.rb', line 62 def change_secret_key(params) soap_call(Services::CHANGE_SECRET_KEY, params) end |
#create_client_session(params) ⇒ Object
130 131 132 |
# File 'lib/nps/sdk.rb', line 130 def create_client_session(params) soap_call(Services::CREATE_CLIENT_SESSION, params) end |
#create_customer(params) ⇒ Object
102 103 104 |
# File 'lib/nps/sdk.rb', line 102 def create_customer(params) soap_call(Services::CREATE_CUSTOMER, params) end |
#create_payment_method(params) ⇒ Object
82 83 84 |
# File 'lib/nps/sdk.rb', line 82 def create_payment_method(params) soap_call(Services::CREATE_PAYMENT_METHOD, params) end |
#create_payment_method_from_payment(params) ⇒ Object
86 87 88 |
# File 'lib/nps/sdk.rb', line 86 def create_payment_method_from_payment(params) soap_call(Services::CREATE_PAYMENT_METHOD_FROM_PAYMENT, params) end |
#create_payment_method_token(params) ⇒ Object
122 123 124 |
# File 'lib/nps/sdk.rb', line 122 def create_payment_method_token(params) soap_call(Services::CREATE_PAYMENT_METHOD_TOKEN, params) end |
#delete_customer(params) ⇒ Object
114 115 116 |
# File 'lib/nps/sdk.rb', line 114 def delete_customer(params) soap_call(Services::DELETE_CUSTOMER, params) end |
#delete_payment_method(params) ⇒ Object
98 99 100 |
# File 'lib/nps/sdk.rb', line 98 def delete_payment_method(params) soap_call(Services::DELETE_PAYMENT_METHOD, params) end |
#fraud_screening(params) ⇒ Object
66 67 68 |
# File 'lib/nps/sdk.rb', line 66 def fraud_screening(params) soap_call(Services::FRAUD_SCREENING, params) end |
#get_iin_details(params) ⇒ Object
74 75 76 |
# File 'lib/nps/sdk.rb', line 74 def get_iin_details(params) soap_call(Services::GET_IIN_DETAILS, params) end |
#get_installments_options(params) ⇒ Object
134 135 136 |
# File 'lib/nps/sdk.rb', line 134 def (params) soap_call(Services::GET_INSTALLMENTS_OPTIONS, params) end |
#notify_fraud_screening_review(params) ⇒ Object
70 71 72 |
# File 'lib/nps/sdk.rb', line 70 def notify_fraud_screening_review(params) soap_call(Services::NOTIFY_FRAUD_SCREENING_REVIEW, params) end |
#pay_online_2p(params) ⇒ Object
10 11 12 |
# File 'lib/nps/sdk.rb', line 10 def pay_online_2p(params) soap_call(Services::PAY_ONLINE_2P, params) end |
#pay_online_3p(params) ⇒ Object
18 19 20 |
# File 'lib/nps/sdk.rb', line 18 def pay_online_3p(params) soap_call(Services::PAY_ONLINE_3P, params) end |
#query_card_details(params) ⇒ Object
146 147 148 |
# File 'lib/nps/sdk.rb', line 146 def query_card_details(params) soap_call(Services::QUERY_CARD_DETAILS, params) end |
#query_card_number(params) ⇒ Object
78 79 80 |
# File 'lib/nps/sdk.rb', line 78 def query_card_number(params) soap_call(Services::QUERY_CARD_NUMBER, params) end |
#query_txs(params) ⇒ Object
58 59 60 |
# File 'lib/nps/sdk.rb', line 58 def query_txs(params) soap_call(Services::QUERY_TXS, params) end |
#recache_payment_method_token(params) ⇒ Object
118 119 120 |
# File 'lib/nps/sdk.rb', line 118 def recache_payment_method_token(params) soap_call(Services::RECACHE_PAYMENT_METHOD_TOKEN, params) end |
#refund(params) ⇒ Object
50 51 52 |
# File 'lib/nps/sdk.rb', line 50 def refund(params) soap_call(Services::REFUND, params) end |
#retrieve_customer(params) ⇒ Object
106 107 108 |
# File 'lib/nps/sdk.rb', line 106 def retrieve_customer(params) soap_call(Services::RETRIEVE_CUSTOMER, params) end |
#retrieve_payment_method(params) ⇒ Object
90 91 92 |
# File 'lib/nps/sdk.rb', line 90 def retrieve_payment_method(params) soap_call(Services::RETRIEVE_PAYMENT_METHOD, params) end |
#retrieve_payment_method_token(params) ⇒ Object
126 127 128 |
# File 'lib/nps/sdk.rb', line 126 def retrieve_payment_method_token(params) soap_call(Services::RETRIEVE_PAYMENT_METHOD_TOKEN, params) end |
#simple_query_tx(params) ⇒ Object
54 55 56 |
# File 'lib/nps/sdk.rb', line 54 def simple_query_tx(params) soap_call(Services::SIMPLE_QUERY_TX, params) end |
#split_authorize_2p(params) ⇒ Object
142 143 144 |
# File 'lib/nps/sdk.rb', line 142 def (params) soap_call(Services::SPLIT_AUTHORIZE_2P, params) end |
#split_authorize_3p(params) ⇒ Object
30 31 32 |
# File 'lib/nps/sdk.rb', line 30 def (params) soap_call(Services::SPLIT_AUTHORIZE_3P, params) end |
#split_pay_online_2p(params) ⇒ Object
138 139 140 |
# File 'lib/nps/sdk.rb', line 138 def split_pay_online_2p(params) soap_call(Services::SPLIT_PAY_ONLINE_2P, params) end |
#split_pay_online_3p(params) ⇒ Object
26 27 28 |
# File 'lib/nps/sdk.rb', line 26 def split_pay_online_3p(params) soap_call(Services::SPLIT_PAY_ONLINE_3P, params) end |
#update_customer(params) ⇒ Object
110 111 112 |
# File 'lib/nps/sdk.rb', line 110 def update_customer(params) soap_call(Services::UPDATE_CUSTOMER, params) end |
#update_payment_method(params) ⇒ Object
94 95 96 |
# File 'lib/nps/sdk.rb', line 94 def update_payment_method(params) soap_call(Services::UPDATE_PAYMENT_METHOD, params) end |