Class: Ingenico::Connect::SDK::Domain::Hostedcheckout::CreatedPaymentOutput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Hostedcheckout::CreatedPaymentOutput
- Defined in:
- lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb
Instance Attribute Summary collapse
-
#displayed_data ⇒ Ingenico::Connect::SDK::Domain::Hostedcheckout::DisplayedData
The current value of displayed_data.
-
#is_checked_remember_me ⇒ true/false
The current value of is_checked_remember_me.
-
#payment ⇒ Ingenico::Connect::SDK::Domain::Payment::Payment
The current value of payment.
-
#payment_creation_references ⇒ Ingenico::Connect::SDK::Domain::Payment::PaymentCreationReferences
The current value of payment_creation_references.
-
#payment_status_category ⇒ Object
deprecated
Deprecated.
Use Payment.statusOutput.statusCategory instead
-
#tokenization_succeeded ⇒ true/false
The current value of tokenization_succeeded.
-
#tokens ⇒ String
The current value of tokens.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#displayed_data ⇒ Ingenico::Connect::SDK::Domain::Hostedcheckout::DisplayedData
Returns the current value of displayed_data.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 21 def displayed_data @displayed_data end |
#is_checked_remember_me ⇒ true/false
Returns the current value of is_checked_remember_me.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 21 def is_checked_remember_me @is_checked_remember_me end |
#payment ⇒ Ingenico::Connect::SDK::Domain::Payment::Payment
Returns the current value of payment.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 21 def payment @payment end |
#payment_creation_references ⇒ Ingenico::Connect::SDK::Domain::Payment::PaymentCreationReferences
Returns the current value of payment_creation_references.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 21 def payment_creation_references @payment_creation_references end |
#payment_status_category ⇒ Object
Deprecated.
Use Payment.statusOutput.statusCategory instead
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 21 def payment_status_category @payment_status_category end |
#tokenization_succeeded ⇒ true/false
Returns the current value of tokenization_succeeded.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 21 def tokenization_succeeded @tokenization_succeeded end |
#tokens ⇒ String
Returns the current value of tokens.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 21 def tokens @tokens end |
Instance Method Details
#from_hash(hash) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 52 def from_hash(hash) super if hash.has_key? 'displayedData' raise TypeError, "value '%s' is not a Hash" % [hash['displayedData']] unless hash['displayedData'].is_a? Hash @displayed_data = Ingenico::Connect::SDK::Domain::Hostedcheckout::DisplayedData.new_from_hash(hash['displayedData']) end if hash.has_key? 'isCheckedRememberMe' @is_checked_remember_me = hash['isCheckedRememberMe'] end if hash.has_key? 'payment' raise TypeError, "value '%s' is not a Hash" % [hash['payment']] unless hash['payment'].is_a? Hash @payment = Ingenico::Connect::SDK::Domain::Payment::Payment.new_from_hash(hash['payment']) end if hash.has_key? 'paymentCreationReferences' raise TypeError, "value '%s' is not a Hash" % [hash['paymentCreationReferences']] unless hash['paymentCreationReferences'].is_a? Hash @payment_creation_references = Ingenico::Connect::SDK::Domain::Payment::PaymentCreationReferences.new_from_hash(hash['paymentCreationReferences']) end if hash.has_key? 'paymentStatusCategory' @payment_status_category = hash['paymentStatusCategory'] end if hash.has_key? 'tokenizationSucceeded' @tokenization_succeeded = hash['tokenizationSucceeded'] end if hash.has_key? 'tokens' @tokens = hash['tokens'] end end |
#to_h ⇒ Hash
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb', line 40 def to_h hash = super hash['displayedData'] = @displayed_data.to_h unless @displayed_data.nil? hash['isCheckedRememberMe'] = @is_checked_remember_me unless @is_checked_remember_me.nil? hash['payment'] = @payment.to_h unless @payment.nil? hash['paymentCreationReferences'] = @payment_creation_references.to_h unless @payment_creation_references.nil? hash['paymentStatusCategory'] = @payment_status_category unless @payment_status_category.nil? hash['tokenizationSucceeded'] = @tokenization_succeeded unless @tokenization_succeeded.nil? hash['tokens'] = @tokens unless @tokens.nil? hash end |