Class: Stripe::Treasury::Transaction::FlowDetails

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/treasury/transaction.rb

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Method Summary

Methods inherited from StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#credit_reversalObject (readonly)

You can reverse some [ReceivedCredits](stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal.



26
27
28
# File 'lib/stripe/resources/treasury/transaction.rb', line 26

def credit_reversal
  @credit_reversal
end

#debit_reversalObject (readonly)

You can reverse some [ReceivedDebits](stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal.



28
29
30
# File 'lib/stripe/resources/treasury/transaction.rb', line 28

def debit_reversal
  @debit_reversal
end

#inbound_transferObject (readonly)

Use [InboundTransfers](docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.

Related guide: [Moving money with Treasury using InboundTransfer objects](docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)



32
33
34
# File 'lib/stripe/resources/treasury/transaction.rb', line 32

def inbound_transfer
  @inbound_transfer
end

#issuing_authorizationObject (readonly)

When an [issued card](stripe.com/docs/issuing) is used to make a purchase, an Issuing ‘Authorization` object is created. [Authorizations](stripe.com/docs/issuing/purchases/authorizations) must be approved for the purchase to be completed successfully.

Related guide: [Issued card authorizations](stripe.com/docs/issuing/purchases/authorizations)



38
39
40
# File 'lib/stripe/resources/treasury/transaction.rb', line 38

def issuing_authorization
  @issuing_authorization
end

#outbound_paymentObject (readonly)

Use [OutboundPayments](docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party’s external bank account or [FinancialAccount](stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](stripe.com/docs/api#outbound_transfers).

Simulate OutboundPayment state changes with the ‘/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.

Related guide: [Moving money with Treasury using OutboundPayment objects](docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)



44
45
46
# File 'lib/stripe/resources/treasury/transaction.rb', line 44

def outbound_payment
  @outbound_payment
end

#outbound_transferObject (readonly)

Use [OutboundTransfers](docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user’s own external bank account.

Simulate OutboundTransfer state changes with the ‘/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.

Related guide: [Moving money with Treasury using OutboundTransfer objects](docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)



50
51
52
# File 'lib/stripe/resources/treasury/transaction.rb', line 50

def outbound_transfer
  @outbound_transfer
end

#received_creditObject (readonly)

ReceivedCredits represent funds sent to a [FinancialAccount](stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount.



52
53
54
# File 'lib/stripe/resources/treasury/transaction.rb', line 52

def received_credit
  @received_credit
end

#received_debitObject (readonly)

ReceivedDebits represent funds pulled from a [FinancialAccount](stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount.



54
55
56
# File 'lib/stripe/resources/treasury/transaction.rb', line 54

def received_debit
  @received_debit
end

#typeObject (readonly)

Type of the flow that created the Transaction. Set to the same value as ‘flow_type`.



56
57
58
# File 'lib/stripe/resources/treasury/transaction.rb', line 56

def type
  @type
end