{"id":21743333,"url":"https://github.com/invoiced/invoiced-java","last_synced_at":"2025-04-13T05:05:19.760Z","repository":{"id":48403948,"uuid":"65696848","full_name":"Invoiced/invoiced-java","owner":"Invoiced","description":"Official Java client library for the Invoiced API","archived":false,"fork":false,"pushed_at":"2024-02-02T23:55:51.000Z","size":479,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T05:04:41.871Z","etag":null,"topics":["api","billing","invoiced","jar","java","maven"],"latest_commit_sha":null,"homepage":"https://www.invoiced.com/api/?java","language":"Java","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/Invoiced.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}},"created_at":"2016-08-15T02:02:19.000Z","updated_at":"2023-04-29T17:44:14.000Z","dependencies_parsed_at":"2024-02-02T22:37:06.946Z","dependency_job_id":null,"html_url":"https://github.com/Invoiced/invoiced-java","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Invoiced","download_url":"https://codeload.github.com/Invoiced/invoiced-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665749,"owners_count":21142123,"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":["api","billing","invoiced","jar","java","maven"],"created_at":"2024-11-26T07:07:31.117Z","updated_at":"2025-04-13T05:05:19.741Z","avatar_url":"https://github.com/Invoiced.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\ninvoiced-java\n========\n\nThis repository contains the Java client library for the [Invoiced](https://invoiced.com) API.\n\nYou can find detailed API documentation along with java code snippets [here](https://invoiced.com/docs/api/?java#).\n\n[![CI](https://github.com/Invoiced/invoiced-java/actions/workflows/ci.yml/badge.svg)](https://github.com/Invoiced/invoiced-java/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/Invoiced/invoiced-java/badge.svg?branch=master)](https://coveralls.io/github/Invoiced/invoiced-java?branch=master)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.invoiced/invoiced/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.invoiced/invoiced)\n\n## Installing\n\nYou can build the jar file by doing\n\n```\ngradle jar\n```\n\nor build the complete all in one jar file by doing\n\n```\ngradle fatJar\n```\n\n## Requirements\n\n- Gradle 5.6.4\n- Java 8+\n\n## Usage\n\nFirst, you must instantiate a new client\n\n```java\nimport com.invoiced.entity.Connection;\n\nConnection invoiced = new Connection(\"{YOUR_API_KEY}\",false);\n```\n\nThen, API calls can be made like this:\n```java\n# retrieve invoice\nInvoice invoice = invoiced.newInvoice().retrieve({INVOICE_ID});\n\n# mark as paid\nPayment payment = invoiced.newPayment();\npayment.amount = invoice.balance;\npayment.method = \"check\";\npaymentItem = new PaymentItem();\npaymentItem.type = \"invoice\";\npaymentItem.invoice = invoice.id;\npaymentItem.amount = invoice.balance;\npayment.appliedTo = PaymentItem{paymentItem};\npayment.create();\n```\n\nIf you want to use the sandbox API instead then you must set the second argument on the client to `true` like this:\n\n```java\nimport com.invoiced.entity.Connection;\n\nConnection invoiced = new Connection(\"{YOUR_API_KEY}\",true);\n```\n\n## Developing\n\n\nThe test suite can be ran with `gradle test`\n\n## Deployment\n\n1. Run the \"Publish\" action in GitHub.\n2. On [Nexus Repository Manager](https://oss.sonatype.org/#stagingRepositories) find the staging repository and click \"Close\".\n3. Click \"Refresh\" until the status goes from `open` to `closed`.\n4. Click \"Release\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvoiced%2Finvoiced-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvoiced%2Finvoiced-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvoiced%2Finvoiced-java/lists"}