Crate stripe_treasury

Source
Expand description

This crate provides Rust bindings to the Stripe HTTP API, specifically for requests mentioned in the Treasury section of the Stripe API docs

Modules§

treasury_credit_reversal
treasury_debit_reversal
treasury_financial_account
treasury_inbound_transfer
treasury_outbound_payment
treasury_outbound_transfer
treasury_received_credit
treasury_received_debit
treasury_transaction
treasury_transaction_entry

Structs§

InboundTransfers
For more details see <https://stripe.com/docs/api/treasury/inbound_transfers>.
InboundTransfersBuilder
InboundTransfersPaymentMethodDetailsUsBankAccount
InboundTransfersPaymentMethodDetailsUsBankAccountBuilder
OutboundPaymentsPaymentMethodDetails
OutboundPaymentsPaymentMethodDetailsBuilder
OutboundPaymentsPaymentMethodDetailsFinancialAccount
OutboundPaymentsPaymentMethodDetailsFinancialAccountBuilder
OutboundPaymentsPaymentMethodDetailsUsBankAccount
OutboundPaymentsPaymentMethodDetailsUsBankAccountBuilder
OutboundTransfersPaymentMethodDetails
OutboundTransfersPaymentMethodDetailsBuilder
OutboundTransfersPaymentMethodDetailsFinancialAccount
OutboundTransfersPaymentMethodDetailsFinancialAccountBuilder
OutboundTransfersPaymentMethodDetailsUsBankAccount
OutboundTransfersPaymentMethodDetailsUsBankAccountBuilder
ReceivedPaymentMethodDetailsFinancialAccount
ReceivedPaymentMethodDetailsFinancialAccountBuilder
TreasuryCreditReversal
You can reverse some ReceivedCredits depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal.
TreasuryCreditReversalId
TreasuryDebitReversal
You can reverse some ReceivedDebits depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal.
TreasuryDebitReversalId
TreasuryFinancialAccount
Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance. FinancialAccounts serve as the source and destination of Treasury’s money movement APIs.
TreasuryFinancialAccountFeatures
Encodes whether a FinancialAccount has access to a particular Feature, with a status enum and associated status_details. Stripe or the platform can control Features via the requested field.
TreasuryFinancialAccountFeaturesBuilder
TreasuryFinancialAccountId
TreasuryFinancialAccountsResourceAbaRecord
ABA Records contain U.S. bank account details per the ABA format.
TreasuryFinancialAccountsResourceAbaRecordBuilder
TreasuryFinancialAccountsResourceAbaToggleSettings
Toggle settings for enabling/disabling the ABA address feature
TreasuryFinancialAccountsResourceAbaToggleSettingsBuilder
TreasuryFinancialAccountsResourceBalance
Balance information for the FinancialAccount
TreasuryFinancialAccountsResourceBalanceBuilder
TreasuryFinancialAccountsResourceClosedStatusDetails
TreasuryFinancialAccountsResourceClosedStatusDetailsBuilder
TreasuryFinancialAccountsResourceFinancialAddress
FinancialAddresses contain identifying information that resolves to a FinancialAccount.
TreasuryFinancialAccountsResourceFinancialAddressBuilder
TreasuryFinancialAccountsResourceFinancialAddressesFeatures
Settings related to Financial Addresses features on a Financial Account
TreasuryFinancialAccountsResourceFinancialAddressesFeaturesBuilder
TreasuryFinancialAccountsResourceInboundAchToggleSettings
Toggle settings for enabling/disabling an inbound ACH specific feature
TreasuryFinancialAccountsResourceInboundAchToggleSettingsBuilder
TreasuryFinancialAccountsResourceInboundTransfers
InboundTransfers contains inbound transfers features for a FinancialAccount.
TreasuryFinancialAccountsResourceInboundTransfersBuilder
TreasuryFinancialAccountsResourceOutboundAchToggleSettings
Toggle settings for enabling/disabling an outbound ACH specific feature
TreasuryFinancialAccountsResourceOutboundAchToggleSettingsBuilder
TreasuryFinancialAccountsResourceOutboundPayments
Settings related to Outbound Payments features on a Financial Account
TreasuryFinancialAccountsResourceOutboundPaymentsBuilder
TreasuryFinancialAccountsResourceOutboundTransfers
OutboundTransfers contains outbound transfers features for a FinancialAccount.
TreasuryFinancialAccountsResourceOutboundTransfersBuilder
TreasuryFinancialAccountsResourcePlatformRestrictions
Restrictions that a Connect Platform has placed on this FinancialAccount.
TreasuryFinancialAccountsResourcePlatformRestrictionsBuilder
TreasuryFinancialAccountsResourceStatusDetails
TreasuryFinancialAccountsResourceStatusDetailsBuilder
TreasuryFinancialAccountsResourceToggleSettings
Toggle settings for enabling/disabling a feature
TreasuryFinancialAccountsResourceToggleSettingsBuilder
TreasuryFinancialAccountsResourceTogglesSettingStatusDetails
Additional details on the FinancialAccount Features information.
TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsBuilder
TreasuryInboundTransfer
Use InboundTransfers to add funds to your FinancialAccount via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
TreasuryInboundTransferId
TreasuryInboundTransfersResourceFailureDetails
TreasuryInboundTransfersResourceFailureDetailsBuilder
TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows
TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsBuilder
TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions
TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsBuilder
TreasuryOutboundPayment
Use OutboundPayments to send funds to another party’s external bank account or FinancialAccount. To send money to an account belonging to the same user, use an OutboundTransfer.
TreasuryOutboundPaymentId
TreasuryOutboundPaymentsResourceAchTrackingDetails
TreasuryOutboundPaymentsResourceAchTrackingDetailsBuilder
TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails
TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsBuilder
TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions
TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsBuilder
TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails
TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsBuilder
TreasuryOutboundPaymentsResourceReturnedStatus
TreasuryOutboundPaymentsResourceReturnedStatusBuilder
TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails
TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsBuilder
TreasuryOutboundTransfer
Use OutboundTransfers to transfer funds from a FinancialAccount to a PaymentMethod belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can send funds over ACH rails or through a domestic wire transfer to a user’s own external bank account.
TreasuryOutboundTransferId
TreasuryOutboundTransfersResourceAchTrackingDetails
TreasuryOutboundTransfersResourceAchTrackingDetailsBuilder
TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails
TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsBuilder
TreasuryOutboundTransfersResourceReturnedDetails
TreasuryOutboundTransfersResourceReturnedDetailsBuilder
TreasuryOutboundTransfersResourceStatusTransitions
TreasuryOutboundTransfersResourceStatusTransitionsBuilder
TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails
TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsBuilder
TreasuryReceivedCredit
ReceivedCredits represent funds sent to a FinancialAccount (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount.
TreasuryReceivedCreditId
TreasuryReceivedCreditsResourceLinkedFlows
TreasuryReceivedCreditsResourceLinkedFlowsBuilder
TreasuryReceivedCreditsResourceReversalDetails
TreasuryReceivedCreditsResourceReversalDetailsBuilder
TreasuryReceivedCreditsResourceSourceFlowsDetails
TreasuryReceivedCreditsResourceSourceFlowsDetailsBuilder
TreasuryReceivedCreditsResourceStatusTransitions
TreasuryReceivedCreditsResourceStatusTransitionsBuilder
TreasuryReceivedDebit
ReceivedDebits represent funds pulled from a FinancialAccount. These are not initiated from the FinancialAccount.
TreasuryReceivedDebitId
TreasuryReceivedDebitsResourceDebitReversalLinkedFlows
TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsBuilder
TreasuryReceivedDebitsResourceLinkedFlows
TreasuryReceivedDebitsResourceLinkedFlowsBuilder
TreasuryReceivedDebitsResourceReversalDetails
TreasuryReceivedDebitsResourceReversalDetailsBuilder
TreasuryReceivedDebitsResourceStatusTransitions
TreasuryReceivedDebitsResourceStatusTransitionsBuilder
TreasurySharedResourceBillingDetails
TreasurySharedResourceBillingDetailsBuilder
TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails
TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsBuilder
TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount
TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountBuilder
TreasuryTransaction
Transactions represent changes to a FinancialAccount’s balance.
TreasuryTransactionEntry
TransactionEntries represent individual units of money movements within a single Transaction.
TreasuryTransactionEntryId
TreasuryTransactionId
TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions
TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsBuilder
TreasuryTransactionsResourceBalanceImpact
Change to a FinancialAccount’s balance
TreasuryTransactionsResourceBalanceImpactBuilder
TreasuryTransactionsResourceFlowDetails
TreasuryTransactionsResourceFlowDetailsBuilder

Enums§

InboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType
Account holder type: individual or company.
InboundTransfersPaymentMethodDetailsUsBankAccountAccountType
Account type: checkings or savings. Defaults to checking if omitted.
InboundTransfersPaymentMethodDetailsUsBankAccountNetwork
The network rails used. See the docs to learn more about money movement timelines for each network type.
InboundTransfersType
The type of the payment method used in the InboundTransfer.
OutboundPaymentsPaymentMethodDetailsFinancialAccountNetwork
The rails used to send funds.
OutboundPaymentsPaymentMethodDetailsType
The type of the payment method used in the OutboundPayment.
OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountHolderType
Account holder type: individual or company.
OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountType
Account type: checkings or savings. Defaults to checking if omitted.
OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork
The network rails used. See the docs to learn more about money movement timelines for each network type.
OutboundTransfersPaymentMethodDetailsFinancialAccountNetwork
The rails used to send funds.
OutboundTransfersPaymentMethodDetailsType
The type of the payment method used in the OutboundTransfer.
OutboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType
Account holder type: individual or company.
OutboundTransfersPaymentMethodDetailsUsBankAccountAccountType
Account type: checkings or savings. Defaults to checking if omitted.
OutboundTransfersPaymentMethodDetailsUsBankAccountNetwork
The network rails used. See the docs to learn more about money movement timelines for each network type.
ReceivedPaymentMethodDetailsFinancialAccountNetwork
The rails the ReceivedCredit was sent over. A FinancialAccount can only send funds over stripe.
TreasuryCreditReversalNetwork
The rails used to reverse the funds.
TreasuryCreditReversalStatus
TreasuryDebitReversalNetwork
The rails used to reverse the funds.
TreasuryDebitReversalStatus
Status of the DebitReversal
TreasuryFinancialAccountArray
TreasuryFinancialAccountStatus
Status of this FinancialAccount.
TreasuryFinancialAccountsResourceAbaToggleSettingsStatus
Whether the Feature is operational.
TreasuryFinancialAccountsResourceClosedStatusDetailsReasons
The array that contains reasons for a FinancialAccount closure.
TreasuryFinancialAccountsResourceFinancialAddressSupportedNetworks
The list of networks that the address supports
TreasuryFinancialAccountsResourceFinancialAddressType
The type of financial address
TreasuryFinancialAccountsResourceInboundAchToggleSettingsStatus
Whether the Feature is operational.
TreasuryFinancialAccountsResourceOutboundAchToggleSettingsStatus
Whether the Feature is operational.
TreasuryFinancialAccountsResourcePlatformRestrictionsInboundFlows
Restricts all inbound money movement.
TreasuryFinancialAccountsResourcePlatformRestrictionsOutboundFlows
Restricts all outbound money movement.
TreasuryFinancialAccountsResourceToggleSettingsStatus
Whether the Feature is operational.
TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode
Represents the reason why the status is pending or restricted.
TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsResolution
Represents what the user should do, if anything, to activate the Feature.
TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsRestriction
The platform_restrictions that are restricting this Feature.
TreasuryInboundTransferStatus
TreasuryInboundTransfersResourceFailureDetailsCode
Reason for the failure.
TreasuryOutboundPaymentStatus
TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsType
The US bank account network used to send funds.
TreasuryOutboundPaymentsResourceReturnedStatusCode
Reason for the return.
TreasuryOutboundTransferStatus
TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsType
The US bank account network used to send funds.
TreasuryOutboundTransfersResourceReturnedDetailsCode
Reason for the return.
TreasuryReceivedCreditFailureCode
Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.
TreasuryReceivedCreditNetwork
The rails used to send the funds.
TreasuryReceivedCreditStatus
TreasuryReceivedCreditsResourceReversalDetailsRestrictedReason
Set if a ReceivedCredit cannot be reversed.
TreasuryReceivedCreditsResourceSourceFlowsDetailsType
The type of the source flow that originated the ReceivedCredit.
TreasuryReceivedDebitFailureCode
Reason for the failure. A ReceivedDebit might fail because the FinancialAccount doesn’t have sufficient funds, is closed, or is frozen.
TreasuryReceivedDebitNetwork
The network used for the ReceivedDebit.
TreasuryReceivedDebitStatus
TreasuryReceivedDebitsResourceReversalDetailsRestrictedReason
Set if a ReceivedDebit can’t be reversed.
TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsBalance
Set when type is balance.
TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsType
Polymorphic type matching the originating money movement’s source. This can be an external account, a Stripe balance, or a FinancialAccount.
TreasuryTransactionEntryFlowType
Type of the flow associated with the TransactionEntry.
TreasuryTransactionEntryType
The specific money movement that generated the TransactionEntry.
TreasuryTransactionFlowType
Type of the flow that created the Transaction.
TreasuryTransactionStatus
TreasuryTransactionsResourceFlowDetailsType
Type of the flow that created the Transaction. Set to the same value as flow_type.