Class: Ingenico::Connect::SDK::Domain::Payment::Level3SummaryData
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::Level3SummaryData
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb
Overview
Deprecated; Use Order.shoppingCart instead
Instance Attribute Summary collapse
-
#discount_amount ⇒ Object
Integer.
-
#duty_amount ⇒ Object
Integer.
-
#shipping_amount ⇒ Object
Integer.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#discount_amount ⇒ Object
Integer
Deprecated; Use ShoppingCart.amountbreakdown with type DISCOUNT instead
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 17 def discount_amount @discount_amount end |
#duty_amount ⇒ Object
Integer
Deprecated; Use ShoppingCart.amountbreakdown with type DUTY instead
22 23 24 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 22 def duty_amount @duty_amount end |
#shipping_amount ⇒ Object
Integer
Deprecated; Use ShoppingCart.amountbreakdown with type SHIPPING instead
27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 27 def shipping_amount @shipping_amount end |
Instance Method Details
#from_hash(hash) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 37 def from_hash(hash) super if hash.has_key?('discountAmount') @discount_amount = hash['discountAmount'] end if hash.has_key?('dutyAmount') @duty_amount = hash['dutyAmount'] end if hash.has_key?('shippingAmount') @shipping_amount = hash['shippingAmount'] end end |
#to_h ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 29 def to_h hash = super add_to_hash(hash, 'discountAmount', @discount_amount) add_to_hash(hash, 'dutyAmount', @duty_amount) add_to_hash(hash, 'shippingAmount', @shipping_amount) hash end |