class Hps::HpsGiftCardAlias
¶ ↑
HpsGiftCardAlias
=¶ ↑
¶ ↑
Attributes
gift_card[RW]
Public Class Methods
from_response(response, txn_type)
click to toggle source
# File lib/hps/entities/hps_gift_card.rb, line 121 def self.from_response(response, txn_type) alias_response = response['Transaction'][txn_type] alias_item = HpsGiftCardAlias.new alias_item.transaction_id = response['Header']['GatewayTxnId'] alias_item.gift_card = HpsGiftCard.new(alias_response['CardData']) alias_item.response_code = alias_response['RspCode'] alias_item.response_text = alias_response['RspText'] return alias_item end