Class: Worldline::Connect::SDK::V1::Domain::PaymentCreationOutput
Instance Attribute Summary collapse
#additional_reference, #external_reference
Instance Method Summary
collapse
new_from_hash
Instance Attribute Details
#is_checked_remember_me ⇒ true/false
16
17
18
|
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16
def is_checked_remember_me
@is_checked_remember_me
end
|
#is_new_token ⇒ true/false
16
17
18
|
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16
def is_new_token
@is_new_token
end
|
#token ⇒ String
16
17
18
|
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16
def token
@token
end
|
#tokenization_succeeded ⇒ true/false
16
17
18
|
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16
def tokenization_succeeded
@tokenization_succeeded
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 36
def from_hash(hash)
super
if hash.has_key? 'isCheckedRememberMe'
@is_checked_remember_me = hash['isCheckedRememberMe']
end
if hash.has_key? 'isNewToken'
@is_new_token = hash['isNewToken']
end
if hash.has_key? 'token'
@token = hash['token']
end
if hash.has_key? 'tokenizationSucceeded'
@tokenization_succeeded = hash['tokenizationSucceeded']
end
end
|
#to_h ⇒ Hash
27
28
29
30
31
32
33
34
|
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 27
def to_h
hash = super
hash['isCheckedRememberMe'] = @is_checked_remember_me unless @is_checked_remember_me.nil?
hash['isNewToken'] = @is_new_token unless @is_new_token.nil?
hash['token'] = @token unless @token.nil?
hash['tokenizationSucceeded'] = @tokenization_succeeded unless @tokenization_succeeded.nil?
hash
end
|