Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#skip_email_validationtrue/false

Returns the current value of skip_email_validation.

Returns:

  • (true/false)

    the current value of skip_email_validation



10
11
12
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb', line 10

def skip_email_validation
  @skip_email_validation
end

Instance Method Details

#from_hash(hash) ⇒ Object



21
22
23
24
25
26
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb', line 21

def from_hash(hash)
  super
  if hash.has_key? 'skipEmailValidation'
    @skip_email_validation = hash['skipEmailValidation']
  end
end

#to_hHash

Returns:

  • (Hash)


15
16
17
18
19
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb', line 15

def to_h
  hash = super
  hash['skipEmailValidation'] = @skip_email_validation unless @skip_email_validation.nil?
  hash
end