Skip to content

Commit

Permalink
1.0.0-RC5
Browse files Browse the repository at this point in the history
  • Loading branch information
judahreis committed Jul 22, 2020
1 parent f85f14f commit b7710e5
Show file tree
Hide file tree
Showing 30 changed files with 1,728 additions and 818 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

Mudanças relevantes na API do DICT serão documentadas aqui.

## [1.0.0-RC5] - 2020-07-22
### Adicionado
- Contadores para avaliação de risco de fraude em GetEntryResponse
- Campo obrigatório OpeningDate em BrazilianAccount
- Campo HasMoreElements em ListClaimsResponse, ListCidSetEventsResponse
- Header obrigatório PI-RequestingParticipant para operações getEntry, getClaim e getCidSetFile
- Possibilidade de remover vínculo com razão FRAUD (correção da spec)
- _Endpoints_ de disputas

### Alterado
- Campos CreationDate e KeyOwnershipDate de ExtendedEntry passaram do formato date para date-time
- Colocada restrição de caracteres para nomes de NaturalPerson e LegalPerson

### Removido
- Header PI-PayerAccountServicer para operação getEntry

## [1.0.0-RC4] - 2020-06-24
### Adicionado
- Campo Reason em ConfirmClaimRequest (correção da spec)
Expand Down
1 change: 1 addition & 0 deletions openapi/examples/claims/AcknowledgeClaimResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
1 change: 1 addition & 0 deletions openapi/examples/claims/CancelClaimResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
1 change: 1 addition & 0 deletions openapi/examples/claims/CompleteClaimResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
1 change: 1 addition & 0 deletions openapi/examples/claims/ConfirmClaimResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
1 change: 1 addition & 0 deletions openapi/examples/claims/CreateClaimRequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
1 change: 1 addition & 0 deletions openapi/examples/claims/CreateClaimResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
1 change: 1 addition & 0 deletions openapi/examples/claims/GetClaimResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
2 changes: 2 additions & 0 deletions openapi/examples/claims/ListClaimsResponse.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ListClaimsResponse>
<Signature></Signature>
<HasMoreElements>true</HasMoreElements>
<Claims>
<Claim>
<Type>OWNERSHIP</Type>
Expand All @@ -11,6 +12,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</ClaimerAccount>
<Claimer>
<Type>NATURAL_PERSON</Type>
Expand Down
6 changes: 6 additions & 0 deletions openapi/examples/disputes/AcknowledgeDisputeRequest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<AcknowledgeDisputeRequest>
<Signature></Signature>
<DisputeId>91d65e98-97c0-4b0f-b577-73625da1f9fc</DisputeId>
<Participant>12345678</Participant>
</AcknowledgeDisputeRequest>
16 changes: 16 additions & 0 deletions openapi/examples/disputes/AcknowledgeDisputeResponse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<AcknowledgeDisputeResponse>
<Signature></Signature>
<Dispute>
<DisputedTransactionId>E9999901012341234123412345678900</DisputedTransactionId>
<Reason>FRAUD</Reason>
<DisputedAmount>1000.00</DisputedAmount>
<Details>Transação feita através de QR Code falso em boleto</Details>
<Id>91d65e98-97c0-4b0f-b577-73625da1f9fc</Id>
<Status>ACKNOWLEDGED</Status>
<PayerParticipant>99999010</PayerParticipant>
<DisputedParticipant>99999011</DisputedParticipant>
<CreationTime>2020-01-17T10:00:00Z</CreationTime>
<LastModified>2020-01-17T10:00:00Z</LastModified>
</Dispute>
</AcknowledgeDisputeResponse>
6 changes: 6 additions & 0 deletions openapi/examples/disputes/CancelDisputeRequest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CancelDisputeRequest>
<Signature></Signature>
<DisputeId>91d65e98-97c0-4b0f-b577-73625da1f9fc</DisputeId>
<Participant>12345678</Participant>
</CancelDisputeRequest>
16 changes: 16 additions & 0 deletions openapi/examples/disputes/CancelDisputeResponse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CancelDisputeResponse>
<Signature></Signature>
<Dispute>
<DisputedTransactionId>E9999901012341234123412345678900</DisputedTransactionId>
<Reason>FRAUD</Reason>
<DisputedAmount>1000.00</DisputedAmount>
<Details>Transação feita através de QR Code falso em boleto</Details>
<Id>91d65e98-97c0-4b0f-b577-73625da1f9fc</Id>
<Status>CANCELLED</Status>
<PayerParticipant>99999010</PayerParticipant>
<DisputedParticipant>99999011</DisputedParticipant>
<CreationTime>2020-01-17T10:00:00Z</CreationTime>
<LastModified>2020-01-18T10:00:00Z</LastModified>
</Dispute>
</CancelDisputeResponse>
12 changes: 12 additions & 0 deletions openapi/examples/disputes/CloseDisputeRequest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CloseDisputeRequest>
<Signature></Signature>
<DisputeId>91d65e98-97c0-4b0f-b577-73625da1f9fc</DisputeId>
<Participant>12345678</Participant>
<Resolution>
<Result>ACCEPTED</Result>
<RefundType>PARTIAL</RefundType>
<RefundTransactionId>D9999901012341234123412345678900</RefundTransactionId>
<Details>A transação foi fraudulenta. A devolução foi parcial por saldo insuficiente.</Details>
</Resolution>
</CloseDisputeRequest>
22 changes: 22 additions & 0 deletions openapi/examples/disputes/CloseDisputeResponse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CloseDisputeResponse>
<Signature></Signature>
<Dispute>
<DisputedTransactionId>E9999901012341234123412345678900</DisputedTransactionId>
<Reason>FRAUD</Reason>
<DisputedAmount>1000.00</DisputedAmount>
<Details>Transação feita através de QR Code falso em boleto</Details>
<Id>91d65e98-97c0-4b0f-b577-73625da1f9fc</Id>
<Status>CLOSED</Status>
<PayerParticipant>99999010</PayerParticipant>
<DisputedParticipant>99999011</DisputedParticipant>
<CreationTime>2020-01-17T10:00:00Z</CreationTime>
<LastModified>2020-01-17T10:00:00Z</LastModified>
<Resolution>
<Result>ACCEPTED</Result>
<RefundType>PARTIAL</RefundType>
<RefundTransactionId>D9999901012341234123412345678900</RefundTransactionId>
<Details>A trasação foi comprovadamente fraudulenta. A devolução foi parcial por saldo insuficiente</Details>
</Resolution>
</Dispute>
</CloseDisputeResponse>
11 changes: 11 additions & 0 deletions openapi/examples/disputes/CreateDisputeRequest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CreateDisputeRequest>
<Signature></Signature>
<Participant>99999010</Participant>
<Dispute>
<DisputedTransactionId>E9999901012341234123412345678900</DisputedTransactionId>
<Reason>FRAUD</Reason>
<DisputedAmount>1000.00</DisputedAmount>
<Details>Transação feita através de QR Code falso em boleto</Details>
</Dispute>
</CreateDisputeRequest>
16 changes: 16 additions & 0 deletions openapi/examples/disputes/CreateDisputeResponse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CreateDisputeResponse>
<Signature></Signature>
<Dispute>
<DisputedTransactionId>E9999901012341234123412345678900</DisputedTransactionId>
<Reason>FRAUD</Reason>
<DisputedAmount>1000.00</DisputedAmount>
<Details>Transação feita através de QR Code falso em boleto</Details>
<Id>91d65e98-97c0-4b0f-b577-73625da1f9fc</Id>
<Status>OPEN</Status>
<PayerParticipant>99999010</PayerParticipant>
<DisputedParticipant>99999011</DisputedParticipant>
<CreationTime>2020-01-17T10:00:00Z</CreationTime>
<LastModified>2020-01-17T10:00:00Z</LastModified>
</Dispute>
</CreateDisputeResponse>
16 changes: 16 additions & 0 deletions openapi/examples/disputes/GetDisputeResponse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<GetDisputeResponse>
<Signature></Signature>
<Dispute>
<DisputedTransactionId>E9999901012341234123412345678900</DisputedTransactionId>
<Reason>FRAUD</Reason>
<DisputedAmount>1000.00</DisputedAmount>
<Details>Transação feita através de QR Code falso em boleto</Details>
<Id>91d65e98-97c0-4b0f-b577-73625da1f9fc</Id>
<Status>ACKNOWLEDGED</Status>
<PayerParticipant>99999010</PayerParticipant>
<DisputedParticipant>99999011</DisputedParticipant>
<CreationTime>2020-01-17T10:00:00Z</CreationTime>
<LastModified>2020-01-17T10:00:00Z</LastModified>
</Dispute>
</GetDisputeResponse>
23 changes: 23 additions & 0 deletions openapi/examples/disputes/ListDisputesResponse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ListDisputesResponse>
<Signature></Signature>
<HasMoreElements>true</HasMoreElements>
<Disputes>
<Dispute>
<Id>91d65e98-97c0-4b0f-b577-73625da1f9fc</Id>
<Status>CLOSED</Status>
<PayerParticipant>99999010</PayerParticipant>
<DisputedParticipant>99999011</DisputedParticipant>
<DisputedTransactionId>E9999901012341234123412345678900</DisputedTransactionId>
<Reason>FRAUD</Reason>
<DisputedAmount>1000.00</DisputedAmount>
<CreationTime>2020-01-17T10:00:00Z</CreationTime>
<LastModified>2020-01-19T10:00:00Z</LastModified>
<Resolution>
<Result>ACCEPTED</Result>
<RefundType>PARTIAL</RefundType>
<RefundTransactionId>D9999901012341234123412345678900</RefundTransactionId>
</Resolution>
</Dispute>
</Disputes>
</ListDisputesResponse>
1 change: 1 addition & 0 deletions openapi/examples/entries/CreateEntryRequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</Account>
<Owner>
<Type>NATURAL_PERSON</Type>
Expand Down
5 changes: 3 additions & 2 deletions openapi/examples/entries/CreateEntryResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</Account>
<Owner>
<Type>NATURAL_PERSON</Type>
<TaxIdNumber>11122233300</TaxIdNumber>
<Name>João Silva</Name>
</Owner>
<CreationDate>2019-11-18</CreationDate>
<KeyOwnershipDate>2019-11-18</KeyOwnershipDate>
<CreationDate>2019-11-18T03:00:00Z</CreationDate>
<KeyOwnershipDate>2019-11-18T03:00:00Z</KeyOwnershipDate>
</Entry>
</CreateEntryResponse>
25 changes: 23 additions & 2 deletions openapi/examples/entries/GetEntryResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,34 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</Account>
<Owner>
<Type>NATURAL_PERSON</Type>
<TaxIdNumber>11122233300</TaxIdNumber>
<Name>João Silva</Name>
</Owner>
<CreationDate>2019-11-18</CreationDate>
<KeyOwnershipDate>2019-11-18</KeyOwnershipDate>
<CreationDate>2019-11-18T03:00:00Z</CreationDate>
<KeyOwnershipDate>2019-11-18T03:00:00Z</KeyOwnershipDate>
</Entry>
<Statistics>
<LastUpdated>2020-01-17T10:00:00Z</LastUpdated>
<Counters>
<Counter type="SETTLEMENTS" by="KEY" d3="0" d30="5" m6="30"/>
<Counter type="SETTLEMENTS" by="OWNER" d3="0" d30="5" m6="30"/>
<Counter type="SETTLEMENTS" by="ACCOUNT" d3="0" d30="5" m6="30"/>
<Counter type="REPORTED_FRAUDS" by="KEY" d3="0" d30="5" m6="30"/>
<Counter type="REPORTED_FRAUDS" by="OWNER" d3="0" d30="5" m6="30"/>
<Counter type="REPORTED_FRAUDS" by="ACCOUNT" d3="0" d30="5" m6="30"/>
<Counter type="REPORTED_AML_CFT" by="KEY" d3="0" d30="5" m6="30"/>
<Counter type="REPORTED_AML_CFT" by="OWNER" d3="0" d30="5" m6="30"/>
<Counter type="REPORTED_AML_CFT" by="ACCOUNT" d3="0" d30="5" m6="30"/>
<Counter type="CONFIRMED_FRAUDS" by="KEY" d3="0" d30="5" m6="30"/>
<Counter type="CONFIRMED_FRAUDS" by="OWNER" d3="0" d30="5" m6="30"/>
<Counter type="CONFIRMED_FRAUDS" by="ACCOUNT" d3="0" d30="5" m6="30"/>
<Counter type="CONFIRMED_AML_CFT" by="KEY" d3="0" d30="5" m6="30"/>
<Counter type="CONFIRMED_AML_CFT" by="OWNER" d3="0" d30="5" m6="30"/>
<Counter type="CONFIRMED_AML_CFT" by="ACCOUNT" d3="0" d30="5" m6="30"/>
</Counters>
</Statistics>
</GetEntryResponse>
1 change: 1 addition & 0 deletions openapi/examples/entries/UpdateEntryRequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</Account>
<Reason>USER_REQUESTED</Reason>
</UpdateEntryRequest>
5 changes: 3 additions & 2 deletions openapi/examples/entries/UpdateEntryResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</Account>
<Owner>
<Type>NATURAL_PERSON</Type>
<TaxIdNumber>11122233300</TaxIdNumber>
<Name>João Silva</Name>
</Owner>
<CreationDate>2019-11-18</CreationDate>
<KeyOwnershipDate>2019-11-18</KeyOwnershipDate>
<CreationDate>2019-11-18T03:00:00Z</CreationDate>
<KeyOwnershipDate>2019-11-18T03:00:00Z</KeyOwnershipDate>
</Entry>
</UpdateEntryResponse>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<SyncVerification>
<Participant>12345678</Participant>
<KeyType>CPF</KeyType>
<SyncVerifier>e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855</SyncVerifier>
<ParticipantSyncVerifier>e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855</ParticipantSyncVerifier>
</SyncVerification>
</CreateSyncVerificationRequest>
5 changes: 3 additions & 2 deletions openapi/examples/reconciliation/GetEntryByCidResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
<Branch>0001</Branch>
<AccountNumber>0007654321</AccountNumber>
<AccountType>CACC</AccountType>
<OpeningDate>2010-01-10T03:00:00Z</OpeningDate>
</Account>
<Owner>
<Type>NATURAL_PERSON</Type>
<TaxIdNumber>11122233300</TaxIdNumber>
<Name>João Silva</Name>
</Owner>
<CreationDate>2019-11-18</CreationDate>
<KeyOwnershipDate>2019-11-18</KeyOwnershipDate>
<CreationDate>2019-11-18T03:00:00Z</CreationDate>
<KeyOwnershipDate>2019-11-18T03:00:00Z</KeyOwnershipDate>
</Entry>
</GetEntryByCidResponse>
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ListCidSetEventsResponse>
<Signature></Signature>
<HasMoreElements>true</HasMoreElements>
<Participant>12345678</Participant>
<KeyType>CPF</KeyType>
<StartTime>2020-01-10T10:00:00Z</StartTime>
Expand Down
Loading

0 comments on commit b7710e5

Please sign in to comment.