@managespace/sdk 0.0.24 → 0.0.25
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.
|
@@ -9,14 +9,22 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { NoteResponse } from './note-response';
|
|
13
|
+
import type { CommunicationResponse } from './communication-response';
|
|
14
|
+
import type { ContactResponse } from './contact-response';
|
|
12
15
|
import type { OrgResponse } from './org-response';
|
|
13
|
-
import type { CustomCreateContactWithCustomer } from './custom-create-contact-with-customer';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
16
18
|
* @export
|
|
17
19
|
* @interface CustomCustomerResponse
|
|
18
20
|
*/
|
|
19
21
|
export interface CustomCustomerResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Contact ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomCustomerResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
20
28
|
/**
|
|
21
29
|
* Full name
|
|
22
30
|
* @type {string}
|
|
@@ -28,133 +36,151 @@ export interface CustomCustomerResponse {
|
|
|
28
36
|
* @type {string}
|
|
29
37
|
* @memberof CustomCustomerResponse
|
|
30
38
|
*/
|
|
31
|
-
description
|
|
39
|
+
description: string | null;
|
|
32
40
|
/**
|
|
33
41
|
* Customer status
|
|
34
42
|
* @type {string}
|
|
35
43
|
* @memberof CustomCustomerResponse
|
|
36
44
|
*/
|
|
37
|
-
status
|
|
45
|
+
status: string;
|
|
46
|
+
/**
|
|
47
|
+
* When the record was created
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof CustomCustomerResponse
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
* When the record was last updated
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof CustomCustomerResponse
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {OrgResponse}
|
|
61
|
+
* @memberof CustomCustomerResponse
|
|
62
|
+
*/
|
|
63
|
+
org?: OrgResponse;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CustomCustomerResponse
|
|
68
|
+
*/
|
|
69
|
+
orgId: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<ContactResponse>}
|
|
73
|
+
* @memberof CustomCustomerResponse
|
|
74
|
+
*/
|
|
75
|
+
contacts?: Array<ContactResponse>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<NoteResponse>}
|
|
79
|
+
* @memberof CustomCustomerResponse
|
|
80
|
+
*/
|
|
81
|
+
note?: Array<NoteResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* External ID
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof CustomCustomerResponse
|
|
86
|
+
*/
|
|
87
|
+
externalId: string | null;
|
|
38
88
|
/**
|
|
39
89
|
* Balance
|
|
40
90
|
* @type {number}
|
|
41
91
|
* @memberof CustomCustomerResponse
|
|
42
92
|
*/
|
|
43
|
-
balance
|
|
93
|
+
balance: number;
|
|
44
94
|
/**
|
|
45
95
|
* autoPay
|
|
46
96
|
* @type {boolean}
|
|
47
97
|
* @memberof CustomCustomerResponse
|
|
48
98
|
*/
|
|
49
|
-
autoPay
|
|
99
|
+
autoPay: boolean;
|
|
50
100
|
/**
|
|
51
101
|
* Billing cycle day
|
|
52
102
|
* @type {number}
|
|
53
103
|
* @memberof CustomCustomerResponse
|
|
54
104
|
*/
|
|
55
|
-
billingCycleDay
|
|
105
|
+
billingCycleDay: number;
|
|
56
106
|
/**
|
|
57
107
|
* Currency
|
|
58
108
|
* @type {string}
|
|
59
109
|
* @memberof CustomCustomerResponse
|
|
60
110
|
*/
|
|
61
|
-
currency
|
|
111
|
+
currency: string;
|
|
62
112
|
/**
|
|
63
113
|
* Payment gateway
|
|
64
114
|
* @type {string}
|
|
65
115
|
* @memberof CustomCustomerResponse
|
|
66
116
|
*/
|
|
67
|
-
paymentGateway
|
|
117
|
+
paymentGateway: string;
|
|
68
118
|
/**
|
|
69
119
|
* Edit auto pay
|
|
70
120
|
* @type {boolean}
|
|
71
121
|
* @memberof CustomCustomerResponse
|
|
72
122
|
*/
|
|
73
|
-
editAutoPay
|
|
123
|
+
editAutoPay: boolean;
|
|
74
124
|
/**
|
|
75
125
|
* Payment terms
|
|
76
126
|
* @type {string}
|
|
77
127
|
* @memberof CustomCustomerResponse
|
|
78
128
|
*/
|
|
79
|
-
paymentTerms
|
|
129
|
+
paymentTerms: string;
|
|
80
130
|
/**
|
|
81
131
|
* Tax exempt
|
|
82
132
|
* @type {boolean}
|
|
83
133
|
* @memberof CustomCustomerResponse
|
|
84
134
|
*/
|
|
85
|
-
taxExempt
|
|
135
|
+
taxExempt: boolean;
|
|
86
136
|
/**
|
|
87
137
|
* ACH Enabled
|
|
88
138
|
* @type {boolean}
|
|
89
139
|
* @memberof CustomCustomerResponse
|
|
90
140
|
*/
|
|
91
|
-
achEnabled
|
|
141
|
+
achEnabled: boolean;
|
|
92
142
|
/**
|
|
93
143
|
* Email Preference
|
|
94
144
|
* @type {boolean}
|
|
95
145
|
* @memberof CustomCustomerResponse
|
|
96
146
|
*/
|
|
97
|
-
emailPreference
|
|
147
|
+
emailPreference: boolean;
|
|
98
148
|
/**
|
|
99
149
|
* Print Preference
|
|
100
150
|
* @type {boolean}
|
|
101
151
|
* @memberof CustomCustomerResponse
|
|
102
152
|
*/
|
|
103
|
-
printPreference
|
|
153
|
+
printPreference: boolean;
|
|
104
154
|
/**
|
|
105
155
|
* Credit Enabled
|
|
106
156
|
* @type {boolean}
|
|
107
157
|
* @memberof CustomCustomerResponse
|
|
108
158
|
*/
|
|
109
|
-
creditEnabled
|
|
159
|
+
creditEnabled: boolean;
|
|
110
160
|
/**
|
|
111
161
|
* billing contact ID
|
|
112
162
|
* @type {string}
|
|
113
163
|
* @memberof CustomCustomerResponse
|
|
114
164
|
*/
|
|
115
|
-
billingContactId
|
|
165
|
+
billingContactId: string | null;
|
|
116
166
|
/**
|
|
117
167
|
* shipping contact ID
|
|
118
168
|
* @type {string}
|
|
119
169
|
* @memberof CustomCustomerResponse
|
|
120
170
|
*/
|
|
121
|
-
shippingContactId
|
|
171
|
+
shippingContactId: string | null;
|
|
122
172
|
/**
|
|
123
|
-
*
|
|
124
|
-
* @type {Array<
|
|
173
|
+
*
|
|
174
|
+
* @type {Array<CommunicationResponse>}
|
|
125
175
|
* @memberof CustomCustomerResponse
|
|
126
176
|
*/
|
|
127
|
-
|
|
177
|
+
communications?: Array<CommunicationResponse>;
|
|
128
178
|
/**
|
|
129
179
|
* Tennant ID.
|
|
130
180
|
* @type {string}
|
|
131
181
|
* @memberof CustomCustomerResponse
|
|
132
182
|
*/
|
|
133
183
|
tenantId: string;
|
|
134
|
-
/**
|
|
135
|
-
* Product ID
|
|
136
|
-
* @type {string}
|
|
137
|
-
* @memberof CustomCustomerResponse
|
|
138
|
-
*/
|
|
139
|
-
id: string;
|
|
140
|
-
/**
|
|
141
|
-
* The product id stored in the external sytem
|
|
142
|
-
* @type {string}
|
|
143
|
-
* @memberof CustomCustomerResponse
|
|
144
|
-
*/
|
|
145
|
-
externalId: string | null;
|
|
146
|
-
/**
|
|
147
|
-
*
|
|
148
|
-
* @type {OrgResponse}
|
|
149
|
-
* @memberof CustomCustomerResponse
|
|
150
|
-
*/
|
|
151
|
-
org?: OrgResponse;
|
|
152
|
-
/**
|
|
153
|
-
*
|
|
154
|
-
* @type {string}
|
|
155
|
-
* @memberof CustomCustomerResponse
|
|
156
|
-
*/
|
|
157
|
-
orgId: string;
|
|
158
184
|
}
|
|
159
185
|
/**
|
|
160
186
|
* Check if a given object implements the CustomCustomerResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-customer-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/custom-customer-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"custom-customer-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/custom-customer-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAOtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC9C;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAyB/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAkCnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmClI"}
|
|
@@ -14,24 +14,60 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CustomCustomerResponseToJSONTyped = exports.CustomCustomerResponseToJSON = exports.CustomCustomerResponseFromJSONTyped = exports.CustomCustomerResponseFromJSON = exports.instanceOfCustomCustomerResponse = void 0;
|
|
17
|
+
const note_response_1 = require("./note-response");
|
|
18
|
+
const communication_response_1 = require("./communication-response");
|
|
19
|
+
const contact_response_1 = require("./contact-response");
|
|
17
20
|
const org_response_1 = require("./org-response");
|
|
18
|
-
const custom_create_contact_with_customer_1 = require("./custom-create-contact-with-customer");
|
|
19
21
|
/**
|
|
20
22
|
* Check if a given object implements the CustomCustomerResponse interface.
|
|
21
23
|
*/
|
|
22
24
|
function instanceOfCustomCustomerResponse(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
23
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
24
28
|
return false;
|
|
25
|
-
if (!('
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
26
30
|
return false;
|
|
27
|
-
if (!('
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
32
|
return false;
|
|
29
|
-
if (!('
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
34
|
return false;
|
|
31
|
-
if (!('
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
32
36
|
return false;
|
|
33
37
|
if (!('orgId' in value) || value['orgId'] === undefined)
|
|
34
38
|
return false;
|
|
39
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('balance' in value) || value['balance'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('autoPay' in value) || value['autoPay'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('billingCycleDay' in value) || value['billingCycleDay'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('paymentGateway' in value) || value['paymentGateway'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('editAutoPay' in value) || value['editAutoPay'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('taxExempt' in value) || value['taxExempt'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('achEnabled' in value) || value['achEnabled'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('emailPreference' in value) || value['emailPreference'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('printPreference' in value) || value['printPreference'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('creditEnabled' in value) || value['creditEnabled'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('billingContactId' in value) || value['billingContactId'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('shippingContactId' in value) || value['shippingContactId'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
70
|
+
return false;
|
|
35
71
|
return true;
|
|
36
72
|
}
|
|
37
73
|
exports.instanceOfCustomCustomerResponse = instanceOfCustomCustomerResponse;
|
|
@@ -44,29 +80,33 @@ function CustomCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
80
|
return json;
|
|
45
81
|
}
|
|
46
82
|
return {
|
|
47
|
-
'name': json['name'],
|
|
48
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
49
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
50
|
-
'balance': json['balance'] == null ? undefined : json['balance'],
|
|
51
|
-
'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
|
|
52
|
-
'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
|
|
53
|
-
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
54
|
-
'paymentGateway': json['paymentGateway'] == null ? undefined : json['paymentGateway'],
|
|
55
|
-
'editAutoPay': json['editAutoPay'] == null ? undefined : json['editAutoPay'],
|
|
56
|
-
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
57
|
-
'taxExempt': json['taxExempt'] == null ? undefined : json['taxExempt'],
|
|
58
|
-
'achEnabled': json['achEnabled'] == null ? undefined : json['achEnabled'],
|
|
59
|
-
'emailPreference': json['emailPreference'] == null ? undefined : json['emailPreference'],
|
|
60
|
-
'printPreference': json['printPreference'] == null ? undefined : json['printPreference'],
|
|
61
|
-
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
62
|
-
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
63
|
-
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
64
|
-
'contacts': (json['contacts'].map(custom_create_contact_with_customer_1.CustomCreateContactWithCustomerFromJSON)),
|
|
65
|
-
'tenantId': json['tenantId'],
|
|
66
83
|
'id': json['id'],
|
|
67
|
-
'
|
|
84
|
+
'name': json['name'],
|
|
85
|
+
'description': json['description'],
|
|
86
|
+
'status': json['status'],
|
|
87
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
88
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
68
89
|
'org': json['org'] == null ? undefined : (0, org_response_1.OrgResponseFromJSON)(json['org']),
|
|
69
90
|
'orgId': json['orgId'],
|
|
91
|
+
'contacts': json['contacts'] == null ? undefined : (json['contacts'].map(contact_response_1.ContactResponseFromJSON)),
|
|
92
|
+
'note': json['note'] == null ? undefined : (json['note'].map(note_response_1.NoteResponseFromJSON)),
|
|
93
|
+
'externalId': json['externalId'],
|
|
94
|
+
'balance': json['balance'],
|
|
95
|
+
'autoPay': json['autoPay'],
|
|
96
|
+
'billingCycleDay': json['billingCycleDay'],
|
|
97
|
+
'currency': json['currency'],
|
|
98
|
+
'paymentGateway': json['paymentGateway'],
|
|
99
|
+
'editAutoPay': json['editAutoPay'],
|
|
100
|
+
'paymentTerms': json['paymentTerms'],
|
|
101
|
+
'taxExempt': json['taxExempt'],
|
|
102
|
+
'achEnabled': json['achEnabled'],
|
|
103
|
+
'emailPreference': json['emailPreference'],
|
|
104
|
+
'printPreference': json['printPreference'],
|
|
105
|
+
'creditEnabled': json['creditEnabled'],
|
|
106
|
+
'billingContactId': json['billingContactId'],
|
|
107
|
+
'shippingContactId': json['shippingContactId'],
|
|
108
|
+
'communications': json['communications'] == null ? undefined : (json['communications'].map(communication_response_1.CommunicationResponseFromJSON)),
|
|
109
|
+
'tenantId': json['tenantId'],
|
|
70
110
|
};
|
|
71
111
|
}
|
|
72
112
|
exports.CustomCustomerResponseFromJSONTyped = CustomCustomerResponseFromJSONTyped;
|
|
@@ -79,9 +119,17 @@ function CustomCustomerResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
119
|
return value;
|
|
80
120
|
}
|
|
81
121
|
return {
|
|
122
|
+
'id': value['id'],
|
|
82
123
|
'name': value['name'],
|
|
83
124
|
'description': value['description'],
|
|
84
125
|
'status': value['status'],
|
|
126
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
127
|
+
'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
|
|
128
|
+
'org': (0, org_response_1.OrgResponseToJSON)(value['org']),
|
|
129
|
+
'orgId': value['orgId'],
|
|
130
|
+
'contacts': value['contacts'] == null ? undefined : (value['contacts'].map(contact_response_1.ContactResponseToJSON)),
|
|
131
|
+
'note': value['note'] == null ? undefined : (value['note'].map(note_response_1.NoteResponseToJSON)),
|
|
132
|
+
'externalId': value['externalId'],
|
|
85
133
|
'balance': value['balance'],
|
|
86
134
|
'autoPay': value['autoPay'],
|
|
87
135
|
'billingCycleDay': value['billingCycleDay'],
|
|
@@ -96,12 +144,8 @@ function CustomCustomerResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
96
144
|
'creditEnabled': value['creditEnabled'],
|
|
97
145
|
'billingContactId': value['billingContactId'],
|
|
98
146
|
'shippingContactId': value['shippingContactId'],
|
|
99
|
-
'
|
|
147
|
+
'communications': value['communications'] == null ? undefined : (value['communications'].map(communication_response_1.CommunicationResponseToJSON)),
|
|
100
148
|
'tenantId': value['tenantId'],
|
|
101
|
-
'id': value['id'],
|
|
102
|
-
'externalId': value['externalId'],
|
|
103
|
-
'org': (0, org_response_1.OrgResponseToJSON)(value['org']),
|
|
104
|
-
'orgId': value['orgId'],
|
|
105
149
|
};
|
|
106
150
|
}
|
|
107
151
|
exports.CustomCustomerResponseToJSONTyped = CustomCustomerResponseToJSONTyped;
|
package/package.json
CHANGED
|
@@ -13,6 +13,27 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { NoteResponse } from './note-response';
|
|
17
|
+
import {
|
|
18
|
+
NoteResponseFromJSON,
|
|
19
|
+
NoteResponseFromJSONTyped,
|
|
20
|
+
NoteResponseToJSON,
|
|
21
|
+
NoteResponseToJSONTyped,
|
|
22
|
+
} from './note-response';
|
|
23
|
+
import type { CommunicationResponse } from './communication-response';
|
|
24
|
+
import {
|
|
25
|
+
CommunicationResponseFromJSON,
|
|
26
|
+
CommunicationResponseFromJSONTyped,
|
|
27
|
+
CommunicationResponseToJSON,
|
|
28
|
+
CommunicationResponseToJSONTyped,
|
|
29
|
+
} from './communication-response';
|
|
30
|
+
import type { ContactResponse } from './contact-response';
|
|
31
|
+
import {
|
|
32
|
+
ContactResponseFromJSON,
|
|
33
|
+
ContactResponseFromJSONTyped,
|
|
34
|
+
ContactResponseToJSON,
|
|
35
|
+
ContactResponseToJSONTyped,
|
|
36
|
+
} from './contact-response';
|
|
16
37
|
import type { OrgResponse } from './org-response';
|
|
17
38
|
import {
|
|
18
39
|
OrgResponseFromJSON,
|
|
@@ -20,13 +41,6 @@ import {
|
|
|
20
41
|
OrgResponseToJSON,
|
|
21
42
|
OrgResponseToJSONTyped,
|
|
22
43
|
} from './org-response';
|
|
23
|
-
import type { CustomCreateContactWithCustomer } from './custom-create-contact-with-customer';
|
|
24
|
-
import {
|
|
25
|
-
CustomCreateContactWithCustomerFromJSON,
|
|
26
|
-
CustomCreateContactWithCustomerFromJSONTyped,
|
|
27
|
-
CustomCreateContactWithCustomerToJSON,
|
|
28
|
-
CustomCreateContactWithCustomerToJSONTyped,
|
|
29
|
-
} from './custom-create-contact-with-customer';
|
|
30
44
|
|
|
31
45
|
/**
|
|
32
46
|
*
|
|
@@ -34,6 +48,12 @@ import {
|
|
|
34
48
|
* @interface CustomCustomerResponse
|
|
35
49
|
*/
|
|
36
50
|
export interface CustomCustomerResponse {
|
|
51
|
+
/**
|
|
52
|
+
* Contact ID
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CustomCustomerResponse
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
37
57
|
/**
|
|
38
58
|
* Full name
|
|
39
59
|
* @type {string}
|
|
@@ -45,145 +65,180 @@ export interface CustomCustomerResponse {
|
|
|
45
65
|
* @type {string}
|
|
46
66
|
* @memberof CustomCustomerResponse
|
|
47
67
|
*/
|
|
48
|
-
description
|
|
68
|
+
description: string | null;
|
|
49
69
|
/**
|
|
50
70
|
* Customer status
|
|
51
71
|
* @type {string}
|
|
52
72
|
* @memberof CustomCustomerResponse
|
|
53
73
|
*/
|
|
54
|
-
status
|
|
74
|
+
status: string;
|
|
75
|
+
/**
|
|
76
|
+
* When the record was created
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof CustomCustomerResponse
|
|
79
|
+
*/
|
|
80
|
+
createdAt: Date;
|
|
81
|
+
/**
|
|
82
|
+
* When the record was last updated
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof CustomCustomerResponse
|
|
85
|
+
*/
|
|
86
|
+
updatedAt: Date | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {OrgResponse}
|
|
90
|
+
* @memberof CustomCustomerResponse
|
|
91
|
+
*/
|
|
92
|
+
org?: OrgResponse;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CustomCustomerResponse
|
|
97
|
+
*/
|
|
98
|
+
orgId: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Array<ContactResponse>}
|
|
102
|
+
* @memberof CustomCustomerResponse
|
|
103
|
+
*/
|
|
104
|
+
contacts?: Array<ContactResponse>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<NoteResponse>}
|
|
108
|
+
* @memberof CustomCustomerResponse
|
|
109
|
+
*/
|
|
110
|
+
note?: Array<NoteResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* External ID
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof CustomCustomerResponse
|
|
115
|
+
*/
|
|
116
|
+
externalId: string | null;
|
|
55
117
|
/**
|
|
56
118
|
* Balance
|
|
57
119
|
* @type {number}
|
|
58
120
|
* @memberof CustomCustomerResponse
|
|
59
121
|
*/
|
|
60
|
-
balance
|
|
122
|
+
balance: number;
|
|
61
123
|
/**
|
|
62
124
|
* autoPay
|
|
63
125
|
* @type {boolean}
|
|
64
126
|
* @memberof CustomCustomerResponse
|
|
65
127
|
*/
|
|
66
|
-
autoPay
|
|
128
|
+
autoPay: boolean;
|
|
67
129
|
/**
|
|
68
130
|
* Billing cycle day
|
|
69
131
|
* @type {number}
|
|
70
132
|
* @memberof CustomCustomerResponse
|
|
71
133
|
*/
|
|
72
|
-
billingCycleDay
|
|
134
|
+
billingCycleDay: number;
|
|
73
135
|
/**
|
|
74
136
|
* Currency
|
|
75
137
|
* @type {string}
|
|
76
138
|
* @memberof CustomCustomerResponse
|
|
77
139
|
*/
|
|
78
|
-
currency
|
|
140
|
+
currency: string;
|
|
79
141
|
/**
|
|
80
142
|
* Payment gateway
|
|
81
143
|
* @type {string}
|
|
82
144
|
* @memberof CustomCustomerResponse
|
|
83
145
|
*/
|
|
84
|
-
paymentGateway
|
|
146
|
+
paymentGateway: string;
|
|
85
147
|
/**
|
|
86
148
|
* Edit auto pay
|
|
87
149
|
* @type {boolean}
|
|
88
150
|
* @memberof CustomCustomerResponse
|
|
89
151
|
*/
|
|
90
|
-
editAutoPay
|
|
152
|
+
editAutoPay: boolean;
|
|
91
153
|
/**
|
|
92
154
|
* Payment terms
|
|
93
155
|
* @type {string}
|
|
94
156
|
* @memberof CustomCustomerResponse
|
|
95
157
|
*/
|
|
96
|
-
paymentTerms
|
|
158
|
+
paymentTerms: string;
|
|
97
159
|
/**
|
|
98
160
|
* Tax exempt
|
|
99
161
|
* @type {boolean}
|
|
100
162
|
* @memberof CustomCustomerResponse
|
|
101
163
|
*/
|
|
102
|
-
taxExempt
|
|
164
|
+
taxExempt: boolean;
|
|
103
165
|
/**
|
|
104
166
|
* ACH Enabled
|
|
105
167
|
* @type {boolean}
|
|
106
168
|
* @memberof CustomCustomerResponse
|
|
107
169
|
*/
|
|
108
|
-
achEnabled
|
|
170
|
+
achEnabled: boolean;
|
|
109
171
|
/**
|
|
110
172
|
* Email Preference
|
|
111
173
|
* @type {boolean}
|
|
112
174
|
* @memberof CustomCustomerResponse
|
|
113
175
|
*/
|
|
114
|
-
emailPreference
|
|
176
|
+
emailPreference: boolean;
|
|
115
177
|
/**
|
|
116
178
|
* Print Preference
|
|
117
179
|
* @type {boolean}
|
|
118
180
|
* @memberof CustomCustomerResponse
|
|
119
181
|
*/
|
|
120
|
-
printPreference
|
|
182
|
+
printPreference: boolean;
|
|
121
183
|
/**
|
|
122
184
|
* Credit Enabled
|
|
123
185
|
* @type {boolean}
|
|
124
186
|
* @memberof CustomCustomerResponse
|
|
125
187
|
*/
|
|
126
|
-
creditEnabled
|
|
188
|
+
creditEnabled: boolean;
|
|
127
189
|
/**
|
|
128
190
|
* billing contact ID
|
|
129
191
|
* @type {string}
|
|
130
192
|
* @memberof CustomCustomerResponse
|
|
131
193
|
*/
|
|
132
|
-
billingContactId
|
|
194
|
+
billingContactId: string | null;
|
|
133
195
|
/**
|
|
134
196
|
* shipping contact ID
|
|
135
197
|
* @type {string}
|
|
136
198
|
* @memberof CustomCustomerResponse
|
|
137
199
|
*/
|
|
138
|
-
shippingContactId
|
|
200
|
+
shippingContactId: string | null;
|
|
139
201
|
/**
|
|
140
|
-
*
|
|
141
|
-
* @type {Array<
|
|
202
|
+
*
|
|
203
|
+
* @type {Array<CommunicationResponse>}
|
|
142
204
|
* @memberof CustomCustomerResponse
|
|
143
205
|
*/
|
|
144
|
-
|
|
206
|
+
communications?: Array<CommunicationResponse>;
|
|
145
207
|
/**
|
|
146
208
|
* Tennant ID.
|
|
147
209
|
* @type {string}
|
|
148
210
|
* @memberof CustomCustomerResponse
|
|
149
211
|
*/
|
|
150
212
|
tenantId: string;
|
|
151
|
-
/**
|
|
152
|
-
* Product ID
|
|
153
|
-
* @type {string}
|
|
154
|
-
* @memberof CustomCustomerResponse
|
|
155
|
-
*/
|
|
156
|
-
id: string;
|
|
157
|
-
/**
|
|
158
|
-
* The product id stored in the external sytem
|
|
159
|
-
* @type {string}
|
|
160
|
-
* @memberof CustomCustomerResponse
|
|
161
|
-
*/
|
|
162
|
-
externalId: string | null;
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {OrgResponse}
|
|
166
|
-
* @memberof CustomCustomerResponse
|
|
167
|
-
*/
|
|
168
|
-
org?: OrgResponse;
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @type {string}
|
|
172
|
-
* @memberof CustomCustomerResponse
|
|
173
|
-
*/
|
|
174
|
-
orgId: string;
|
|
175
213
|
}
|
|
176
214
|
|
|
177
215
|
/**
|
|
178
216
|
* Check if a given object implements the CustomCustomerResponse interface.
|
|
179
217
|
*/
|
|
180
218
|
export function instanceOfCustomCustomerResponse(value: object): value is CustomCustomerResponse {
|
|
181
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
182
|
-
if (!('contacts' in value) || value['contacts'] === undefined) return false;
|
|
183
|
-
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
184
219
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
185
|
-
if (!('
|
|
220
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
221
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
222
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
223
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
224
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
186
225
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
226
|
+
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
227
|
+
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
228
|
+
if (!('autoPay' in value) || value['autoPay'] === undefined) return false;
|
|
229
|
+
if (!('billingCycleDay' in value) || value['billingCycleDay'] === undefined) return false;
|
|
230
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
231
|
+
if (!('paymentGateway' in value) || value['paymentGateway'] === undefined) return false;
|
|
232
|
+
if (!('editAutoPay' in value) || value['editAutoPay'] === undefined) return false;
|
|
233
|
+
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
234
|
+
if (!('taxExempt' in value) || value['taxExempt'] === undefined) return false;
|
|
235
|
+
if (!('achEnabled' in value) || value['achEnabled'] === undefined) return false;
|
|
236
|
+
if (!('emailPreference' in value) || value['emailPreference'] === undefined) return false;
|
|
237
|
+
if (!('printPreference' in value) || value['printPreference'] === undefined) return false;
|
|
238
|
+
if (!('creditEnabled' in value) || value['creditEnabled'] === undefined) return false;
|
|
239
|
+
if (!('billingContactId' in value) || value['billingContactId'] === undefined) return false;
|
|
240
|
+
if (!('shippingContactId' in value) || value['shippingContactId'] === undefined) return false;
|
|
241
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
187
242
|
return true;
|
|
188
243
|
}
|
|
189
244
|
|
|
@@ -197,29 +252,33 @@ export function CustomCustomerResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
197
252
|
}
|
|
198
253
|
return {
|
|
199
254
|
|
|
200
|
-
'name': json['name'],
|
|
201
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
202
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
203
|
-
'balance': json['balance'] == null ? undefined : json['balance'],
|
|
204
|
-
'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
|
|
205
|
-
'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
|
|
206
|
-
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
207
|
-
'paymentGateway': json['paymentGateway'] == null ? undefined : json['paymentGateway'],
|
|
208
|
-
'editAutoPay': json['editAutoPay'] == null ? undefined : json['editAutoPay'],
|
|
209
|
-
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
210
|
-
'taxExempt': json['taxExempt'] == null ? undefined : json['taxExempt'],
|
|
211
|
-
'achEnabled': json['achEnabled'] == null ? undefined : json['achEnabled'],
|
|
212
|
-
'emailPreference': json['emailPreference'] == null ? undefined : json['emailPreference'],
|
|
213
|
-
'printPreference': json['printPreference'] == null ? undefined : json['printPreference'],
|
|
214
|
-
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
215
|
-
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
216
|
-
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
217
|
-
'contacts': ((json['contacts'] as Array<any>).map(CustomCreateContactWithCustomerFromJSON)),
|
|
218
|
-
'tenantId': json['tenantId'],
|
|
219
255
|
'id': json['id'],
|
|
220
|
-
'
|
|
256
|
+
'name': json['name'],
|
|
257
|
+
'description': json['description'],
|
|
258
|
+
'status': json['status'],
|
|
259
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
260
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
221
261
|
'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
|
|
222
262
|
'orgId': json['orgId'],
|
|
263
|
+
'contacts': json['contacts'] == null ? undefined : ((json['contacts'] as Array<any>).map(ContactResponseFromJSON)),
|
|
264
|
+
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteResponseFromJSON)),
|
|
265
|
+
'externalId': json['externalId'],
|
|
266
|
+
'balance': json['balance'],
|
|
267
|
+
'autoPay': json['autoPay'],
|
|
268
|
+
'billingCycleDay': json['billingCycleDay'],
|
|
269
|
+
'currency': json['currency'],
|
|
270
|
+
'paymentGateway': json['paymentGateway'],
|
|
271
|
+
'editAutoPay': json['editAutoPay'],
|
|
272
|
+
'paymentTerms': json['paymentTerms'],
|
|
273
|
+
'taxExempt': json['taxExempt'],
|
|
274
|
+
'achEnabled': json['achEnabled'],
|
|
275
|
+
'emailPreference': json['emailPreference'],
|
|
276
|
+
'printPreference': json['printPreference'],
|
|
277
|
+
'creditEnabled': json['creditEnabled'],
|
|
278
|
+
'billingContactId': json['billingContactId'],
|
|
279
|
+
'shippingContactId': json['shippingContactId'],
|
|
280
|
+
'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
|
|
281
|
+
'tenantId': json['tenantId'],
|
|
223
282
|
};
|
|
224
283
|
}
|
|
225
284
|
|
|
@@ -234,9 +293,17 @@ export function CustomCustomerResponseToJSONTyped(value?: CustomCustomerResponse
|
|
|
234
293
|
|
|
235
294
|
return {
|
|
236
295
|
|
|
296
|
+
'id': value['id'],
|
|
237
297
|
'name': value['name'],
|
|
238
298
|
'description': value['description'],
|
|
239
299
|
'status': value['status'],
|
|
300
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
301
|
+
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
302
|
+
'org': OrgResponseToJSON(value['org']),
|
|
303
|
+
'orgId': value['orgId'],
|
|
304
|
+
'contacts': value['contacts'] == null ? undefined : ((value['contacts'] as Array<any>).map(ContactResponseToJSON)),
|
|
305
|
+
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
|
|
306
|
+
'externalId': value['externalId'],
|
|
240
307
|
'balance': value['balance'],
|
|
241
308
|
'autoPay': value['autoPay'],
|
|
242
309
|
'billingCycleDay': value['billingCycleDay'],
|
|
@@ -251,12 +318,8 @@ export function CustomCustomerResponseToJSONTyped(value?: CustomCustomerResponse
|
|
|
251
318
|
'creditEnabled': value['creditEnabled'],
|
|
252
319
|
'billingContactId': value['billingContactId'],
|
|
253
320
|
'shippingContactId': value['shippingContactId'],
|
|
254
|
-
'
|
|
321
|
+
'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
|
|
255
322
|
'tenantId': value['tenantId'],
|
|
256
|
-
'id': value['id'],
|
|
257
|
-
'externalId': value['externalId'],
|
|
258
|
-
'org': OrgResponseToJSON(value['org']),
|
|
259
|
-
'orgId': value['orgId'],
|
|
260
323
|
};
|
|
261
324
|
}
|
|
262
325
|
|