From 700e379673a6da97ee0e8f88f52a2346c608363c Mon Sep 17 00:00:00 2001 From: Thiago Stahlschmidt Date: Wed, 17 Nov 2021 11:00:23 -0300 Subject: [PATCH] =?UTF-8?q?vers=C3=A3o=201.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 21 ++- openapi/examples/entries/GetEntryResponse.xml | 3 + ...ionReportRequest-INTERNALRejectedPayee.xml | 24 +++ ...ionReportRequest-INTERNALRejectedPayer.xml | 23 +++ ...nfractionReportRequest-INTERNALSettled.xml | 24 +++ ...fractionReportRequest-SPIRejectedPayee.xml | 24 +++ ...fractionReportRequest-SPIRejectedPayer.xml | 23 +++ ...ateInfractionReportRequest-SPISettled.xml} | 2 +- ...onReportResponse-INTERNALRejectedPayee.xml | 32 ++++ ...onReportResponse-INTERNALRejectedPayer.xml | 31 ++++ ...fractionReportResponse-INTERNALSettled.xml | 32 ++++ ...ractionReportResponse-SPIRejectedPayee.xml | 32 ++++ ...ractionReportResponse-SPIRejectedPayer.xml | 31 ++++ ...teInfractionReportResponse-SPISettled.xml} | 2 +- .../statistics/GetOwnerStatisticsResponse.xml | 3 +- openapi/openapi.yaml | 102 ++++++++++-- openapi/schemas.yaml | 147 +++++++++++++++++- 17 files changed, 537 insertions(+), 19 deletions(-) create mode 100644 openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayee.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayer.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportRequest-INTERNALSettled.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayee.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayer.xml rename openapi/examples/infractions/{CreateInfractionReportRequest.xml => CreateInfractionReportRequest-SPISettled.xml} (92%) create mode 100644 openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayee.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayer.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportResponse-INTERNALSettled.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayee.xml create mode 100644 openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayer.xml rename openapi/examples/infractions/{CreateInfractionReportResponse.xml => CreateInfractionReportResponse-SPISettled.xml} (96%) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5655f3..ea91878 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,26 @@ Mudanças relevantes na API do DICT serão documentadas aqui. -## [1.6.1] - 2021-10-26 +## [1.7.1] - 2021-11-16 +### Adicionado +- Novo tipo de contador em estatísticas para transações rejeitadas: REJECTED +- Política para controle de limites de acesso no endpoint de estatísticas: STATISTICS_READ + +### Alterado +- Correções pontuais de nomenclatura + +### Removido +- Eliminação do motivo ENTRY_INACTIVITY para operações de deleção de chaves + +## [1.7.0] - 2021-10-29 +### Adicionado +- Novo fluxo de reporte de infração +- Consulta de estatísticas por CPF/CNPJ + +### Alterado +- Novo formato do PayerID + +## [1.6.1] - 2021-10-13 ### Adicionado - Campo refundAmount no XML de exemplo de listagem de devoluções - Campo InfractionReportId em devoluções diff --git a/openapi/examples/entries/GetEntryResponse.xml b/openapi/examples/entries/GetEntryResponse.xml index 22cb9cb..f544b83 100644 --- a/openapi/examples/entries/GetEntryResponse.xml +++ b/openapi/examples/entries/GetEntryResponse.xml @@ -34,6 +34,9 @@ + + + \ No newline at end of file diff --git a/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayee.xml b/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayee.xml new file mode 100644 index 0000000..40b88b5 --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayee.xml @@ -0,0 +1,24 @@ + + + + 99999010 + + 12345679XPTO1234 + INTERNAL + REJECTED_PAYEE + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + + 11122233300 + +5561988880000 + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + + diff --git a/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayer.xml b/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayer.xml new file mode 100644 index 0000000..2093f4d --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayer.xml @@ -0,0 +1,23 @@ + + + + 99999010 + + 12345679XPTO1234 + INTERNAL + REJECTED_PAYER + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + + 11122233300 + 99999010 + 99999010 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + + diff --git a/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALSettled.xml b/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALSettled.xml new file mode 100644 index 0000000..72806ad --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportRequest-INTERNALSettled.xml @@ -0,0 +1,24 @@ + + + + 99999010 + + 12345679XPTO1234 + INTERNAL + SETTLED + FRAUD + Transação feita através de QR Code falso em boleto + + 11122233300 + +5561988880000 + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + + diff --git a/openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayee.xml b/openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayee.xml new file mode 100644 index 0000000..71df880 --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayee.xml @@ -0,0 +1,24 @@ + + + + 99999010 + + E9999901012341234123412345678900 + SPI + REJECTED_PAYEE + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + + 11122233300 + +5561988880000 + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + + diff --git a/openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayer.xml b/openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayer.xml new file mode 100644 index 0000000..c467c93 --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportRequest-SPIRejectedPayer.xml @@ -0,0 +1,23 @@ + + + + 99999010 + + E9999901012341234123412345678900 + SPI + REJECTED_PAYER + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + + 11122233300 + 99999010 + 99999010 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + + diff --git a/openapi/examples/infractions/CreateInfractionReportRequest.xml b/openapi/examples/infractions/CreateInfractionReportRequest-SPISettled.xml similarity index 92% rename from openapi/examples/infractions/CreateInfractionReportRequest.xml rename to openapi/examples/infractions/CreateInfractionReportRequest-SPISettled.xml index e7c2a67..1e91dad 100644 --- a/openapi/examples/infractions/CreateInfractionReportRequest.xml +++ b/openapi/examples/infractions/CreateInfractionReportRequest-SPISettled.xml @@ -7,4 +7,4 @@ FRAUD Transação feita através de QR Code falso em boleto - + \ No newline at end of file diff --git a/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayee.xml b/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayee.xml new file mode 100644 index 0000000..fb12c25 --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayee.xml @@ -0,0 +1,32 @@ + + + + 2020-11-10T10:00:00Z + a9f13566e19f5ca51329479a5bae60c5 + + 12345679XPTO1234 + INTERNAL + REJECTED_PAYEE + + 11122233300 + +5561988880000 + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + 91d65e98-97c0-4b0f-b577-73625da1f9fc + OPEN + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-11-10T10:00:00Z + 2021-11-10T10:00:00Z + + diff --git a/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayer.xml b/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayer.xml new file mode 100644 index 0000000..93db809 --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayer.xml @@ -0,0 +1,31 @@ + + + + 2020-11-10T10:00:00Z + a9f13566e19f5ca51329479a5bae60c5 + + 12345679XPTO1234 + INTERNAL + REJECTED_PAYER + + 11122233300 + 99999010 + 99999010 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + 91d65e98-97c0-4b0f-b577-73625da1f9fc + OPEN + 99999010 + 99999010 + DEBITED_PARTICIPANT + 2021-11-10T10:00:00Z + 2021-11-10T10:00:00Z + + diff --git a/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALSettled.xml b/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALSettled.xml new file mode 100644 index 0000000..d0af2dd --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportResponse-INTERNALSettled.xml @@ -0,0 +1,32 @@ + + + + 2020-11-10T10:00:00Z + a9f13566e19f5ca51329479a5bae60c5 + + 12345679XPTO1234 + INTERNAL + SETTLED + + 11122233300 + +5561988880000 + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + FRAUD + Transação feita através de QR Code falso em boleto + 91d65e98-97c0-4b0f-b577-73625da1f9fc + OPEN + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-11-10T10:00:00Z + 2021-11-10T10:00:00Z + + diff --git a/openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayee.xml b/openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayee.xml new file mode 100644 index 0000000..a28a2e6 --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayee.xml @@ -0,0 +1,32 @@ + + + + 2020-01-10T10:00:00Z + a9f13566e19f5ca51329479a5bae60c5 + + E9999901012341234123412345678900 + SPI + REJECTED_PAYEE + + 11122233300 + +5561988880000 + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + 91d65e98-97c0-4b0f-b577-73625da1f9fc + OPEN + 99999010 + 99999003 + DEBITED_PARTICIPANT + 2021-11-17T10:00:00Z + 2021-11-17T10:00:00Z + + diff --git a/openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayer.xml b/openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayer.xml new file mode 100644 index 0000000..84568ec --- /dev/null +++ b/openapi/examples/infractions/CreateInfractionReportResponse-SPIRejectedPayer.xml @@ -0,0 +1,31 @@ + + + + 2020-01-10T10:00:00Z + a9f13566e19f5ca51329479a5bae60c5 + + E9999901012341234123412345678900 + SPI + REJECTED_PAYER + + 11122233300 + 99999010 + 99999010 + DEBITED_PARTICIPANT + 2021-10-10T10:00:00Z + + 0001 + 0007654321 + + + FRAUD + Tentativa de transação feita através de QR Code falso em boleto + 91d65e98-97c0-4b0f-b577-73625da1f9fc + OPEN + 99999010 + 99999010 + DEBITED_PARTICIPANT + 2021-11-17T10:00:00Z + 2021-11-17T10:00:00Z + + diff --git a/openapi/examples/infractions/CreateInfractionReportResponse.xml b/openapi/examples/infractions/CreateInfractionReportResponse-SPISettled.xml similarity index 96% rename from openapi/examples/infractions/CreateInfractionReportResponse.xml rename to openapi/examples/infractions/CreateInfractionReportResponse-SPISettled.xml index 37fd416..8fd7683 100644 --- a/openapi/examples/infractions/CreateInfractionReportResponse.xml +++ b/openapi/examples/infractions/CreateInfractionReportResponse-SPISettled.xml @@ -9,7 +9,7 @@ DEBITED_PARTICIPANT Transação feita através de QR Code falso em boleto 91d65e98-97c0-4b0f-b577-73625da1f9fc - CLOSED + OPEN 99999010 99999011 2020-01-17T10:00:00Z diff --git a/openapi/examples/statistics/GetOwnerStatisticsResponse.xml b/openapi/examples/statistics/GetOwnerStatisticsResponse.xml index 263919e..84006a0 100644 --- a/openapi/examples/statistics/GetOwnerStatisticsResponse.xml +++ b/openapi/examples/statistics/GetOwnerStatisticsResponse.xml @@ -11,6 +11,7 @@ + - \ No newline at end of file + diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 1615561..589b0ee 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: DICT API - version: '1.6.1' + version: '1.7.1' license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0 @@ -75,6 +75,7 @@ info: | KEYS_READ | PSP | checkKeys | 70/min | 70 | | REFUNDS_READ | PSP | getRefund | 1200/min | 36000 | | REFUNDS_WRITE | PSP | createRefund, cancelRefund, closeRefund | 2400/min | 72000 | + | STATISTICS_READ | PSP | getOwnerStatistics | 100/min | 100 | ### Regras de contagem das políticas @@ -543,7 +544,13 @@ tags: - analisada: a solicitação de devolução foi analisada pelo PSP do usuário recebedor e o resultado dessa análise está disponível; ou - cancelada: enquanto a solicitação não estiver no estado “analisada”, o PSP do pagador pode cancelar a solicitação. - + - name: Statistics + x-displayName: Estatísticas + description: |- + O DICT fornece dados estatísticos de usuários finais, que podem ser consultados através do `TaxIdNumber` (CPF ou CNPJ). As informações + providas detalham o total de liquidações, fraudes reportadas e fraudes confirmadas do respectivo usuário consultado. + Assim como nos dados estatísticos de chaves, esses totais são consolidados para os últimos 3 dias, 30 dias e 6 meses anteriores ao + momento da consulta. paths: ######################################################################################################################## @@ -665,10 +672,10 @@ paths: required: true - schema: type: string - pattern: '[0-9a-fA-F]{64}' + pattern: '^([0-9]{11}|[0-9]{14})$' in: header name: PI-PayerId - description: 'Identificador pseudonimizado do pagador que originou a requisição. Usado para _rate-limiting_.' + description: 'Identificador do pagador que originou a requisição. Usado para _rate-limiting_.' required: true - schema: type: string @@ -778,10 +785,10 @@ paths: required: true - schema: type: string - pattern: '[0-9a-fA-F]{64}' + pattern: '^([0-9]{11}|[0-9]{14})$' in: header name: PI-PayerId - description: 'Identificador pseudonimizado do pagador que originou a requisição. Usado para _rate-limiting_.' + description: 'Identificador do pagador que originou a requisição. Usado para _rate-limiting_.' required: true responses: '200': @@ -1614,9 +1621,24 @@ paths: schema: $ref: '#/components/schemas/CreateInfractionReportRequest' examples: - example: + SPI - Settled: + value: + $ref: './examples/infractions/CreateInfractionReportRequest-SPISettled.xml' + SPI - Rejected Payee: + value: + $ref: './examples/infractions/CreateInfractionReportRequest-SPIRejectedPayee.xml' + SPI - Rejected Payer: + value: + $ref: './examples/infractions/CreateInfractionReportRequest-SPIRejectedPayer.xml' + INTERNAL - Settled: value: - $ref: './examples/infractions/CreateInfractionReportRequest.xml' + $ref: './examples/infractions/CreateInfractionReportRequest-INTERNALSettled.xml' + INTERNAL - Rejected Payee: + value: + $ref: './examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayee.xml' + INTERNAL - Rejected Payer: + value: + $ref: './examples/infractions/CreateInfractionReportRequest-INTERNALRejectedPayer.xml' responses: '201': description: Created @@ -1625,9 +1647,24 @@ paths: schema: $ref: '#/components/schemas/CreateInfractionReportResponse' examples: - example: - value: - $ref: './examples/infractions/CreateInfractionReportResponse.xml' + SPI - Settled: + value: + $ref: './examples/infractions/CreateInfractionReportResponse-SPISettled.xml' + SPI - Rejected Payee: + value: + $ref: './examples/infractions/CreateInfractionReportResponse-SPIRejectedPayee.xml' + SPI - Rejected Payer: + value: + $ref: './examples/infractions/CreateInfractionReportResponse-SPIRejectedPayer.xml' + INTERNAL - Settled: + value: + $ref: './examples/infractions/CreateInfractionReportResponse-INTERNALSettled.xml' + INTERNAL - Rejected Payee: + value: + $ref: './examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayee.xml' + INTERNAL - Rejected Payer: + value: + $ref: './examples/infractions/CreateInfractionReportResponse-INTERNALRejectedPayer.xml' '400': $ref: "#/components/responses/BadRequest" '403': @@ -2164,6 +2201,49 @@ paths: '503': $ref: "#/components/responses/ServiceUnavailable" + ####################################################################################################################### + ## STATISTICS + ####################################################################################################################### + '/statistics/owner/{TaxIdNumber}': + parameters: + - schema: + type: string + pattern: '^[0-9]{11,14}$' + example: '12345678901' + name: TaxIdNumber + in: path + required: true + get: + summary: Consultar Estatísticas de usuário final + description: Obtém dados estatísticos de perfil de uso do usuário (liquidações, fraudes reportadas e fraudes confirmadas) + operationId: getOwnerStatistics + parameters: + - schema: + type: string + pattern: '^[0-9]{8}$' + example: '12345678' + in: header + name: PI-RequestingParticipant + description: 'Identificador SPB do participante (direto ou indireto) que faz a requisição.' + required: true + tags: + - Statistics + responses: + '200': + description: OK + content: + application/xml: + schema: + $ref: '#/components/schemas/GetOwnerStatisticsResponse' + examples: + example: + value: + $ref: './examples/statistics/GetOwnerStatisticsResponse.xml' + '403': + $ref: "#/components/responses/Forbidden" + '404': + $ref: "#/components/responses/NotFound" + components: schemas: $ref: './schemas.yaml' diff --git a/openapi/schemas.yaml b/openapi/schemas.yaml index 4b4e5d6..c6df6a6 100644 --- a/openapi/schemas.yaml +++ b/openapi/schemas.yaml @@ -124,7 +124,6 @@ EntryOperationReason: - USER_REQUESTED - ACCOUNT_CLOSURE - BRANCH_TRANSFER - - ENTRY_INACTIVITY - RECONCILIATION - FRAUD ClaimStatus: @@ -358,6 +357,7 @@ Counter: - SETTLEMENTS - REPORTED_FRAUDS - CONFIRMED_FRAUDS + - REJECTED by: type: string description: Agregador (chave, dono ou conta). @@ -382,6 +382,35 @@ Counter: type: integer xml: attribute: true +ByCounter: + type: object + description: Contador de eventos agregados por tipo em diversas janelas temporais. + properties: + type: + type: string + description: Tipo do contador. + xml: + attribute: true + enum: + - SETTLEMENTS + - REPORTED_FRAUDS + - CONFIRMED_FRAUDS + - REJECTED + d3: + description: Valor para os últimos 3 dias + type: integer + xml: + attribute: true + d30: + description: Valor para os últimos 30 dias + type: integer + xml: + attribute: true + m6: + description: Valor para os últimos 6 meses (sem contar o mês corrente) + type: integer + xml: + attribute: true Statistics: type: object description: Dados de estatísticos relacionados à chave, ao dono ou à conta @@ -432,15 +461,86 @@ InfractionReport: type: string description: Transação com suspeita de infração example: 'E9999901012341234123412345678900' - pattern: '\w{32}' + pattern: '\w{8,32}' + TransactionType: + $ref: '#/TransactionType' + TransactionResult: + $ref: '#/TransactionResult' InfractionType: $ref: '#/InfractionType' ReportDetails: description: Detalhes que possam ajudar o participante recebedor a analisar a suspeita de infração maxLength: 2000 + InfractionData: + $ref: '#/InfractionData' required: - TransactionId - InfractionType +TransactionType: + type: string + default: SPI + enum: + - SPI + - INTERNAL +TransactionResult: + type: string + default: SETTLED + enum: + - SETTLED + - REJECTED_PAYEE + - REJECTED_PAYER +InfractionData: + type: object + description: Dados de uma transação envolvida em uma infração + properties: + TaxIdNumber: + $ref: '#/TaxIdNumber' + Key: + $ref: "#/Key" + DebitedParticipant: + allOf: + - $ref: '#/ISPB' + - description: Identificador SPB do participante do usuário pagador da transação + CreditedParticipant: + allOf: + - $ref: '#/ISPB' + - description: Identificador SPB do participante do usuário recebedor da transação + ReportedBy: + $ref: '#/ReportedBy' + TransactionDate: + type: string + format: date-time + description: Data-hora da realização da transação + InfractingAccountData: + $ref: "#/InfractingAccountData" + required: + - TaxIdNumber + - DebitedParticipant + - CreditedParticipant + - ReportedBy + - TransactionDate + - InfractingAccountData +InfractingAccountData: + type: object + description: Dados parciais de uma conta transacional envolvida em uma infração + properties: + Branch: + type: string + description: Agência, sem dígito verificador. + pattern: '^[0-9]{1,4}$' + example: '0001' + AccountNumber: + type: string + description: 'Número de conta, incluindo verificador. Se verificador for letra, substituir por 0.' + pattern: '^[0-9]{1,20}$' + example: '0007654321' + required: + - AccountNumber +TaxIdNumber: + type: string + description: CPF ou CNPJ + pattern: '([0-9]{11}|[0-9]{14})' + example: '12345678901' ExtendedInfractionReport: allOf: - $ref: '#/InfractionReport' @@ -573,7 +673,7 @@ RefundAnalysisResult: description: Resultado da análise da requisição de devolução pelo constestado. enum: - TOTALLY_ACCEPTED - - PARCIALlY_ACCEPTED + - PARTIALLY_ACCEPTED - REJECTED RefundAnalysisDetails: description: Detalhes da análise da requisição de devolução indicando a motivação do resultado. @@ -591,6 +691,7 @@ RefundRejectionReason: - NO_BALANCE - ACCOUNT_CLOSURE - CANNOT_REFUND + - OTHER description: Razão da rejeição da solicitação de devolução. #### SYNC REQ-RESP ##### @@ -1096,7 +1197,7 @@ DeleteEntryRequest: Reason: allOf: - $ref: '#/EntryOperationReason' - - description: "Valores válidos: `USER_REQUESTED`, `ACCOUNT_CLOSURE`, `ENTRY_INACTIVITY`, `RECONCILIATION` e `FRAUD`" + - description: "Valores válidos: `USER_REQUESTED`, `ACCOUNT_CLOSURE`, `RECONCILIATION` e `FRAUD`" required: - Key - Participant @@ -1547,6 +1648,44 @@ CloseRefundResponse: - CorrelationId - Refund + +##### STATISTICS REQ-RESP #### + +GetOwnerStatisticsResponse: + type: object + properties: + Signature: + type: object + xml: + prefix: ds + namespace: 'http://www.w3.org/2000/09/xmldsig#' + ResponseTime: + type: string + format: date-time + CorrelationId: + $ref: '#/CorrelationId' + OwnerStatistics: + $ref: '#/OwnerStatistics' + required: + - ResponseTime + - CorrelationId + - OwnerStatistics +OwnerStatistics: + type: object + description: Dados de estatísticos relacionados ao usuário + properties: + TaxIdNumber: + $ref: '#/TaxIdNumber' + LastUpdated: + type: string + format: date-time + description: data-hora da última atualização dos dados antifraude + Counters: + type: array + description: Contadores de eventos de algum tipo + items: + $ref: '#/ByCounter' + ################# Problem: