Skip to content

Commit

Permalink
feat(ivr): perform basic input validation on payment info
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrickson-tyler committed Aug 18, 2024
1 parent 3c69349 commit c1bfd36
Show file tree
Hide file tree
Showing 13 changed files with 533 additions and 1,714 deletions.
40 changes: 20 additions & 20 deletions lib/connect/flows/c3-agent-assisted-payment-ivr-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "5d59b8d6-d834-4906-9904-e0179f24cd68",
"id": "8c7a3dc5-99b9-4329-9dc4-6e59aff0ef2e",
"operator": {
"name": "Is greater than",
"value": "GreaterThan",
Expand Down Expand Up @@ -213,11 +213,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "bd85d225-25f9-476c-b878-3fff061331e5",
"id": "4872ca41-5d2c-4db7-9c45-e9adafa62466",
"value": "1"
},
{
"id": "45bb75f2-05e1-40e0-804f-da094b146296",
"id": "a28d452f-11fc-43ff-965c-aeb9d4b9d7f8",
"value": "2"
}
]
Expand All @@ -237,11 +237,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "c445d792-b6ac-4901-b0aa-fbe7720b3549",
"id": "5080da17-d5dd-40f0-b533-0e3438b47a3b",
"value": "1"
},
{
"id": "2454d526-32a7-4a30-acfb-a246d7ad28b2",
"id": "370324ea-6acf-498c-aa5c-13c4cbdd54e6",
"value": "2"
}
]
Expand All @@ -254,11 +254,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "9d78cdfa-8fab-4098-875d-60f44e049fb6",
"id": "2f7c367d-0463-4994-bded-6803052623f9",
"value": "1"
},
{
"id": "9ed5ed0d-181b-4c07-8851-70b9b26b54cc",
"id": "d30e9f60-dfda-49f0-b84f-4096a0a51e17",
"value": "2"
}
]
Expand All @@ -272,7 +272,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "117289a2-2c04-4f5e-8b7c-c4928920dc29",
"id": "da277406-1261-4e60-9f5a-9a72fa5897c3",
"operator": {
"name": "Equals",
"value": "Equals",
Expand All @@ -281,7 +281,7 @@
"value": "Card"
},
{
"id": "185f408e-00b7-4633-a894-d750aa154ad8",
"id": "37b3aaf0-71d7-42a7-8dc3-d430814885c2",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -523,7 +523,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "611a1ce4-833b-4476-9505-05169f2d8c77",
"id": "a6fb12ce-54a8-4bd5-b49a-c93f27e00197",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -578,7 +578,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "2ab1b495-b104-4120-8a48-abbd65ea2458",
"id": "e71353a1-8fd9-497e-bed6-398e4fc99cc9",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -684,7 +684,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "75062f55-2d18-4737-9892-00df5f3ae74b",
"id": "40d1f480-9958-488b-ba8b-a45b97a76d72",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -719,7 +719,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "b96fe75e-e576-41d8-b12d-2268d87d02c3",
"id": "f7f9cfee-3077-4eda-82a8-208c97149684",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -790,7 +790,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "9f614065-023d-4306-8e45-cac32739f8e4",
"id": "33c8ecae-eebe-4ee8-bda9-eac9fc07c9ee",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -882,7 +882,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "2493149e-8acd-4828-b49a-415eb7641c4d",
"id": "587f01c4-2308-482e-adc2-09e3638c49f8",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -969,7 +969,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "23477a08-13e5-4a04-b936-499be8dda353",
"id": "128340e0-8818-4ae3-9308-80a7e9833cb0",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -1011,7 +1011,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "c2772729-24ed-4fcc-8307-98da6b401687",
"id": "4d2234ac-5c22-4a02-94a0-47f45fd8ccac",
"operator": {
"name": "Equals",
"value": "Equals",
Expand All @@ -1030,7 +1030,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "15686b40-954d-48a4-a024-a5677059d03d",
"id": "1e3d11c2-52c3-4b77-879d-686bf94da342",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -1085,7 +1085,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "d3e47bf3-ff8e-466e-a5cf-75856d1a3dbd",
"id": "27fa21ea-eb78-4743-b736-ddfd667b4035",
"operator": {
"name": "Contains",
"value": "Contains",
Expand Down Expand Up @@ -1181,7 +1181,7 @@
"name": "C3 Agent-Assisted Payment IVR",
"description": "Flow for collecting payments with C3 through a quick connect IVR.",
"type": "queueTransfer",
"status": "published",
"status": "PUBLISHED",
"hash": {}
},
"Actions": [
Expand Down
56 changes: 28 additions & 28 deletions lib/connect/flows/modules/c3-payment-ivr-flow-module.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "d5470caa-bfc0-42d2-b555-02788e2e9952",
"id": "a2975460-a966-464d-96c9-87471c4e6550",
"operator": {
"name": "Equals",
"value": "Equals",
Expand All @@ -80,7 +80,7 @@
"value": "PaymentAmountDue"
},
{
"id": "67559d10-de61-4f60-acb2-f145a86dc62a",
"id": "a9c908ff-9dac-4671-9ccd-b86b71b8ba36",
"operator": {
"name": "Is greater than",
"value": "GreaterThan",
Expand Down Expand Up @@ -113,11 +113,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "1ad54cfc-7ea6-4e43-bc6c-1a6658092429",
"id": "6f93a5d7-4110-45c7-b2a2-67f8157b6078",
"value": "1"
},
{
"id": "53306443-db6d-4aa6-9aac-295addf4bb8a",
"id": "34304207-c78e-48e0-9083-60c79177ed0c",
"value": "2"
}
]
Expand All @@ -131,7 +131,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "a1ffd2c3-f1bd-47a1-acdc-b1f1f0f7941d",
"id": "89c8a438-ac90-4b66-a8a7-edcdd9cecd97",
"operator": {
"name": "Equals",
"value": "Equals",
Expand All @@ -140,7 +140,7 @@
"value": "Timeout"
},
{
"id": "ac99be52-5c7f-4bf8-9ac9-5752c2f7288a",
"id": "c41b0d41-92d1-4b94-9765-28189982be15",
"operator": {
"name": "Is greater than",
"value": "GreaterThan",
Expand All @@ -149,7 +149,7 @@
"value": "$.Attributes.PaymentAmountDue"
},
{
"id": "bf225c7b-845e-4b9d-a864-dc160f47351a",
"id": "1796c148-5a97-4a7f-b562-0dc6d04c1f62",
"operator": {
"name": "Is less than",
"value": "LessThan",
Expand Down Expand Up @@ -254,7 +254,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "135a2ac1-0f5c-4578-982a-c6e554047102",
"id": "c6f86d5b-7f91-40fa-b654-d0b68158e4ef",
"operator": {
"name": "Equals",
"value": "Equals",
Expand All @@ -263,7 +263,7 @@
"value": "Card"
},
{
"id": "29c3aaa8-1c63-4126-bbbe-f355b1caa8b5",
"id": "9676cf94-b80c-4c05-a5c6-21f06d13e18e",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -297,7 +297,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "9baf14ba-7041-404f-8e4d-b82209a34812",
"id": "ad825037-0bc9-4362-afc5-d132a3d222f8",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -336,11 +336,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "766e6c3e-42d8-4a32-92d5-4403ca2ea7dc",
"id": "3964128f-4b86-4f93-8534-69549fbb54d6",
"value": "1"
},
{
"id": "b10dbcce-da12-4265-b0a9-b83ca15fa0a8",
"id": "521ac263-40e6-4d43-b71b-9c25b733cd11",
"value": "2"
}
]
Expand Down Expand Up @@ -398,7 +398,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "a6624f9a-e7d9-46c0-91e9-0e5c42ac07f9",
"id": "95219976-9d9e-4432-b35b-9e5bd3e86343",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -460,7 +460,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "a7e663d1-0a0f-407e-9913-6354ab249421",
"id": "9914e0ee-21c6-4dca-84e2-93c0a6c97c19",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -507,7 +507,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "62de706b-4917-4d9b-ae70-8c427db70fb2",
"id": "2e5d24f5-9548-4d61-923a-412861d23716",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -546,11 +546,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "c19bf248-b239-4804-9cc6-6997053e55e9",
"id": "d23c7d16-7092-4c09-a56a-fe53832271a2",
"value": "1"
},
{
"id": "4bf87f22-8d33-4d76-97c2-722c9b010404",
"id": "dc85eb69-7590-474c-a1c4-957e9988449f",
"value": "2"
}
]
Expand All @@ -563,11 +563,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "4f046fcb-ac78-44be-8d25-02e99327733e",
"id": "b91b2580-8ea5-439a-ad65-8ce9e2ecc7da",
"value": "1"
},
{
"id": "9ee88af3-1f25-440e-b5c5-cbd9dba26b70",
"id": "ef389489-9658-47b4-9075-04acb51f12b9",
"value": "2"
}
]
Expand Down Expand Up @@ -672,11 +672,11 @@
"isFriendlyName": true,
"conditionMetadata": [
{
"id": "5ab9bad4-181d-452d-86b4-3c9e4be75ab9",
"id": "0b555be3-03d7-4620-9dc3-93ef6960c4f7",
"value": "1"
},
{
"id": "f3f2379f-c3a7-4b17-b64c-147ff5cb71ab",
"id": "6db3e65d-98d3-44e6-ad3d-7517f9fb8bd2",
"value": "2"
}
]
Expand Down Expand Up @@ -741,7 +741,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "1e7fcd28-68aa-4f06-ba4e-1ff2c7fa902a",
"id": "eb0b8440-12c3-42a1-9690-040061170987",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -789,7 +789,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "be87675d-f4d6-4753-833c-f2fb90d0a357",
"id": "4fea3106-7b44-4e14-b6fc-e2a2750e6b10",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -824,7 +824,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "15c59dce-f685-4fa0-8dc1-96eb6f756458",
"id": "18416f6d-103a-4c7b-bf4c-3d4d4ad46f93",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -859,7 +859,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "64537cce-9711-4983-bbbc-1bc62d060f0f",
"id": "50f1c61d-d0ee-40fe-bb12-f0271e7ed7f3",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -894,7 +894,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "87fce778-c4f6-4961-9956-928ba45358e0",
"id": "36a57083-e37c-4a97-8149-1069da8544e0",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -942,7 +942,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "f23e069a-dd40-4b3b-bbc8-0a298e42a192",
"id": "800f8ce8-f008-4971-bf86-4196578d9096",
"operator": {
"name": "Equals",
"value": "Equals",
Expand Down Expand Up @@ -981,7 +981,7 @@
"conditions": [],
"conditionMetadata": [
{
"id": "5357c535-4980-4b66-9cb8-6de159ca636c",
"id": "b9bd782d-dc71-4dce-99aa-b7b677db1ec7",
"operator": {
"name": "Contains",
"value": "Contains",
Expand Down
Loading

0 comments on commit c1bfd36

Please sign in to comment.