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
83 stars 4 forks source link

Create sub command create of the command account #267

Open maxwelbm opened 4 days ago

maxwelbm commented 4 days ago

Context

Creating a command to create a product through the CLI.

Description of the command create

Response api create account example

{
    "id": "01933f96-ed04-7c57-be5b-c091388830f8",
    "name": "Investment 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": "CREDIT",
        "description": "Teste Account"
    },
    "allowSending": true,
    "allowReceiving": true,
    "alias": "@wallet_25200376",
    "type": "creditCard",
    "createdAt": "2024-11-18T14:04:35.972791193Z",
    "updatedAt": "2024-11-18T14:04:35.972794057Z",
    "deletedAt": null,
    "metadata": {
        "bitcoinn": "1TkzMvuqVuCVvwG9CsgaZWB67xe8",
        "boolean": true,
        "chave": "metadata_chave",
        "double": 10.5,
        "int": 1
    }
}