Class: OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#force_authenticationtrue/false



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13

def force_authentication
  @force_authentication
end

#is_deferred_paymenttrue/false



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13

def is_deferred_payment
  @is_deferred_payment
end

#is_wip_transactiontrue/false



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13

def is_wip_transaction
  @is_wip_transaction
end

#wip_merchant_authentication_methodString



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13

def wip_merchant_authentication_method
  @wip_merchant_authentication_method
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/payment_product3012_specific_input.rb', line 33

def from_hash(hash)
  super
  if hash.has_key? 'forceAuthentication'
    @force_authentication = hash['forceAuthentication']
  end
  if hash.has_key? 'isDeferredPayment'
    @is_deferred_payment = hash['isDeferredPayment']
  end
  if hash.has_key? 'isWipTransaction'
    @is_wip_transaction = hash['isWipTransaction']
  end
  if hash.has_key? 'wipMerchantAuthenticationMethod'
    @wip_merchant_authentication_method = hash['wipMerchantAuthenticationMethod']
  end
end

#to_hHash



24
25
26
27
28
29
30
31
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 24

def to_h
  hash = super
  hash['forceAuthentication'] = @force_authentication unless @force_authentication.nil?
  hash['isDeferredPayment'] = @is_deferred_payment unless @is_deferred_payment.nil?
  hash['isWipTransaction'] = @is_wip_transaction unless @is_wip_transaction.nil?
  hash['wipMerchantAuthenticationMethod'] = @wip_merchant_authentication_method unless @wip_merchant_authentication_method.nil?
  hash
end