{
    "info": {
        "name": "BDW Cooperative - Wallet API",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Get Wallet Balance",
            "request": {
                "method": "GET",
                "url": "http://localhost:3000/api/wallet/balance",
                "header": [{ "key": "Authorization", "value": "Bearer {{accessToken}}" }]
            }
        },
        {
            "name": "Get Wallet Details",
            "request": {
                "method": "GET",
                "url": "http://localhost:3000/api/wallet/details",
                "header": [{ "key": "Authorization", "value": "Bearer {{accessToken}}" }]
            }
        },
        {
            "name": "Deposit",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/wallet/deposit",
                "header": [
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" },
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"amount\": 5000,\n  \"paymentMethod\": \"paystack\",\n  \"description\": \"Test deposit\"\n}"
                }
            }
        },
        {
            "name": "Withdraw",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/wallet/withdraw",
                "header": [
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" },
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"amount\": 2000,\n  \"bankName\": \"GTBank\",\n  \"bankAccountNumber\": \"0123456789\",\n  \"bankAccountName\": \"John Doe\",\n  \"transactionPin\": \"1234\"\n}"
                }
            }
        },
        {
            "name": "Transfer",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/wallet/transfer",
                "header": [
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" },
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"recipientMemberId\": \"BDW-TV-0002\",\n  \"amount\": 1000,\n  \"transactionPin\": \"1234\",\n  \"description\": \"Contribution\"\n}"
                }
            }
        },
        {
            "name": "Set Transaction PIN",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/wallet/set-pin",
                "header": [
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" },
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"pin\": \"5678\",\n  \"confirmPin\": \"5678\"\n}"
                }
            }
        },
        {
            "name": "Get Transaction Receipt",
            "request": {
                "method": "GET",
                "url": "http://localhost:3000/api/wallet/receipt/BDW-TXN-20260401-ABC123",
                "header": [{ "key": "Authorization", "value": "Bearer {{accessToken}}" }]
            }
        },
        {
            "name": "Verify Recipient",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/wallet/verify-recipient",
                "header": [
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" },
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"memberId\": \"BDW-TV-0002\"\n}"
                }
            }
        }
    ]
}