{"id":19423670,"url":"https://github.com/skrusty/rateup","last_synced_at":"2025-06-17T10:35:41.134Z","repository":{"id":87351173,"uuid":"43688536","full_name":"skrusty/rateup","owner":"skrusty","description":"A command line driven rate card transformation tool","archived":false,"fork":false,"pushed_at":"2017-10-23T15:08:00.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T04:32:39.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skrusty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-05T14:16:40.000Z","updated_at":"2017-10-23T15:05:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"0852ab7d-a778-4cb2-a762-0d2c44c838eb","html_url":"https://github.com/skrusty/rateup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skrusty/rateup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrusty%2Frateup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrusty%2Frateup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrusty%2Frateup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrusty%2Frateup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skrusty","download_url":"https://codeload.github.com/skrusty/rateup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrusty%2Frateup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260341075,"owners_count":22994585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T13:40:20.353Z","updated_at":"2025-06-17T10:35:36.104Z","avatar_url":"https://github.com/skrusty.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rateup\nrateup is a command line driven rate card transformation tool that allows you to take a supplier rate card and generate client rate cards based on different markup types.\n\nrateup supports rating based on classes (e.g. Mobiles/Local/National Rate) using dial pattern prefixes and varying markup types which can all be defined in the configuration file.\n\n*rateup is currently a work in progress!*\n### Usage\n```\nrateup /i \u003cinput csv file\u003e /o \u003coutput csv file\u003e /c \u003cconfig file\u003e\n```\nWe can add ```/v``` to make rateup output verbose information. For example:\n```\n12345 rerated with class Default Worldwide Class from 0.833300 to 101.6600\n```\n\n### Classes\nA class denotes a call type, e.g. Mobile. Each class is used to decide how much the value of the rate should be transformed by.\n```json\n{\n    \"Name\": \"Mobile Rates\",\n    \"Pattern\": \"^447[0-9]\",\n    \"Priority\":  1,\n    \"Expressions\": [\n        {\n            \"Name\": \"PercentageMarkup\",\n            \"Param\":  \"1.5\"\n        }\n    ]\n}\n```\n\n### Expressions\nExpressions are used to define different ways of tranforming the markup value. Multiple Expressions can be defined and support functions such as rounding, floor, ceiling etc.\n\nBy default an expression is passed 'x', the value of the column to be rated. Value 'y' is passed in as a result of the class's Palam value. This allows you to pass in a percentage value for example varied by the class.\n```json\n{\n    \"Name\": \"PercentageMarkup\",\n    \"Expression\": \"x*y\"\n}\n```\nIn this example we use an Expression to transform a rate by a percentage, round its value to 4 decimal places, then converting it from pounds to pence (GBP to Pence).\n```json\n{\n    \"Name\": \"PercentageMarkup\",\n    \"Expression\": \"m.Round(x*y, 4)*100\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrusty%2Frateup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskrusty%2Frateup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrusty%2Frateup/lists"}