Class: Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb
Instance Attribute Summary collapse
-
#app_id ⇒ String
The current value of app_id.
-
#nonce_str ⇒ String
The current value of nonce_str.
-
#package_sign ⇒ String
The current value of package_sign.
-
#pay_sign ⇒ String
The current value of pay_sign.
-
#prepay_id ⇒ String
The current value of prepay_id.
-
#sign_type ⇒ String
The current value of sign_type.
-
#time_stamp ⇒ String
The current value of time_stamp.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#app_id ⇒ String
Returns 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_str ⇒ String
Returns 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_sign ⇒ String
Returns 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_sign ⇒ String
Returns 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_id ⇒ String
Returns 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_type ⇒ String
Returns 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_stamp ⇒ String
Returns 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_h ⇒ 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 |