conductor-node 0.1.4 → 0.1.5
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/dist/src/BaseClient.d.ts +1 -1
- package/dist/src/BaseClient.js +1 -1
- package/dist/src/Client.d.ts +1 -1
- package/dist/src/Client.js +1 -1
- package/dist/src/{qb → qbd}/ClientQBD.d.ts +8 -11
- package/dist/src/{qb → qbd}/ClientQBD.js +1 -1
- package/dist/src/qbd/qbdTypes.d.ts +713 -0
- package/dist/src/{qb/qbXMLTypes/Account.js → qbd/qbdTypes.js} +0 -0
- package/package.json +1 -1
- package/dist/src/qb/qbXMLTypes/Account.d.ts +0 -320
- package/dist/src/qb/qbXMLTypes/Customer.d.ts +0 -226
- package/dist/src/qb/qbXMLTypes/Customer.js +0 -2
- package/dist/src/qb/qbXMLTypes/Employee.d.ts +0 -590
- package/dist/src/qb/qbXMLTypes/Employee.js +0 -2
- package/dist/src/qb/qbXMLTypes/Vendor.d.ts +0 -245
- package/dist/src/qb/qbXMLTypes/Vendor.js +0 -2
- package/dist/src/qb/qbXMLTypes/shared.d.ts +0 -109
- package/dist/src/qb/qbXMLTypes/shared.js +0 -2
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
import type { ActiveStatus, CurrencyFilter, CurrencyRef, DataExtRet, NameFilter, NameRangeFilter, ParentRef, SalesTaxCodeRef } from "../../qb/qbXMLTypes/shared";
|
|
2
|
-
export interface AccountAddRq {
|
|
3
|
-
AccountAdd: AccountAdd;
|
|
4
|
-
/**
|
|
5
|
-
* You use this if you want to limit the data that will be returned in the
|
|
6
|
-
* response. In this list, you specify the name of each top-level element or
|
|
7
|
-
* aggregate that you want to be returned in the response to the request. You
|
|
8
|
-
* cannot specify fields within an aggregate, for example, you cannot specify
|
|
9
|
-
* a `City` within an `Address`: you must specify Address and will get the
|
|
10
|
-
* entire address. The names specified in the list are not parsed, so you must
|
|
11
|
-
* be especially careful to supply valid names, properly cased. No error is
|
|
12
|
-
* returned in the status code if you specify an invalid name. Notice that if
|
|
13
|
-
* you want to return custom data or private data extensions, you must specify
|
|
14
|
-
* the DataExtRet element and you must supply the `OwnerID` set to either a
|
|
15
|
-
* value of 0 (custom data) or the `GUID` for the private data.
|
|
16
|
-
*/
|
|
17
|
-
IncludeRetElement?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface AccountAddRs {
|
|
20
|
-
AccountRet?: AccountRet;
|
|
21
|
-
}
|
|
22
|
-
export interface AccountAdd {
|
|
23
|
-
/**
|
|
24
|
-
* The case-insensitive name of a list object, not including the names of its
|
|
25
|
-
* ancestors. Name must be unique, unless it is the Name of a “hierarchical”
|
|
26
|
-
* list object. List objects in different hierarchies can have duplicate names
|
|
27
|
-
* because their FullNames will still be unique. For example, two objects
|
|
28
|
-
* could both have the Name kitchen, but they could have unique FullNames,
|
|
29
|
-
* such as Job12:kitchen and Baker:kitchen. For built-in currencies, Name is
|
|
30
|
-
* the internationally accepted currency name and is not editable.
|
|
31
|
-
*/
|
|
32
|
-
Name: string;
|
|
33
|
-
/**
|
|
34
|
-
* If `IsActive` is `true`, this object is currently enabled for use by
|
|
35
|
-
* QuickBooks. The default value is `true`.
|
|
36
|
-
*/
|
|
37
|
-
IsActive?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* A reference to the list object that is one level above this one. For
|
|
40
|
-
* example, an inventory item with the `FullName` of
|
|
41
|
-
* `GermanCars:Mercedes-Benz:CL500I99AA` might have a parent object with the
|
|
42
|
-
* `FullName` of `GermanCars:Mercedes-Benz`. In a request, if a `ParentRef`
|
|
43
|
-
* aggregate includes both `FullName` and `ListID`, `FullName` will be
|
|
44
|
-
* ignored.
|
|
45
|
-
*/
|
|
46
|
-
ParentRef?: ParentRef;
|
|
47
|
-
/**
|
|
48
|
-
* The type of QuickBooks account. You cannot create or modify a non-posting
|
|
49
|
-
* account through the SDK, because QuickBooks creates these accounts behind
|
|
50
|
-
* the scenes. This means that you cannot send an AccountAdd request with an
|
|
51
|
-
* AccountType of NonPosting.
|
|
52
|
-
*/
|
|
53
|
-
AccountType: AccountType;
|
|
54
|
-
/**
|
|
55
|
-
* Account numbers appear in the QuickBooks chart of accounts, Account fields,
|
|
56
|
-
* and reports and graphs. If the `IsUsingAccountNumber` preference is `false`
|
|
57
|
-
* (that is, if the QuickBooks user has the account numbers Preference turned
|
|
58
|
-
* off), you can still set account numbers through the SDK, but the numbers
|
|
59
|
-
* will not be visible in the user interface.
|
|
60
|
-
*/
|
|
61
|
-
AccountNumber?: string;
|
|
62
|
-
/**
|
|
63
|
-
* The bank account number or an identifying note about the account. If a
|
|
64
|
-
* `BankNumber` exists in a QuickBooks company file, it will only be returned
|
|
65
|
-
* to applications that have been granted permission to access sensitive data
|
|
66
|
-
* and that are using SDK v2.0 or greater.
|
|
67
|
-
*/
|
|
68
|
-
BankNumber?: string;
|
|
69
|
-
/**
|
|
70
|
-
* A descriptive text field.
|
|
71
|
-
*/
|
|
72
|
-
Desc?: string;
|
|
73
|
-
/**
|
|
74
|
-
* The amount of money in, or the value of, this account as of
|
|
75
|
-
* `OpenBalanceDate`. On a bank statement, the amount of money in the account
|
|
76
|
-
* at the beginning of the statement period.
|
|
77
|
-
*/
|
|
78
|
-
OpenBalance?: string;
|
|
79
|
-
/**
|
|
80
|
-
* The date when an opening balance was entered for this account.
|
|
81
|
-
*/
|
|
82
|
-
OpenBalanceDate?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Each item on a sales form is assigned a sales-tax code that indicates
|
|
85
|
-
* whether the item is taxable or non-taxable, and why. Two general codes,
|
|
86
|
-
* which can be modified but not deleted, appear on the sales-tax code list by
|
|
87
|
-
* default: `Non-taxable (Name = NON; Desc = Non-Taxable; IsTaxable = false)`,
|
|
88
|
-
* `Taxable (Name = TAX; Desc = Taxable; IsTaxable = true)`. A sales-tax code
|
|
89
|
-
* can be deleted only if it is no longer associated with any customer, item,
|
|
90
|
-
* or transaction. If the “Do You Charge Sales Tax?” preference within
|
|
91
|
-
* QuickBooks is set to No, QuickBooks will assign the default non-taxable
|
|
92
|
-
* sales-tax code to all sales. A `SalesTaxCodeRef` aggregate refers to a
|
|
93
|
-
* sales-tax code on the list. In a request, if a `SalesTaxCodeRef` aggregate
|
|
94
|
-
* includes both FullName and `ListID`, FullName will be ignored. In a
|
|
95
|
-
* Customer message, `SalesTaxCodeRef` refers to the sales-tax code that will
|
|
96
|
-
* be used for items related to this customer. In an ItemInventory message,
|
|
97
|
-
* `SalesTaxCodeRef` refers to the type of sales tax that will be charged for
|
|
98
|
-
* this item, if it is a taxable item and if sales tax is set up within
|
|
99
|
-
* QuickBooks.
|
|
100
|
-
*/
|
|
101
|
-
SalesTaxCodeRef?: SalesTaxCodeRef;
|
|
102
|
-
/**
|
|
103
|
-
* An internal representation of the tax line associated with this account.
|
|
104
|
-
*/
|
|
105
|
-
TaxLineID?: number;
|
|
106
|
-
/**
|
|
107
|
-
* The currency object contains all of the information needed by QuickBooks to
|
|
108
|
-
* display and use. For built-in currencies, the name and currency code values
|
|
109
|
-
* are internationally accepted values and thus are not editable. The comma
|
|
110
|
-
* format is editable, as is the IsActive status. For user-defined currencies,
|
|
111
|
-
* every value in the object is editable including name and currency code.
|
|
112
|
-
* When used with PriceLevels, the CurrencyRef should only be used with “per
|
|
113
|
-
* item” price levels.
|
|
114
|
-
*/
|
|
115
|
-
CurrencyRef?: CurrencyRef;
|
|
116
|
-
}
|
|
117
|
-
export interface AccountQueryRq {
|
|
118
|
-
ListID?: string;
|
|
119
|
-
FullName?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Limits the number of objects that a query returns. (To get a count of how
|
|
122
|
-
* many objects could possibly be returned, use the metaData query attribute.)
|
|
123
|
-
* If you include a `MaxReturned` value, it must be at least 1.
|
|
124
|
-
*/
|
|
125
|
-
MaxReturned?: number;
|
|
126
|
-
/**
|
|
127
|
-
* Used in filters to select list objects based on whether or not they are
|
|
128
|
-
* currently enabled for use by QuickBooks. The default value is `ActiveOnly`,
|
|
129
|
-
* which selects only list objects that are active.
|
|
130
|
-
*/
|
|
131
|
-
ActiveStatus?: ActiveStatus;
|
|
132
|
-
/**
|
|
133
|
-
* Selects objects modified on or after this date.
|
|
134
|
-
*
|
|
135
|
-
* `FromModifiedDate` and `ToModifiedDate` must be between 1970-01-01 and
|
|
136
|
-
* 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (The time portion of
|
|
137
|
-
* the field was not supported in qbXML version 1.0 or 1.1.)
|
|
138
|
-
*
|
|
139
|
-
* If `FromModifiedDate` includes a date but not a time (for example, if you
|
|
140
|
-
* set `FromModifiedDate` to 2003-02-14), the time is assumed to be zero
|
|
141
|
-
* (2003-02-14T00:00:00). If you omit `FromModifiedDate`, it will be set to
|
|
142
|
-
* 1970-01-01T00:00:00 (1969-12-31T16:00:00-08:00 PST).
|
|
143
|
-
*/
|
|
144
|
-
FromModifiedDate?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Selects objects modified on or before this date.
|
|
147
|
-
*
|
|
148
|
-
* `ToModifiedDate` and `FromModifiedDate` must be between 1970-01-01 and
|
|
149
|
-
* 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (Note that the time
|
|
150
|
-
* portion of the field was not supported in qbXML version 1.0 or 1.1.)
|
|
151
|
-
*
|
|
152
|
-
* If `ToModifiedDate` includes a date but not a time (for example, if you set
|
|
153
|
-
* `ToModifiedDate` to 2003-02-14), the time is assumed to be the end of the
|
|
154
|
-
* day (2003-02-14T23:59:59). If you omit `ToModifiedDate` altogether, it will
|
|
155
|
-
* be set to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).
|
|
156
|
-
*/
|
|
157
|
-
ToModifiedDate?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Filters according to the object’s `Name`.
|
|
160
|
-
*/
|
|
161
|
-
NameFilter?: NameFilter;
|
|
162
|
-
/**
|
|
163
|
-
* Filters according to the object’s `Name`.
|
|
164
|
-
*/
|
|
165
|
-
NameRangeFilter?: NameRangeFilter;
|
|
166
|
-
/**
|
|
167
|
-
* A list of QuickBooks account types.
|
|
168
|
-
*/
|
|
169
|
-
AccountType?: AccountType;
|
|
170
|
-
/**
|
|
171
|
-
* Filters by the specified currency.
|
|
172
|
-
*/
|
|
173
|
-
CurrencyFilter?: CurrencyFilter;
|
|
174
|
-
/**
|
|
175
|
-
* You use this if you want to limit the data that will be returned in the
|
|
176
|
-
* response. In this list, you specify the name of each top-level element or
|
|
177
|
-
* aggregate that you want to be returned in the response to the request. You
|
|
178
|
-
* cannot specify fields within an aggregate, for example, you cannot specify
|
|
179
|
-
* a `City` within an `Address`: you must specify Address and will get the
|
|
180
|
-
* entire address. The names specified in the list are not parsed, so you must
|
|
181
|
-
* be especially careful to supply valid names, properly cased. No error is
|
|
182
|
-
* returned in the status code if you specify an invalid name. Notice that if
|
|
183
|
-
* you want to return custom data or private data extensions, you must specify
|
|
184
|
-
* the DataExtRet element and you must supply the `OwnerID` set to either a
|
|
185
|
-
* value of 0 (custom data) or the `GUID` for the private data.
|
|
186
|
-
*/
|
|
187
|
-
IncludeRetElement?: string;
|
|
188
|
-
/**
|
|
189
|
-
* Zero or more `OwnerID` values. `OwnerID` refers to the owner of a data
|
|
190
|
-
* extension: If `OwnerID` is 0, this is a public data extension, also known
|
|
191
|
-
* as a custom field. Custom fields appear in the QuickBooks UI.
|
|
192
|
-
*
|
|
193
|
-
* If `OwnerID` is a GUID, for example
|
|
194
|
-
* `{6B063959-81B0-4622-85D6-F548C8CCB517}`, this field is a private data
|
|
195
|
-
* extension defined by an integrated application. Private data extensions do
|
|
196
|
-
* not appear in the QuickBooks UI.
|
|
197
|
-
*
|
|
198
|
-
* Note that `OwnerID` values are not case-sensitive, meaning that if you
|
|
199
|
-
* enter an `OwnerID` value with lower-case letters, the value will be saved
|
|
200
|
-
* and returned with upper-case letters.
|
|
201
|
-
*
|
|
202
|
-
* When you share a private data extension with another application, the other
|
|
203
|
-
* application must know both the `OwnerID` and the `DataExtName`, as these
|
|
204
|
-
* together form a data extension’s unique name.
|
|
205
|
-
*/
|
|
206
|
-
OwnerID?: string;
|
|
207
|
-
}
|
|
208
|
-
export interface AccountQueryRs {
|
|
209
|
-
AccountRet?: AccountRet;
|
|
210
|
-
}
|
|
211
|
-
export interface AccountRet {
|
|
212
|
-
/**
|
|
213
|
-
* Along with `FullName`, `ListID` is a way to identify a list object. When a
|
|
214
|
-
* list object is added to QuickBooks through the SDK or through the
|
|
215
|
-
* QuickBooks user interface, the server assigns it a `ListID`. A `ListID` is
|
|
216
|
-
* not unique across lists, but it is unique across each particular type of
|
|
217
|
-
* list. For example, two customers could not have the same `ListID`, and a
|
|
218
|
-
* customer could not have the same `ListID` as an employee (because Customer
|
|
219
|
-
* and Employee are both name lists). But a customer could have the same
|
|
220
|
-
* `ListID` as a non-inventory item.
|
|
221
|
-
*/
|
|
222
|
-
ListID: string;
|
|
223
|
-
/**
|
|
224
|
-
* Time the object was created.
|
|
225
|
-
*/
|
|
226
|
-
TimeCreated: string;
|
|
227
|
-
/**
|
|
228
|
-
* Time the object was last modified.
|
|
229
|
-
*/
|
|
230
|
-
TimeModified: string;
|
|
231
|
-
/**
|
|
232
|
-
* A number that the server generates and assigns to this object. Every time
|
|
233
|
-
* the object is changed, the server will change its `EditSequence` value.
|
|
234
|
-
* When you try to modify a list object, you must provide its `EditSequence`.
|
|
235
|
-
* The server compares the `EditSequence` you provide with the `EditSequence`
|
|
236
|
-
* in memory to make sure you are dealing with the latest copy of the object.
|
|
237
|
-
* If you are not, the server will reject the request and return an error.
|
|
238
|
-
* Because `EditSequence` is only used to check whether two objects match,
|
|
239
|
-
* there is no reason to interpret its value.
|
|
240
|
-
*/
|
|
241
|
-
EditSequence: string;
|
|
242
|
-
/**
|
|
243
|
-
* The case-insensitive name of a list object, not including the names of its
|
|
244
|
-
* ancestors. `Name` must be unique, unless it is the `Name` of a
|
|
245
|
-
* “hierarchical” list object. List objects in different hierarchies can have
|
|
246
|
-
* duplicate names because their `FullNames` will still be unique. For
|
|
247
|
-
* example, two objects could both have the `Name` kitchen, but they could
|
|
248
|
-
* have unique `FullNames`, such as Job12:kitchen and Baker:kitchen. For
|
|
249
|
-
* built-in currencies, `Name` is the internationally accepted currency name
|
|
250
|
-
* and is not editable.
|
|
251
|
-
*/
|
|
252
|
-
Name: string;
|
|
253
|
-
/**
|
|
254
|
-
* `FullName` (along with `ListID`) is a way to identify a list object. The
|
|
255
|
-
* `FullName` is the name prefixed by the names of each ancestor, for example
|
|
256
|
-
* `Jones:Kitchen:Cabinets`. `FullName` values are not case-sensitive.
|
|
257
|
-
*/
|
|
258
|
-
FullName: string;
|
|
259
|
-
/**
|
|
260
|
-
* If `IsActive` is true, this object is currently enabled for use by
|
|
261
|
-
* QuickBooks. The default value is `true`.
|
|
262
|
-
*/
|
|
263
|
-
IsActive?: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* A reference to the list object that is one level above this one. For
|
|
266
|
-
* example, an inventory item with the `FullName` of
|
|
267
|
-
* `GermanCars:Mercedes-Benz:CL500I99AA` might have a parent object with the
|
|
268
|
-
* `FullName` of `GermanCars:Mercedes-Benz`. In a request, if a `ParentRef`
|
|
269
|
-
* aggregate includes both `FullName` and `ListID`, `FullName` will be
|
|
270
|
-
* ignored.
|
|
271
|
-
*/
|
|
272
|
-
ParentRef?: ParentRef;
|
|
273
|
-
/**
|
|
274
|
-
* The number of ancestors. For example, The customer job with `Name =
|
|
275
|
-
* carpets` and `FullName = Jones:Building2:carpets` would have a sublevel of
|
|
276
|
-
* 2.
|
|
277
|
-
*/
|
|
278
|
-
Sublevel: number;
|
|
279
|
-
/**
|
|
280
|
-
* The type of QuickBooks account. You cannot create or modify a non-posting
|
|
281
|
-
* account through the SDK, because QuickBooks creates these accounts behind
|
|
282
|
-
* the scenes. This means that you cannot send an `AccountAdd` request with an
|
|
283
|
-
* `AccountType` of `NonPosting`.
|
|
284
|
-
*/
|
|
285
|
-
AccountType: AccountType;
|
|
286
|
-
/**
|
|
287
|
-
* If `SpecialAccountType` returns a value, then QuickBooks automatically
|
|
288
|
-
* created this account when it was needed. Some special accounts cannot be
|
|
289
|
-
* overridden, because QuickBooks uses them exclusively for special purposes.
|
|
290
|
-
*/
|
|
291
|
-
SpecialAccountType?: SpecialAccountType;
|
|
292
|
-
/**
|
|
293
|
-
* Indicates whether the account is used for tax.
|
|
294
|
-
*/
|
|
295
|
-
IsTaxAccount?: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* Account numbers appear in the QuickBooks chart of accounts, `Account`
|
|
298
|
-
* fields, and reports and graphs. If the `IsUsingAccountNumber` preference is
|
|
299
|
-
* false (that is, if the QuickBooks user has the account numbers Preference
|
|
300
|
-
* turned off), you can still set account numbers through the SDK, but the
|
|
301
|
-
* numbers will not be visible in the user interface.
|
|
302
|
-
*/
|
|
303
|
-
AccountNumber?: string;
|
|
304
|
-
BankNumber?: string;
|
|
305
|
-
Desc?: string;
|
|
306
|
-
Balance?: string;
|
|
307
|
-
TotalBalance?: string;
|
|
308
|
-
SalesTaxCodeRef?: SalesTaxCodeRef;
|
|
309
|
-
TaxLineInfoRet?: {
|
|
310
|
-
TaxLineID: number;
|
|
311
|
-
TaxLineName?: string;
|
|
312
|
-
};
|
|
313
|
-
CashFlowClassification?: CashFlowClassification;
|
|
314
|
-
CurrencyRef?: CurrencyRef;
|
|
315
|
-
DataExtRet?: DataExtRet;
|
|
316
|
-
}
|
|
317
|
-
declare type AccountType = "AccountsPayable" | "AccountsReceivable" | "Bank" | "CostOfGoodsSold" | "CreditCard" | "Equity" | "Expense" | "FixedAsset" | "Income" | "LongTermLiability" | "NonPosting" | "OtherAsset" | "OtherCurrentAsset" | "OtherCurrentLiability" | "OtherExpense" | "OtherIncome";
|
|
318
|
-
declare type SpecialAccountType = "AccountsPayable" | "AccountsReceivable" | "CondenseItemAdjustmentExpenses" | "CostOfGoodsSold" | "DirectDepositLiabilities" | "Estimates" | "ExchangeGainLoss" | "InventoryAssets" | "ItemReceiptAccount" | "OpeningBalanceEquity" | "PayrollExpenses" | "PayrollLiabilities" | "PettyCash" | "PurchaseOrders" | "ReconciliationDifferences" | "RetainedEarnings" | "SalesOrders" | "SalesTaxPayable" | "UncategorizedExpenses" | "UncategorizedIncome" | "UndepositedFunds";
|
|
319
|
-
declare type CashFlowClassification = "Financing" | "Investing" | "None" | "NotApplicable" | "Operating";
|
|
320
|
-
export {};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import type { ActiveStatus, AdditionalContactRef, AdditionalNotesRet, ClassFilter, ClassRef, ContactsRet, CurrencyFilter, CurrencyRef, DataExtRet, NameFilter, NameRangeFilter, ParentRef, SalesTaxCodeRef, SalesTaxCountry, ShipAddress, TermsRef, TotalBalanceFilter } from "../../qb/qbXMLTypes/shared";
|
|
2
|
-
export interface CustomerQueryRq {
|
|
3
|
-
ListID?: string;
|
|
4
|
-
FullName?: string;
|
|
5
|
-
/**
|
|
6
|
-
* Limits the number of objects that a query returns. (To get a count of how
|
|
7
|
-
* many objects could possibly be returned, use the metaData query attribute.)
|
|
8
|
-
* If you include a `MaxReturned` value, it must be at least 1.
|
|
9
|
-
*/
|
|
10
|
-
MaxReturned?: number;
|
|
11
|
-
/**
|
|
12
|
-
* Used in filters to select list objects based on whether or not they are
|
|
13
|
-
* currently enabled for use by QuickBooks. The default value is
|
|
14
|
-
* `asActiveOnly`, which selects only list objects that are active.
|
|
15
|
-
*/
|
|
16
|
-
ActiveStatus?: ActiveStatus;
|
|
17
|
-
/**
|
|
18
|
-
* Selects objects modified on or after this date.
|
|
19
|
-
*
|
|
20
|
-
* `FromModifiedDate` and `ToModifiedDate` must be between 1970-01-01 and
|
|
21
|
-
* 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (The time portion of
|
|
22
|
-
* the field was not supported in qbXML version 1.0 or 1.1.)
|
|
23
|
-
*
|
|
24
|
-
* If `FromModifiedDate` includes a date but not a time (for example, if you
|
|
25
|
-
* set `FromModifiedDate` to 2003-02-14), the time is assumed to be zero
|
|
26
|
-
* (2003-02-14T00:00:00). If you omit `FromModifiedDate`, it will be set to
|
|
27
|
-
* 1970-01-01T00:00:00 (1969-12-31T16:00:00-08:00 PST).
|
|
28
|
-
*/
|
|
29
|
-
FromModifiedDate?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Selects objects modified on or before this date.
|
|
32
|
-
*
|
|
33
|
-
* `ToModifiedDate` and `FromModifiedDate` must be between 1970-01-01 and
|
|
34
|
-
* 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (Note that the time
|
|
35
|
-
* portion of the field was not supported in qbXML version 1.0 or 1.1.)
|
|
36
|
-
*
|
|
37
|
-
* If `ToModifiedDate` includes a date but not a time (for example, if you set
|
|
38
|
-
* `ToModifiedDate` to 2003-02-14), the time is assumed to be the end of the
|
|
39
|
-
* day (2003-02-14T23:59:59). If you omit `ToModifiedDate` altogether, it will
|
|
40
|
-
* be set to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).
|
|
41
|
-
*/
|
|
42
|
-
ToModifiedDate?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Filters according to the object’s `Name`.
|
|
45
|
-
*/
|
|
46
|
-
NameFilter?: NameFilter;
|
|
47
|
-
/**
|
|
48
|
-
* Filters according to the object’s `Name`.
|
|
49
|
-
*/
|
|
50
|
-
NameRangeFilter?: NameRangeFilter;
|
|
51
|
-
TotalBalanceFilter?: TotalBalanceFilter;
|
|
52
|
-
/**
|
|
53
|
-
* Filters by the specified currency.
|
|
54
|
-
*/
|
|
55
|
-
CurrencyFilter?: CurrencyFilter;
|
|
56
|
-
ClassFilter?: ClassFilter;
|
|
57
|
-
/**
|
|
58
|
-
* You use this if you want to limit the data that will be returned in the
|
|
59
|
-
* response. In this list, you specify the name of each top-level element or
|
|
60
|
-
* aggregate that you want to be returned in the response to the request. You
|
|
61
|
-
* cannot specify fields within an aggregate, for example, you cannot specify
|
|
62
|
-
* a `City` within an `Address`: you must specify Address and will get the
|
|
63
|
-
* entire address. The names specified in the list are not parsed, so you must
|
|
64
|
-
* be especially careful to supply valid names, properly cased. No error is
|
|
65
|
-
* returned in the status code if you specify an invalid name. Notice that if
|
|
66
|
-
* you want to return custom data or private data extensions, you must specify
|
|
67
|
-
* the DataExtRet element and you must supply the `OwnerID` set to either a
|
|
68
|
-
* value of 0 (custom data) or the `GUID` for the private data.
|
|
69
|
-
*/
|
|
70
|
-
IncludeRetElement?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Zero or more `OwnerID` values. `OwnerID` refers to the owner of a data
|
|
73
|
-
* extension: If `OwnerID` is 0, this is a public data extension, also known
|
|
74
|
-
* as a custom field. Custom fields appear in the QuickBooks UI.
|
|
75
|
-
*
|
|
76
|
-
* If `OwnerID` is a GUID, for example
|
|
77
|
-
* `{6B063959-81B0-4622-85D6-F548C8CCB517}`, this field is a private data
|
|
78
|
-
* extension defined by an integrated application. Private data extensions do
|
|
79
|
-
* not appear in the QuickBooks UI.
|
|
80
|
-
*
|
|
81
|
-
* Note that `OwnerID` values are not case-sensitive, meaning that if you
|
|
82
|
-
* enter an `OwnerID` value with lower-case letters, the value will be saved
|
|
83
|
-
* and returned with upper-case letters.
|
|
84
|
-
*
|
|
85
|
-
* When you share a private data extension with another application, the other
|
|
86
|
-
* application must know both the `OwnerID` and the `DataExtName`, as these
|
|
87
|
-
* together form a data extension’s unique name.
|
|
88
|
-
*/
|
|
89
|
-
OwnerID?: string;
|
|
90
|
-
}
|
|
91
|
-
export interface CustomerQueryRs {
|
|
92
|
-
CustomerRet?: CustomerRet;
|
|
93
|
-
}
|
|
94
|
-
export interface CustomerRet {
|
|
95
|
-
ListID: string;
|
|
96
|
-
TimeCreated: string;
|
|
97
|
-
TimeModified: string;
|
|
98
|
-
EditSequence: string;
|
|
99
|
-
Name: string;
|
|
100
|
-
FullName: string;
|
|
101
|
-
IsActive?: boolean;
|
|
102
|
-
ClassRef?: ClassRef;
|
|
103
|
-
ParentRef?: ParentRef;
|
|
104
|
-
Sublevel: number;
|
|
105
|
-
CompanyName?: string;
|
|
106
|
-
Salutation?: string;
|
|
107
|
-
FirstName?: string;
|
|
108
|
-
MiddleName?: string;
|
|
109
|
-
LastName?: string;
|
|
110
|
-
JobTitle?: string;
|
|
111
|
-
BillAddress?: BillAddress;
|
|
112
|
-
BillAddressBlock?: BillAddressBlock;
|
|
113
|
-
ShipAddress?: ShipAddress;
|
|
114
|
-
ShipAddressBlock?: ShipAddressBlock;
|
|
115
|
-
ShipToAddress?: ShipToAddress;
|
|
116
|
-
Phone?: string;
|
|
117
|
-
AltPhone?: string;
|
|
118
|
-
Fax?: string;
|
|
119
|
-
Email?: string;
|
|
120
|
-
Cc?: string;
|
|
121
|
-
Contact?: string;
|
|
122
|
-
AltContact?: string;
|
|
123
|
-
AdditionalContactRef?: AdditionalContactRef;
|
|
124
|
-
ContactsRet?: ContactsRet;
|
|
125
|
-
CustomerTypeRef?: CustomerTypeRef;
|
|
126
|
-
TermsRef?: TermsRef;
|
|
127
|
-
SalesRepRef?: SalesRepRef;
|
|
128
|
-
Balance?: string;
|
|
129
|
-
TotalBalance?: string;
|
|
130
|
-
SalesTaxCodeRef?: SalesTaxCodeRef;
|
|
131
|
-
ItemSalesTaxRef?: ItemSalesTaxRef;
|
|
132
|
-
SalesTaxCountry?: SalesTaxCountry;
|
|
133
|
-
ResaleNumber?: string;
|
|
134
|
-
AccountNumber?: string;
|
|
135
|
-
CreditLimit?: string;
|
|
136
|
-
PreferredPaymentMethodRef?: PreferredPaymentMethodRef;
|
|
137
|
-
CreditCardInfo?: CreditCardInfo;
|
|
138
|
-
JobStatus?: JobStatus;
|
|
139
|
-
JobStartDate?: string;
|
|
140
|
-
JobProjectedEndDate?: string;
|
|
141
|
-
JobEndDate?: string;
|
|
142
|
-
JobDesc?: string;
|
|
143
|
-
JobTypeRef?: JobTypeRef;
|
|
144
|
-
Notes?: string;
|
|
145
|
-
AdditionalNotesRet?: AdditionalNotesRet;
|
|
146
|
-
PreferredDeliveryMethod?: PreferredDeliveryMethod;
|
|
147
|
-
PriceLevelRef?: PriceLevelRef;
|
|
148
|
-
ExternalGUID?: string;
|
|
149
|
-
TaxRegistrationNumber?: string;
|
|
150
|
-
CurrencyRef?: CurrencyRef;
|
|
151
|
-
DataExtRet?: DataExtRet;
|
|
152
|
-
}
|
|
153
|
-
interface BillAddress {
|
|
154
|
-
Addr1?: string;
|
|
155
|
-
Addr2?: string;
|
|
156
|
-
Addr3?: string;
|
|
157
|
-
Addr4?: string;
|
|
158
|
-
Addr5?: string;
|
|
159
|
-
City?: string;
|
|
160
|
-
State?: string;
|
|
161
|
-
PostalCode?: string;
|
|
162
|
-
Country?: string;
|
|
163
|
-
Note?: string;
|
|
164
|
-
}
|
|
165
|
-
interface BillAddressBlock {
|
|
166
|
-
Addr1?: string;
|
|
167
|
-
Addr2?: string;
|
|
168
|
-
Addr3?: string;
|
|
169
|
-
Addr4?: string;
|
|
170
|
-
Addr5?: string;
|
|
171
|
-
}
|
|
172
|
-
interface ShipAddressBlock {
|
|
173
|
-
Addr1?: string;
|
|
174
|
-
Addr2?: string;
|
|
175
|
-
Addr3?: string;
|
|
176
|
-
Addr4?: string;
|
|
177
|
-
Addr5?: string;
|
|
178
|
-
}
|
|
179
|
-
interface ShipToAddress {
|
|
180
|
-
Addr1?: string;
|
|
181
|
-
Addr2?: string;
|
|
182
|
-
Addr3?: string;
|
|
183
|
-
Addr4?: string;
|
|
184
|
-
Addr5?: string;
|
|
185
|
-
City?: string;
|
|
186
|
-
State?: string;
|
|
187
|
-
PostalCode?: string;
|
|
188
|
-
Country?: string;
|
|
189
|
-
Note?: string;
|
|
190
|
-
DefaultShipTo?: boolean;
|
|
191
|
-
}
|
|
192
|
-
interface CustomerTypeRef {
|
|
193
|
-
ListID?: string;
|
|
194
|
-
FullName?: string;
|
|
195
|
-
}
|
|
196
|
-
interface SalesRepRef {
|
|
197
|
-
ListID?: string;
|
|
198
|
-
FullName?: string;
|
|
199
|
-
}
|
|
200
|
-
interface ItemSalesTaxRef {
|
|
201
|
-
ListID?: string;
|
|
202
|
-
FullName?: string;
|
|
203
|
-
}
|
|
204
|
-
interface PreferredPaymentMethodRef {
|
|
205
|
-
ListID?: string;
|
|
206
|
-
FullName?: string;
|
|
207
|
-
}
|
|
208
|
-
interface CreditCardInfo {
|
|
209
|
-
CreditCardNumber?: string;
|
|
210
|
-
ExpirationMonth?: number;
|
|
211
|
-
ExpirationYear?: number;
|
|
212
|
-
NameOnCard?: string;
|
|
213
|
-
CreditCardAddress?: string;
|
|
214
|
-
CreditCardPostalCode?: string;
|
|
215
|
-
}
|
|
216
|
-
declare type JobStatus = "Awarded" | "Closed" | "InProgress" | "None" | "NotAwarded" | "Pending";
|
|
217
|
-
interface JobTypeRef {
|
|
218
|
-
ListID?: string;
|
|
219
|
-
FullName?: string;
|
|
220
|
-
}
|
|
221
|
-
declare type PreferredDeliveryMethod = "Email" | "Fax" | "None";
|
|
222
|
-
interface PriceLevelRef {
|
|
223
|
-
ListID?: string;
|
|
224
|
-
FullName?: string;
|
|
225
|
-
}
|
|
226
|
-
export {};
|