Skip to content

Add the email property to the create customer component of quickbooks #16724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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