C# Class Braintree.Transaction

A transaction returned by the Braintree Gateway
显示文件 Open project: braintree/braintree_dotnet Class Usage Examples

Private Properties

Property Type Description
Transaction System

Public Methods

Method Description
GetVaultBillingAddress ( ) : Address

Returns the current billing Address associated with this transaction if one exists

When retrieving a transaction from the gateway, the billing address associated with the transaction is returned in the response. If the billing address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated billing address.

GetVaultCreditCard ( ) : CreditCard

Returns the current CreditCard associated with this transaction if one exists

When retrieving a transaction from the gateway, the credit card used in the transaction is returned in the response. If the credit card record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated credit card information. This is typically useful in situations where a transaction fails, for example when a credit card expires, and a new transaction needs to be submitted once the new credit card information has been submitted.

GetVaultCustomer ( ) : Customer

Returns the current Customer associated with this transaction if one exists

When retrieving a transaction from the gateway, the customer associated with the transaction is returned in the response. If the customer record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated customer information.

GetVaultShippingAddress ( ) : Address

Returns the current shipping Address associated with this transaction if one exists

When retrieving a transaction from the gateway, the shipping address associated with the transaction is returned in the response. If the shipping address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated shipping address.

IsDisbursed ( ) : bool

Protected Methods

Method Description
Transaction ( NodeWrapper node, IBraintreeGateway gateway ) : System

Private Methods

Method Description
Transaction ( ) : System

Method Details

GetVaultBillingAddress() public method

Returns the current billing Address associated with this transaction if one exists
When retrieving a transaction from the gateway, the billing address associated with the transaction is returned in the response. If the billing address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated billing address.
public GetVaultBillingAddress ( ) : Address
return Address

GetVaultCreditCard() public method

Returns the current CreditCard associated with this transaction if one exists
When retrieving a transaction from the gateway, the credit card used in the transaction is returned in the response. If the credit card record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated credit card information. This is typically useful in situations where a transaction fails, for example when a credit card expires, and a new transaction needs to be submitted once the new credit card information has been submitted.
public GetVaultCreditCard ( ) : CreditCard
return CreditCard

GetVaultCustomer() public method

Returns the current Customer associated with this transaction if one exists
When retrieving a transaction from the gateway, the customer associated with the transaction is returned in the response. If the customer record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated customer information.
public GetVaultCustomer ( ) : Customer
return Customer

GetVaultShippingAddress() public method

Returns the current shipping Address associated with this transaction if one exists
When retrieving a transaction from the gateway, the shipping address associated with the transaction is returned in the response. If the shipping address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated shipping address.
public GetVaultShippingAddress ( ) : Address
return Address

IsDisbursed() public method

public IsDisbursed ( ) : bool
return bool

Transaction() protected method

protected Transaction ( NodeWrapper node, IBraintreeGateway gateway ) : System
node NodeWrapper
gateway IBraintreeGateway
return System