UNPKG

@pipedream/quickbooks

Version:

Pipedream Quickbooks Components

29 lines (25 loc) 712 B
import quickbooks from "../../quickbooks.app.mjs"; export default { key: "quickbooks-get-my-company", name: "Get My Company", description: "Gets info about a company. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo)", version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: true, }, type: "action", props: { quickbooks, }, async run({ $ }) { const response = await this.quickbooks.getMyCompany({ $, }); if (response) { $.export("summary", `Successfully retrieved company with ID ${response.CompanyInfo.Id}`); } return response; }, };