class Braintree::Transaction

Attributes

acquirer_reference_number[R]
add_ons[R]
additional_processor_response[R]
amount[R]
apple_pay_details[R]
authorization_adjustments[R]
authorization_expires_at[R]
authorized_transaction_id[R]
avs_error_response_code[R]
avs_postal_code_response_code[R]
avs_street_address_response_code[R]
billing_details[R]
channel[R]
created_at[R]
credit_card_details[R]
currency_iso_code[R]
custom_fields[R]
customer_details[R]
cvv_response_code[R]
descriptor[R]
disbursement_details[R]
discount_amount[R]
discounts[R]
disputes[R]
escrow_status[R]
facilitated_details[R]
facilitator_details[R]
gateway_rejection_reason[R]
google_pay_details[R]
graphql_id[R]
id[R]
installment_count[R]
installments[R]
local_payment_details[R]
merchant_account_id[R]
network_response_code[R]
network_response_text[R]
network_transaction_id[R]
order_id[R]
partial_settlement_transaction_ids[R]
payment_instrument_type[R]
paypal_details[R]
paypal_here_details[R]
plan_id[R]
processor_authorization_code[R]
processor_response_code[R]
processor_response_text[R]
processor_response_type[R]
processor_settlement_response_code[R]
processor_settlement_response_text[R]
product_sku[R]
purchase_order_number[R]
recurring[R]
refund_ids[R]
refunded_installments[R]
refunded_transaction_id[R]
retrieval_reference_number[R]
risk_data[R]
samsung_pay_card_details[R]
sca_exemption_requested[R]
service_fee_amount[R]
settlement_batch_id[R]
shipping_amount[R]
shipping_details[R]
ships_from_postal_code[R]
status[R]
status_history[R]
subscription_details[R]
subscription_id[R]
tax_amount[R]
tax_exempt[R]
three_d_secure_info[R]
type[R]
updated_at[R]
us_bank_account_details[R]
venmo_account_details[R]
visa_checkout_card_details[R]
voice_referral_number[R]

Public Class Methods

adjust_authorization(*args) click to toggle source
# File lib/braintree/transaction.rb, line 172
def self.adjust_authorization(*args)
  Configuration.gateway.transaction.adjust_authorization(*args)
end
adjust_authorization!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 176
def self.adjust_authorization!(*args)
  Configuration.gateway.transaction.adjust_authorization!(*args)
end
cancel_release(*args) click to toggle source
# File lib/braintree/transaction.rb, line 188
def self.cancel_release(*args)
  Configuration.gateway.transaction.cancel_release(*args)
end
cancel_release!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 192
def self.cancel_release!(*args)
  Configuration.gateway.transaction.cancel_release!(*args)
end
clone_transaction(*args) click to toggle source
# File lib/braintree/transaction.rb, line 196
def self.clone_transaction(*args)
  Configuration.gateway.transaction.clone_transaction(*args)
end
clone_transaction!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 200
def self.clone_transaction!(*args)
  Configuration.gateway.transaction.clone_transaction!(*args)
end
create(*args) click to toggle source
# File lib/braintree/transaction.rb, line 180
def self.create(*args)
  Configuration.gateway.transaction.create(*args)
end
create!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 184
def self.create!(*args)
  return_object_or_raise(:transaction) { create(*args) }
end
credit(*args) click to toggle source
# File lib/braintree/transaction.rb, line 204
def self.credit(*args)
  Configuration.gateway.transaction.credit(*args)
end
credit!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 208
def self.credit!(*args)
  Configuration.gateway.transaction.credit!(*args)
end
find(*args) click to toggle source
# File lib/braintree/transaction.rb, line 212
def self.find(*args)
  Configuration.gateway.transaction.find(*args)
end
hold_in_escrow(*args) click to toggle source
# File lib/braintree/transaction.rb, line 220
def self.hold_in_escrow(*args)
  Configuration.gateway.transaction.hold_in_escrow(*args)
end
hold_in_escrow!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 224
def self.hold_in_escrow!(*args)
  Configuration.gateway.transaction.hold_in_escrow!(*args)
end
line_items(*args) click to toggle source
# File lib/braintree/transaction.rb, line 216
def self.line_items(*args)
  Configuration.gateway.transaction_line_item.find_all(*args)
end
refund(*args) click to toggle source
# File lib/braintree/transaction.rb, line 228
def self.refund(*args)
  Configuration.gateway.transaction.refund(*args)
end
refund!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 232
def self.refund!(*args)
  Configuration.gateway.transaction.refund!(*args)
end
release_from_escrow(*args) click to toggle source
# File lib/braintree/transaction.rb, line 248
def self.release_from_escrow(*args)
  Configuration.gateway.transaction.release_from_escrow(*args)
end
release_from_escrow!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 252
def self.release_from_escrow!(*args)
  Configuration.gateway.transaction.release_from_escrow!(*args)
end
sale(*args) click to toggle source
# File lib/braintree/transaction.rb, line 236
def self.sale(*args)
  Configuration.gateway.transaction.sale(*args)
end
sale!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 240
def self.sale!(*args)
  Configuration.gateway.transaction.sale!(*args)
end
submit_for_partial_settlement(*args) click to toggle source
# File lib/braintree/transaction.rb, line 272
def self.submit_for_partial_settlement(*args)
  Configuration.gateway.transaction.submit_for_partial_settlement(*args)
end
submit_for_partial_settlement!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 276
def self.submit_for_partial_settlement!(*args)
  Configuration.gateway.transaction.submit_for_partial_settlement!(*args)
end
submit_for_settlement(*args) click to toggle source
# File lib/braintree/transaction.rb, line 256
def self.submit_for_settlement(*args)
  Configuration.gateway.transaction.submit_for_settlement(*args)
end
submit_for_settlement!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 260
def self.submit_for_settlement!(*args)
  Configuration.gateway.transaction.submit_for_settlement!(*args)
end
update_details(*args) click to toggle source
# File lib/braintree/transaction.rb, line 264
def self.update_details(*args)
  Configuration.gateway.transaction.update_details(*args)
end
update_details!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 268
def self.update_details!(*args)
  return_object_or_raise(:transaction) { update_details(*args) }
end
void(*args) click to toggle source
# File lib/braintree/transaction.rb, line 280
def self.void(*args)
  Configuration.gateway.transaction.void(*args)
end
void!(*args) click to toggle source
# File lib/braintree/transaction.rb, line 284
def self.void!(*args)
  Configuration.gateway.transaction.void!(*args)
end

Public Instance Methods

disbursed?() click to toggle source

Returns true if the transaction has been disbursed. False otherwise.

# File lib/braintree/transaction.rb, line 350
def disbursed?
  @disbursement_details.valid?
end
line_items() click to toggle source
# File lib/braintree/transaction.rb, line 340
def line_items
  @gateway.transaction_line_item.find_all(id)
end
processed_with_network_token?() click to toggle source
# File lib/braintree/transaction.rb, line 390
def processed_with_network_token?
  @processed_with_network_token
end
refunded?() click to toggle source

Returns true if the transaction has been refunded. False otherwise.

# File lib/braintree/transaction.rb, line 345
def refunded?
  !@refund_id.nil?
end
vault_billing_address() click to toggle source

If this transaction was stored in the vault, or created from vault records, vault_billing_address will return the associated Braintree::Address. Because the vault billing address can be updated after the transaction was created, the attributes on vault_billing_address may not match the attributes on billing_details.

# File lib/braintree/transaction.rb, line 358
def vault_billing_address
  return nil if billing_details.id.nil?
  @gateway.address.find(customer_details.id, billing_details.id)
end
vault_credit_card() click to toggle source

If this transaction was stored in the vault, or created from vault records, vault_credit_card will return the associated Braintree::CreditCard. Because the vault credit card can be updated after the transaction was created, the attributes on vault_credit_card may not match the attributes on credit_card_details.

# File lib/braintree/transaction.rb, line 367
def vault_credit_card
  return nil if credit_card_details.token.nil?
  @gateway.credit_card.find(credit_card_details.token)
end
vault_customer() click to toggle source

If this transaction was stored in the vault, or created from vault records, vault_customer will return the associated Braintree::Customer. Because the vault customer can be updated after the transaction was created, the attributes on vault_customer may not match the attributes on customer_details.

# File lib/braintree/transaction.rb, line 376
def vault_customer
  return nil if customer_details.id.nil?
  @gateway.customer.find(customer_details.id)
end
vault_shipping_address() click to toggle source

If this transaction was stored in the vault, or created from vault records, vault_shipping_address will return the associated Braintree::Address. Because the vault shipping address can be updated after the transaction was created, the attributes on vault_shipping_address may not match the attributes on shipping_details.

# File lib/braintree/transaction.rb, line 385
def vault_shipping_address
  return nil if shipping_details.id.nil?
  @gateway.address.find(customer_details.id, shipping_details.id)
end