Class: Payments::Transaction
- Inherits:
-
Object
- Object
- Payments::Transaction
- Defined in:
- lib/payments_pl/transaction.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#city ⇒ Object
Returns the value of attribute city.
-
#client_ip ⇒ Object
Returns the value of attribute client_ip.
-
#country ⇒ Object
Returns the value of attribute country.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#desc2 ⇒ Object
Returns the value of attribute desc2.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#js ⇒ Object
Returns the value of attribute js.
-
#language ⇒ Object
Returns the value of attribute language.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#order_id ⇒ Object
Returns the value of attribute order_id.
-
#pay_type ⇒ Object
Returns the value of attribute pay_type.
-
#payback_login ⇒ Object
Returns the value of attribute payback_login.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#pos_auth_key ⇒ Object
Returns the value of attribute pos_auth_key.
-
#pos_id ⇒ Object
Returns the value of attribute pos_id.
-
#post_code ⇒ Object
Returns the value of attribute post_code.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#sig ⇒ Object
Returns the value of attribute sig.
-
#street ⇒ Object
Returns the value of attribute street.
-
#street_an ⇒ Object
Returns the value of attribute street_an.
-
#street_hn ⇒ Object
Returns the value of attribute street_hn.
-
#trs_desc ⇒ Object
Returns the value of attribute trs_desc.
-
#ts ⇒ Object
Returns the value of attribute ts.
Instance Method Summary collapse
-
#initialize(options) ⇒ Transaction
constructor
A new instance of Transaction.
-
#new_url ⇒ String
Returns url for new payment, used in payment form.
-
#pos ⇒ Object
Returns Pos object for current transaction.
Constructor Details
#initialize(options) ⇒ Transaction
Returns a new instance of Transaction.
8 9 10 11 12 13 14 |
# File 'lib/payments_pl/transaction.rb', line 8 def initialize() .stringify_keys! .each do |k, v| send("#{k}=", v) end end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def amount @amount end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def city @city end |
#client_ip ⇒ Object
Returns the value of attribute client_ip.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def client_ip @client_ip end |
#country ⇒ Object
Returns the value of attribute country.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def country @country end |
#desc ⇒ Object
Returns the value of attribute desc.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def desc @desc end |
#desc2 ⇒ Object
Returns the value of attribute desc2.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def desc2 @desc2 end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def first_name @first_name end |
#js ⇒ Object
Returns the value of attribute js.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def js @js end |
#language ⇒ Object
Returns the value of attribute language.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def language @language end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def last_name @last_name end |
#order_id ⇒ Object
Returns the value of attribute order_id.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def order_id @order_id end |
#pay_type ⇒ Object
Returns the value of attribute pay_type.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def pay_type @pay_type end |
#payback_login ⇒ Object
Returns the value of attribute payback_login.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def payback_login @payback_login end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def phone @phone end |
#pos_auth_key ⇒ Object
Returns the value of attribute pos_auth_key.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def pos_auth_key @pos_auth_key end |
#pos_id ⇒ Object
Returns the value of attribute pos_id.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def pos_id @pos_id end |
#post_code ⇒ Object
Returns the value of attribute post_code.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def post_code @post_code end |
#session_id ⇒ Object
Returns the value of attribute session_id.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def session_id @session_id end |
#sig ⇒ Object
Returns the value of attribute sig.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def sig @sig end |
#street ⇒ Object
Returns the value of attribute street.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def street @street end |
#street_an ⇒ Object
Returns the value of attribute street_an.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def street_an @street_an end |
#street_hn ⇒ Object
Returns the value of attribute street_hn.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def street_hn @street_hn end |
#trs_desc ⇒ Object
Returns the value of attribute trs_desc.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def trs_desc @trs_desc end |
#ts ⇒ Object
Returns the value of attribute ts.
3 4 5 |
# File 'lib/payments_pl/transaction.rb', line 3 def ts @ts end |
Instance Method Details
#new_url ⇒ String
Returns url for new payment, used in payment form
24 25 26 |
# File 'lib/payments_pl/transaction.rb', line 24 def new_url pos.new_transaction_url end |
#pos ⇒ Object
Returns Pos object for current transaction
18 19 20 |
# File 'lib/payments_pl/transaction.rb', line 18 def pos Payments[pos_id] end |