Code Monkey home page Code Monkey logo

channel-aggregation-decisioning-processor's Introduction

Channel Aggregation & Decisioning Processor

Sample configuration:

{
  "typology_name": "Typology_29",
  "typology_version": "1.1",
  "rules_values": [
    {
      "rule_id": "Rule_15_1.4",
      "rule_true_value": "70",
      "rule_false_value": "0"
    },
    {
      "rule_id": "Rule_27_1.0",
      "rule_true_value": "77",
      "rule_false_value": "0"
    },
    {
      "rule_id": "Rule_05_1.0",
      "rule_true_value": "90",
      "rule_false_value": "5"
    }
  ],
  "typology_expression": {
    "operation": "+",
    "values": ["Rule_05_1.0", "Rule_27_1.0"],
    "nested_expression": {
      "operation": "-",
      "values": ["Rule_27_1.0", "Rule_15_1.4"],
      "nested_expression": {
        "operation": "*",
        "values": ["Rule_15_1.4", "Rule_05_1.0"]
      }
    }
  }
}

Sample http request - to get complete result, change the "typologyResult.typology" from Typology_30.1.0 to Typology_29.1.0:

{
  "transaction": {
    "GroupHeader": {
      "InitiatingParty": {
        "Identification": {
          "ContactDetails": {
            "MobileNumber": "Hello"
          },
          "Identification": "c5249c18-3518-4975-82a2-5313bd6661f1",
          "Other": {
            "ContactDetails": {
              "MobileNumber": "Hello"
            },
            "Identification": "2b04e485-bd4b-4c8c-8ec1-2d31ca07c848",
            "PrivateIdentification": {
              "DateAndPlaceOfBirth": {
                "Birthdate": "Hello"
              }
            },
            "SchemeName": {
              "Proprietary": "Hello"
            }
          },
          "PrivateIdentification": {
            "DateAndPlaceOfBirth": {
              "Birthdate": "Hello"
            }
          },
          "SchemeName": {
            "Proprietary": "Hello"
          }
        },
        "Name": "'ABD AL-MALIK2"
      }
    },
    "PaymentInformation": {
      "CreditTransferTransactionInformation": {
        "Amount": {
          "EquivalentAmount": {
            "Amount": 1.1,
            "CurrencyOfTransfer": "Hello"
          },
          "InstructedAmount": {}
        },
        "Creditor": {
          "Identification": {
            "ContactDetails": {
              "MobileNumber": "Hello"
            },
            "Identification": "e838d001-5dd9-4e7d-a67f-285889ea9a09",
            "Other": {
              "ContactDetails": {
                "MobileNumber": "Hello"
              },
              "Identification": "d8b2b3d0-e00b-4a92-8e45-60b4fdf0563b",
              "PrivateIdentification": {
                "DateAndPlaceOfBirth": {
                  "Birthdate": "1989-07-132",
                  "CityOfBirth": "Hello",
                  "CountryOfBirth": "",
                  "ProvinceOfBirth": "Hello"
                }
              },
              "SchemeName": {
                "Proprietary": "Hello"
              }
            },
            "PrivateIdentification": {
              "DateAndPlaceOfBirth": {
                "Birthdate": "Hello"
              }
            },
            "SchemeName": {
              "Proprietary": "Hello"
            }
          },
          "Name": "Hello"
        },
        "CreditorAccount": {
          "Identification": {
            "ContactDetails": {},
            "Identification": "a58cc6c9-e0cf-41c6-bc67-e73c2240fa74",
            "Other": {
              "ContactDetails": {},
              "Identification": "aec18357-04ec-4fb3-aefc-33579e6068b4",
              "PrivateIdentification": {},
              "SchemeName": {}
            },
            "PrivateIdentification": {},
            "SchemeName": {}
          },
          "Name": "Hello",
          "Proxy": "Hello"
        },
        "CreditorAgent": {
          "FinancialInstitutionIdentification": {
            "ClearingSystemMemberIdentification": {
              "MemberIdentification": "Hello"
            }
          }
        },
        "PaymentIdentification": {
          "EndToEndIdentification": "aec18362-04ec-4fb3-aefc-33579e6068b"
        },
        "PaymentTypeInformation": {
          "CategoryPurpose": {
            "Proprietary": "Hello"
          }
        },
        "RegulatoryReporting": {
          "Details": {
            "Code": "Hello"
          }
        },
        "RemittanceInformation": {
          "Structured": {
            "AdditionalRemittanceInformation": "Hello"
          }
        },
        "SupplementaryData": {
          "fees_amount": 1.1,
          "fees_currency": "Hello"
        }
      },
      "Debtor": {
        "Identification": {
          "ContactDetails": {},
          "Identification": "e274ddc4-cc8c-4e7d-8d46-02fdee14a5d5",
          "Other": {
            "ContactDetails": {},
            "Identification": "66d46c16-bcd6-43f0-adac-2a5d289529ba",
            "PrivateIdentification": {},
            "SchemeName": {}
          },
          "PrivateIdentification": {},
          "SchemeName": {}
        },
        "Name": "Hello"
      },
      "DebtorAccount": {
        "Identification": {},
        "Name": "Hello",
        "Proxy": "Hello"
      },
      "DebtorAgent": {
        "FinancialInstitutionIdentification": {
          "ClearingSystemMemberIdentification": {
            "MemberIdentification": "Hello"
          }
        }
      },
      "PaymentInformationIdentification": "Hello"
    },
    "SupplementaryData": {
      "geoCode_latitude": "Hello",
      "geoCode_longitude": "Hello",
      "payee_merchantClassificationCode": "Hello",
      "payer_merchantClassificationCode": "Hello",
      "transactionType_initiatorType": "Hello"
    }
  },
  "ruleResults": [
    {
      "rule": "Rule_05_1.0",
      "result": true
    },
    {
      "rule": "Rule_27_1.0",
      "result": true
    },
    {
      "rule": "Rule_15_1.4",
      "result": true
    }
  ],
  "typologyResult": {
    "typology": "Typology_30.1.0",
    "result": 500
  },
  "networkMap": {
    "transactions": [
      {
        "transaction_type": "pain.001.001.12",
        "transaction_name": "CustomerCreditTransferInitiationV11",
        "channels": [
          {
            "channel_id": "Fraud",
            "channel_name": "Fraud",
            "typologies": [
              {
                "typology_id": "Typology_29.1.0",
                "typology_name": "Typology_29",
                "typology_version": "1.0",
                "rules": [
                  {
                    "rule_id": "UUIDv4",
                    "rule_name": "Rule_27_1.0",
                    "rule_version": "1.0"
                  },
                  {
                    "rule_id": "UUIDv4",
                    "rule_name": "Rule_15_1.4",
                    "rule_version": "1.0"
                  },
                  {
                    "rule_id": "UUIDv4",
                    "rule_name": "Rule_05_1.0",
                    "rule_version": "1.0"
                  }
                ]
              },
              {
                "typology_id": "Typology_30.1.0",
                "typology_name": "Typology_30",
                "typology_version": "1.0",
                "rules": [
                  {
                    "rule_id": "UUIDv4",
                    "rule_name": "Rule_27_1.0",
                    "rule_version": "1.0"
                  },
                  {
                    "rule_id": "UUIDv4",
                    "rule_name": "Rule_15_1.4",
                    "rule_version": "1.0"
                  },
                  {
                    "rule_id": "UUIDv4",
                    "rule_name": "Rule_05_1.0",
                    "rule_version": "1.0"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}

channel-aggregation-decisioning-processor's People

Contributors

johanfol avatar vorsterk avatar jeanpierrenell avatar cshezi avatar dependabot[bot] avatar lenbkr avatar rtkay123 avatar uche-lextego avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.