hapi-middleman-paypal-intacct
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,5 +5,2 @@ import * as hapi from "hapi"; | ||
export * from "./intacct"; | ||
export declare type Partial<T> = { | ||
[P in keyof T]?: T[P]; | ||
}; | ||
export interface IInvoicingMerchant { | ||
@@ -10,0 +7,0 @@ address: { |
@@ -58,3 +58,2 @@ "use strict"; | ||
this.register.attributes = { | ||
dependencies: ["hapi-paypal", "hapi-intacct"], | ||
name: "hapi-paypal-intacct-invoicing", | ||
@@ -273,5 +272,4 @@ }; | ||
const invoices = yield Promise.all([this.intacct.query(query, ["RECORDNO"]), this.paypal.invoice.search({ status: ["SENT", "UNPAID"] })]); | ||
invoices[0].forEach((invoice) => promises.push(this.syncIntacctToPayPal(invoice))); | ||
invoices[1].forEach((invoice) => promises.push(this.syncPayPalToIntacct(invoice))); | ||
yield Promise.all(promises); | ||
invoices[0].forEach((invoice) => __awaiter(this, void 0, void 0, function* () { return yield this.syncIntacctToPayPal(invoice); })); | ||
invoices[1].forEach((invoice) => __awaiter(this, void 0, void 0, function* () { return yield this.syncPayPalToIntacct(invoice); })); | ||
this.server.log("info", "hapi-paypal-intacct::syncInvoices::Success"); | ||
@@ -278,0 +276,0 @@ } |
{ | ||
"name": "hapi-middleman-paypal-intacct", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "hapi-middleman module for integrating paypal with intacct", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
62592
861