truflow 0.0.139 → 0.0.141
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/IOrder.d.ts +14 -2
- package/package.json +15 -15
- package/src/API/Allmoxy/IAnnouncement.ts +41 -41
- package/src/API/Allmoxy/ICompany.ts +199 -199
- package/src/API/Allmoxy/IGeneric.ts +111 -111
- package/src/API/Allmoxy/IInventoryItem.ts +56 -56
- package/src/API/Allmoxy/IInventoryOrder.ts +43 -43
- package/src/API/Allmoxy/ILocation.ts +19 -19
- package/src/API/Allmoxy/IOrder.ts +89 -89
- package/src/API/Allmoxy/IOrderProductItems.ts +92 -92
- package/src/API/Allmoxy/IOrderProducts.ts +46 -46
- package/src/API/Allmoxy/IProduct.ts +88 -88
- package/src/API/Allmoxy/IProductAttribute.ts +21 -21
- package/src/API/Allmoxy/IProductAttributeOptions.ts +30 -30
- package/src/API/Allmoxy/IProductProductAttribute.ts +23 -23
- package/src/API/Allmoxy/ITrigger.ts +52 -52
- package/src/API/Allmoxy/index.ts +14 -14
- package/src/Classes/ICRUDRouter.ts +6 -6
- package/src/Classes/ILogger.ts +17 -17
- package/src/Events/IDateEntryMoved.ts +13 -13
- package/src/Events/INegativeValue.ts +10 -10
- package/src/Events/IOrderDetails.ts +12 -12
- package/src/Events/IOrderMoved.ts +14 -14
- package/src/Events/IOrderProcessed.ts +6 -6
- package/src/Helpers/IAdministration.ts +9 -9
- package/src/Helpers/IAllmoxy.ts +4 -4
- package/src/Helpers/IEvents.ts +23 -23
- package/src/Helpers/IExporters.ts +45 -45
- package/src/Helpers/IOrders/IMoveDateEntry.ts +21 -21
- package/src/Helpers/IOrders/IMoveOrder.ts +28 -28
- package/src/Helpers/IOrders/IUpdateFullDailyTotal.ts +13 -13
- package/src/Helpers/IOrders/IUpdateIndividualDailyTotal.ts +8 -8
- package/src/Helpers/IOrders/index.ts +10 -10
- package/src/Helpers/ITotals.ts +16 -16
- package/src/Helpers/IZapier/index.ts +54 -54
- package/src/IAllmoxy.ts +12 -12
- package/src/IConfig.ts +11 -11
- package/src/IDailyTotal.ts +9 -9
- package/src/IEvent.ts +21 -21
- package/src/IExporter.ts +20 -20
- package/src/IExpress.ts +14 -14
- package/src/IIntegration.ts +30 -30
- package/src/IJWT.ts +4 -4
- package/src/IMailCache.ts +19 -19
- package/src/INotification.ts +11 -11
- package/src/IOrder.ts +41 -27
- package/src/IScript.ts +10 -10
- package/src/ISetting.ts +83 -83
- package/src/IUser.ts +13 -13
- package/src/IWebsocket.ts +7 -7
- package/src/Routes/IOrderRoutes.ts +37 -37
- package/src/Routes/IZapierRoutes.ts +12 -12
- package/src/Templates/IDailyTotals.ts +4 -4
- package/src/index.ts +28 -28
- package/tsconfig.json +11 -11
package/dist/IOrder.d.ts
CHANGED
|
@@ -22,7 +22,18 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Document } from "mongoose";
|
|
25
|
+
import { Document, Types } from "mongoose";
|
|
26
|
+
export interface IProductAttribute {
|
|
27
|
+
attributeId: number;
|
|
28
|
+
value: string;
|
|
29
|
+
savedAttributeId: Types.ObjectId;
|
|
30
|
+
}
|
|
31
|
+
export interface IAllmoxyData {
|
|
32
|
+
groupId?: number;
|
|
33
|
+
opId?: number;
|
|
34
|
+
opiId?: number;
|
|
35
|
+
productAttributes?: IProductAttribute[];
|
|
36
|
+
}
|
|
26
37
|
export interface IDateEntry {
|
|
27
38
|
_id: string;
|
|
28
39
|
quantity: number;
|
|
@@ -31,6 +42,7 @@ export interface IDateEntry {
|
|
|
31
42
|
startDate: string;
|
|
32
43
|
hasStarted: boolean;
|
|
33
44
|
highlight: boolean;
|
|
45
|
+
allmoxyData?: IAllmoxyData;
|
|
34
46
|
}
|
|
35
47
|
export type IOrder = ILeanOrder & Document;
|
|
36
48
|
export interface ILeanOrder {
|
|
@@ -41,7 +53,7 @@ export interface ILeanOrder {
|
|
|
41
53
|
shipDate: string;
|
|
42
54
|
requestedShipDate: string;
|
|
43
55
|
companyId?: number;
|
|
44
|
-
summary
|
|
56
|
+
summary?: string;
|
|
45
57
|
dateEntries: IDateEntry[];
|
|
46
58
|
orderTags: string[];
|
|
47
59
|
companyTags: string[];
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "truflow",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "./dist/index.js",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@types/express": "^4.17.17",
|
|
11
|
-
"@types/luxon": "^3.3.0",
|
|
12
|
-
"mongoose": "^7.3.4",
|
|
13
|
-
"typescript": "^5.1.6"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "truflow",
|
|
3
|
+
"version": "0.0.141",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@types/express": "^4.17.17",
|
|
11
|
+
"@types/luxon": "^3.3.0",
|
|
12
|
+
"mongoose": "^7.3.4",
|
|
13
|
+
"typescript": "^5.1.6"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export interface IAnnouncement {
|
|
2
|
-
entered_by_id: string;
|
|
3
|
-
entered_date: string;
|
|
4
|
-
expired_date?: string;
|
|
5
|
-
announcement: string;
|
|
6
|
-
hide_when_expired?: boolean;
|
|
7
|
-
b2b?: boolean;
|
|
8
|
-
contacts?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface IAnnouncementResponse {
|
|
12
|
-
announcement_id: number;
|
|
13
|
-
announcement_info_set: [IAnnouncementSet];
|
|
14
|
-
entered_by_id: string;
|
|
15
|
-
entered_date: string;
|
|
16
|
-
expired_date: string;
|
|
17
|
-
announcement: string;
|
|
18
|
-
hide_when_expired: boolean;
|
|
19
|
-
b2b: boolean;
|
|
20
|
-
timestamp: string;
|
|
21
|
-
createdby: string;
|
|
22
|
-
createdbyid: number;
|
|
23
|
-
createddate: string;
|
|
24
|
-
updatedby: string;
|
|
25
|
-
updatedbyid: number;
|
|
26
|
-
updateddate: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface IAnnouncementSet {
|
|
30
|
-
announcement_id: number;
|
|
31
|
-
announcement_info_id: number;
|
|
32
|
-
contact_id: number;
|
|
33
|
-
createdby: string;
|
|
34
|
-
createdbyid: number;
|
|
35
|
-
createddate: string;
|
|
36
|
-
dismissed: number;
|
|
37
|
-
timestamp: string;
|
|
38
|
-
updatedby: string;
|
|
39
|
-
updatedbyid: number;
|
|
40
|
-
updateddate: string;
|
|
41
|
-
}
|
|
1
|
+
export interface IAnnouncement {
|
|
2
|
+
entered_by_id: string;
|
|
3
|
+
entered_date: string;
|
|
4
|
+
expired_date?: string;
|
|
5
|
+
announcement: string;
|
|
6
|
+
hide_when_expired?: boolean;
|
|
7
|
+
b2b?: boolean;
|
|
8
|
+
contacts?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface IAnnouncementResponse {
|
|
12
|
+
announcement_id: number;
|
|
13
|
+
announcement_info_set: [IAnnouncementSet];
|
|
14
|
+
entered_by_id: string;
|
|
15
|
+
entered_date: string;
|
|
16
|
+
expired_date: string;
|
|
17
|
+
announcement: string;
|
|
18
|
+
hide_when_expired: boolean;
|
|
19
|
+
b2b: boolean;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
createdby: string;
|
|
22
|
+
createdbyid: number;
|
|
23
|
+
createddate: string;
|
|
24
|
+
updatedby: string;
|
|
25
|
+
updatedbyid: number;
|
|
26
|
+
updateddate: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface IAnnouncementSet {
|
|
30
|
+
announcement_id: number;
|
|
31
|
+
announcement_info_id: number;
|
|
32
|
+
contact_id: number;
|
|
33
|
+
createdby: string;
|
|
34
|
+
createdbyid: number;
|
|
35
|
+
createddate: string;
|
|
36
|
+
dismissed: number;
|
|
37
|
+
timestamp: string;
|
|
38
|
+
updatedby: string;
|
|
39
|
+
updatedbyid: number;
|
|
40
|
+
updateddate: string;
|
|
41
|
+
}
|
|
@@ -1,199 +1,199 @@
|
|
|
1
|
-
export interface ICompany {
|
|
2
|
-
/**
|
|
3
|
-
* Indicates whether the company is an individual or business
|
|
4
|
-
*/
|
|
5
|
-
company_type: "individual" | "business";
|
|
6
|
-
/**
|
|
7
|
-
* An email address associated with the company for correspondence
|
|
8
|
-
*/
|
|
9
|
-
email: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the company.
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* A website assocaited with the company for coorespondences.
|
|
16
|
-
*/
|
|
17
|
-
website: string;
|
|
18
|
-
/**
|
|
19
|
-
* Indicates whether the company is:
|
|
20
|
-
* 0 = inactive
|
|
21
|
-
* 1 = active
|
|
22
|
-
* 2 = prospective
|
|
23
|
-
*/
|
|
24
|
-
status: 0 | 1 | 2;
|
|
25
|
-
/**
|
|
26
|
-
* Indicates whether the company uses imperial or metric units for measurment.
|
|
27
|
-
*/
|
|
28
|
-
default_units: "imperial" | "metric";
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ICompanyResponse {
|
|
32
|
-
/**
|
|
33
|
-
* The unique identifier of the company.
|
|
34
|
-
*/
|
|
35
|
-
company_id: number;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The name of the company. This may be null if the company name is not provided.
|
|
39
|
-
*/
|
|
40
|
-
name: string | null;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Indicates whether the company is an individual or a business.
|
|
44
|
-
*/
|
|
45
|
-
company_type: "business" | "individual";
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The email address associated with the company. This can be null if the email is not provided.
|
|
49
|
-
*/
|
|
50
|
-
email: string | null;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* The company's website URL. This can be null if the website is not provided.
|
|
54
|
-
*/
|
|
55
|
-
website: string | null;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The company's logo. This can be null if the logo is not provided.
|
|
59
|
-
*/
|
|
60
|
-
logo: string | null;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The unique identifier of the company's primary contact. This can be null if no primary contact is set.
|
|
64
|
-
*/
|
|
65
|
-
primary_contact_id: number | null;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* The contact information for the company's supply order. This can be null if not set.
|
|
69
|
-
*/
|
|
70
|
-
supply_order_contact: string | null;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* A brief text about the company.
|
|
74
|
-
*/
|
|
75
|
-
about_text: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* The custom tax rate applicable to the company. This can be null if no custom tax rate is set.
|
|
79
|
-
*/
|
|
80
|
-
custom_tax_rate: number | null;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Indicates whether the company is exempt from PST (Provincial Sales Tax).
|
|
84
|
-
*/
|
|
85
|
-
pst_exempt: boolean;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* The default shipping method used by the company, represented by an identifier.
|
|
89
|
-
*/
|
|
90
|
-
default_shipping_method: number;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Indicates whether the company has access to the designer.
|
|
94
|
-
*/
|
|
95
|
-
designer_access: boolean;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Indicates whether the company uses imperial or metric units for measurement.
|
|
99
|
-
*/
|
|
100
|
-
default_units: "imperial" | "metric";
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Represents the checkout flow of the company. This can be null if not set.
|
|
104
|
-
*/
|
|
105
|
-
checkout_flow: string | null;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The credit limit set for the company. This can be null if no credit limit is set.
|
|
109
|
-
*/
|
|
110
|
-
credit_limit: number | null;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The build limit set for the company. This can be null if no build limit is set.
|
|
114
|
-
*/
|
|
115
|
-
build_limit: number | null;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* The finance charge applicable to the company. This can be null if no finance charge is set.
|
|
119
|
-
*/
|
|
120
|
-
finance_charge: number | null;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* The charge status of the company. This can be null if no charge status is set.
|
|
124
|
-
*/
|
|
125
|
-
charge_status: string | null;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* The grace period allowed for the company, usually for payments.
|
|
129
|
-
*/
|
|
130
|
-
grace_period: number;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* The discount percentage applicable to the company. This can be null if no discount is set.
|
|
134
|
-
*/
|
|
135
|
-
discount_percent: number | null;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The payment options available to the company. This can be null if no options are set.
|
|
139
|
-
*/
|
|
140
|
-
payment_options: string | null;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The method in which the company receives invoices. This can be null if no method is set.
|
|
144
|
-
*/
|
|
145
|
-
invoice_receipt_method: string | null;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* The data related to the invoice receipt. This is a string representation.
|
|
149
|
-
*/
|
|
150
|
-
invoice_receipt_data: string;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Represents a remote instance associated with the company. This can be null if not set.
|
|
154
|
-
*/
|
|
155
|
-
remote_instance: string | null;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Indicates the status of the company:
|
|
159
|
-
* 0 = inactive
|
|
160
|
-
* 1 = active
|
|
161
|
-
* 2 = prospective
|
|
162
|
-
*/
|
|
163
|
-
status: 0 | 1 | 2;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* The timestamp when the company data was last updated.
|
|
167
|
-
*/
|
|
168
|
-
timestamp: string;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The date when the company was created.
|
|
172
|
-
*/
|
|
173
|
-
createddate: string;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* The last user who updated the company data.
|
|
177
|
-
*/
|
|
178
|
-
updatedby: string;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* The ID of the last user who updated the company data.
|
|
182
|
-
*/
|
|
183
|
-
updatedbyid: string;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* The last date when the company data was updated.
|
|
187
|
-
*/
|
|
188
|
-
updateddate: string;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* The user who created the company data.
|
|
192
|
-
*/
|
|
193
|
-
createdby: string;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* The ID of the user who created the company data.
|
|
197
|
-
*/
|
|
198
|
-
createdbyid: number;
|
|
199
|
-
}
|
|
1
|
+
export interface ICompany {
|
|
2
|
+
/**
|
|
3
|
+
* Indicates whether the company is an individual or business
|
|
4
|
+
*/
|
|
5
|
+
company_type: "individual" | "business";
|
|
6
|
+
/**
|
|
7
|
+
* An email address associated with the company for correspondence
|
|
8
|
+
*/
|
|
9
|
+
email: string;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the company.
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* A website assocaited with the company for coorespondences.
|
|
16
|
+
*/
|
|
17
|
+
website: string;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether the company is:
|
|
20
|
+
* 0 = inactive
|
|
21
|
+
* 1 = active
|
|
22
|
+
* 2 = prospective
|
|
23
|
+
*/
|
|
24
|
+
status: 0 | 1 | 2;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates whether the company uses imperial or metric units for measurment.
|
|
27
|
+
*/
|
|
28
|
+
default_units: "imperial" | "metric";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ICompanyResponse {
|
|
32
|
+
/**
|
|
33
|
+
* The unique identifier of the company.
|
|
34
|
+
*/
|
|
35
|
+
company_id: number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The name of the company. This may be null if the company name is not provided.
|
|
39
|
+
*/
|
|
40
|
+
name: string | null;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Indicates whether the company is an individual or a business.
|
|
44
|
+
*/
|
|
45
|
+
company_type: "business" | "individual";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The email address associated with the company. This can be null if the email is not provided.
|
|
49
|
+
*/
|
|
50
|
+
email: string | null;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The company's website URL. This can be null if the website is not provided.
|
|
54
|
+
*/
|
|
55
|
+
website: string | null;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The company's logo. This can be null if the logo is not provided.
|
|
59
|
+
*/
|
|
60
|
+
logo: string | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The unique identifier of the company's primary contact. This can be null if no primary contact is set.
|
|
64
|
+
*/
|
|
65
|
+
primary_contact_id: number | null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The contact information for the company's supply order. This can be null if not set.
|
|
69
|
+
*/
|
|
70
|
+
supply_order_contact: string | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A brief text about the company.
|
|
74
|
+
*/
|
|
75
|
+
about_text: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The custom tax rate applicable to the company. This can be null if no custom tax rate is set.
|
|
79
|
+
*/
|
|
80
|
+
custom_tax_rate: number | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Indicates whether the company is exempt from PST (Provincial Sales Tax).
|
|
84
|
+
*/
|
|
85
|
+
pst_exempt: boolean;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The default shipping method used by the company, represented by an identifier.
|
|
89
|
+
*/
|
|
90
|
+
default_shipping_method: number;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Indicates whether the company has access to the designer.
|
|
94
|
+
*/
|
|
95
|
+
designer_access: boolean;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Indicates whether the company uses imperial or metric units for measurement.
|
|
99
|
+
*/
|
|
100
|
+
default_units: "imperial" | "metric";
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Represents the checkout flow of the company. This can be null if not set.
|
|
104
|
+
*/
|
|
105
|
+
checkout_flow: string | null;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The credit limit set for the company. This can be null if no credit limit is set.
|
|
109
|
+
*/
|
|
110
|
+
credit_limit: number | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The build limit set for the company. This can be null if no build limit is set.
|
|
114
|
+
*/
|
|
115
|
+
build_limit: number | null;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The finance charge applicable to the company. This can be null if no finance charge is set.
|
|
119
|
+
*/
|
|
120
|
+
finance_charge: number | null;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The charge status of the company. This can be null if no charge status is set.
|
|
124
|
+
*/
|
|
125
|
+
charge_status: string | null;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The grace period allowed for the company, usually for payments.
|
|
129
|
+
*/
|
|
130
|
+
grace_period: number;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The discount percentage applicable to the company. This can be null if no discount is set.
|
|
134
|
+
*/
|
|
135
|
+
discount_percent: number | null;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The payment options available to the company. This can be null if no options are set.
|
|
139
|
+
*/
|
|
140
|
+
payment_options: string | null;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The method in which the company receives invoices. This can be null if no method is set.
|
|
144
|
+
*/
|
|
145
|
+
invoice_receipt_method: string | null;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The data related to the invoice receipt. This is a string representation.
|
|
149
|
+
*/
|
|
150
|
+
invoice_receipt_data: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Represents a remote instance associated with the company. This can be null if not set.
|
|
154
|
+
*/
|
|
155
|
+
remote_instance: string | null;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Indicates the status of the company:
|
|
159
|
+
* 0 = inactive
|
|
160
|
+
* 1 = active
|
|
161
|
+
* 2 = prospective
|
|
162
|
+
*/
|
|
163
|
+
status: 0 | 1 | 2;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The timestamp when the company data was last updated.
|
|
167
|
+
*/
|
|
168
|
+
timestamp: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The date when the company was created.
|
|
172
|
+
*/
|
|
173
|
+
createddate: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The last user who updated the company data.
|
|
177
|
+
*/
|
|
178
|
+
updatedby: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The ID of the last user who updated the company data.
|
|
182
|
+
*/
|
|
183
|
+
updatedbyid: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The last date when the company data was updated.
|
|
187
|
+
*/
|
|
188
|
+
updateddate: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The user who created the company data.
|
|
192
|
+
*/
|
|
193
|
+
createdby: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The ID of the user who created the company data.
|
|
197
|
+
*/
|
|
198
|
+
createdbyid: number;
|
|
199
|
+
}
|