@managespace/sdk 0.0.31 → 0.0.32

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.
Files changed (64) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +25 -28
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +10 -8
  4. package/dist/extensibility/functions/project/index.d.ts +1 -2
  5. package/dist/extensibility/functions/project/index.d.ts.map +1 -1
  6. package/dist/extensibility/functions/project/index.js +1 -2
  7. package/dist/extensibility/functions/project/managespace.d.ts +2 -2
  8. package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
  9. package/dist/extensibility/functions/project/managespace.js +0 -1
  10. package/dist/generated/apis/default-api.d.ts +65 -13
  11. package/dist/generated/apis/default-api.d.ts.map +1 -1
  12. package/dist/generated/apis/default-api.js +213 -39
  13. package/dist/generated/models/create-contact.d.ts +15 -4
  14. package/dist/generated/models/create-contact.d.ts.map +1 -1
  15. package/dist/generated/models/create-contact.js +9 -4
  16. package/dist/generated/models/create-payment.d.ts +155 -0
  17. package/dist/generated/models/create-payment.d.ts.map +1 -0
  18. package/dist/generated/models/create-payment.js +123 -0
  19. package/dist/generated/models/custom-create-contact-with-customer.d.ts +6 -0
  20. package/dist/generated/models/custom-create-contact-with-customer.d.ts.map +1 -1
  21. package/dist/generated/models/custom-create-contact-with-customer.js +2 -0
  22. package/dist/generated/models/custom-create-contact.d.ts +12 -0
  23. package/dist/generated/models/custom-create-contact.d.ts.map +1 -1
  24. package/dist/generated/models/custom-create-contact.js +6 -0
  25. package/dist/generated/models/custom-create-customer.d.ts +18 -12
  26. package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
  27. package/dist/generated/models/custom-create-customer.js +7 -5
  28. package/dist/generated/models/custom-update-customer.d.ts +10 -75
  29. package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
  30. package/dist/generated/models/custom-update-customer.js +5 -26
  31. package/dist/generated/models/customer-response.d.ts +84 -0
  32. package/dist/generated/models/customer-response.d.ts.map +1 -1
  33. package/dist/generated/models/customer-response.js +56 -0
  34. package/dist/generated/models/index.d.ts +10 -1
  35. package/dist/generated/models/index.d.ts.map +1 -1
  36. package/dist/generated/models/index.js +10 -1
  37. package/dist/generated/models/payment-response.d.ts +2 -2
  38. package/dist/generated/models/update-customer.d.ts +18 -0
  39. package/dist/generated/models/update-customer.d.ts.map +1 -1
  40. package/dist/generated/models/update-customer.js +6 -0
  41. package/package.json +1 -1
  42. package/src/extensibility/functions/project/billing.ts +29 -38
  43. package/src/extensibility/functions/project/index.ts +1 -2
  44. package/src/extensibility/functions/project/managespace.ts +2 -3
  45. package/src/generated/.openapi-generator/FILES +10 -1
  46. package/src/generated/apis/default-api.ts +354 -59
  47. package/src/generated/models/create-contact.ts +23 -14
  48. package/src/generated/models/create-payment.ts +256 -0
  49. package/src/generated/models/custom-create-contact-with-customer.ts +8 -0
  50. package/src/generated/models/custom-create-contact.ts +17 -0
  51. package/src/generated/models/custom-create-customer.ts +29 -21
  52. package/src/generated/models/custom-update-customer.ts +21 -101
  53. package/src/generated/models/customer-response.ts +126 -0
  54. package/src/generated/models/index.ts +10 -1
  55. package/src/generated/models/payment-response.ts +2 -2
  56. package/src/generated/models/update-customer.ts +24 -0
  57. package/dist/extensibility/functions/project/communication.d.ts +0 -12
  58. package/dist/extensibility/functions/project/communication.d.ts.map +0 -1
  59. package/dist/extensibility/functions/project/communication.js +0 -18
  60. package/dist/generated/models/custom-customer-response.d.ts +0 -193
  61. package/dist/generated/models/custom-customer-response.d.ts.map +0 -1
  62. package/dist/generated/models/custom-customer-response.js +0 -151
  63. package/src/extensibility/functions/project/communication.ts +0 -16
  64. package/src/generated/models/custom-customer-response.ts +0 -325
@@ -1 +0,0 @@
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"}
@@ -1,151 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace V2 Auth API
6
- * ManageSpace Auth API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
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");
20
- const org_response_1 = require("./org-response");
21
- /**
22
- * Check if a given object implements the CustomCustomerResponse interface.
23
- */
24
- function instanceOfCustomCustomerResponse(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('name' in value) || value['name'] === undefined)
28
- return false;
29
- if (!('description' in value) || value['description'] === undefined)
30
- return false;
31
- if (!('status' in value) || value['status'] === undefined)
32
- return false;
33
- if (!('createdAt' in value) || value['createdAt'] === undefined)
34
- return false;
35
- if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
- return false;
37
- if (!('orgId' in value) || value['orgId'] === undefined)
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;
71
- return true;
72
- }
73
- exports.instanceOfCustomCustomerResponse = instanceOfCustomCustomerResponse;
74
- function CustomCustomerResponseFromJSON(json) {
75
- return CustomCustomerResponseFromJSONTyped(json, false);
76
- }
77
- exports.CustomCustomerResponseFromJSON = CustomCustomerResponseFromJSON;
78
- function CustomCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
79
- if (json == null) {
80
- return json;
81
- }
82
- return {
83
- 'id': json['id'],
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'])),
89
- 'org': json['org'] == null ? undefined : (0, org_response_1.OrgResponseFromJSON)(json['org']),
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'],
110
- };
111
- }
112
- exports.CustomCustomerResponseFromJSONTyped = CustomCustomerResponseFromJSONTyped;
113
- function CustomCustomerResponseToJSON(json) {
114
- return CustomCustomerResponseToJSONTyped(json, false);
115
- }
116
- exports.CustomCustomerResponseToJSON = CustomCustomerResponseToJSON;
117
- function CustomCustomerResponseToJSONTyped(value, ignoreDiscriminator = false) {
118
- if (value == null) {
119
- return value;
120
- }
121
- return {
122
- 'id': value['id'],
123
- 'name': value['name'],
124
- 'description': value['description'],
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'],
133
- 'balance': value['balance'],
134
- 'autoPay': value['autoPay'],
135
- 'billingCycleDay': value['billingCycleDay'],
136
- 'currency': value['currency'],
137
- 'paymentGateway': value['paymentGateway'],
138
- 'editAutoPay': value['editAutoPay'],
139
- 'paymentTerms': value['paymentTerms'],
140
- 'taxExempt': value['taxExempt'],
141
- 'achEnabled': value['achEnabled'],
142
- 'emailPreference': value['emailPreference'],
143
- 'printPreference': value['printPreference'],
144
- 'creditEnabled': value['creditEnabled'],
145
- 'billingContactId': value['billingContactId'],
146
- 'shippingContactId': value['shippingContactId'],
147
- 'communications': value['communications'] == null ? undefined : (value['communications'].map(communication_response_1.CommunicationResponseToJSON)),
148
- 'tenantId': value['tenantId'],
149
- };
150
- }
151
- exports.CustomCustomerResponseToJSONTyped = CustomCustomerResponseToJSONTyped;
@@ -1,16 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-namespace */
2
- import { ExtPlugin } from '../../types';
3
-
4
- export namespace Communication {
5
- export class SendEmail implements ExtPlugin {
6
- // responseType!: EmailResponse;
7
- responseType!: any;
8
- // payload!: SendEmailPayload & { userId: string };
9
- payload!: any;
10
- }
11
-
12
- export class SendSms implements ExtPlugin {
13
- responseType!: any;
14
- payload!: any;
15
- }
16
- }
@@ -1,325 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace V2 Auth API
5
- * ManageSpace Auth API Documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
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';
37
- import type { OrgResponse } from './org-response';
38
- import {
39
- OrgResponseFromJSON,
40
- OrgResponseFromJSONTyped,
41
- OrgResponseToJSON,
42
- OrgResponseToJSONTyped,
43
- } from './org-response';
44
-
45
- /**
46
- *
47
- * @export
48
- * @interface CustomCustomerResponse
49
- */
50
- export interface CustomCustomerResponse {
51
- /**
52
- * Contact ID
53
- * @type {string}
54
- * @memberof CustomCustomerResponse
55
- */
56
- id: string;
57
- /**
58
- * Full name
59
- * @type {string}
60
- * @memberof CustomCustomerResponse
61
- */
62
- name: string;
63
- /**
64
- * description of business or individual
65
- * @type {string}
66
- * @memberof CustomCustomerResponse
67
- */
68
- description: string | null;
69
- /**
70
- * Customer status
71
- * @type {string}
72
- * @memberof CustomCustomerResponse
73
- */
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;
117
- /**
118
- * Balance
119
- * @type {number}
120
- * @memberof CustomCustomerResponse
121
- */
122
- balance: number;
123
- /**
124
- * autoPay
125
- * @type {boolean}
126
- * @memberof CustomCustomerResponse
127
- */
128
- autoPay: boolean;
129
- /**
130
- * Billing cycle day
131
- * @type {number}
132
- * @memberof CustomCustomerResponse
133
- */
134
- billingCycleDay: number;
135
- /**
136
- * Currency
137
- * @type {string}
138
- * @memberof CustomCustomerResponse
139
- */
140
- currency: string;
141
- /**
142
- * Payment gateway
143
- * @type {string}
144
- * @memberof CustomCustomerResponse
145
- */
146
- paymentGateway: string;
147
- /**
148
- * Edit auto pay
149
- * @type {boolean}
150
- * @memberof CustomCustomerResponse
151
- */
152
- editAutoPay: boolean;
153
- /**
154
- * Payment terms
155
- * @type {string}
156
- * @memberof CustomCustomerResponse
157
- */
158
- paymentTerms: string;
159
- /**
160
- * Tax exempt
161
- * @type {boolean}
162
- * @memberof CustomCustomerResponse
163
- */
164
- taxExempt: boolean;
165
- /**
166
- * ACH Enabled
167
- * @type {boolean}
168
- * @memberof CustomCustomerResponse
169
- */
170
- achEnabled: boolean;
171
- /**
172
- * Email Preference
173
- * @type {boolean}
174
- * @memberof CustomCustomerResponse
175
- */
176
- emailPreference: boolean;
177
- /**
178
- * Print Preference
179
- * @type {boolean}
180
- * @memberof CustomCustomerResponse
181
- */
182
- printPreference: boolean;
183
- /**
184
- * Credit Enabled
185
- * @type {boolean}
186
- * @memberof CustomCustomerResponse
187
- */
188
- creditEnabled: boolean;
189
- /**
190
- * billing contact ID
191
- * @type {string}
192
- * @memberof CustomCustomerResponse
193
- */
194
- billingContactId: string | null;
195
- /**
196
- * shipping contact ID
197
- * @type {string}
198
- * @memberof CustomCustomerResponse
199
- */
200
- shippingContactId: string | null;
201
- /**
202
- *
203
- * @type {Array<CommunicationResponse>}
204
- * @memberof CustomCustomerResponse
205
- */
206
- communications?: Array<CommunicationResponse>;
207
- /**
208
- * Tennant ID.
209
- * @type {string}
210
- * @memberof CustomCustomerResponse
211
- */
212
- tenantId: string;
213
- }
214
-
215
- /**
216
- * Check if a given object implements the CustomCustomerResponse interface.
217
- */
218
- export function instanceOfCustomCustomerResponse(value: object): value is CustomCustomerResponse {
219
- if (!('id' in value) || value['id'] === undefined) return false;
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;
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;
242
- return true;
243
- }
244
-
245
- export function CustomCustomerResponseFromJSON(json: any): CustomCustomerResponse {
246
- return CustomCustomerResponseFromJSONTyped(json, false);
247
- }
248
-
249
- export function CustomCustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomCustomerResponse {
250
- if (json == null) {
251
- return json;
252
- }
253
- return {
254
-
255
- 'id': json['id'],
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'])),
261
- 'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
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'],
282
- };
283
- }
284
-
285
- export function CustomCustomerResponseToJSON(json: any): CustomCustomerResponse {
286
- return CustomCustomerResponseToJSONTyped(json, false);
287
- }
288
-
289
- export function CustomCustomerResponseToJSONTyped(value?: CustomCustomerResponse | null, ignoreDiscriminator: boolean = false): any {
290
- if (value == null) {
291
- return value;
292
- }
293
-
294
- return {
295
-
296
- 'id': value['id'],
297
- 'name': value['name'],
298
- 'description': value['description'],
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'],
307
- 'balance': value['balance'],
308
- 'autoPay': value['autoPay'],
309
- 'billingCycleDay': value['billingCycleDay'],
310
- 'currency': value['currency'],
311
- 'paymentGateway': value['paymentGateway'],
312
- 'editAutoPay': value['editAutoPay'],
313
- 'paymentTerms': value['paymentTerms'],
314
- 'taxExempt': value['taxExempt'],
315
- 'achEnabled': value['achEnabled'],
316
- 'emailPreference': value['emailPreference'],
317
- 'printPreference': value['printPreference'],
318
- 'creditEnabled': value['creditEnabled'],
319
- 'billingContactId': value['billingContactId'],
320
- 'shippingContactId': value['shippingContactId'],
321
- 'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
322
- 'tenantId': value['tenantId'],
323
- };
324
- }
325
-