{"id":17260240,"url":"https://github.com/rubbaboy/ondemand","last_synced_at":"2026-07-01T02:31:03.837Z","repository":{"id":104692289,"uuid":"356042904","full_name":"RubbaBoy/ondemand","owner":"RubbaBoy","description":"A generated wrapper for the proprietary Agilysys OnDemand system","archived":false,"fork":false,"pushed_at":"2021-04-22T22:33:35.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T09:46:34.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubbaBoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-04-08T20:42:29.000Z","updated_at":"2022-04-14T01:10:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2740eb2-5e21-496d-bbb2-11652b7a764c","html_url":"https://github.com/RubbaBoy/ondemand","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RubbaBoy/ondemand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubbaBoy%2Fondemand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubbaBoy%2Fondemand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubbaBoy%2Fondemand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubbaBoy%2Fondemand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubbaBoy","download_url":"https://codeload.github.com/RubbaBoy/ondemand/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubbaBoy%2Fondemand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34990845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-15T07:47:36.065Z","updated_at":"2026-07-01T02:31:03.833Z","avatar_url":"https://github.com/RubbaBoy.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"A generated wrapper library for the closed-source Agilysys OnDemand system used by RIT.\n\nGenerated by [ondemand_wrapper_gen](https://github.com/RubbaBoy/ondemand_wrapper_gen)\n\n### Usage\n\nIn your pubspec.yml, include the following:\n\n```yaml\ndependencies:\n  ondemand:\n    git: https://github.com/RubbaBoy/ondemand\n```\n\n### Examples\n\nThe least amount of code needed to start making requests:\n\n```dart\nimport 'package:ondemand/ondemand.dart';\n\n// ...\n\n// The object to invoke requests with\nvar onDemand = await Initialization.create();\n\n// The site-wide config\nvar config = initialization.config;\n```\n\n\n\nThe following is a relatively barebones example of making an account inquiry to view balances (Source: [example/inquiry_example.dart](/example/inquiry_example.dart))\n\n```dart\nimport 'package:ondemand/account_inquiry.dart' as _account_inquiry;\nimport 'package:ondemand/get_kitchens.dart' as _get_kitchens;\nimport 'package:ondemand/ondemand.dart';\n\n// The UID to make the inquiry to\nconst UID = 'my-uid';\n\nFuture\u003cvoid\u003e main(List\u003cString\u003e args) async {\n  var onDemand = await Initialization.create();\n  // The context ID, which should be the same no matter what\n  var contextId = onDemand.config.contextID;\n\n  // Fetch the kitchens available in the store\n  var siteRequest = await onDemand.getKitchens(_get_kitchens.Request());\n\n  // Just get the first kitchen, as a terminal ID is required\n  var firstKitchen = siteRequest.kitchens.first;\n\n  // Get the terminal ID\n  var terminalId = firstKitchen.displayOptions.onDemandTerminalId;\n\n  print('Using terminal: ${firstKitchen.name}');\n  print('Terminal ID: $terminalId\\n');\n\n  // Check the account balance\n  var tenderResponse = await makeInquiry(onDemand, contextId, terminalId, UID);\n  for (var inq in tenderResponse) {\n    print('Tender: ${TenderId.getTender(inq.tenderId).name}:');\n    print('  Remaining: ${inq.amount.remaining} ${inq.amount.currency}');\n\n    print('\\n  Individual accounts:');\n    for (var account in inq.accounts) {\n      print('  ${account.name}: ${account.balance} ${account.currency}');\n    }\n  }\n}\n```\n\nOutput of this for my own account:\n\n```\nUsing terminal: The Commons\nTerminal ID: 1706\n\nTender: Dining Dollars:\n  Remaining: 1424.87 USD\n    Individual accounts:\n     Dining Dollars (Meal Plan): 142487 USD\n     Dining Dollars (Voluntary): 0 USD\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubbaboy%2Fondemand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubbaboy%2Fondemand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubbaboy%2Fondemand/lists"}