Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion components/quickbooks/actions/create-invoice/create-invoice.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "quickbooks-create-invoice",
name: "Create Invoice",
description: "Creates an invoice. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#create-an-invoice)",
version: "0.1.8",
version: "0.2.0",
type: "action",
props: {
quickbooks,
Expand All @@ -22,6 +22,18 @@ export default {
"currency",
],
},
dueDate: {
type: "string",
label: "Due Date",
description: "Date when the payment of the transaction is due (YYYY-MM-DD)",
optional: true,
},
includeInvoiceLink: {
type: "boolean",
label: "Include Invoice Link",
description: "Return the sharable link for the invoice sent to external customers",
optional: true,
},
lineItemsAsObjects: {
propDefinition: [
quickbooks,
Expand Down Expand Up @@ -107,8 +119,14 @@ export default {

const response = await this.quickbooks.createInvoice({
$,
params: {
include: this.includeInvoiceLink
? "invoiceLink"
: undefined,
},
data: {
Line: lines,
DueDate: this.dueDate,
CustomerRef: {
value: this.customerRefValue,
},
Expand Down
2 changes: 1 addition & 1 deletion components/quickbooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/quickbooks",
"version": "0.5.1",
"version": "0.5.2",
"description": "Pipedream Quickbooks Components",
"main": "quickbooks.app.mjs",
"keywords": [
Expand Down
9 changes: 3 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading