Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb
Instance Attribute Summary collapse
-
#address_selection_at_pay_pal ⇒ true/false
The current value of address_selection_at_pay_pal.
-
#custom ⇒ String
The current value of custom.
-
#java_script_sdk_flow ⇒ true/false
The current value of java_script_sdk_flow.
-
#pay_later ⇒ true/false
The current value of pay_later.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#address_selection_at_pay_pal ⇒ true/false
Returns the current value of address_selection_at_pay_pal.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13 def address_selection_at_pay_pal @address_selection_at_pay_pal end |
#custom ⇒ String
Returns the current value of custom.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13 def custom @custom end |
#java_script_sdk_flow ⇒ true/false
Returns the current value of java_script_sdk_flow.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13 def java_script_sdk_flow @java_script_sdk_flow end |
#pay_later ⇒ true/false
Returns the current value of pay_later.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13 def pay_later @pay_later end |
Instance Method Details
#from_hash(hash) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 33 def from_hash(hash) super if hash.has_key? 'JavaScriptSdkFlow' @java_script_sdk_flow = hash['JavaScriptSdkFlow'] end if hash.has_key? 'addressSelectionAtPayPal' @address_selection_at_pay_pal = hash['addressSelectionAtPayPal'] end if hash.has_key? 'custom' @custom = hash['custom'] end if hash.has_key? 'payLater' @pay_later = hash['payLater'] end end |
#to_h ⇒ Hash
24 25 26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 24 def to_h hash = super hash['JavaScriptSdkFlow'] = @java_script_sdk_flow unless @java_script_sdk_flow.nil? hash['addressSelectionAtPayPal'] = @address_selection_at_pay_pal unless @address_selection_at_pay_pal.nil? hash['custom'] = @custom unless @custom.nil? hash['payLater'] = @pay_later unless @pay_later.nil? hash end |