class Ingenico::Connect::SDK::Domain::Payment::AbstractRedirectPaymentMethodSpecificInput
@attr [Integer] expiration_period
@attr [String] recurring_payment_sequence_indicator
@attr [true/false] requires_approval
@attr [String] token @attr [true/false] tokenize
Attributes
expiration_period[RW]
recurring_payment_sequence_indicator[RW]
requires_approval[RW]
token[RW]
tokenize[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput#from_hash
# File lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_specific_input.rb, line 39 def from_hash(hash) super if hash.has_key? 'expirationPeriod' @expiration_period = hash['expirationPeriod'] 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? 'token' @token = hash['token'] end if hash.has_key? 'tokenize' @tokenize = hash['tokenize'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput#to_h
# File lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_specific_input.rb, line 29 def to_h hash = super hash['expirationPeriod'] = @expiration_period unless @expiration_period.nil? hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil? hash['requiresApproval'] = @requires_approval unless @requires_approval.nil? hash['token'] = @token unless @token.nil? hash['tokenize'] = @tokenize unless @tokenize.nil? hash end