class Ingenico::Connect::SDK::Domain::Payment::PaymentProduct863ThirdPartyData
@attr [String] app_id
@attr [String] nonce_str
@attr [String] package_sign
@attr [String] pay_sign
@attr [String] prepay_id
@attr [String] sign_type
@attr [String] time_stamp
Attributes
app_id[RW]
nonce_str[RW]
package_sign[RW]
pay_sign[RW]
prepay_id[RW]
sign_type[RW]
time_stamp[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/payment_product863_third_party_data.rb, line 47 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/payment_product863_third_party_data.rb, line 35 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