Change Deposit Show Status
Toggle visibility of deposit transactions across PayPal, Stripe, and Bank deposit types
Change Deposit Show Status
Toggle visibility of deposit transactions across PayPal, Stripe, and Bank deposit types
Overview
These mutations allow users to change the show status of their deposit transactions across different payment methods (PayPal, Stripe, and Bank). This feature enables users to organize their transaction history by hiding or showing specific deposits without permanently deleting them.
๐ Available Mutations
Three mutations are available, one for each deposit transaction type:
โข
changePayPalDepositShowStatus- For PayPal depositsโข
changeStripeDepositShowStatus- For Stripe depositsโข
changeBankDepositShowStatus- For Bank deposits
PayPal Deposit Show Status
๐ง Mutation Schema
changePayPalDepositShowStatus(
id: Int!,
showStatus: Int!
): IntParameters
idRequiredType: Int
The ID of the PayPal deposit transaction to update.
showStatusRequiredType: Int
The new show status: 0 to hide, 1 to show.
Example Usage
mutation {
changePayPalDepositShowStatus(
id: 123,
showStatus: 1
)
}Example Response
{
"data": {
"changePayPalDepositShowStatus": 1
}
}Stripe Deposit Show Status
๐ง Mutation Schema
changeStripeDepositShowStatus(
id: Int!,
showStatus: Int!
): IntParameters
idRequiredType: Int
The ID of the Stripe deposit transaction to update.
showStatusRequiredType: Int
The new show status: 0 to hide, 1 to show.
Example Usage
mutation {
changeStripeDepositShowStatus(
id: 456,
showStatus: 0
)
}Example Response
{
"data": {
"changeStripeDepositShowStatus": 0
}
}Bank Deposit Show Status
๐ง Mutation Schema
changeBankDepositShowStatus(
id: Int!,
showStatus: Int!
): IntParameters
idRequiredType: Int
The ID of the bank deposit transaction to update.
showStatusRequiredType: Int
The new show status: 0 to hide, 1 to show.
Example Usage
mutation {
changeBankDepositShowStatus(
id: 789,
showStatus: 1
)
}Example Response
{
"data": {
"changeBankDepositShowStatus": 1
}
}Show Status Values
Status Value Reference
Transaction is hidden from view
Transaction is visible in queries
Use Cases
Transaction Organization
Allow users to organize their transaction history by hiding old or irrelevant deposits.
Clean Interface
Reduce clutter in transaction lists while preserving data for future reference.
Privacy Control
Give users control over which transactions are visible in their transaction history.
Reversible Hiding
Unlike deletion, hidden transactions can be easily restored by changing the status back to visible.
Important Notes
Non-Destructive Operation
Changing the show status does not delete the transaction. Hidden transactions are still stored in the database and can be retrieved by setting the showStatus back to 1. This is useful for temporary organization without losing transaction history.
Query Filtering
When querying transactions, you'll need to specify the showStatus parameter to retrieve hidden transactions. By default, queries typically return only visible transactions (showStatus = 1).
Integration Example
Complete Workflow Example
Step 1: Hide a Transaction
mutation {
changePayPalDepositShowStatus(id: 123, showStatus: 0)
}Step 2: Query Visible Transactions (Hidden transaction won't appear)
query {
getPaypalDepositTxnsByUser(showStatus: 1) {
id
amount
status
}
}Step 3: Restore the Transaction
mutation {
changePayPalDepositShowStatus(id: 123, showStatus: 1)
}๐ก Best Practices
- โขProvide a clear UI toggle for users to easily hide/show transactions
- โขConsider adding a "Hidden Transactions" view where users can manage hidden items
- โขShow a confirmation dialog before hiding transactions to prevent accidental hiding
- โขDisplay a counter or indicator showing how many transactions are currently hidden
- โขImplement batch operations to hide/show multiple transactions at once
Related Queries
PayPal Transactions
Query PayPal deposits with status filter
getPaypalDepositTxnsByUserStripe Transactions
Query Stripe deposits with status filter
getStripeDepositTxnsByUserBank Transactions
Query bank deposits with status filter
getBankDepositTxnsByUser