Class: Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#app_idString

Returns the current value of app_id.

Returns:

  • (String)

    the current value of app_id



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 19

def app_id
  @app_id
end

#nonce_strString

Returns the current value of nonce_str.

Returns:

  • (String)

    the current value of nonce_str



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 19

def nonce_str
  @nonce_str
end

#package_signString

Returns the current value of package_sign.

Returns:

  • (String)

    the current value of package_sign



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 19

def package_sign
  @package_sign
end

#pay_signString

Returns the current value of pay_sign.

Returns:

  • (String)

    the current value of pay_sign



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 19

def pay_sign
  @pay_sign
end

#prepay_idString

Returns the current value of prepay_id.

Returns:

  • (String)

    the current value of prepay_id



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 19

def prepay_id
  @prepay_id
end

#sign_typeString

Returns the current value of sign_type.

Returns:

  • (String)

    the current value of sign_type



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 19

def sign_type
  @sign_type
end

#time_stampString

Returns the current value of time_stamp.

Returns:

  • (String)

    the current value of time_stamp



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 19

def time_stamp
  @time_stamp
end

Instance Method Details

#from_hash(hash) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 48

def from_hash(hash)
  super
  if hash.has_key? 'appId'
    @app_id = hash['appId']
  end
  if hash.has_key? 'nonceStr'
    @nonce_str = hash['nonceStr']
  end
  if hash.has_key? 'packageSign'
    @package_sign = hash['packageSign']
  end
  if hash.has_key? 'paySign'
    @pay_sign = hash['paySign']
  end
  if hash.has_key? 'prepayId'
    @prepay_id = hash['prepayId']
  end
  if hash.has_key? 'signType'
    @sign_type = hash['signType']
  end
  if hash.has_key? 'timeStamp'
    @time_stamp = hash['timeStamp']
  end
end

#to_hHash

Returns:

  • (Hash)


36
37
38
39
40
41
42
43
44
45
46
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb', line 36

def to_h
  hash = super
  hash['appId'] = @app_id unless @app_id.nil?
  hash['nonceStr'] = @nonce_str unless @nonce_str.nil?
  hash['packageSign'] = @package_sign unless @package_sign.nil?
  hash['paySign'] = @pay_sign unless @pay_sign.nil?
  hash['prepayId'] = @prepay_id unless @prepay_id.nil?
  hash['signType'] = @sign_type unless @sign_type.nil?
  hash['timeStamp'] = @time_stamp unless @time_stamp.nil?
  hash
end