Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "quickbooks-create-customer",
name: "Create Customer",
description: "Creates a customer. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/customer#create-a-customer)",
version: "0.1.8",
version: "0.1.9",
type: "action",
props: {
quickbooks,
Expand Down Expand Up @@ -45,6 +45,12 @@ export default {
"suffix",
],
},
primaryEmailAddr: {
propDefinition: [
quickbooks,
"primaryEmailAddr",
],
},
},
async run({ $ }) {
if (
Expand All @@ -63,6 +69,7 @@ export default {
MiddleName: this.middleName,
FamilyName: this.familyName,
GivenName: this.givenName,
PrimaryEmailAddr: {Address: this.primaryEmailAddr},
},
});

Expand Down
6 changes: 6 additions & 0 deletions components/quickbooks/quickbooks.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,12 @@ export default {
description: "Suffix of the name. For example, `Jr`. The `DisplayName` attribute or at least one of `Title`, `GivenName`, `MiddleName`, `FamilyName`, or `Suffix` attributes is required for object create.",
optional: true,
},
primaryEmailAddr: {
label: "Email",
type: "string",
description: "Primary email address of the person or organization.",
optional: true,
},
accountingMethod: {
type: "string",
label: "Accounting Method",
Expand Down