Class: Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb
Direct Known Subclasses
Hostedcheckout::MobilePaymentMethodSpecificInputHostedCheckout, Payment::AbstractBankTransferPaymentMethodSpecificInput, Payment::AbstractCardPaymentMethodSpecificInput, Payment::AbstractCashPaymentMethodSpecificInput, Payment::AbstractEInvoicePaymentMethodSpecificInput, Payment::AbstractRedirectPaymentMethodSpecificInput, Payment::AbstractSepaDirectDebitPaymentMethodSpecificInput, Payment::InvoicePaymentMethodSpecificInput, Payment::MobilePaymentMethodSpecificInput, Payment::NonSepaDirectDebitPaymentMethodSpecificInput
Instance Attribute Summary collapse
-
#payment_product_id ⇒ Integer
The current value of payment_product_id.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#payment_product_id ⇒ Integer
Returns the current value of payment_product_id.
12 13 14 |
# File 'lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb', line 12 def payment_product_id @payment_product_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb', line 23 def from_hash(hash) super if hash.has_key? 'paymentProductId' @payment_product_id = hash['paymentProductId'] end end |
#to_h ⇒ Hash
17 18 19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb', line 17 def to_h hash = super hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil? hash end |