Class: OnlinePayments::SDK::Domain::SubsequentCardPaymentMethodSpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::SubsequentCardPaymentMethodSpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#authorization_mode ⇒ String
The current value of authorization_mode.
-
#payment_number ⇒ Integer
The current value of payment_number.
-
#scheme_reference_data ⇒ Object
deprecated
Deprecated.
Deprecated
-
#subsequent_type ⇒ String
The current value of subsequent_type.
-
#token ⇒ Object
deprecated
Deprecated.
ID of the token to use to create the payment.
-
#transaction_channel ⇒ String
The current value of transaction_channel.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#authorization_mode ⇒ String
Returns the current value of authorization_mode.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def end |
#payment_number ⇒ Integer
Returns the current value of payment_number.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def payment_number @payment_number end |
#scheme_reference_data ⇒ Object
Deprecated.
Deprecated
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def scheme_reference_data @scheme_reference_data end |
#subsequent_type ⇒ String
Returns the current value of subsequent_type.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def subsequent_type @subsequent_type end |
#token ⇒ Object
Deprecated.
ID of the token to use to create the payment.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def token @token end |
#transaction_channel ⇒ String
Returns the current value of transaction_channel.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def transaction_channel @transaction_channel end |
Instance Method Details
#from_hash(hash) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 43 def from_hash(hash) super if hash.has_key? 'authorizationMode' = hash['authorizationMode'] end if hash.has_key? 'paymentNumber' @payment_number = hash['paymentNumber'] end if hash.has_key? 'schemeReferenceData' @scheme_reference_data = hash['schemeReferenceData'] end if hash.has_key? 'subsequentType' @subsequent_type = hash['subsequentType'] end if hash.has_key? 'token' @token = hash['token'] end if hash.has_key? 'transactionChannel' @transaction_channel = hash['transactionChannel'] end end |
#to_h ⇒ Hash
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 32 def to_h hash = super hash['authorizationMode'] = unless .nil? hash['paymentNumber'] = @payment_number unless @payment_number.nil? hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil? hash['subsequentType'] = @subsequent_type unless @subsequent_type.nil? hash['token'] = @token unless @token.nil? hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil? hash end |