lib/braintree/transaction.rb in braintree-2.102.0 vs lib/braintree/transaction.rb in braintree-2.103.0
- old
+ new
@@ -23,10 +23,11 @@
AVS = "avs"
AVSAndCVV = "avs_and_cvv"
CVV = "cvv"
Duplicate = "duplicate"
Fraud = "fraud"
+ RiskThreshold = "risk_threshold"
ThreeDSecure = "three_d_secure"
TokenIssuance = "token_issuance"
Unrecognized = "unrecognized"
end
@@ -140,10 +141,11 @@
attr_reader :processor_response_code # Response code from the processor.
attr_reader :processor_response_text # Response text from the processor.
attr_reader :processor_response_type # Response type from the processor.
attr_reader :processor_settlement_response_code # Settlement response code from the processor.
attr_reader :processor_settlement_response_text # Settlement response text from the processor.
+ attr_reader :product_sku
attr_reader :purchase_order_number
attr_reader :recurring
attr_reader :refund_ids
attr_reader :refunded_transaction_id
attr_reader :risk_data
@@ -437,17 +439,21 @@
def void!
warn "[DEPRECATED] void! as an instance method is deprecated. Please use Transaction.void!"
return_object_or_raise(:transaction) { void }
end
+ def processed_with_network_token?
+ @processed_with_network_token
+ end
+
class << self
protected :new
def _new(*args) # :nodoc:
self.new *args
end
end
def self._attributes # :nodoc:
- [:amount, :created_at, :credit_card_details, :customer_details, :id, :status, :subscription_details, :type, :updated_at]
+ [:amount, :created_at, :credit_card_details, :customer_details, :id, :status, :subscription_details, :type, :updated_at, :processed_with_network_token?]
end
end
end