Class: Worldline::Connect::SDK::V1::Domain::PaymentProductFieldDisplayHints
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PaymentProductFieldDisplayHints
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb
Instance Attribute Summary collapse
-
#always_show ⇒ true/false
The current value of always_show.
-
#display_order ⇒ Integer
The current value of display_order.
-
#form_element ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProductFieldFormElement
The current value of form_element.
-
#label ⇒ String
The current value of label.
-
#link ⇒ String
The current value of link.
-
#mask ⇒ String
The current value of mask.
-
#obfuscate ⇒ true/false
The current value of obfuscate.
-
#placeholder_label ⇒ String
The current value of placeholder_label.
-
#preferred_input_type ⇒ String
The current value of preferred_input_type.
-
#tooltip ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProductFieldTooltip
The current value of tooltip.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#always_show ⇒ true/false
Returns the current value of always_show.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def always_show @always_show end |
#display_order ⇒ Integer
Returns the current value of display_order.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def display_order @display_order end |
#form_element ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProductFieldFormElement
Returns the current value of form_element.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def form_element @form_element end |
#label ⇒ String
Returns the current value of label.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def label @label end |
#link ⇒ String
Returns the current value of link.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def link @link end |
#mask ⇒ String
Returns the current value of mask.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def mask @mask end |
#obfuscate ⇒ true/false
Returns the current value of obfuscate.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def obfuscate @obfuscate end |
#placeholder_label ⇒ String
Returns the current value of placeholder_label.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def placeholder_label @placeholder_label end |
#preferred_input_type ⇒ String
Returns the current value of preferred_input_type.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def preferred_input_type @preferred_input_type end |
#tooltip ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProductFieldTooltip
Returns the current value of tooltip.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 24 def tooltip @tooltip end |
Instance Method Details
#from_hash(hash) ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 62 def from_hash(hash) super if hash.has_key? 'alwaysShow' @always_show = hash['alwaysShow'] end if hash.has_key? 'displayOrder' @display_order = hash['displayOrder'] end if hash.has_key? 'formElement' raise TypeError, "value '%s' is not a Hash" % [hash['formElement']] unless hash['formElement'].is_a? Hash @form_element = Worldline::Connect::SDK::V1::Domain::PaymentProductFieldFormElement.new_from_hash(hash['formElement']) end if hash.has_key? 'label' @label = hash['label'] end if hash.has_key? 'link' @link = hash['link'] end if hash.has_key? 'mask' @mask = hash['mask'] end if hash.has_key? 'obfuscate' @obfuscate = hash['obfuscate'] end if hash.has_key? 'placeholderLabel' @placeholder_label = hash['placeholderLabel'] end if hash.has_key? 'preferredInputType' @preferred_input_type = hash['preferredInputType'] end if hash.has_key? 'tooltip' raise TypeError, "value '%s' is not a Hash" % [hash['tooltip']] unless hash['tooltip'].is_a? Hash @tooltip = Worldline::Connect::SDK::V1::Domain::PaymentProductFieldTooltip.new_from_hash(hash['tooltip']) end end |
#to_h ⇒ Hash
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb', line 47 def to_h hash = super hash['alwaysShow'] = @always_show unless @always_show.nil? hash['displayOrder'] = @display_order unless @display_order.nil? hash['formElement'] = @form_element.to_h unless @form_element.nil? hash['label'] = @label unless @label.nil? hash['link'] = @link unless @link.nil? hash['mask'] = @mask unless @mask.nil? hash['obfuscate'] = @obfuscate unless @obfuscate.nil? hash['placeholderLabel'] = @placeholder_label unless @placeholder_label.nil? hash['preferredInputType'] = @preferred_input_type unless @preferred_input_type.nil? hash['tooltip'] = @tooltip.to_h unless @tooltip.nil? hash end |