Class: Ingenico::Connect::SDK::Domain::Payment::Level3SummaryData Deprecated
- 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 ShoppingCart.amountBreakdown instead
Instance Attribute Summary collapse
-
#discount_amount ⇒ Object
deprecated
Deprecated.
Use ShoppingCart.amountBreakdown with type DISCOUNT instead
-
#duty_amount ⇒ Object
deprecated
Deprecated.
Use ShoppingCart.amountBreakdown with type DUTY instead
-
#shipping_amount ⇒ Object
deprecated
Deprecated.
Use ShoppingCart.amountBreakdown with type SHIPPING instead
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#discount_amount ⇒ Object
Deprecated.
Use ShoppingCart.amountBreakdown with type DISCOUNT instead
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 16 def discount_amount @discount_amount end |
#duty_amount ⇒ Object
Deprecated.
Use ShoppingCart.amountBreakdown with type DUTY instead
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 16 def duty_amount @duty_amount end |
#shipping_amount ⇒ Object
Deprecated.
Use ShoppingCart.amountBreakdown with type SHIPPING instead
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 16 def shipping_amount @shipping_amount end |
Instance Method Details
#from_hash(hash) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 39 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 ⇒ Hash
31 32 33 34 35 36 37 |
# File 'lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb', line 31 def to_h hash = super hash['discountAmount'] = @discount_amount unless @discount_amount.nil? hash['dutyAmount'] = @duty_amount unless @duty_amount.nil? hash['shippingAmount'] = @shipping_amount unless @shipping_amount.nil? hash end |