{"id":47009339,"url":"https://github.com/internetee/directo","last_synced_at":"2026-03-11T20:39:43.794Z","repository":{"id":81498332,"uuid":"108725257","full_name":"internetee/directo","owner":"internetee","description":"Estonian Internet Foundation-specific Ruby interface to the Directo (http://directo.ee)","archived":false,"fork":false,"pushed_at":"2025-09-21T11:27:23.000Z","size":72,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-21T13:17:47.695Z","etag":null,"topics":["api","directo","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/internetee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-29T10:39:44.000Z","updated_at":"2025-09-04T11:32:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"c855249a-8ce9-4a8c-99e5-b77410838e22","html_url":"https://github.com/internetee/directo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/internetee/directo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/internetee%2Fdirecto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/internetee%2Fdirecto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/internetee%2Fdirecto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/internetee%2Fdirecto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/internetee","download_url":"https://codeload.github.com/internetee/directo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/internetee%2Fdirecto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30399657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","directo","ruby"],"created_at":"2026-03-11T20:39:43.196Z","updated_at":"2026-03-11T20:39:43.782Z","avatar_url":"https://github.com/internetee.png","language":"Ruby","readme":"# Directo\n\n[![Build Status](https://travis-ci.org/internetee/directo.svg?branch=master)](https://travis-ci.org/internetee/directo)\n\n[![Maintainability](https://qlty.sh/gh/internetee/projects/directo/maintainability.svg)](https://qlty.sh/gh/internetee/projects/directo)\n[![Code Coverage](https://qlty.sh/gh/internetee/projects/directo/coverage.svg)](https://qlty.sh/gh/internetee/projects/directo)\n\n\n# Usage\nStart by initializing Directo client by\n```\n@client = DirectoApi::Client.new(api_url, sales_agent, payment_terms)\n```\n\nInvoice example\n```\ninv = @client.invoices.new\ncust = DirectoApi::Customer.new\ncust.code = 'CUST1'\n...\n\nline = inv.lines.new\nline.code = 123\n...\n\ninv.lines.add(line)\n@client.invoices.add(inv)\n```\n\nSending to Directo\n```\n@client.invoices.deliver\n```\n\n## Invoice attributes\n    :customer # CustomerCode\n    :number # Number\n    :date # InvoiceDate\n    :currency # Currency\n    :language # Language\n    :vat_amount # TotalVAT\n    :payment_terms # Prefilled with client payment terms\n    :sales_agent # Prefilled with client Sales Agent value\n\n## Line attributes\n      :seq_no # RN\n      :code # ProductID\n      :description # ProductName\n\n      # Date.parse('2010-07-05')..Date.parse('2010-07-06')\n      attr_accessor :period # StartDate  / EndDate\n\n      :vat_number # VATCode\n      :quantity # Quantity\n      :unit # Unit\n      :price # UnitPriceWoVAT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternetee%2Fdirecto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finternetee%2Fdirecto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternetee%2Fdirecto/lists"}