...
Code Block |
---|
{ "replicateAccount": { "active": false, "urls": [ "https://sqs.eu-west-3.amazonaws.com/326165771931/rbi-dev-bk-mparticle-events-queue", "https://sqs.eu-west-3.amazonaws.com/326165771931/rbi-dev-th-mparticle-events-queue" ] } } |
...
Task 2 - create a new secret in QA/Prod
...
[DEPRECATED]
SNS - Topic:
Create queue to test: aws-rbi-dev-plk-rbi-user-updated-queue-cross-brand
Example JSON receive:
Code Block | ||
---|---|---|
| ||
{
"eventName": "MODIFY",
"eventSource": "aws:dynamodb",
"eventSourceARN": "arn:aws:dynamodb:eu-west-3:326165771931:table/aws-rbi-dev-plk/stream/2023-03-10T13:37:25.729",
"keys": {
"sk": "v0_User",
"pk": "b7ad4155-2545-4f09-a9bb-aa02da6fbcc0"
},
"newImage": {
"loyaltyId": "a5085428-90db-524a-8e3d-dc293d60f6b8",
"createdAt": "2023-04-13T17:33:28.505Z",
"pk2": "jonatans+es@ciandt.com",
"sk": "v0_User",
"details": {
"favoriteStores": [
{
"storeNumber": "1111",
"storeId": "cbf4d9b3-35cf-402e-9a7b-6ffdbeff1c3c"
},
{
"storeNumber": "005484",
"storeId": "7fd282bf-7191-4e50-b8b3-0129d4668d91"
}
],
"showThLoyaltyOnboarding": null,
"deliveryAddresses": [
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "Rua A",
"city": "Zaragoza",
"streetNumber": "100",
"latitude": 41.6488226,
"addressLine1": "Rua A 100",
"alias": "Home",
"addressLine2": null,
"state": "AR",
"longitude": -0.8890853
},
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "Rua",
"city": "Zaragoza",
"streetNumber": "1",
"latitude": 41.6488226,
"addressLine1": "Rua 1",
"alias": "Work",
"addressLine2": "10",
"state": "AR",
"longitude": -0.8890853
},
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "C. De López De Hoyos, 153",
"city": "Madrid",
"streetNumber": "150",
"latitude": 40.4167754,
"addressLine1": "C. De López De Hoyos, 153 150",
"alias": "Home",
"addressLine2": null,
"state": "MD",
"longitude": -3.7037902
}
],
"dobDeleted": null,
"autoReloadEnabled": false,
"autoReloadThreshold": 500,
"promotionalEmails": true,
"rutrPassedSkillsTestTimestamp": null,
"favoriteOffers": [
{
"id": "a0dde08c-0f69-4236-acdd-19e079335ca5"
}
],
"defaultScanAndPayAccountIdentifier": null,
"email": "jonatans+es@ciandt.com",
"defaultFdAccountId": null,
"hasOrderedSuccessful": true,
"phoneVerified": false,
"isoCountryCode": "ESP",
"optedInLoyalty": true,
"loyaltyTier": null,
"defaultAccountIdentifier": "CASH",
"defaultPaymentAccountId": null,
"communicationPreferences": [
{
"id": "loyalty",
"value": "true"
},
{
"id": "orderStatus",
"value": "true"
},
{
"id": "marketingEmail",
"value": "true"
},
{
"id": "email_subscribe",
"value": "opted_in"
},
{
"id": "rewardsEmail",
"value": "true"
},
{
"id": "Email Opt In",
"value": "true"
},
{
"id": "marketingPush",
"value": "true"
},
{
"id": "push_subscribe",
"value": "opted_in"
},
{
"id": "rewardsPush",
"value": "true"
}
],
"zipcode": null,
"emailVerified": true,
"phoneNumber": "00000000",
"rutrFailedSkillsTestTimestamp": null,
"dob": null,
"name": "Jonatan",
"defaultReloadAmt": 500,
"registrationComplete": true,
"requiredAcceptanceAgreementInfo": [
{
"id": "9a5cf89f-8e8a-4b57-8a73-91971e881260",
"updatedAt": "2023-11-06T14:05:41Z"
},
{
"id": "a50ef59d-cbcf-47b1-876a-898584ecc2c6",
"updatedAt": "2023-10-25T21:49:56Z"
},
{
"id": "a78b4120-8a34-434a-87eb-ec3be2e54586",
"updatedAt": "2023-10-24T12:25:35Z"
},
{
"id": "0526acbf-c6a4-453e-8786-e82c861e0b27",
"updatedAt": "2023-04-13T10:51:37Z"
},
{
"id": "0e0d12e4-d6cd-4b0e-bc9e-0cfbd590c922",
"updatedAt": "2023-04-12T21:39:00Z"
},
{
"id": "2f8d25f2-a7ed-42ad-880b-b160a9330f0e",
"updatedAt": "2023-04-12T21:39:15Z"
},
{
"id": "5296455b-559b-4949-b4f6-f6b2b8b79d54",
"updatedAt": "2023-04-13T14:07:02Z"
},
{
"id": "5c1c1ce4-57c5-4521-98b3-a19abd12cea5",
"updatedAt": "2023-04-13T09:09:50Z"
},
{
"id": "9771caa9-f759-4ca1-abf3-ecf8e1fab022",
"updatedAt": "2023-04-03T13:31:18Z"
},
{
"id": "9e5ca170-f0ff-4179-a4d7-7a3888ca231f",
"updatedAt": "2023-04-13T14:07:02Z"
},
{
"id": "cb75d58e-dcdc-4395-8259-203d43c69887",
"updatedAt": "2023-04-10T10:56:07Z"
}
]
},
"pk": "b7ad4155-2545-4f09-a9bb-aa02da6fbcc0",
"sk2": "v0_UserEmail",
"updatedAt": "2023-11-08T18:35:53.733Z"
},
"occurredAt": "2023-11-08T18:35:54.000Z",
"oldImage": {
"loyaltyId": "a5085428-90db-524a-8e3d-dc293d60f6b8",
"createdAt": "2023-04-13T17:33:28.505Z",
"pk2": "jonatans+es@ciandt.com",
"sk": "v0_User",
"details": {
"favoriteStores": [
{
"storeNumber": "1111",
"storeId": "cbf4d9b3-35cf-402e-9a7b-6ffdbeff1c3c"
},
{
"storeNumber": "005484",
"storeId": "7fd282bf-7191-4e50-b8b3-0129d4668d91"
}
],
"showThLoyaltyOnboarding": null,
"deliveryAddresses": [
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "Rua A",
"city": "Zaragoza",
"streetNumber": "100",
"latitude": 41.6488226,
"addressLine1": "Rua A 100",
"alias": "Home",
"addressLine2": null,
"state": "AR",
"longitude": -0.8890853
},
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "Rua",
"city": "Zaragoza",
"streetNumber": "1",
"latitude": 41.6488226,
"addressLine1": "Rua 1",
"alias": "Work",
"addressLine2": "10",
"state": "AR",
"longitude": -0.8890853
},
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "C. De López De Hoyos, 153",
"city": "Madrid",
"streetNumber": "150",
"latitude": 40.4167754,
"addressLine1": "C. De López De Hoyos, 153 150",
"alias": "Home",
"addressLine2": null,
"state": "MD",
"longitude": -3.7037902
}
],
"dobDeleted": null,
"autoReloadEnabled": false,
"autoReloadThreshold": 500,
"promotionalEmails": true,
"rutrPassedSkillsTestTimestamp": null,
"favoriteOffers": [
{
"id": "a0dde08c-0f69-4236-acdd-19e079335ca5"
}
],
"defaultScanAndPayAccountIdentifier": null,
"email": "jonatans+es@ciandt.com",
"defaultFdAccountId": null,
"hasOrderedSuccessful": true,
"phoneVerified": false,
"isoCountryCode": "ESP",
"optedInLoyalty": true,
"loyaltyTier": null,
"defaultAccountIdentifier": "CASH",
"defaultPaymentAccountId": null,
"communicationPreferences": [
{
"id": "loyalty",
"value": "true"
},
{
"id": "orderStatus",
"value": "true"
},
{
"id": "marketingEmail",
"value": "true"
},
{
"id": "email_subscribe",
"value": "opted_in"
},
{
"id": "rewardsEmail",
"value": "true"
},
{
"id": "Email Opt In",
"value": "true"
},
{
"id": "marketingPush",
"value": "false"
},
{
"id": "push_subscribe",
"value": "unsubscribed"
},
{
"id": "rewardsPush",
"value": "false"
}
],
"zipcode": null,
"emailVerified": true,
"phoneNumber": "00000000",
"rutrFailedSkillsTestTimestamp": null,
"dob": null,
"name": "Jonatan",
"defaultReloadAmt": 500,
"registrationComplete": true,
"requiredAcceptanceAgreementInfo": [
{
"id": "9a5cf89f-8e8a-4b57-8a73-91971e881260",
"updatedAt": "2023-11-06T14:05:41Z"
},
{
"id": "a50ef59d-cbcf-47b1-876a-898584ecc2c6",
"updatedAt": "2023-10-25T21:49:56Z"
},
{
"id": "a78b4120-8a34-434a-87eb-ec3be2e54586",
"updatedAt": "2023-10-24T12:25:35Z"
},
{
"id": "0526acbf-c6a4-453e-8786-e82c861e0b27",
"updatedAt": "2023-04-13T10:51:37Z"
},
{
"id": "0e0d12e4-d6cd-4b0e-bc9e-0cfbd590c922",
"updatedAt": "2023-04-12T21:39:00Z"
},
{
"id": "2f8d25f2-a7ed-42ad-880b-b160a9330f0e",
"updatedAt": "2023-04-12T21:39:15Z"
},
{
"id": "5296455b-559b-4949-b4f6-f6b2b8b79d54",
"updatedAt": "2023-04-13T14:07:02Z"
},
{
"id": "5c1c1ce4-57c5-4521-98b3-a19abd12cea5",
"updatedAt": "2023-04-13T09:09:50Z"
},
{
"id": "9771caa9-f759-4ca1-abf3-ecf8e1fab022",
"updatedAt": "2023-04-03T13:31:18Z"
},
{
"id": "9e5ca170-f0ff-4179-a4d7-7a3888ca231f",
"updatedAt": "2023-04-13T14:07:02Z"
},
{
"id": "cb75d58e-dcdc-4395-8259-203d43c69887",
"updatedAt": "2023-04-10T10:56:07Z"
}
]
},
"pk": "b7ad4155-2545-4f09-a9bb-aa02da6fbcc0",
"sk2": "v0_UserEmail",
"updatedAt": "2023-11-08T15:09:07.003Z"
}
} |
Secrets:
Code Block |
---|
{
"replicateAccount": {
"active": false,
"urls": [
"https://sqs.eu-west-3.amazonaws.com/326165771931/rbi-dev-bk-mparticle-events-queue",
"https://sqs.eu-west-3.amazonaws.com/326165771931/rbi-dev-th-mparticle-events-queue"
]
}
} |
UPDATE
[pt-BR]
Após analisar, identifiquei que após atualização as preferências de comunicação, os dados não são enviados para nenhuma fila, mas é feito uma requisição PATCH no dev-plk-user-api
Log Lambda:
Swagger:
...
Payload - Patch
Code Block |
---|
{
"createdAt": "2023-04-13T17:33:28.505Z",
"cognitoId": "b7ad4155-2545-4f09-a9bb-aa02da6fbcc0",
"details": {
"email": "jonatans+es@ciandt.com",
"autoReloadEnabled": false,
"autoReloadThreshold": 500,
"communicationPreferences": [
{
"id": "loyalty",
"value": "true"
},
{
"id": "orderStatus",
"value": "true"
},
{
"id": "marketingEmail",
"value": "true"
},
{
"id": "email_subscribe",
"value": "subscribed"
},
{
"id": "rewardsEmail",
"value": "true"
},
{
"id": "Email Opt In",
"value": "true"
},
{
"id": "marketingPush",
"value": "true"
},
{
"id": "push_subscribe",
"value": "subscribed"
},
{
"id": "rewardsPush",
"value": "true"
}
],
"defaultAccountIdentifier": "CASH",
"defaultFdAccountId": null,
"defaultPaymentAccountId": null,
"defaultReloadAmt": 500,
"defaultScanAndPayAccountIdentifier": null,
"deliveryAddresses": [
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "Rua A",
"city": "Zaragoza",
"streetNumber": "100",
"latitude": 41.6488226,
"addressLine1": "Rua A 100",
"alias": "Home",
"addressLine2": null,
"state": "AR",
"longitude": -0.8890853
},
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "Rua",
"city": "Zaragoza",
"streetNumber": "1",
"latitude": 41.6488226,
"addressLine1": "Rua 1",
"alias": "Work",
"addressLine2": "10",
"state": "AR",
"longitude": -0.8890853
},
{
"zip": null,
"country": "ESP",
"phoneNumber": "00000000",
"route": "C. De López De Hoyos, 153",
"city": "Madrid",
"streetNumber": "150",
"latitude": 40.4167754,
"addressLine1": "C. De López De Hoyos, 153 150",
"alias": "Home",
"addressLine2": null,
"state": "MD",
"longitude": -3.7037902
}
],
"dob": null,
"emailVerified": true,
"favoriteStores": [
{
"storeId": "cbf4d9b3-35cf-402e-9a7b-6ffdbeff1c3c",
"storeNumber": "1111"
},
{
"storeId": "7fd282bf-7191-4e50-b8b3-0129d4668d91",
"storeNumber": "005484"
}
],
"hasOrderedSuccessful": true,
"isoCountryCode": "ESP",
"loyaltyTier": null,
"name": "Jonatan",
"optedInLoyalty": true,
"phoneNumber": "00000000",
"phoneVerified": false,
"promotionalEmails": true,
"registrationComplete": true,
"rutrFailedSkillsTestTimestamp": null,
"rutrPassedSkillsTestTimestamp": null,
"showThLoyaltyOnboarding": null,
"zipcode": null,
"requiredAcceptanceAgreementInfo": [
{
"id": "9a5cf89f-8e8a-4b57-8a73-91971e881260",
"updatedAt": "2023-11-09T14:02:59Z"
}
]
},
"updatedAt": "2023-11-09T19:15:37.770Z"
} |
...
POCs:
https://github.com/rbilabs/intl-user-service/pull/294/
...