import QuickBooks from "node-quickbooks";
type Quickbooks = {
realmId: string;
token: string;
isSandBox: boolean;
};
export async function main(resource: Quickbooks /* other parameters */) {
const qbo = new QuickBooks("", "", resource.token, false, resource.realmId, resource.isSandBox, true, null, "2.0");
// return new Promise((resolve, reject) => {
// qbo.createBill(query, function (err: any, result: any) {
// if (err) {
// reject(err);
// } else {
// resolve(result);
// }
// });
// });
}
Submitted by hugo697 324 days ago
import QuickBooks from "node-quickbooks";
type Quickbooks = {
clientId: string;
clientSecret: string;
realmId: string;
token: string;
isSandBox: boolean;
};
export async function main(resource: Quickbooks /* other parameters */) {
const qbo = new QuickBooks(
resource.clientId,
resource.clientSecret,
resource.token,
false,
resource.realmId,
resource.isSandBox,
true,
null,
"2.0"
);
// return new Promise((resolve, reject) => {
// qbo.createBill(query, function (err: any, result: any) {
// if (err) {
// reject(err);
// } else {
// resolve(result);
// }
// });
// });
}
Submitted by hugo697 399 days ago
import QuickBooks from "node-quickbooks";
type Quickbooks = {
clientId: string;
clientSecret: string;
realmId: string;
token: string;
isSandBox: boolean;
};
export async function main(resource: Quickbooks /* other parameters */) {
const qbo = new QuickBooks(
resource.clientId,
resource.clientSecret,
resource.token,
false,
resource.realmId,
resource.isSandBox,
true,
null,
"2.0"
);
// return new Promise((resolve, reject) => {
// qbo.createBill(query, function (err: any, result: any) {
// if (err) {
// reject(err);
// } else {
// resolve(result);
// }
// });
// });
}
Submitted by hugo697 825 days ago