conductor-node 0.0.8 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/dist/Client.d.ts +1 -2
- package/dist/Client.js +4 -5
- package/dist/qb/ClientQBD.d.ts +43 -10
- package/dist/qb/ClientQBD.js +66 -15
- package/dist/qb/qbXMLTypes/Account.d.ts +1 -17
- package/dist/qb/qbXMLTypes/Customer.d.ts +152 -0
- package/dist/qb/qbXMLTypes/Customer.js +2 -0
- package/dist/qb/qbXMLTypes/Employee.d.ts +48 -18
- package/dist/qb/qbXMLTypes/Vendor.d.ts +163 -0
- package/dist/qb/qbXMLTypes/Vendor.js +2 -0
- package/dist/qb/qbXMLTypes/shared.d.ts +74 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/Client.ts +5 -8
- package/src/qb/ClientQBD.ts +86 -16
- package/src/qb/qbXMLTypes/Account.ts +4 -20
- package/src/qb/qbXMLTypes/Customer.ts +193 -0
- package/src/qb/qbXMLTypes/Employee.ts +51 -21
- package/src/qb/qbXMLTypes/Vendor.ts +192 -0
- package/src/qb/qbXMLTypes/shared.ts +95 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ActiveStatus,
|
|
3
|
+
AdditionalContactRef,
|
|
4
|
+
AdditionalNotesRet,
|
|
5
|
+
ClassFilter,
|
|
6
|
+
ClassRef,
|
|
7
|
+
ContactsRet,
|
|
8
|
+
CurrencyFilter,
|
|
9
|
+
CurrencyRef,
|
|
10
|
+
DataExtRet,
|
|
11
|
+
NameFilter,
|
|
12
|
+
NameRangeFilter,
|
|
13
|
+
ParentRef,
|
|
14
|
+
SalesTaxCodeRef,
|
|
15
|
+
SalesTaxCountry,
|
|
16
|
+
ShipAddress,
|
|
17
|
+
TermsRef,
|
|
18
|
+
TotalBalanceFilter,
|
|
19
|
+
} from "@conductor/client/qb/qbXMLTypes/shared";
|
|
20
|
+
|
|
21
|
+
export interface CustomerQueryRq {
|
|
22
|
+
ListID?: string;
|
|
23
|
+
FullName?: string;
|
|
24
|
+
MaxReturned?: number;
|
|
25
|
+
ActiveStatus?: ActiveStatus;
|
|
26
|
+
FromModifiedDate?: Date;
|
|
27
|
+
ToModifiedDate?: Date;
|
|
28
|
+
NameFilter?: NameFilter;
|
|
29
|
+
NameRangeFilter?: NameRangeFilter;
|
|
30
|
+
TotalBalanceFilter?: TotalBalanceFilter;
|
|
31
|
+
CurrencyFilter?: CurrencyFilter;
|
|
32
|
+
ClassFilter?: ClassFilter;
|
|
33
|
+
IncludeRetElement?: string;
|
|
34
|
+
OwnerID?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface CustomerQueryRs {
|
|
38
|
+
CustomerRet?: CustomerRet;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface CustomerRet {
|
|
42
|
+
ListID: string;
|
|
43
|
+
TimeCreated: Date;
|
|
44
|
+
TimeModified: Date;
|
|
45
|
+
EditSequence: string;
|
|
46
|
+
Name: string;
|
|
47
|
+
FullName: string;
|
|
48
|
+
IsActive?: boolean;
|
|
49
|
+
ClassRef?: ClassRef;
|
|
50
|
+
ParentRef?: ParentRef;
|
|
51
|
+
Sublevel: number;
|
|
52
|
+
CompanyName?: string;
|
|
53
|
+
Salutation?: string;
|
|
54
|
+
FirstName?: string;
|
|
55
|
+
MiddleName?: string;
|
|
56
|
+
LastName?: string;
|
|
57
|
+
JobTitle?: string;
|
|
58
|
+
BillAddress?: BillAddress;
|
|
59
|
+
BillAddressBlock?: BillAddressBlock;
|
|
60
|
+
ShipAddress?: ShipAddress;
|
|
61
|
+
ShipAddressBlock?: ShipAddressBlock;
|
|
62
|
+
ShipToAddress?: ShipToAddress;
|
|
63
|
+
Phone?: string;
|
|
64
|
+
AltPhone?: string;
|
|
65
|
+
Fax?: string;
|
|
66
|
+
Email?: string;
|
|
67
|
+
Cc?: string;
|
|
68
|
+
Contact?: string;
|
|
69
|
+
AltContact?: string;
|
|
70
|
+
AdditionalContactRef?: AdditionalContactRef;
|
|
71
|
+
ContactsRet?: ContactsRet;
|
|
72
|
+
CustomerTypeRef?: CustomerTypeRef;
|
|
73
|
+
TermsRef?: TermsRef;
|
|
74
|
+
SalesRepRef?: SalesRepRef;
|
|
75
|
+
Balance?: string;
|
|
76
|
+
TotalBalance?: string;
|
|
77
|
+
SalesTaxCodeRef?: SalesTaxCodeRef;
|
|
78
|
+
ItemSalesTaxRef?: ItemSalesTaxRef;
|
|
79
|
+
SalesTaxCountry?: SalesTaxCountry;
|
|
80
|
+
ResaleNumber?: string;
|
|
81
|
+
AccountNumber?: string;
|
|
82
|
+
CreditLimit?: string;
|
|
83
|
+
PreferredPaymentMethodRef?: PreferredPaymentMethodRef;
|
|
84
|
+
CreditCardInfo?: CreditCardInfo;
|
|
85
|
+
JobStatus?: JobStatus;
|
|
86
|
+
JobStartDate?: Date;
|
|
87
|
+
JobProjectedEndDate?: Date;
|
|
88
|
+
JobEndDate?: Date;
|
|
89
|
+
JobDesc?: string;
|
|
90
|
+
JobTypeRef?: JobTypeRef;
|
|
91
|
+
Notes?: string;
|
|
92
|
+
AdditionalNotesRet?: AdditionalNotesRet;
|
|
93
|
+
PreferredDeliveryMethod?: PreferredDeliveryMethod;
|
|
94
|
+
PriceLevelRef?: PriceLevelRef;
|
|
95
|
+
ExternalGUID?: string;
|
|
96
|
+
TaxRegistrationNumber?: string;
|
|
97
|
+
CurrencyRef?: CurrencyRef;
|
|
98
|
+
DataExtRet?: DataExtRet;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface BillAddress {
|
|
102
|
+
Addr1?: string;
|
|
103
|
+
Addr2?: string;
|
|
104
|
+
Addr3?: string;
|
|
105
|
+
Addr4?: string;
|
|
106
|
+
Addr5?: string;
|
|
107
|
+
City?: string;
|
|
108
|
+
State?: string;
|
|
109
|
+
PostalCode?: string;
|
|
110
|
+
Country?: string;
|
|
111
|
+
Note?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface BillAddressBlock {
|
|
115
|
+
Addr1?: string;
|
|
116
|
+
Addr2?: string;
|
|
117
|
+
Addr3?: string;
|
|
118
|
+
Addr4?: string;
|
|
119
|
+
Addr5?: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface ShipAddressBlock {
|
|
123
|
+
Addr1?: string;
|
|
124
|
+
Addr2?: string;
|
|
125
|
+
Addr3?: string;
|
|
126
|
+
Addr4?: string;
|
|
127
|
+
Addr5?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface ShipToAddress {
|
|
131
|
+
Addr1?: string;
|
|
132
|
+
Addr2?: string;
|
|
133
|
+
Addr3?: string;
|
|
134
|
+
Addr4?: string;
|
|
135
|
+
Addr5?: string;
|
|
136
|
+
City?: string;
|
|
137
|
+
State?: string;
|
|
138
|
+
PostalCode?: string;
|
|
139
|
+
Country?: string;
|
|
140
|
+
Note?: string;
|
|
141
|
+
DefaultShipTo?: boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface CustomerTypeRef {
|
|
145
|
+
ListID?: string;
|
|
146
|
+
FullName?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface SalesRepRef {
|
|
150
|
+
ListID?: string;
|
|
151
|
+
FullName?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interface ItemSalesTaxRef {
|
|
155
|
+
ListID?: string;
|
|
156
|
+
FullName?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
interface PreferredPaymentMethodRef {
|
|
160
|
+
ListID?: string;
|
|
161
|
+
FullName?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
interface CreditCardInfo {
|
|
165
|
+
CreditCardNumber?: string;
|
|
166
|
+
ExpirationMonth?: number;
|
|
167
|
+
ExpirationYear?: number;
|
|
168
|
+
NameOnCard?: string;
|
|
169
|
+
CreditCardAddress?: string;
|
|
170
|
+
CreditCardPostalCode?: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Default is "None"
|
|
174
|
+
type JobStatus =
|
|
175
|
+
| "Awarded"
|
|
176
|
+
| "Closed"
|
|
177
|
+
| "InProgress"
|
|
178
|
+
| "None"
|
|
179
|
+
| "NotAwarded"
|
|
180
|
+
| "Pending";
|
|
181
|
+
|
|
182
|
+
interface JobTypeRef {
|
|
183
|
+
ListID?: string;
|
|
184
|
+
FullName?: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Default is "None"
|
|
188
|
+
type PreferredDeliveryMethod = "Email" | "Fax" | "None";
|
|
189
|
+
|
|
190
|
+
interface PriceLevelRef {
|
|
191
|
+
ListID?: string;
|
|
192
|
+
FullName?: string;
|
|
193
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
ActiveStatus,
|
|
3
|
+
AdditionalContactRef,
|
|
4
|
+
AdditionalNotesRet,
|
|
5
|
+
BillingRateRef,
|
|
6
|
+
ClassRef,
|
|
3
7
|
DataExtRet,
|
|
4
8
|
NameFilter,
|
|
5
9
|
NameRangeFilter,
|
|
@@ -313,11 +317,6 @@ interface EmployeeAddress {
|
|
|
313
317
|
PostalCode?: string;
|
|
314
318
|
}
|
|
315
319
|
|
|
316
|
-
interface AdditionalContactRef {
|
|
317
|
-
ContactName: string;
|
|
318
|
-
ContactValue: string;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
320
|
interface EmergencyContacts {
|
|
322
321
|
PrimaryContact?: {
|
|
323
322
|
ContactName: string;
|
|
@@ -377,29 +376,30 @@ interface AdditionalNotes {
|
|
|
377
376
|
Note: string;
|
|
378
377
|
}
|
|
379
378
|
|
|
380
|
-
interface AdditionalNotesRet {
|
|
381
|
-
NoteID: number;
|
|
382
|
-
Date: Date;
|
|
383
|
-
Note: string;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
379
|
interface AdditionalNotesMod {
|
|
387
380
|
NoteID: number;
|
|
388
381
|
Note: string;
|
|
389
382
|
}
|
|
390
383
|
|
|
391
|
-
interface BillingRateRef {
|
|
392
|
-
ListID?: string;
|
|
393
|
-
FullName?: string;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
384
|
interface EmployeePayrollInfo {
|
|
397
385
|
PayPeriod?: PayPeriod;
|
|
398
386
|
ClassRef?: ClassRef;
|
|
399
387
|
ClearEarnings?: boolean;
|
|
400
388
|
Earnings?: Earnings;
|
|
389
|
+
/**
|
|
390
|
+
* Indicates whether or not paychecks are generated from time-tracking data.
|
|
391
|
+
* If you include a blank `IsUsingTimeDataToCreatePaychecks` element in an
|
|
392
|
+
* `EmployeeMod` message, you’ll receive an error.
|
|
393
|
+
*/
|
|
401
394
|
IsUsingTimeDataToCreatePaychecks?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Indicates whether time data is used to create paychecks for this employee.
|
|
397
|
+
*/
|
|
402
398
|
UseTimeDataToCreatePaychecks?: UseTimeDataToCreatePaychecks;
|
|
399
|
+
/**
|
|
400
|
+
* Describes how “sick time” is accrued for this employee, along with how many
|
|
401
|
+
* sick hours the employee has accrued.
|
|
402
|
+
*/
|
|
403
403
|
SickHours?: SickHours;
|
|
404
404
|
VacationHours?: VacationHours;
|
|
405
405
|
}
|
|
@@ -424,11 +424,6 @@ type PayPeriod =
|
|
|
424
424
|
| "Weekly"
|
|
425
425
|
| "Yearly";
|
|
426
426
|
|
|
427
|
-
interface ClassRef {
|
|
428
|
-
ListID?: string;
|
|
429
|
-
FullName?: string;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
427
|
interface Earnings {
|
|
433
428
|
PayrollItemWageRef?: PayrollItemWageRef;
|
|
434
429
|
Rate?: string;
|
|
@@ -446,12 +441,47 @@ type UseTimeDataToCreatePaychecks =
|
|
|
446
441
|
| "UseTimeData";
|
|
447
442
|
|
|
448
443
|
interface SickHours {
|
|
444
|
+
/**
|
|
445
|
+
* The total number of hours currently available for the employee to use. If
|
|
446
|
+
* this value is empty, it will default to 0.
|
|
447
|
+
*/
|
|
449
448
|
HoursAvailable?: string;
|
|
449
|
+
/**
|
|
450
|
+
* Indicates how an employee accrues time off. If you include a blank
|
|
451
|
+
* `AccrualPeriod` element in an `EmployeeMod` message, you’ll receive an
|
|
452
|
+
* error. The default value is whatever the QuickBooks user has set in the
|
|
453
|
+
* QuickBooks Employee Preferences.
|
|
454
|
+
*/
|
|
450
455
|
AccrualPeriod?: AccrualPeriod;
|
|
456
|
+
/**
|
|
457
|
+
* The number of hours that the employee will accrue per accrual period. The
|
|
458
|
+
* default value is whatever the QuickBooks user has set in the QuickBooks
|
|
459
|
+
* Employee Preferences.
|
|
460
|
+
*/
|
|
451
461
|
HoursAccrued?: string;
|
|
462
|
+
/**
|
|
463
|
+
* The maximum number of hours that the employee can accrue. (QuickBooks
|
|
464
|
+
* itself does not enforce this limit, however. HoursAvailable can be greater
|
|
465
|
+
* than MaximumHours.) The default value is whatever the QuickBooks user has
|
|
466
|
+
* set in the QuickBooks Employee Preferences.
|
|
467
|
+
*/
|
|
452
468
|
MaximumHours?: string;
|
|
469
|
+
/**
|
|
470
|
+
* Indicates whether or not the hours accrued resets to zero at the beginning
|
|
471
|
+
* of the new year. If you include a blank `IsResettingHoursEachNewYear`
|
|
472
|
+
* element in an `EmployeeMod` message, you’ll receive an error.
|
|
473
|
+
*/
|
|
453
474
|
IsResettingHoursEachNewYear?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* When used in the `SickHours` or `VacationHours` aggregates, refers to the
|
|
477
|
+
* number of sick leave or vacation hours used in the current year.
|
|
478
|
+
*/
|
|
454
479
|
HoursUsed?: string;
|
|
480
|
+
/**
|
|
481
|
+
* When used in the `SickHours` or `VacationHours` aggregates, refers to the
|
|
482
|
+
* date on which sick leave or vacation hours in the current year began to
|
|
483
|
+
* accrue.
|
|
484
|
+
*/
|
|
455
485
|
AccrualStartDate?: Date;
|
|
456
486
|
}
|
|
457
487
|
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ActiveStatus,
|
|
3
|
+
AdditionalContactRef,
|
|
4
|
+
AdditionalNotesRet,
|
|
5
|
+
BillingRateRef,
|
|
6
|
+
ClassFilter,
|
|
7
|
+
ClassRef,
|
|
8
|
+
ContactsRet,
|
|
9
|
+
CurrencyFilter,
|
|
10
|
+
CurrencyRef,
|
|
11
|
+
DataExtRet,
|
|
12
|
+
NameFilter,
|
|
13
|
+
NameRangeFilter,
|
|
14
|
+
SalesTaxCodeRef,
|
|
15
|
+
SalesTaxCountry,
|
|
16
|
+
ShipAddress,
|
|
17
|
+
TermsRef,
|
|
18
|
+
TotalBalanceFilter,
|
|
19
|
+
} from "@conductor/client/qb/qbXMLTypes/shared";
|
|
20
|
+
|
|
21
|
+
export interface VendorQueryRq {
|
|
22
|
+
ListID?: string;
|
|
23
|
+
FullName?: string;
|
|
24
|
+
MaxReturned?: number;
|
|
25
|
+
ActiveStatus?: ActiveStatus;
|
|
26
|
+
FromModifiedDate?: Date;
|
|
27
|
+
ToModifiedDate?: Date;
|
|
28
|
+
NameFilter?: NameFilter;
|
|
29
|
+
NameRangeFilter?: NameRangeFilter;
|
|
30
|
+
TotalBalanceFilter?: TotalBalanceFilter;
|
|
31
|
+
CurrencyFilter?: CurrencyFilter;
|
|
32
|
+
ClassFilter?: ClassFilter;
|
|
33
|
+
IncludeRetElement?: string;
|
|
34
|
+
OwnerID?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface VendorQueryRs {
|
|
38
|
+
VendorRet?: VendorRet;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface VendorRet {
|
|
42
|
+
ListID: string;
|
|
43
|
+
TimeCreated: Date;
|
|
44
|
+
TimeModified: Date;
|
|
45
|
+
EditSequence: string;
|
|
46
|
+
Name: string;
|
|
47
|
+
/**
|
|
48
|
+
* If `IsActive` is `true`, this object is currently enabled for use by
|
|
49
|
+
* QuickBooks. The default value is `true`.
|
|
50
|
+
*/
|
|
51
|
+
IsActive?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Classes can be used to separate transactions into meaningful categories.
|
|
54
|
+
* (For example, transactions could be classified according to department,
|
|
55
|
+
* business location, or type of work.) In QuickBooks, class tracking is off
|
|
56
|
+
* by default. A `ClassRef` aggregate refers to one of these named classes.
|
|
57
|
+
* For example, in a `TimeTracking` message, `ClassRef` refers to the
|
|
58
|
+
* QuickBooks class into which the timed activity falls. If a `ClassRef`
|
|
59
|
+
* aggregate includes both `FullName` and `ListID`, `FullName` will be
|
|
60
|
+
* ignored. In an `InvoiceAdd` request, if you specify a `ClassRef` for the
|
|
61
|
+
* whole invoice, that same `ClassRef` is automatically used in the line
|
|
62
|
+
* items. If you want to clear that (that is, have NO `ClassRef` for the line
|
|
63
|
+
* item, you can clear it in the line item by simply not specifying it in the
|
|
64
|
+
* line item.
|
|
65
|
+
*/
|
|
66
|
+
ClassRef?: ClassRef;
|
|
67
|
+
/**
|
|
68
|
+
* Is the current entity a tax agency.
|
|
69
|
+
*/
|
|
70
|
+
IsTaxAgency?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The name of the QuickBooks user’s business, as specified in QuickBooks.
|
|
73
|
+
* `CompanyName` and `Address` are used on invoices, checks, and other forms.
|
|
74
|
+
* (`LegalCompanyName` and `LegalAddress`, on the other hand, are used on a
|
|
75
|
+
* company’s tax forms and pay stubs.)
|
|
76
|
+
*/
|
|
77
|
+
CompanyName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* A formal reference, such as Mr. or Dr., that precedes a name.
|
|
80
|
+
*/
|
|
81
|
+
Salutation?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The first name of a customer, vendor, employee, or person on the “other
|
|
84
|
+
* names” list.
|
|
85
|
+
*/
|
|
86
|
+
FirstName?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The middle name of a customer, vendor, employee, or person on the “other
|
|
89
|
+
* names” list.
|
|
90
|
+
*/
|
|
91
|
+
MiddleName?: string;
|
|
92
|
+
/**
|
|
93
|
+
* The last name of a customer, vendor, employee, or person on the “other
|
|
94
|
+
* names” list.
|
|
95
|
+
*/
|
|
96
|
+
LastName?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The job title of a customer, vendor, employee, or person on the “other
|
|
99
|
+
* names” list.
|
|
100
|
+
*/
|
|
101
|
+
JobTitle?: string;
|
|
102
|
+
/**
|
|
103
|
+
* If an address request fails, some combination of address fields might be
|
|
104
|
+
* too long.
|
|
105
|
+
*/
|
|
106
|
+
VendorAddress?: VendorAddress;
|
|
107
|
+
VendorAddressBlock?: VendorAddressBlock;
|
|
108
|
+
ShipAddress?: ShipAddress;
|
|
109
|
+
Phone?: string;
|
|
110
|
+
AltPhone?: string;
|
|
111
|
+
Fax?: string;
|
|
112
|
+
Email?: string;
|
|
113
|
+
Cc?: string;
|
|
114
|
+
Contact?: string;
|
|
115
|
+
AltContact?: string;
|
|
116
|
+
AdditionalContactRef?: AdditionalContactRef;
|
|
117
|
+
ContactsRet?: ContactsRet;
|
|
118
|
+
NameOnCheck?: string;
|
|
119
|
+
AccountNumber?: string;
|
|
120
|
+
Notes?: string;
|
|
121
|
+
AdditionalNotesRet?: AdditionalNotesRet;
|
|
122
|
+
VendorTypeRef?: VendorTypeRef;
|
|
123
|
+
TermsRef?: TermsRef;
|
|
124
|
+
CreditLimit?: string;
|
|
125
|
+
VendorTaxIdent?: string;
|
|
126
|
+
IsVendorEligibleFor1099?: boolean;
|
|
127
|
+
Balance?: string;
|
|
128
|
+
BillingRateRef?: BillingRateRef;
|
|
129
|
+
ExternalGUID?: string;
|
|
130
|
+
SalesTaxCodeRef?: SalesTaxCodeRef;
|
|
131
|
+
SalesTaxCountry?: SalesTaxCountry;
|
|
132
|
+
IsSalesTaxAgency?: boolean;
|
|
133
|
+
SalesTaxReturnRef?: SalesTaxReturnRef;
|
|
134
|
+
TaxRegistrationNumber?: string;
|
|
135
|
+
ResaleNumber?: ReportingPeriod;
|
|
136
|
+
IsTaxTrackedOnPurchases?: boolean;
|
|
137
|
+
TaxOnPurchasesAccountRef?: TaxOnPurchasesAccountRef;
|
|
138
|
+
IsTaxTrackedOnSales?: boolean;
|
|
139
|
+
TaxOnSalesAccountRef?: TaxOnSalesAccountRef;
|
|
140
|
+
IsTaxOnTax?: boolean;
|
|
141
|
+
PrefillAccountRef?: PrefillAccountRef;
|
|
142
|
+
CurrencyRef?: CurrencyRef;
|
|
143
|
+
DataExtRet?: DataExtRet;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface VendorAddress {
|
|
147
|
+
Addr1?: string;
|
|
148
|
+
Addr2?: string;
|
|
149
|
+
Addr3?: string;
|
|
150
|
+
Addr4?: string;
|
|
151
|
+
Addr5?: string;
|
|
152
|
+
City?: string;
|
|
153
|
+
State?: string;
|
|
154
|
+
PostalCode?: string;
|
|
155
|
+
Country?: string;
|
|
156
|
+
Note?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
interface VendorAddressBlock {
|
|
160
|
+
Addr1?: string;
|
|
161
|
+
Addr2?: string;
|
|
162
|
+
Addr3?: string;
|
|
163
|
+
Addr4?: string;
|
|
164
|
+
Addr5?: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface VendorTypeRef {
|
|
168
|
+
ListID?: string;
|
|
169
|
+
FullName?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface SalesTaxReturnRef {
|
|
173
|
+
ListID?: string;
|
|
174
|
+
FullNam?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Default is Quarterly
|
|
178
|
+
type ReportingPeriod = "Monthly" | "Quarterly";
|
|
179
|
+
|
|
180
|
+
interface TaxOnPurchasesAccountRef {
|
|
181
|
+
ListID?: string;
|
|
182
|
+
FullName?: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
interface TaxOnSalesAccountRef {
|
|
186
|
+
ListID?: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
interface PrefillAccountRef {
|
|
190
|
+
ListID?: string;
|
|
191
|
+
FullName?: string;
|
|
192
|
+
}
|
|
@@ -46,3 +46,98 @@ type DataExtType =
|
|
|
46
46
|
| "QUANTYPE"
|
|
47
47
|
| "STR255TYPE"
|
|
48
48
|
| "STR1024TYPE";
|
|
49
|
+
|
|
50
|
+
export interface CurrencyFilter {
|
|
51
|
+
ListID?: string;
|
|
52
|
+
FullName?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ClassRef {
|
|
56
|
+
ListID?: string;
|
|
57
|
+
FullName?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface AdditionalContactRef {
|
|
61
|
+
ContactName: string;
|
|
62
|
+
ContactValue: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface AdditionalNotesRet {
|
|
66
|
+
NoteID: number;
|
|
67
|
+
Date: Date;
|
|
68
|
+
Note: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface BillingRateRef {
|
|
72
|
+
ListID?: string;
|
|
73
|
+
FullName?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface SalesTaxCodeRef {
|
|
77
|
+
ListID?: string;
|
|
78
|
+
FullName?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface CurrencyRef {
|
|
82
|
+
ListID?: string;
|
|
83
|
+
FullName?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface TotalBalanceFilter {
|
|
87
|
+
Operator: Operator;
|
|
88
|
+
Amount: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
type Operator =
|
|
92
|
+
| "Equal"
|
|
93
|
+
| "GreaterThan"
|
|
94
|
+
| "GreaterThanEqual"
|
|
95
|
+
| "LessThan"
|
|
96
|
+
| "LessThanEqual";
|
|
97
|
+
|
|
98
|
+
export interface ClassFilter {
|
|
99
|
+
ListID?: string;
|
|
100
|
+
FullName?: string;
|
|
101
|
+
ListIDWithChildren?: string;
|
|
102
|
+
FullNameWithChildren?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface ParentRef {
|
|
106
|
+
ListID?: string;
|
|
107
|
+
FullName?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface ShipAddress {
|
|
111
|
+
Addr1?: string;
|
|
112
|
+
Addr2?: string;
|
|
113
|
+
Addr3?: string;
|
|
114
|
+
Addr4?: string;
|
|
115
|
+
Addr5?: string;
|
|
116
|
+
City?: string;
|
|
117
|
+
State?: string;
|
|
118
|
+
PostalCode?: string;
|
|
119
|
+
Country?: string;
|
|
120
|
+
Note?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface ContactsRet {
|
|
124
|
+
ListID: string;
|
|
125
|
+
TimeCreated: Date;
|
|
126
|
+
TimeModified: Date;
|
|
127
|
+
EditSequence: string;
|
|
128
|
+
Contact?: string;
|
|
129
|
+
Salutation?: string;
|
|
130
|
+
FirstName?: string;
|
|
131
|
+
MiddleName?: string;
|
|
132
|
+
LastName?: string;
|
|
133
|
+
JobTitle?: string;
|
|
134
|
+
AdditionalContactRef?: AdditionalContactRef;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface TermsRef {
|
|
138
|
+
ListID?: string;
|
|
139
|
+
FullName?: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Default is Canada
|
|
143
|
+
export type SalesTaxCountry = "Australia" | "Canada" | "UK" | "US";
|