LerianStudio / midaz

Midaz, an open-source, cloud-native, immutable, multi-currency, multi-asset, Core Ledger Application for storing and tracking transactions.
Apache License 2.0
86 stars 6 forks source link

Create sub command update of the command account #270

Open maxwelbm opened 1 week ago

maxwelbm commented 1 week ago

Context

Creating a command to update a account through the CLI.

Description of the command update

Response api update account example

{
    "id": "01933f96-ed04-7c57-be5b-c091388830f8",
    "name": "Auto Loan Account Account",
    "parentAccountId": null,
    "entityId": "59df1ccc-6881-4557-97b8-09c4348f3b37",
    "assetCode": "BRL",
    "organizationId": "01933f94-67b1-794c-bb13-6b75aed7591a",
    "ledgerId": "01933f94-8a8f-7a1e-b4ab-98f35a5f8d61",
    "portfolioId": "01933f94-d329-76fe-8de0-40559c7b282d",
    "productId": "01933f94-fbdf-7756-af37-ef32d0e3268b",
    "balance": {
        "available": 0,
        "onHold": 0,
        "scale": 0
    },
    "status": {
        "code": "ACTIVE",
        "description": "Teste Account"
    },
    "allowSending": false,
    "allowReceiving": false,
    "alias": "Wallet 13574096",
    "type": "creditCard",
    "createdAt": "2024-11-18T14:04:35.972791Z",
    "updatedAt": "2024-11-18T14:11:15.786987Z",
    "deletedAt": null,
    "metadata": {
        "bitcoinn": "1qicmb2yk2mUg6ayeoYJpCguk",
        "boolean": false,
        "chave": "metadata_chave",
        "double": 10.5,
        "int": 1
    }
}