Created
June 5, 2020 17:15
-
-
Save goulartt/8e73125a87cc116a6a62e0991510d9ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"specVersion": "1.9.2", | |
"type": "PERMITTED_PROMOTION", | |
"source": "ELIGIBILITY_VERIFIER", | |
"id": "604eea36-954d-44f8-9f23-31cd9fcfb489", | |
"time": "2020-04-09T17:57:41.510", | |
"eventVersion": "2.0", | |
"transactionId": "{{ transactionId }}", | |
"dataContentType": "application/avro", | |
"data": { | |
"User": { | |
"cpf": "123456789", | |
"userId": "{{userId}}", | |
"optIn": "", | |
"contacts": null | |
}, | |
"Operation": { | |
"type": "TRANSACTION", | |
"data": "{\"cardNumber\":\"62F3353128941C56791E93155A2AFAA27CE59A6AA771EBDC66648DCF26EC034D\",\"bin\":\"1234\",\"amountTransaction\":50,\"dateTimeTransaction\":{\"date\":{\"year\":2020,\"month\":4,\"day\":9},\"time\":{\"hour\":17,\"minute\":49,\"second\":50,\"nano\":684000000}},\"validateCard\":{\"year\":2020,\"month\":6,\"day\":20},\"responseCode\":\"00\"}" | |
}, | |
"Promotion": { | |
"promotionid": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | |
"promotionname": "string", | |
"mechanismType": "ACCUMULATION", | |
"startvalidity": "", | |
"endvalidity": "", | |
"Prize": { | |
"totalAward": "150.00", | |
"value": 10, | |
"type": "PORCENTAGEM" | |
}, | |
"Award": { | |
"changeBatch": true, | |
"accumulatedValue": 50.0, | |
"leftoverValue": 110.0, | |
"reasonRejections": null | |
}, | |
"Condictions": [ | |
{ | |
"Condiction": { | |
"type": "TRANSACTION", | |
"CondictionField": { | |
"name": "VALOR", | |
"dataType": "JSON", | |
"location": "bit04", | |
"value": "", | |
"type": "decimal", | |
"categoryType": "" | |
}, | |
"operationField": ">", | |
"ComparationField": { | |
"name": "VALOR", | |
"dataType": "JSON", | |
"location": "bit04", | |
"type": "decimal", | |
"value": "[100]" | |
} | |
} | |
}, | |
{ | |
"Condiction": { | |
"type": "LIST", | |
"CondictionField": { | |
"name": "WHITE_LIST", | |
"dataType": "JSON", | |
"location": "", | |
"value": "hash", | |
"type": "LIST", | |
"categoryType": "" | |
}, | |
"operationField": "in", | |
"ComparationField": { | |
"name": "", | |
"dataType": "JSON", | |
"location": "", | |
"type": "", | |
"value": "[]" | |
} | |
} | |
}, | |
{ | |
"Condiction": { | |
"type": "TRANSACTION", | |
"CondictionField": { | |
"name": "Código do EC", | |
"dataType": "JSON", | |
"location": "bit42", | |
"value": "", | |
"type": "string", | |
"categoryType": "" | |
}, | |
"operationField": "in", | |
"ComparationField": { | |
"name": "Código do EC", | |
"dataType": "JSON", | |
"location": "bit42", | |
"type": "string", | |
"value": "[123456]" | |
} | |
} | |
}, | |
{ | |
"Condiction": { | |
"type": "TRANSACTION", | |
"CondictionField": { | |
"name": "Carteira Digital - ID do requisitante do token", | |
"dataType": "JSON", | |
"location": "bit106.conjuntoDados61Tag02", | |
"value": "", | |
"type": "string", | |
"categoryType": "" | |
}, | |
"operationField": "in", | |
"ComparationField": { | |
"name": "Carteira Digital - ID do requisitante do token", | |
"dataType": "JSON", | |
"location": "bit106.conjuntoDados61Tag02", | |
"type": "string", | |
"value": "[12345678910]" | |
} | |
} | |
}, | |
{ | |
"Condiction": { | |
"type": "TRANSACTION", | |
"CondictionField": { | |
"name": "Entry Mode", | |
"dataType": "JSON", | |
"location": "bit22", | |
"value": "", | |
"type": "string", | |
"categoryType": "" | |
}, | |
"operationField": "==", | |
"ComparationField": { | |
"name": "Entry Mode", | |
"dataType": "JSON", | |
"location": "bit22", | |
"type": "string", | |
"value": "[03]" | |
} | |
} | |
}, | |
{ | |
"Condiction": { | |
"type": "TRANSACTION", | |
"CondictionField": { | |
"name": "Código do Tipo de Produto", | |
"dataType": "JSON", | |
"location": "bit48|PRD003", | |
"value": "", | |
"type": "string", | |
"categoryType": "" | |
}, | |
"operationField": "in", | |
"ComparationField": { | |
"name": "Entry Mode", | |
"dataType": "JSON", | |
"location": "bit48|PRD003", | |
"type": "string", | |
"value": "[070, 071]" | |
} | |
} | |
}, | |
{ | |
"Condiction": { | |
"type": "TRANSACTION", | |
"CondictionField": { | |
"name": "Código do MCC", | |
"dataType": "JSON", | |
"location": "bit18", | |
"value": "", | |
"type": "string", | |
"categoryType": "" | |
}, | |
"operationField": "in", | |
"ComparationField": { | |
"name": "Código do MCC", | |
"dataType": "JSON", | |
"location": "bit18", | |
"type": "string", | |
"value": "[1234]" | |
} | |
} | |
}, | |
{ | |
"Condiction": { | |
"type": "AWARD", | |
"CondictionField": { | |
"name": "Premiação de Acumulação", | |
"dataType": "JSON", | |
"location": "ACCUMULATIVE", | |
"value": "3000.0", | |
"type": "", | |
"categoryType": "" | |
}, | |
"operationField": "in", | |
"ComparationField": { | |
"name": "", | |
"dataType": "JSON", | |
"location": "", | |
"type": "", | |
"value": "" | |
} | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment