Class: Worldline::Connect::SDK::V1::Domain::PaymentCreationOutput

Inherits:
PaymentCreationReferences show all
Defined in:
lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentCreationReferences

#additional_reference, #external_reference

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#is_checked_remember_metrue/false

Returns the current value of is_checked_remember_me.

Returns:

  • (true/false)

    the current value of is_checked_remember_me



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_tokentrue/false

Returns the current value of is_new_token.

Returns:

  • (true/false)

    the current value of is_new_token



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16

def is_new_token
  @is_new_token
end

#tokenString

Returns the current value of token.

Returns:

  • (String)

    the current value of token



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16

def token
  @token
end

#tokenization_succeededtrue/false

Returns the current value of tokenization_succeeded.

Returns:

  • (true/false)

    the current value of tokenization_succeeded



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_hHash

Returns:

  • (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