Class: Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase

Inherits:
Definitions::AbstractPaymentMethodSpecificInput show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb

Direct Known Subclasses

CardPaymentMethodSpecificInput

Instance Attribute Summary collapse

Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput

#payment_product_id

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#authorization_modeObject

String



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 14

def authorization_mode
  @authorization_mode
end

#customer_referenceObject

String



17
18
19
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 17

def customer_reference
  @customer_reference
end

#recurring_payment_sequence_indicatorObject

String



20
21
22
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 20

def recurring_payment_sequence_indicator
  @recurring_payment_sequence_indicator
end

#requires_approvalObject

true/false



23
24
25
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 23

def requires_approval
  @requires_approval
end

#skip_authenticationObject

true/false



26
27
28
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 26

def skip_authentication
  @skip_authentication
end

#skip_fraud_serviceObject

true/false



29
30
31
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 29

def skip_fraud_service
  @skip_fraud_service
end

#tokenObject

String



32
33
34
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 32

def token
  @token
end

#tokenizeObject

true/false



35
36
37
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 35

def tokenize
  @tokenize
end

#transaction_channelObject

String



38
39
40
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 38

def transaction_channel
  @transaction_channel
end

Instance Method Details

#from_hash(hash) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 54

def from_hash(hash)
  super
  if hash.has_key?('authorizationMode')
    @authorization_mode = hash['authorizationMode']
  end
  if hash.has_key?('customerReference')
    @customer_reference = hash['customerReference']
  end
  if hash.has_key?('recurringPaymentSequenceIndicator')
    @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
  end
  if hash.has_key?('requiresApproval')
    @requires_approval = hash['requiresApproval']
  end
  if hash.has_key?('skipAuthentication')
    @skip_authentication = hash['skipAuthentication']
  end
  if hash.has_key?('skipFraudService')
    @skip_fraud_service = hash['skipFraudService']
  end
  if hash.has_key?('token')
    @token = hash['token']
  end
  if hash.has_key?('tokenize')
    @tokenize = hash['tokenize']
  end
  if hash.has_key?('transactionChannel')
    @transaction_channel = hash['transactionChannel']
  end
end

#to_hObject



40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 40

def to_h
  hash = super
  add_to_hash(hash, 'authorizationMode', @authorization_mode)
  add_to_hash(hash, 'customerReference', @customer_reference)
  add_to_hash(hash, 'recurringPaymentSequenceIndicator', @recurring_payment_sequence_indicator)
  add_to_hash(hash, 'requiresApproval', @requires_approval)
  add_to_hash(hash, 'skipAuthentication', @skip_authentication)
  add_to_hash(hash, 'skipFraudService', @skip_fraud_service)
  add_to_hash(hash, 'token', @token)
  add_to_hash(hash, 'tokenize', @tokenize)
  add_to_hash(hash, 'transactionChannel', @transaction_channel)
  hash
end