class Ingenico::Connect::SDK::Domain::Payment::CustomerPaymentActivity
@attr [Integer] number_of_payment_attempts_last24_hours
@attr [Integer] number_of_payment_attempts_last_year
@attr [Integer] number_of_purchases_last6_months
Attributes
number_of_payment_attempts_last24_hours[RW]
number_of_payment_attempts_last_year[RW]
number_of_purchases_last6_months[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/payment/customer_payment_activity.rb, line 31 def from_hash(hash) super if hash.has_key? 'numberOfPaymentAttemptsLast24Hours' @number_of_payment_attempts_last24_hours = hash['numberOfPaymentAttemptsLast24Hours'] end if hash.has_key? 'numberOfPaymentAttemptsLastYear' @number_of_payment_attempts_last_year = hash['numberOfPaymentAttemptsLastYear'] end if hash.has_key? 'numberOfPurchasesLast6Months' @number_of_purchases_last6_months = hash['numberOfPurchasesLast6Months'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/customer_payment_activity.rb, line 23 def to_h hash = super hash['numberOfPaymentAttemptsLast24Hours'] = @number_of_payment_attempts_last24_hours unless @number_of_payment_attempts_last24_hours.nil? hash['numberOfPaymentAttemptsLastYear'] = @number_of_payment_attempts_last_year unless @number_of_payment_attempts_last_year.nil? hash['numberOfPurchasesLast6Months'] = @number_of_purchases_last6_months unless @number_of_purchases_last6_months.nil? hash end