@managespace/sdk 0.0.32 → 0.0.34
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/extensibility/functions/project/billing.d.ts +31 -29
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +8 -11
- package/dist/extensibility/functions/project/communication.d.ts +12 -0
- package/dist/extensibility/functions/project/communication.d.ts.map +1 -0
- package/dist/extensibility/functions/project/communication.js +18 -0
- package/dist/extensibility/functions/project/index.d.ts +2 -1
- package/dist/extensibility/functions/project/index.d.ts.map +1 -1
- package/dist/extensibility/functions/project/index.js +2 -1
- package/dist/extensibility/functions/project/managespace.d.ts +1 -15
- package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
- package/dist/extensibility/functions/project/managespace.js +0 -15
- package/dist/generated/apis/default-api.d.ts +17 -58
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +48 -185
- package/dist/generated/models/custom-create-contact.d.ts +0 -12
- package/dist/generated/models/custom-create-contact.d.ts.map +1 -1
- package/dist/generated/models/custom-create-contact.js +0 -6
- package/dist/generated/models/custom-create-customer.d.ts +12 -18
- package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-customer.js +5 -7
- package/dist/generated/models/custom-update-customer.d.ts +75 -10
- package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-update-customer.js +26 -5
- package/dist/generated/models/customer-response.d.ts +0 -84
- package/dist/generated/models/customer-response.d.ts.map +1 -1
- package/dist/generated/models/customer-response.js +0 -56
- package/dist/generated/models/get-invoice-billing200-response.d.ts +41 -0
- package/dist/generated/models/get-invoice-billing200-response.d.ts.map +1 -0
- package/dist/generated/models/get-invoice-billing200-response.js +55 -0
- package/dist/generated/models/index.d.ts +2 -11
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -11
- package/dist/generated/models/payment-response.d.ts +2 -2
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +34 -35
- package/src/extensibility/functions/project/communication.ts +16 -0
- package/src/extensibility/functions/project/index.ts +2 -1
- package/src/extensibility/functions/project/managespace.ts +0 -16
- package/src/generated/.openapi-generator/FILES +2 -11
- package/src/generated/apis/default-api.ts +83 -313
- package/src/generated/models/custom-create-contact.ts +0 -17
- package/src/generated/models/custom-create-customer.ts +21 -29
- package/src/generated/models/custom-update-customer.ts +101 -21
- package/src/generated/models/customer-response.ts +0 -126
- package/src/generated/models/get-invoice-billing200-response.ts +89 -0
- package/src/generated/models/index.ts +2 -11
- package/src/generated/models/payment-response.ts +2 -2
- package/dist/generated/models/create-contact.d.ts +0 -87
- package/dist/generated/models/create-contact.d.ts.map +0 -1
- package/dist/generated/models/create-contact.js +0 -81
- package/dist/generated/models/create-payment.d.ts +0 -155
- package/dist/generated/models/create-payment.d.ts.map +0 -1
- package/dist/generated/models/create-payment.js +0 -123
- package/dist/generated/models/create-plan-billing.d.ts +0 -58
- package/dist/generated/models/create-plan-billing.d.ts.map +0 -1
- package/dist/generated/models/create-plan-billing.js +0 -68
- package/dist/generated/models/create-product-billing.d.ts +0 -82
- package/dist/generated/models/create-product-billing.d.ts.map +0 -1
- package/dist/generated/models/create-product-billing.js +0 -84
- package/dist/generated/models/custom-add-customer-contact.d.ts +0 -34
- package/dist/generated/models/custom-add-customer-contact.d.ts.map +0 -1
- package/dist/generated/models/custom-add-customer-contact.js +0 -52
- package/dist/generated/models/custom-create-contact-with-customer.d.ts +0 -82
- package/dist/generated/models/custom-create-contact-with-customer.d.ts.map +0 -1
- package/dist/generated/models/custom-create-contact-with-customer.js +0 -78
- package/dist/generated/models/customer-delivery-preferences.d.ts +0 -39
- package/dist/generated/models/customer-delivery-preferences.d.ts.map +0 -1
- package/dist/generated/models/customer-delivery-preferences.js +0 -55
- package/dist/generated/models/customer-id.d.ts +0 -33
- package/dist/generated/models/customer-id.d.ts.map +0 -1
- package/dist/generated/models/customer-id.js +0 -51
- package/dist/generated/models/customer-payment-options.d.ts +0 -39
- package/dist/generated/models/customer-payment-options.d.ts.map +0 -1
- package/dist/generated/models/customer-payment-options.js +0 -55
- package/dist/generated/models/get-customer-response.d.ts +0 -276
- package/dist/generated/models/get-customer-response.d.ts.map +0 -1
- package/dist/generated/models/get-customer-response.js +0 -214
- package/dist/generated/models/get-customers-billing200-response.d.ts +0 -41
- package/dist/generated/models/get-customers-billing200-response.d.ts.map +0 -1
- package/dist/generated/models/get-customers-billing200-response.js +0 -55
- package/dist/generated/models/product-billing-response.d.ts +0 -142
- package/dist/generated/models/product-billing-response.d.ts.map +0 -1
- package/dist/generated/models/product-billing-response.js +0 -124
- package/dist/generated/models/product-transaction-posting-entries.d.ts +0 -45
- package/dist/generated/models/product-transaction-posting-entries.d.ts.map +0 -1
- package/dist/generated/models/product-transaction-posting-entries.js +0 -59
- package/dist/generated/models/update-customer.d.ts +0 -57
- package/dist/generated/models/update-customer.d.ts.map +0 -1
- package/dist/generated/models/update-customer.js +0 -57
- package/dist/generated/models/update-product.d.ts +0 -52
- package/dist/generated/models/update-product.d.ts.map +0 -1
- package/dist/generated/models/update-product.js +0 -60
- package/src/generated/models/create-contact.ts +0 -144
- package/src/generated/models/create-payment.ts +0 -256
- package/src/generated/models/create-plan-billing.ts +0 -110
- package/src/generated/models/create-product-billing.ts +0 -146
- package/src/generated/models/custom-add-customer-contact.ts +0 -74
- package/src/generated/models/custom-create-contact-with-customer.ts +0 -143
- package/src/generated/models/customer-delivery-preferences.ts +0 -75
- package/src/generated/models/customer-id.ts +0 -66
- package/src/generated/models/customer-payment-options.ts +0 -75
- package/src/generated/models/get-customer-response.ts +0 -448
- package/src/generated/models/get-customers-billing200-response.ts +0 -89
- package/src/generated/models/product-billing-response.ts +0 -236
- package/src/generated/models/product-transaction-posting-entries.ts +0 -84
- package/src/generated/models/update-customer.ts +0 -97
- package/src/generated/models/update-product.ts +0 -101
|
@@ -27,12 +27,6 @@ import {
|
|
|
27
27
|
* @interface CustomCreateContact
|
|
28
28
|
*/
|
|
29
29
|
export interface CustomCreateContact {
|
|
30
|
-
/**
|
|
31
|
-
* External ID
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CustomCreateContact
|
|
34
|
-
*/
|
|
35
|
-
externalId?: string | null;
|
|
36
30
|
/**
|
|
37
31
|
* First name
|
|
38
32
|
* @type {string}
|
|
@@ -75,12 +69,6 @@ export interface CustomCreateContact {
|
|
|
75
69
|
* @memberof CustomCreateContact
|
|
76
70
|
*/
|
|
77
71
|
mobileNumber: string;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof CustomCreateContact
|
|
82
|
-
*/
|
|
83
|
-
customerId: string;
|
|
84
72
|
/**
|
|
85
73
|
* Contact address.
|
|
86
74
|
* @type {CreateAddress}
|
|
@@ -98,7 +86,6 @@ export function instanceOfCustomCreateContact(value: object): value is CustomCre
|
|
|
98
86
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
99
87
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
100
88
|
if (!('mobileNumber' in value) || value['mobileNumber'] === undefined) return false;
|
|
101
|
-
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
102
89
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
103
90
|
return true;
|
|
104
91
|
}
|
|
@@ -113,7 +100,6 @@ export function CustomCreateContactFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
113
100
|
}
|
|
114
101
|
return {
|
|
115
102
|
|
|
116
|
-
'externalId': json['externalId'] == null ? undefined : json['externalId'],
|
|
117
103
|
'firstName': json['firstName'],
|
|
118
104
|
'middleInitial': json['middleInitial'] == null ? undefined : json['middleInitial'],
|
|
119
105
|
'lastName': json['lastName'],
|
|
@@ -121,7 +107,6 @@ export function CustomCreateContactFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
121
107
|
'email': json['email'],
|
|
122
108
|
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
123
109
|
'mobileNumber': json['mobileNumber'],
|
|
124
|
-
'customerId': json['customerId'],
|
|
125
110
|
'address': CreateAddressFromJSON(json['address']),
|
|
126
111
|
};
|
|
127
112
|
}
|
|
@@ -137,7 +122,6 @@ export function CustomCreateContactToJSONTyped(value?: CustomCreateContact | nul
|
|
|
137
122
|
|
|
138
123
|
return {
|
|
139
124
|
|
|
140
|
-
'externalId': value['externalId'],
|
|
141
125
|
'firstName': value['firstName'],
|
|
142
126
|
'middleInitial': value['middleInitial'],
|
|
143
127
|
'lastName': value['lastName'],
|
|
@@ -145,7 +129,6 @@ export function CustomCreateContactToJSONTyped(value?: CustomCreateContact | nul
|
|
|
145
129
|
'email': value['email'],
|
|
146
130
|
'phoneNumber': value['phoneNumber'],
|
|
147
131
|
'mobileNumber': value['mobileNumber'],
|
|
148
|
-
'customerId': value['customerId'],
|
|
149
132
|
'address': CreateAddressToJSON(value['address']),
|
|
150
133
|
};
|
|
151
134
|
}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { CustomCreateContact } from './custom-create-contact';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './custom-create-contact
|
|
18
|
+
CustomCreateContactFromJSON,
|
|
19
|
+
CustomCreateContactFromJSONTyped,
|
|
20
|
+
CustomCreateContactToJSON,
|
|
21
|
+
CustomCreateContactToJSONTyped,
|
|
22
|
+
} from './custom-create-contact';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -40,23 +40,23 @@ export interface CustomCreateCustomer {
|
|
|
40
40
|
*/
|
|
41
41
|
description?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* Balance
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof CustomCreateCustomer
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
balance?: number;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {
|
|
49
|
+
* Contact information.
|
|
50
|
+
* @type {Array<CustomCreateContact>}
|
|
51
51
|
* @memberof CustomCreateCustomer
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
contacts: Array<CustomCreateContact>;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {
|
|
55
|
+
* Tennant ID.
|
|
56
|
+
* @type {string}
|
|
57
57
|
* @memberof CustomCreateCustomer
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
tenantId?: string;
|
|
60
60
|
/**
|
|
61
61
|
* autoPay
|
|
62
62
|
* @type {boolean}
|
|
@@ -128,19 +128,13 @@ export interface CustomCreateCustomer {
|
|
|
128
128
|
* @type {string}
|
|
129
129
|
* @memberof CustomCreateCustomer
|
|
130
130
|
*/
|
|
131
|
-
billingContactId?: string
|
|
131
|
+
billingContactId?: string;
|
|
132
132
|
/**
|
|
133
133
|
* shipping contact ID
|
|
134
134
|
* @type {string}
|
|
135
135
|
* @memberof CustomCreateCustomer
|
|
136
136
|
*/
|
|
137
|
-
shippingContactId?: string
|
|
138
|
-
/**
|
|
139
|
-
* Contact information.
|
|
140
|
-
* @type {Array<CustomCreateContactWithCustomer>}
|
|
141
|
-
* @memberof CustomCreateCustomer
|
|
142
|
-
*/
|
|
143
|
-
contacts: Array<CustomCreateContactWithCustomer>;
|
|
137
|
+
shippingContactId?: string;
|
|
144
138
|
}
|
|
145
139
|
|
|
146
140
|
/**
|
|
@@ -164,9 +158,9 @@ export function CustomCreateCustomerFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
164
158
|
|
|
165
159
|
'name': json['name'],
|
|
166
160
|
'description': json['description'] == null ? undefined : json['description'],
|
|
167
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
168
|
-
'externalId': json['externalId'] == null ? undefined : json['externalId'],
|
|
169
161
|
'balance': json['balance'] == null ? undefined : json['balance'],
|
|
162
|
+
'contacts': ((json['contacts'] as Array<any>).map(CustomCreateContactFromJSON)),
|
|
163
|
+
'tenantId': json['tenantId'] == null ? undefined : json['tenantId'],
|
|
170
164
|
'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
|
|
171
165
|
'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
|
|
172
166
|
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
@@ -180,7 +174,6 @@ export function CustomCreateCustomerFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
180
174
|
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
181
175
|
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
182
176
|
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
183
|
-
'contacts': ((json['contacts'] as Array<any>).map(CustomCreateContactWithCustomerFromJSON)),
|
|
184
177
|
};
|
|
185
178
|
}
|
|
186
179
|
|
|
@@ -197,9 +190,9 @@ export function CustomCreateCustomerToJSONTyped(value?: CustomCreateCustomer | n
|
|
|
197
190
|
|
|
198
191
|
'name': value['name'],
|
|
199
192
|
'description': value['description'],
|
|
200
|
-
'status': value['status'],
|
|
201
|
-
'externalId': value['externalId'],
|
|
202
193
|
'balance': value['balance'],
|
|
194
|
+
'contacts': ((value['contacts'] as Array<any>).map(CustomCreateContactToJSON)),
|
|
195
|
+
'tenantId': value['tenantId'],
|
|
203
196
|
'autoPay': value['autoPay'],
|
|
204
197
|
'billingCycleDay': value['billingCycleDay'],
|
|
205
198
|
'currency': value['currency'],
|
|
@@ -213,7 +206,6 @@ export function CustomCreateCustomerToJSONTyped(value?: CustomCreateCustomer | n
|
|
|
213
206
|
'creditEnabled': value['creditEnabled'],
|
|
214
207
|
'billingContactId': value['billingContactId'],
|
|
215
208
|
'shippingContactId': value['shippingContactId'],
|
|
216
|
-
'contacts': ((value['contacts'] as Array<any>).map(CustomCreateContactWithCustomerToJSON)),
|
|
217
209
|
};
|
|
218
210
|
}
|
|
219
211
|
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { CustomCreateContactWithCustomer } from './custom-create-contact-with-customer';
|
|
17
|
-
import {
|
|
18
|
-
CustomCreateContactWithCustomerFromJSON,
|
|
19
|
-
CustomCreateContactWithCustomerFromJSONTyped,
|
|
20
|
-
CustomCreateContactWithCustomerToJSON,
|
|
21
|
-
CustomCreateContactWithCustomerToJSONTyped,
|
|
22
|
-
} from './custom-create-contact-with-customer';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -40,29 +32,95 @@ export interface CustomUpdateCustomer {
|
|
|
40
32
|
*/
|
|
41
33
|
description?: string | null;
|
|
42
34
|
/**
|
|
43
|
-
*
|
|
35
|
+
* Balance
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CustomUpdateCustomer
|
|
38
|
+
*/
|
|
39
|
+
balance?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Tennant ID.
|
|
44
42
|
* @type {string}
|
|
45
43
|
* @memberof CustomUpdateCustomer
|
|
46
44
|
*/
|
|
47
|
-
|
|
45
|
+
tenantId?: string;
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
47
|
+
* autoPay
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof CustomUpdateCustomer
|
|
50
|
+
*/
|
|
51
|
+
autoPay?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Billing cycle day
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof CustomUpdateCustomer
|
|
56
|
+
*/
|
|
57
|
+
billingCycleDay?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Currency
|
|
50
60
|
* @type {string}
|
|
51
61
|
* @memberof CustomUpdateCustomer
|
|
52
62
|
*/
|
|
53
|
-
|
|
63
|
+
currency?: string;
|
|
54
64
|
/**
|
|
55
|
-
*
|
|
65
|
+
* Payment gateway
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CustomUpdateCustomer
|
|
68
|
+
*/
|
|
69
|
+
paymentGateway?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Edit auto pay
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof CustomUpdateCustomer
|
|
74
|
+
*/
|
|
75
|
+
editAutoPay?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Payment terms
|
|
56
78
|
* @type {string}
|
|
57
79
|
* @memberof CustomUpdateCustomer
|
|
58
80
|
*/
|
|
59
|
-
|
|
81
|
+
paymentTerms?: string;
|
|
60
82
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {
|
|
83
|
+
* Tax exempt
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof CustomUpdateCustomer
|
|
86
|
+
*/
|
|
87
|
+
taxExempt?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* ACH Enabled
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof CustomUpdateCustomer
|
|
92
|
+
*/
|
|
93
|
+
achEnabled?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Email Preference
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof CustomUpdateCustomer
|
|
98
|
+
*/
|
|
99
|
+
emailPreference?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Print Preference
|
|
102
|
+
* @type {boolean}
|
|
103
|
+
* @memberof CustomUpdateCustomer
|
|
104
|
+
*/
|
|
105
|
+
printPreference?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Credit Enabled
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof CustomUpdateCustomer
|
|
110
|
+
*/
|
|
111
|
+
creditEnabled?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* billing contact ID
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof CustomUpdateCustomer
|
|
116
|
+
*/
|
|
117
|
+
billingContactId?: string;
|
|
118
|
+
/**
|
|
119
|
+
* shipping contact ID
|
|
120
|
+
* @type {string}
|
|
63
121
|
* @memberof CustomUpdateCustomer
|
|
64
122
|
*/
|
|
65
|
-
|
|
123
|
+
shippingContactId?: string;
|
|
66
124
|
}
|
|
67
125
|
|
|
68
126
|
/**
|
|
@@ -84,10 +142,21 @@ export function CustomUpdateCustomerFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
84
142
|
|
|
85
143
|
'name': json['name'] == null ? undefined : json['name'],
|
|
86
144
|
'description': json['description'] == null ? undefined : json['description'],
|
|
87
|
-
'
|
|
145
|
+
'balance': json['balance'] == null ? undefined : json['balance'],
|
|
146
|
+
'tenantId': json['tenantId'] == null ? undefined : json['tenantId'],
|
|
147
|
+
'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
|
|
148
|
+
'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
|
|
149
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
150
|
+
'paymentGateway': json['paymentGateway'] == null ? undefined : json['paymentGateway'],
|
|
151
|
+
'editAutoPay': json['editAutoPay'] == null ? undefined : json['editAutoPay'],
|
|
152
|
+
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
153
|
+
'taxExempt': json['taxExempt'] == null ? undefined : json['taxExempt'],
|
|
154
|
+
'achEnabled': json['achEnabled'] == null ? undefined : json['achEnabled'],
|
|
155
|
+
'emailPreference': json['emailPreference'] == null ? undefined : json['emailPreference'],
|
|
156
|
+
'printPreference': json['printPreference'] == null ? undefined : json['printPreference'],
|
|
157
|
+
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
88
158
|
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
89
159
|
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
90
|
-
'contacts': json['contacts'] == null ? undefined : ((json['contacts'] as Array<any>).map(CustomCreateContactWithCustomerFromJSON)),
|
|
91
160
|
};
|
|
92
161
|
}
|
|
93
162
|
|
|
@@ -104,10 +173,21 @@ export function CustomUpdateCustomerToJSONTyped(value?: CustomUpdateCustomer | n
|
|
|
104
173
|
|
|
105
174
|
'name': value['name'],
|
|
106
175
|
'description': value['description'],
|
|
107
|
-
'
|
|
176
|
+
'balance': value['balance'],
|
|
177
|
+
'tenantId': value['tenantId'],
|
|
178
|
+
'autoPay': value['autoPay'],
|
|
179
|
+
'billingCycleDay': value['billingCycleDay'],
|
|
180
|
+
'currency': value['currency'],
|
|
181
|
+
'paymentGateway': value['paymentGateway'],
|
|
182
|
+
'editAutoPay': value['editAutoPay'],
|
|
183
|
+
'paymentTerms': value['paymentTerms'],
|
|
184
|
+
'taxExempt': value['taxExempt'],
|
|
185
|
+
'achEnabled': value['achEnabled'],
|
|
186
|
+
'emailPreference': value['emailPreference'],
|
|
187
|
+
'printPreference': value['printPreference'],
|
|
188
|
+
'creditEnabled': value['creditEnabled'],
|
|
108
189
|
'billingContactId': value['billingContactId'],
|
|
109
190
|
'shippingContactId': value['shippingContactId'],
|
|
110
|
-
'contacts': value['contacts'] == null ? undefined : ((value['contacts'] as Array<any>).map(CustomCreateContactWithCustomerToJSON)),
|
|
111
191
|
};
|
|
112
192
|
}
|
|
113
193
|
|
|
@@ -66,12 +66,6 @@ export interface CustomerResponse {
|
|
|
66
66
|
* @memberof CustomerResponse
|
|
67
67
|
*/
|
|
68
68
|
description: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Customer status
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof CustomerResponse
|
|
73
|
-
*/
|
|
74
|
-
status: string;
|
|
75
69
|
/**
|
|
76
70
|
* When the record was created
|
|
77
71
|
* @type {Date}
|
|
@@ -120,84 +114,6 @@ export interface CustomerResponse {
|
|
|
120
114
|
* @memberof CustomerResponse
|
|
121
115
|
*/
|
|
122
116
|
balance: number;
|
|
123
|
-
/**
|
|
124
|
-
* autoPay
|
|
125
|
-
* @type {boolean}
|
|
126
|
-
* @memberof CustomerResponse
|
|
127
|
-
*/
|
|
128
|
-
autoPay: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Billing cycle day
|
|
131
|
-
* @type {number}
|
|
132
|
-
* @memberof CustomerResponse
|
|
133
|
-
*/
|
|
134
|
-
billingCycleDay: number;
|
|
135
|
-
/**
|
|
136
|
-
* Currency
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof CustomerResponse
|
|
139
|
-
*/
|
|
140
|
-
currency: string;
|
|
141
|
-
/**
|
|
142
|
-
* Payment gateway
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof CustomerResponse
|
|
145
|
-
*/
|
|
146
|
-
paymentGateway: string;
|
|
147
|
-
/**
|
|
148
|
-
* Edit auto pay
|
|
149
|
-
* @type {boolean}
|
|
150
|
-
* @memberof CustomerResponse
|
|
151
|
-
*/
|
|
152
|
-
editAutoPay: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Payment terms
|
|
155
|
-
* @type {string}
|
|
156
|
-
* @memberof CustomerResponse
|
|
157
|
-
*/
|
|
158
|
-
paymentTerms: string;
|
|
159
|
-
/**
|
|
160
|
-
* Tax exempt
|
|
161
|
-
* @type {boolean}
|
|
162
|
-
* @memberof CustomerResponse
|
|
163
|
-
*/
|
|
164
|
-
taxExempt: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* ACH Enabled
|
|
167
|
-
* @type {boolean}
|
|
168
|
-
* @memberof CustomerResponse
|
|
169
|
-
*/
|
|
170
|
-
achEnabled: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Email Preference
|
|
173
|
-
* @type {boolean}
|
|
174
|
-
* @memberof CustomerResponse
|
|
175
|
-
*/
|
|
176
|
-
emailPreference: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Print Preference
|
|
179
|
-
* @type {boolean}
|
|
180
|
-
* @memberof CustomerResponse
|
|
181
|
-
*/
|
|
182
|
-
printPreference: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Credit Enabled
|
|
185
|
-
* @type {boolean}
|
|
186
|
-
* @memberof CustomerResponse
|
|
187
|
-
*/
|
|
188
|
-
creditEnabled: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* billing contact ID
|
|
191
|
-
* @type {string}
|
|
192
|
-
* @memberof CustomerResponse
|
|
193
|
-
*/
|
|
194
|
-
billingContactId: string | null;
|
|
195
|
-
/**
|
|
196
|
-
* shipping contact ID
|
|
197
|
-
* @type {string}
|
|
198
|
-
* @memberof CustomerResponse
|
|
199
|
-
*/
|
|
200
|
-
shippingContactId: string | null;
|
|
201
117
|
/**
|
|
202
118
|
*
|
|
203
119
|
* @type {Array<CommunicationResponse>}
|
|
@@ -213,25 +129,11 @@ export function instanceOfCustomerResponse(value: object): value is CustomerResp
|
|
|
213
129
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
214
130
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
215
131
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
216
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
217
132
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
218
133
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
219
134
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
220
135
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
221
136
|
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
222
|
-
if (!('autoPay' in value) || value['autoPay'] === undefined) return false;
|
|
223
|
-
if (!('billingCycleDay' in value) || value['billingCycleDay'] === undefined) return false;
|
|
224
|
-
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
225
|
-
if (!('paymentGateway' in value) || value['paymentGateway'] === undefined) return false;
|
|
226
|
-
if (!('editAutoPay' in value) || value['editAutoPay'] === undefined) return false;
|
|
227
|
-
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
228
|
-
if (!('taxExempt' in value) || value['taxExempt'] === undefined) return false;
|
|
229
|
-
if (!('achEnabled' in value) || value['achEnabled'] === undefined) return false;
|
|
230
|
-
if (!('emailPreference' in value) || value['emailPreference'] === undefined) return false;
|
|
231
|
-
if (!('printPreference' in value) || value['printPreference'] === undefined) return false;
|
|
232
|
-
if (!('creditEnabled' in value) || value['creditEnabled'] === undefined) return false;
|
|
233
|
-
if (!('billingContactId' in value) || value['billingContactId'] === undefined) return false;
|
|
234
|
-
if (!('shippingContactId' in value) || value['shippingContactId'] === undefined) return false;
|
|
235
137
|
return true;
|
|
236
138
|
}
|
|
237
139
|
|
|
@@ -248,7 +150,6 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
248
150
|
'id': json['id'],
|
|
249
151
|
'name': json['name'],
|
|
250
152
|
'description': json['description'],
|
|
251
|
-
'status': json['status'],
|
|
252
153
|
'createdAt': (new Date(json['createdAt'])),
|
|
253
154
|
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
254
155
|
'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
|
|
@@ -257,19 +158,6 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
257
158
|
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteResponseFromJSON)),
|
|
258
159
|
'externalId': json['externalId'],
|
|
259
160
|
'balance': json['balance'],
|
|
260
|
-
'autoPay': json['autoPay'],
|
|
261
|
-
'billingCycleDay': json['billingCycleDay'],
|
|
262
|
-
'currency': json['currency'],
|
|
263
|
-
'paymentGateway': json['paymentGateway'],
|
|
264
|
-
'editAutoPay': json['editAutoPay'],
|
|
265
|
-
'paymentTerms': json['paymentTerms'],
|
|
266
|
-
'taxExempt': json['taxExempt'],
|
|
267
|
-
'achEnabled': json['achEnabled'],
|
|
268
|
-
'emailPreference': json['emailPreference'],
|
|
269
|
-
'printPreference': json['printPreference'],
|
|
270
|
-
'creditEnabled': json['creditEnabled'],
|
|
271
|
-
'billingContactId': json['billingContactId'],
|
|
272
|
-
'shippingContactId': json['shippingContactId'],
|
|
273
161
|
'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
|
|
274
162
|
};
|
|
275
163
|
}
|
|
@@ -288,7 +176,6 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
288
176
|
'id': value['id'],
|
|
289
177
|
'name': value['name'],
|
|
290
178
|
'description': value['description'],
|
|
291
|
-
'status': value['status'],
|
|
292
179
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
293
180
|
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
294
181
|
'org': OrgResponseToJSON(value['org']),
|
|
@@ -297,19 +184,6 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
297
184
|
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
|
|
298
185
|
'externalId': value['externalId'],
|
|
299
186
|
'balance': value['balance'],
|
|
300
|
-
'autoPay': value['autoPay'],
|
|
301
|
-
'billingCycleDay': value['billingCycleDay'],
|
|
302
|
-
'currency': value['currency'],
|
|
303
|
-
'paymentGateway': value['paymentGateway'],
|
|
304
|
-
'editAutoPay': value['editAutoPay'],
|
|
305
|
-
'paymentTerms': value['paymentTerms'],
|
|
306
|
-
'taxExempt': value['taxExempt'],
|
|
307
|
-
'achEnabled': value['achEnabled'],
|
|
308
|
-
'emailPreference': value['emailPreference'],
|
|
309
|
-
'printPreference': value['printPreference'],
|
|
310
|
-
'creditEnabled': value['creditEnabled'],
|
|
311
|
-
'billingContactId': value['billingContactId'],
|
|
312
|
-
'shippingContactId': value['shippingContactId'],
|
|
313
187
|
'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
|
|
314
188
|
};
|
|
315
189
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { InvoiceResponse } from './invoice-response';
|
|
17
|
+
import {
|
|
18
|
+
InvoiceResponseFromJSON,
|
|
19
|
+
InvoiceResponseFromJSONTyped,
|
|
20
|
+
InvoiceResponseToJSON,
|
|
21
|
+
InvoiceResponseToJSONTyped,
|
|
22
|
+
} from './invoice-response';
|
|
23
|
+
import type { PageMeta } from './page-meta';
|
|
24
|
+
import {
|
|
25
|
+
PageMetaFromJSON,
|
|
26
|
+
PageMetaFromJSONTyped,
|
|
27
|
+
PageMetaToJSON,
|
|
28
|
+
PageMetaToJSONTyped,
|
|
29
|
+
} from './page-meta';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetInvoiceBilling200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetInvoiceBilling200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetInvoiceBilling200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<InvoiceResponse>}
|
|
46
|
+
* @memberof GetInvoiceBilling200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<InvoiceResponse>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetInvoiceBilling200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetInvoiceBilling200Response(value: object): value is GetInvoiceBilling200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetInvoiceBilling200ResponseFromJSON(json: any): GetInvoiceBilling200Response {
|
|
60
|
+
return GetInvoiceBilling200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetInvoiceBilling200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoiceBilling200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(InvoiceResponseFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetInvoiceBilling200ResponseToJSON(json: any): GetInvoiceBilling200Response {
|
|
75
|
+
return GetInvoiceBilling200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetInvoiceBilling200ResponseToJSONTyped(value?: GetInvoiceBilling200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(InvoiceResponseToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -30,7 +30,6 @@ export * from './create-billing-run';
|
|
|
30
30
|
export * from './create-calendar';
|
|
31
31
|
export * from './create-checklist';
|
|
32
32
|
export * from './create-communication';
|
|
33
|
-
export * from './create-contact';
|
|
34
33
|
export * from './create-document';
|
|
35
34
|
export * from './create-instances';
|
|
36
35
|
export * from './create-lease-status';
|
|
@@ -38,7 +37,7 @@ export * from './create-map-feature';
|
|
|
38
37
|
export * from './create-note';
|
|
39
38
|
export * from './create-notification';
|
|
40
39
|
export * from './create-org';
|
|
41
|
-
export * from './create-payment';
|
|
40
|
+
export * from './create-payment-billing';
|
|
42
41
|
export * from './create-payment-invoice';
|
|
43
42
|
export * from './create-payment-refund';
|
|
44
43
|
export * from './create-payment-run';
|
|
@@ -54,18 +53,13 @@ export * from './create-subscription-plan';
|
|
|
54
53
|
export * from './create-task';
|
|
55
54
|
export * from './create-task-template';
|
|
56
55
|
export * from './create-template';
|
|
57
|
-
export * from './custom-add-customer-contact';
|
|
58
56
|
export * from './custom-chart-of-account';
|
|
59
57
|
export * from './custom-chart-of-accounts';
|
|
60
58
|
export * from './custom-create-contact';
|
|
61
|
-
export * from './custom-create-contact-with-customer';
|
|
62
59
|
export * from './custom-create-customer';
|
|
63
60
|
export * from './custom-create-user';
|
|
64
61
|
export * from './custom-update-customer';
|
|
65
62
|
export * from './custom-update-task-template';
|
|
66
|
-
export * from './customer-delivery-preferences';
|
|
67
|
-
export * from './customer-id';
|
|
68
|
-
export * from './customer-payment-options';
|
|
69
63
|
export * from './customer-response';
|
|
70
64
|
export * from './document-signed';
|
|
71
65
|
export * from './document-urls-response';
|
|
@@ -88,11 +82,9 @@ export * from './get-chart-of-accounts200-response';
|
|
|
88
82
|
export * from './get-communications200-response';
|
|
89
83
|
export * from './get-contact-response';
|
|
90
84
|
export * from './get-contacts200-response';
|
|
91
|
-
export * from './get-customer-response';
|
|
92
85
|
export * from './get-customers200-response';
|
|
93
|
-
export * from './get-customers-billing200-response';
|
|
94
86
|
export * from './get-intent';
|
|
95
|
-
export * from './get-
|
|
87
|
+
export * from './get-invoice-billing200-response';
|
|
96
88
|
export * from './get-notes200-response';
|
|
97
89
|
export * from './get-notifications200-response';
|
|
98
90
|
export * from './get-payment-runs200-response';
|
|
@@ -175,7 +167,6 @@ export * from './update-asset';
|
|
|
175
167
|
export * from './update-asset-category';
|
|
176
168
|
export * from './update-asset-feature';
|
|
177
169
|
export * from './update-checklist-task-template';
|
|
178
|
-
export * from './update-customer';
|
|
179
170
|
export * from './update-extensibility-repo';
|
|
180
171
|
export * from './update-map-feature';
|
|
181
172
|
export * from './update-note';
|
|
@@ -167,10 +167,10 @@ export interface PaymentResponse {
|
|
|
167
167
|
updatedAt: string;
|
|
168
168
|
/**
|
|
169
169
|
* Number of times attempts failed
|
|
170
|
-
* @type {
|
|
170
|
+
* @type {string}
|
|
171
171
|
* @memberof PaymentResponse
|
|
172
172
|
*/
|
|
173
|
-
failedAttempts:
|
|
173
|
+
failedAttempts: string;
|
|
174
174
|
/**
|
|
175
175
|
* Reason for failed attempt
|
|
176
176
|
* @type {string}
|