Class: PaysonAPI::V2::Requests::UpdateCheckout
- Inherits:
-
Object
- Object
- PaysonAPI::V2::Requests::UpdateCheckout
- Defined in:
- lib/payson_api/v2/requests/update_checkout.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#merchant ⇒ Object
Returns the value of attribute merchant.
-
#order ⇒ Object
Returns the value of attribute order.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ UpdateCheckout
constructor
A new instance of UpdateCheckout.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ UpdateCheckout
9 10 11 12 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 9 def initialize @order = PaysonAPI::V2::Requests::Order.new @merchant = PaysonAPI::V2::Requests::Merchant.new end |
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def currency @currency end |
#customer ⇒ Object
Returns the value of attribute customer.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def customer @customer end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def id @id end |
#locale ⇒ Object
Returns the value of attribute locale.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def locale @locale end |
#merchant ⇒ Object
Returns the value of attribute merchant.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def merchant @merchant end |
#order ⇒ Object
Returns the value of attribute order.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def order @order end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7 def status @status end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 14 def to_hash {}.tap do |hash| hash['id'] = @id hash['order'] = @order.to_hash hash['status'] = @status hash['merchant'] = @merchant.to_hash end end |