Class: OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputBase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#allow_dynamic_linkingtrue/false

Returns the current value of allow_dynamic_linking.

Returns:

  • (true/false)

    the current value of allow_dynamic_linking



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def allow_dynamic_linking
  @allow_dynamic_linking
end

#authorization_modeString

Returns the current value of authorization_mode.

Returns:

  • (String)

    the current value of authorization_mode



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def authorization_mode
  @authorization_mode
end

#currency_conversion_specific_inputOnlinePayments::SDK::Domain::CurrencyConversionSpecificInput

Returns the current value of currency_conversion_specific_input.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def currency_conversion_specific_input
  @currency_conversion_specific_input
end

#initial_scheme_transaction_idString

Returns the current value of initial_scheme_transaction_id.

Returns:

  • (String)

    the current value of initial_scheme_transaction_id



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def initial_scheme_transaction_id
  @initial_scheme_transaction_id
end

#multiple_payment_informationOnlinePayments::SDK::Domain::MultiplePaymentInformation

Returns the current value of multiple_payment_information.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def multiple_payment_information
  @multiple_payment_information
end

#payment_product130_specific_inputOnlinePayments::SDK::Domain::PaymentProduct130SpecificInput

Returns the current value of payment_product130_specific_input.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def payment_product130_specific_input
  @payment_product130_specific_input
end

#payment_product3012_specific_inputOnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput

Returns the current value of payment_product3012_specific_input.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def payment_product3012_specific_input
  @payment_product3012_specific_input
end

#payment_product3208_specific_inputOnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput

Returns the current value of payment_product3208_specific_input.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def payment_product3208_specific_input
  @payment_product3208_specific_input
end

#payment_product3209_specific_inputOnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput

Returns the current value of payment_product3209_specific_input.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def payment_product3209_specific_input
  @payment_product3209_specific_input
end

#payment_product5100_specific_inputOnlinePayments::SDK::Domain::PaymentProduct5100SpecificInput

Returns the current value of payment_product5100_specific_input.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def payment_product5100_specific_input
  @payment_product5100_specific_input
end

#payment_product_idInteger

Returns the current value of payment_product_id.

Returns:

  • (Integer)

    the current value of payment_product_id



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def payment_product_id
  @payment_product_id
end

#recurringOnlinePayments::SDK::Domain::CardRecurrenceDetails

Returns the current value of recurring.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def recurring
  @recurring
end

#three_d_secureOnlinePayments::SDK::Domain::ThreeDSecureBase

Returns the current value of three_d_secure.

Returns:



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def three_d_secure
  @three_d_secure
end

#tokenString

Returns the current value of token.

Returns:

  • (String)

    the current value of token



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def token
  @token
end

#tokenizetrue/false

Returns the current value of tokenize.

Returns:

  • (true/false)

    the current value of tokenize



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def tokenize
  @tokenize
end

#transaction_channelString

Returns the current value of transaction_channel.

Returns:

  • (String)

    the current value of transaction_channel



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def transaction_channel
  @transaction_channel
end

#unscheduled_card_on_file_requestorString

Returns the current value of unscheduled_card_on_file_requestor.

Returns:

  • (String)

    the current value of unscheduled_card_on_file_requestor



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def unscheduled_card_on_file_requestor
  @unscheduled_card_on_file_requestor
end

#unscheduled_card_on_file_sequence_indicatorString

Returns the current value of unscheduled_card_on_file_sequence_indicator.

Returns:

  • (String)

    the current value of unscheduled_card_on_file_sequence_indicator



36
37
38
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 36

def unscheduled_card_on_file_sequence_indicator
  @unscheduled_card_on_file_sequence_indicator
end

Instance Method Details

#from_hash(hash) ⇒ Object



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 98

def from_hash(hash)
  super
  if hash.has_key? 'allowDynamicLinking'
    @allow_dynamic_linking = hash['allowDynamicLinking']
  end
  if hash.has_key? 'authorizationMode'
    @authorization_mode = hash['authorizationMode']
  end
  if hash.has_key? 'currencyConversionSpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversionSpecificInput']] unless hash['currencyConversionSpecificInput'].is_a? Hash
    @currency_conversion_specific_input = OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput.new_from_hash(hash['currencyConversionSpecificInput'])
  end
  if hash.has_key? 'initialSchemeTransactionId'
    @initial_scheme_transaction_id = hash['initialSchemeTransactionId']
  end
  if hash.has_key? 'multiplePaymentInformation'
    raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
    @multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
  end
  if hash.has_key? 'paymentProduct130SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
    @payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
  end
  if hash.has_key? 'paymentProduct3012SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash
    @payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput'])
  end
  if hash.has_key? 'paymentProduct3208SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificInput']] unless hash['paymentProduct3208SpecificInput'].is_a? Hash
    @payment_product3208_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput.new_from_hash(hash['paymentProduct3208SpecificInput'])
  end
  if hash.has_key? 'paymentProduct3209SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3209SpecificInput']] unless hash['paymentProduct3209SpecificInput'].is_a? Hash
    @payment_product3209_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput.new_from_hash(hash['paymentProduct3209SpecificInput'])
  end
  if hash.has_key? 'paymentProduct5100SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5100SpecificInput']] unless hash['paymentProduct5100SpecificInput'].is_a? Hash
    @payment_product5100_specific_input = OnlinePayments::SDK::Domain::PaymentProduct5100SpecificInput.new_from_hash(hash['paymentProduct5100SpecificInput'])
  end
  if hash.has_key? 'paymentProductId'
    @payment_product_id = hash['paymentProductId']
  end
  if hash.has_key? 'recurring'
    raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
    @recurring = OnlinePayments::SDK::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring'])
  end
  if hash.has_key? 'threeDSecure'
    raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
    @three_d_secure = OnlinePayments::SDK::Domain::ThreeDSecureBase.new_from_hash(hash['threeDSecure'])
  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
  if hash.has_key? 'unscheduledCardOnFileRequestor'
    @unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor']
  end
  if hash.has_key? 'unscheduledCardOnFileSequenceIndicator'
    @unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator']
  end
end

#to_hHash

Returns:

  • (Hash)


75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb', line 75

def to_h
  hash = super
  hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil?
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
  hash['currencyConversionSpecificInput'] = @currency_conversion_specific_input.to_h unless @currency_conversion_specific_input.nil?
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
  hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
  hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h unless @payment_product130_specific_input.nil?
  hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h unless @payment_product3012_specific_input.nil?
  hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h unless @payment_product3208_specific_input.nil?
  hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h unless @payment_product3209_specific_input.nil?
  hash['paymentProduct5100SpecificInput'] = @payment_product5100_specific_input.to_h unless @payment_product5100_specific_input.nil?
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
  hash['recurring'] = @recurring.to_h unless @recurring.nil?
  hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
  hash['token'] = @token unless @token.nil?
  hash['tokenize'] = @tokenize unless @tokenize.nil?
  hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil?
  hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
  hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
  hash
end