{
  "_type": "export",
  "__export_format": 4,
  "__export_date": "2026-05-05T00:00:00.000Z",
  "__export_source": "received-bank",
  "resources": [
    {
      "_id": "wrk_received_bank",
      "_type": "workspace",
      "name": "Received Bank - Jornada de Boletos",
      "description": "Colecao para demonstrar criacao de boleto, registro externo simulado, pagamento aprovado/rejeitado e consulta CQRS."
    },
    {
      "_id": "env_received_bank",
      "_type": "environment",
      "parentId": "wrk_received_bank",
      "name": "Base Environment",
      "data": {
        "boleto_service_url": "http://localhost:8081",
        "query_service_url": "http://localhost:8082",
        "payment_service_url": "http://localhost:8083",
        "boleto_id": "cole-o-boleto-id-aqui",
        "codigo_barras": "cole-o-codigo-barras-aqui",
        "linha_digitavel": "cole-a-linha-digitavel-aqui",
        "valor_boleto": 1500.75,
        "vencimento": "2026-12-31",
        "recebido_em": "2026-05-05T13:00:00Z"
      }
    },
    {
      "_id": "fld_health",
      "_type": "request_group",
      "parentId": "wrk_received_bank",
      "name": "00 - Health checks"
    },
    {
      "_id": "fld_jornada_feliz",
      "_type": "request_group",
      "parentId": "wrk_received_bank",
      "name": "01 - Jornada feliz"
    },
    {
      "_id": "fld_rejeicao",
      "_type": "request_group",
      "parentId": "wrk_received_bank",
      "name": "02 - Cenario de rejeicao"
    },
    {
      "_id": "req_health_boleto",
      "_type": "request",
      "parentId": "fld_health",
      "name": "Boleto service health",
      "method": "GET",
      "url": "{{ _.boleto_service_url }}/actuator/health"
    },
    {
      "_id": "req_health_query",
      "_type": "request",
      "parentId": "fld_health",
      "name": "Query service health",
      "method": "GET",
      "url": "{{ _.query_service_url }}/actuator/health"
    },
    {
      "_id": "req_health_payment",
      "_type": "request",
      "parentId": "fld_health",
      "name": "Payment service health",
      "method": "GET",
      "url": "{{ _.payment_service_url }}/actuator/health"
    },
    {
      "_id": "req_criar_boleto",
      "_type": "request",
      "parentId": "fld_jornada_feliz",
      "name": "Criar boleto PJ",
      "method": "POST",
      "url": "{{ _.boleto_service_url }}/boletos",
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"beneficiarioCpfCnpj\": \"12345678000199\",\n  \"beneficiarioNome\": \"Received Bank PJ\",\n  \"beneficiarioBanco\": \"341\",\n  \"pagadorCpfCnpj\": \"98765432000188\",\n  \"pagadorNome\": \"Cliente PJ XPTO\",\n  \"pagadorEndereco\": \"Avenida Paulista, 1000 - Sao Paulo/SP\",\n  \"pagadorCep\": \"01310000\",\n  \"valor\": {{ _.valor_boleto }},\n  \"vencimento\": \"{{ _.vencimento }}\",\n  \"descricao\": \"Boleto de recebimento PJ - arquitetura AWS\"\n}"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ]
    },
    {
      "_id": "req_consultar_boleto",
      "_type": "request",
      "parentId": "fld_jornada_feliz",
      "name": "Consultar boleto no modelo de escrita",
      "method": "GET",
      "url": "{{ _.boleto_service_url }}/boletos/{{ _.boleto_id }}"
    },
    {
      "_id": "req_registradora",
      "_type": "request",
      "parentId": "fld_jornada_feliz",
      "name": "Registrar boleto na registradora simulada",
      "method": "POST",
      "url": "{{ _.boleto_service_url }}/simulacoes/registradora/boletos",
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"boletoId\": \"{{ _.boleto_id }}\",\n  \"codigoBarras\": \"{{ _.codigo_barras }}\",\n  \"linhaDigitavel\": \"{{ _.linha_digitavel }}\",\n  \"valor\": {{ _.valor_boleto }},\n  \"vencimento\": \"{{ _.vencimento }}\"\n}"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ]
    },
    {
      "_id": "req_pagamento_aprovado",
      "_type": "request",
      "parentId": "fld_jornada_feliz",
      "name": "Simular pagamento aprovado",
      "method": "POST",
      "url": "{{ _.payment_service_url }}/simulacoes/pagamentos",
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"boletoId\": \"{{ _.boleto_id }}\",\n  \"valorPago\": {{ _.valor_boleto }},\n  \"recebidoEm\": \"{{ _.recebido_em }}\",\n  \"canal\": \"SIMULADOR_CLIENTE_PJ\"\n}"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ]
    },
    {
      "_id": "req_read_model",
      "_type": "request",
      "parentId": "fld_jornada_feliz",
      "name": "Consultar read model",
      "method": "GET",
      "url": "{{ _.query_service_url }}/consultas/boletos/{{ _.boleto_id }}"
    },
    {
      "_id": "req_pagamento_rejeitado",
      "_type": "request",
      "parentId": "fld_rejeicao",
      "name": "Simular pagamento rejeitado por valor divergente",
      "method": "POST",
      "url": "{{ _.payment_service_url }}/simulacoes/pagamentos",
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"boletoId\": \"{{ _.boleto_id }}\",\n  \"valorPago\": 999.99,\n  \"recebidoEm\": \"{{ _.recebido_em }}\",\n  \"canal\": \"SIMULADOR_CLIENTE_PJ\"\n}"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ]
    }
  ]
}
