-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# | ||
# invoice.sh | ||
# | ||
############################################################################### | ||
# Handles creating invoices and integration with InvoiceNinja | ||
############################################################################### | ||
|
||
function create_invoice() { | ||
# Will create the invoice payload | ||
trace "This is an empty function" | ||
} | ||
|
||
function send_invoice() { | ||
# Hit the InvoiceNinja API and create the invoice | ||
# | ||
# Things that need to be defined: | ||
# API URL | ||
# client_id | ||
# | ||
# And then we'll loop through | ||
# product | ||
# notes | ||
# cost | ||
# qty | ||
# | ||
# Example to create an invoice: | ||
# | ||
# curl -X POST https://invoice.com/api/v1/invoices -H "Content-Type:application/json" \ | ||
# -d '{"client_id":"1", "invoice_items":[{"product_key": "ITEM", "notes":"Test", "cost":10, "qty":1}]}' \ | ||
# -H "X-Ninja-Token: ###################################" | ||
trace "This is an empty function" | ||
} |