Class: OnlinePayments::SDK::Domain::PaymentProduct11
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProduct11
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product11.rb
Instance Attribute Summary collapse
-
#payment_beneficiary ⇒ String
The current value of payment_beneficiary.
-
#payment_bic ⇒ String
The current value of payment_bic.
-
#payment_iban ⇒ String
The current value of payment_iban.
-
#payment_reference ⇒ String
The current value of payment_reference.
-
#qr_code ⇒ String
The current value of qr_code.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#payment_beneficiary ⇒ String
Returns the current value of payment_beneficiary.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 14 def payment_beneficiary @payment_beneficiary end |
#payment_bic ⇒ String
Returns the current value of payment_bic.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 14 def payment_bic @payment_bic end |
#payment_iban ⇒ String
Returns the current value of payment_iban.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 14 def payment_iban @payment_iban end |
#payment_reference ⇒ String
Returns the current value of payment_reference.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 14 def payment_reference @payment_reference end |
#qr_code ⇒ String
Returns the current value of qr_code.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 14 def qr_code @qr_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 37 def from_hash(hash) super if hash.has_key? 'paymentBIC' @payment_bic = hash['paymentBIC'] end if hash.has_key? 'paymentBeneficiary' @payment_beneficiary = hash['paymentBeneficiary'] end if hash.has_key? 'paymentIBAN' @payment_iban = hash['paymentIBAN'] end if hash.has_key? 'paymentReference' @payment_reference = hash['paymentReference'] end if hash.has_key? 'qrCode' @qr_code = hash['qrCode'] end end |
#to_h ⇒ Hash
27 28 29 30 31 32 33 34 35 |
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 27 def to_h hash = super hash['paymentBIC'] = @payment_bic unless @payment_bic.nil? hash['paymentBeneficiary'] = @payment_beneficiary unless @payment_beneficiary.nil? hash['paymentIBAN'] = @payment_iban unless @payment_iban.nil? hash['paymentReference'] = @payment_reference unless @payment_reference.nil? hash['qrCode'] = @qr_code unless @qr_code.nil? hash end |