@revenexx/sdk 0.0.4 → 0.0.6
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/cjs/sdk.js +13491 -6163
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13464 -6162
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13491 -6163
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-list-kind.ts +4 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/enums/store-asset-request-visibility.ts +4 -0
- package/src/enums/visibility.ts +4 -0
- package/src/index.ts +28 -2
- package/src/models.ts +5309 -1009
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +809 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +620 -65
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +690 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orderlists.ts +889 -0
- package/src/services/orders.ts +692 -137
- package/src/services/pages.ts +661 -155
- package/src/services/payments.ts +591 -64
- package/src/services/prices.ts +585 -59
- package/src/services/products.ts +1908 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +451 -59
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +933 -599
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-list-kind.d.ts +4 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/enums/store-asset-request-visibility.d.ts +4 -0
- package/types/enums/visibility.d.ts +4 -0
- package/types/index.d.ts +28 -2
- package/types/models.d.ts +5170 -1010
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +298 -12
- package/types/services/inventories.d.ts +225 -11
- package/types/services/markets.d.ts +235 -6
- package/types/services/orderlists.d.ts +324 -0
- package/types/services/orders.d.ts +238 -16
- package/types/services/pages.d.ts +190 -6
- package/types/services/payments.d.ts +221 -7
- package/types/services/prices.d.ts +218 -6
- package/types/services/products.d.ts +672 -32
- package/types/services/shipping.d.ts +168 -6
- package/types/services/storage.d.ts +353 -285
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { AddressType } from '../enums/address-type';
|
|
4
|
+
import { ContactRole } from '../enums/contact-role';
|
|
5
|
+
import { ContactStatus } from '../enums/contact-status';
|
|
6
|
+
import { OrganizationStatus } from '../enums/organization-status';
|
|
3
7
|
export declare class Customers {
|
|
4
8
|
client: Client;
|
|
5
9
|
constructor(client: Client);
|
|
@@ -11,10 +15,57 @@ export declare class Customers {
|
|
|
11
15
|
customersAddressesList(): Promise<{}>;
|
|
12
16
|
/**
|
|
13
17
|
*
|
|
18
|
+
* @param {string} params.city -
|
|
19
|
+
* @param {string} params.country - ISO 3166-1 alpha-2 code.
|
|
20
|
+
* @param {string} params.street -
|
|
21
|
+
* @param {string} params.zip -
|
|
22
|
+
* @param {string} params.company -
|
|
23
|
+
* @param {string} params.contactId - Owning contact (personal address).
|
|
24
|
+
* @param {boolean} params.isDefault - The default address of its owner and type.
|
|
25
|
+
* @param {string} params.name - Recipient name.
|
|
26
|
+
* @param {string} params.organizationId - Owning organization (company address).
|
|
27
|
+
* @param {string} params.phone -
|
|
28
|
+
* @param {string} params.region -
|
|
29
|
+
* @param {string} params.street2 -
|
|
30
|
+
* @param {AddressType} params.type - Default 'shipping'.
|
|
14
31
|
* @throws {RevenexxException}
|
|
15
32
|
* @returns {Promise<Models.Address>}
|
|
16
33
|
*/
|
|
17
|
-
customersAddressesCreate(
|
|
34
|
+
customersAddressesCreate(params: {
|
|
35
|
+
city: string;
|
|
36
|
+
country: string;
|
|
37
|
+
street: string;
|
|
38
|
+
zip: string;
|
|
39
|
+
company?: string;
|
|
40
|
+
contactId?: string;
|
|
41
|
+
isDefault?: boolean;
|
|
42
|
+
name?: string;
|
|
43
|
+
organizationId?: string;
|
|
44
|
+
phone?: string;
|
|
45
|
+
region?: string;
|
|
46
|
+
street2?: string;
|
|
47
|
+
type?: AddressType;
|
|
48
|
+
}): Promise<Models.Address>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @param {string} city -
|
|
52
|
+
* @param {string} country - ISO 3166-1 alpha-2 code.
|
|
53
|
+
* @param {string} street -
|
|
54
|
+
* @param {string} zip -
|
|
55
|
+
* @param {string} company -
|
|
56
|
+
* @param {string} contactId - Owning contact (personal address).
|
|
57
|
+
* @param {boolean} isDefault - The default address of its owner and type.
|
|
58
|
+
* @param {string} name - Recipient name.
|
|
59
|
+
* @param {string} organizationId - Owning organization (company address).
|
|
60
|
+
* @param {string} phone -
|
|
61
|
+
* @param {string} region -
|
|
62
|
+
* @param {string} street2 -
|
|
63
|
+
* @param {AddressType} type - Default 'shipping'.
|
|
64
|
+
* @throws {RevenexxException}
|
|
65
|
+
* @returns {Promise<Models.Address>}
|
|
66
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
67
|
+
*/
|
|
68
|
+
customersAddressesCreate(city: string, country: string, street: string, zip: string, company?: string, contactId?: string, isDefault?: boolean, name?: string, organizationId?: string, phone?: string, region?: string, street2?: string, type?: AddressType): Promise<Models.Address>;
|
|
18
69
|
/**
|
|
19
70
|
*
|
|
20
71
|
* @param {string} params.id -
|
|
@@ -52,56 +103,197 @@ export declare class Customers {
|
|
|
52
103
|
/**
|
|
53
104
|
*
|
|
54
105
|
* @param {string} params.id -
|
|
106
|
+
* @param {string} params.city -
|
|
107
|
+
* @param {string} params.company -
|
|
108
|
+
* @param {string} params.contactId - Owning contact (personal address).
|
|
109
|
+
* @param {string} params.country - ISO 3166-1 alpha-2 code.
|
|
110
|
+
* @param {boolean} params.isDefault - The default address of its owner and type.
|
|
111
|
+
* @param {string} params.name - Recipient name.
|
|
112
|
+
* @param {string} params.organizationId - Owning organization (company address).
|
|
113
|
+
* @param {string} params.phone -
|
|
114
|
+
* @param {string} params.region -
|
|
115
|
+
* @param {string} params.street -
|
|
116
|
+
* @param {string} params.street2 -
|
|
117
|
+
* @param {AddressType} params.type - Default 'shipping'.
|
|
118
|
+
* @param {string} params.zip -
|
|
55
119
|
* @throws {RevenexxException}
|
|
56
120
|
* @returns {Promise<Models.Address>}
|
|
57
121
|
*/
|
|
58
122
|
customersAddressesUpdate(params: {
|
|
59
123
|
id: string;
|
|
124
|
+
city?: string;
|
|
125
|
+
company?: string;
|
|
126
|
+
contactId?: string;
|
|
127
|
+
country?: string;
|
|
128
|
+
isDefault?: boolean;
|
|
129
|
+
name?: string;
|
|
130
|
+
organizationId?: string;
|
|
131
|
+
phone?: string;
|
|
132
|
+
region?: string;
|
|
133
|
+
street?: string;
|
|
134
|
+
street2?: string;
|
|
135
|
+
type?: AddressType;
|
|
136
|
+
zip?: string;
|
|
60
137
|
}): Promise<Models.Address>;
|
|
61
138
|
/**
|
|
62
139
|
*
|
|
63
140
|
* @param {string} id -
|
|
141
|
+
* @param {string} city -
|
|
142
|
+
* @param {string} company -
|
|
143
|
+
* @param {string} contactId - Owning contact (personal address).
|
|
144
|
+
* @param {string} country - ISO 3166-1 alpha-2 code.
|
|
145
|
+
* @param {boolean} isDefault - The default address of its owner and type.
|
|
146
|
+
* @param {string} name - Recipient name.
|
|
147
|
+
* @param {string} organizationId - Owning organization (company address).
|
|
148
|
+
* @param {string} phone -
|
|
149
|
+
* @param {string} region -
|
|
150
|
+
* @param {string} street -
|
|
151
|
+
* @param {string} street2 -
|
|
152
|
+
* @param {AddressType} type - Default 'shipping'.
|
|
153
|
+
* @param {string} zip -
|
|
64
154
|
* @throws {RevenexxException}
|
|
65
155
|
* @returns {Promise<Models.Address>}
|
|
66
156
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
67
157
|
*/
|
|
68
|
-
customersAddressesUpdate(id: string): Promise<Models.Address>;
|
|
158
|
+
customersAddressesUpdate(id: string, city?: string, company?: string, contactId?: string, country?: string, isDefault?: boolean, name?: string, organizationId?: string, phone?: string, region?: string, street?: string, street2?: string, type?: AddressType, zip?: string): Promise<Models.Address>;
|
|
69
159
|
/**
|
|
70
160
|
*
|
|
161
|
+
* @param {string} params.email -
|
|
162
|
+
* @param {string} params.password -
|
|
71
163
|
* @throws {RevenexxException}
|
|
72
164
|
* @returns {Promise<Models.AuthLoginResponse>}
|
|
73
165
|
*/
|
|
74
|
-
customersAuthLogin(
|
|
166
|
+
customersAuthLogin(params: {
|
|
167
|
+
email: string;
|
|
168
|
+
password: string;
|
|
169
|
+
}): Promise<Models.AuthLoginResponse>;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @param {string} email -
|
|
173
|
+
* @param {string} password -
|
|
174
|
+
* @throws {RevenexxException}
|
|
175
|
+
* @returns {Promise<Models.AuthLoginResponse>}
|
|
176
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
177
|
+
*/
|
|
178
|
+
customersAuthLogin(email: string, password: string): Promise<Models.AuthLoginResponse>;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @param {string} params.sessionId -
|
|
182
|
+
* @param {string} params.userId -
|
|
183
|
+
* @throws {RevenexxException}
|
|
184
|
+
* @returns {Promise<{}>}
|
|
185
|
+
*/
|
|
186
|
+
customersAuthLogout(params: {
|
|
187
|
+
sessionId: string;
|
|
188
|
+
userId: string;
|
|
189
|
+
}): Promise<{}>;
|
|
75
190
|
/**
|
|
76
191
|
*
|
|
192
|
+
* @param {string} sessionId -
|
|
193
|
+
* @param {string} userId -
|
|
77
194
|
* @throws {RevenexxException}
|
|
78
195
|
* @returns {Promise<{}>}
|
|
196
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
79
197
|
*/
|
|
80
|
-
customersAuthLogout(): Promise<{}>;
|
|
198
|
+
customersAuthLogout(sessionId: string, userId: string): Promise<{}>;
|
|
81
199
|
/**
|
|
82
200
|
*
|
|
201
|
+
* @param {string} params.userId -
|
|
202
|
+
* @param {string} params.sessionId - Optional session to verify — answers 401 when the session is expired or revoked.
|
|
83
203
|
* @throws {RevenexxException}
|
|
84
204
|
* @returns {Promise<Models.AuthMeResponse>}
|
|
85
205
|
*/
|
|
86
|
-
customersAuthMe(
|
|
206
|
+
customersAuthMe(params: {
|
|
207
|
+
userId: string;
|
|
208
|
+
sessionId?: string;
|
|
209
|
+
}): Promise<Models.AuthMeResponse>;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @param {string} userId -
|
|
213
|
+
* @param {string} sessionId - Optional session to verify — answers 401 when the session is expired or revoked.
|
|
214
|
+
* @throws {RevenexxException}
|
|
215
|
+
* @returns {Promise<Models.AuthMeResponse>}
|
|
216
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
217
|
+
*/
|
|
218
|
+
customersAuthMe(userId: string, sessionId?: string): Promise<Models.AuthMeResponse>;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @param {string} params.email -
|
|
222
|
+
* @param {string} params.url - Redirect URL carrying userId + secret.
|
|
223
|
+
* @throws {RevenexxException}
|
|
224
|
+
* @returns {Promise<{}>}
|
|
225
|
+
*/
|
|
226
|
+
customersAuthRecovery(params: {
|
|
227
|
+
email: string;
|
|
228
|
+
url: string;
|
|
229
|
+
}): Promise<{}>;
|
|
87
230
|
/**
|
|
88
231
|
*
|
|
232
|
+
* @param {string} email -
|
|
233
|
+
* @param {string} url - Redirect URL carrying userId + secret.
|
|
89
234
|
* @throws {RevenexxException}
|
|
90
235
|
* @returns {Promise<{}>}
|
|
236
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
91
237
|
*/
|
|
92
|
-
customersAuthRecovery(): Promise<{}>;
|
|
238
|
+
customersAuthRecovery(email: string, url: string): Promise<{}>;
|
|
93
239
|
/**
|
|
94
240
|
*
|
|
241
|
+
* @param {string} params.password -
|
|
242
|
+
* @param {string} params.secret -
|
|
243
|
+
* @param {string} params.userId -
|
|
95
244
|
* @throws {RevenexxException}
|
|
96
245
|
* @returns {Promise<{}>}
|
|
97
246
|
*/
|
|
98
|
-
customersAuthRecoveryConfirm(
|
|
247
|
+
customersAuthRecoveryConfirm(params: {
|
|
248
|
+
password: string;
|
|
249
|
+
secret: string;
|
|
250
|
+
userId: string;
|
|
251
|
+
}): Promise<{}>;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @param {string} password -
|
|
255
|
+
* @param {string} secret -
|
|
256
|
+
* @param {string} userId -
|
|
257
|
+
* @throws {RevenexxException}
|
|
258
|
+
* @returns {Promise<{}>}
|
|
259
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
260
|
+
*/
|
|
261
|
+
customersAuthRecoveryConfirm(password: string, secret: string, userId: string): Promise<{}>;
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @param {string} params.email -
|
|
265
|
+
* @param {string} params.password -
|
|
266
|
+
* @param {string} params.firstName -
|
|
267
|
+
* @param {string} params.lastName -
|
|
268
|
+
* @param {string} params.locale - BCP 47, e.g. de-DE
|
|
269
|
+
* @param {string} params.organizationId - Join an existing organization.
|
|
270
|
+
* @param {string} params.organizationName - Found a new organization; the contact becomes its admin.
|
|
271
|
+
* @throws {RevenexxException}
|
|
272
|
+
* @returns {Promise<Models.AuthRegisterResponse>}
|
|
273
|
+
*/
|
|
274
|
+
customersAuthRegister(params: {
|
|
275
|
+
email: string;
|
|
276
|
+
password: string;
|
|
277
|
+
firstName?: string;
|
|
278
|
+
lastName?: string;
|
|
279
|
+
locale?: string;
|
|
280
|
+
organizationId?: string;
|
|
281
|
+
organizationName?: string;
|
|
282
|
+
}): Promise<Models.AuthRegisterResponse>;
|
|
99
283
|
/**
|
|
100
284
|
*
|
|
285
|
+
* @param {string} email -
|
|
286
|
+
* @param {string} password -
|
|
287
|
+
* @param {string} firstName -
|
|
288
|
+
* @param {string} lastName -
|
|
289
|
+
* @param {string} locale - BCP 47, e.g. de-DE
|
|
290
|
+
* @param {string} organizationId - Join an existing organization.
|
|
291
|
+
* @param {string} organizationName - Found a new organization; the contact becomes its admin.
|
|
101
292
|
* @throws {RevenexxException}
|
|
102
293
|
* @returns {Promise<Models.AuthRegisterResponse>}
|
|
294
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
103
295
|
*/
|
|
104
|
-
customersAuthRegister(): Promise<Models.AuthRegisterResponse>;
|
|
296
|
+
customersAuthRegister(email: string, password: string, firstName?: string, lastName?: string, locale?: string, organizationId?: string, organizationName?: string): Promise<Models.AuthRegisterResponse>;
|
|
105
297
|
/**
|
|
106
298
|
*
|
|
107
299
|
* @throws {RevenexxException}
|
|
@@ -110,10 +302,45 @@ export declare class Customers {
|
|
|
110
302
|
customersContactsList(): Promise<{}>;
|
|
111
303
|
/**
|
|
112
304
|
*
|
|
305
|
+
* @param {string} params.email -
|
|
306
|
+
* @param {string} params.firstName -
|
|
307
|
+
* @param {boolean} params.isPrimary - The primary contact of its organization.
|
|
308
|
+
* @param {string} params.lastName -
|
|
309
|
+
* @param {string} params.locale - BCP 47, e.g. de-DE
|
|
310
|
+
* @param {string} params.organizationId - Owning organization — membership is mirrored to the platform team.
|
|
311
|
+
* @param {string} params.phone -
|
|
312
|
+
* @param {ContactRole} params.role - Default 'buyer' — also the team role on the platform mirror.
|
|
313
|
+
* @param {ContactStatus} params.status - Default 'invited' on create.
|
|
314
|
+
* @throws {RevenexxException}
|
|
315
|
+
* @returns {Promise<Models.Contact>}
|
|
316
|
+
*/
|
|
317
|
+
customersContactsCreate(params: {
|
|
318
|
+
email: string;
|
|
319
|
+
firstName?: string;
|
|
320
|
+
isPrimary?: boolean;
|
|
321
|
+
lastName?: string;
|
|
322
|
+
locale?: string;
|
|
323
|
+
organizationId?: string;
|
|
324
|
+
phone?: string;
|
|
325
|
+
role?: ContactRole;
|
|
326
|
+
status?: ContactStatus;
|
|
327
|
+
}): Promise<Models.Contact>;
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @param {string} email -
|
|
331
|
+
* @param {string} firstName -
|
|
332
|
+
* @param {boolean} isPrimary - The primary contact of its organization.
|
|
333
|
+
* @param {string} lastName -
|
|
334
|
+
* @param {string} locale - BCP 47, e.g. de-DE
|
|
335
|
+
* @param {string} organizationId - Owning organization — membership is mirrored to the platform team.
|
|
336
|
+
* @param {string} phone -
|
|
337
|
+
* @param {ContactRole} role - Default 'buyer' — also the team role on the platform mirror.
|
|
338
|
+
* @param {ContactStatus} status - Default 'invited' on create.
|
|
113
339
|
* @throws {RevenexxException}
|
|
114
340
|
* @returns {Promise<Models.Contact>}
|
|
341
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
115
342
|
*/
|
|
116
|
-
customersContactsCreate(): Promise<Models.Contact>;
|
|
343
|
+
customersContactsCreate(email: string, firstName?: string, isPrimary?: boolean, lastName?: string, locale?: string, organizationId?: string, phone?: string, role?: ContactRole, status?: ContactStatus): Promise<Models.Contact>;
|
|
117
344
|
/**
|
|
118
345
|
*
|
|
119
346
|
* @param {string} params.id -
|
|
@@ -151,20 +378,47 @@ export declare class Customers {
|
|
|
151
378
|
/**
|
|
152
379
|
*
|
|
153
380
|
* @param {string} params.id -
|
|
381
|
+
* @param {string} params.email -
|
|
382
|
+
* @param {string} params.firstName -
|
|
383
|
+
* @param {boolean} params.isPrimary - The primary contact of its organization.
|
|
384
|
+
* @param {string} params.lastName -
|
|
385
|
+
* @param {string} params.locale - BCP 47, e.g. de-DE
|
|
386
|
+
* @param {string} params.organizationId - Owning organization — membership is mirrored to the platform team.
|
|
387
|
+
* @param {string} params.phone -
|
|
388
|
+
* @param {ContactRole} params.role - Default 'buyer' — also the team role on the platform mirror.
|
|
389
|
+
* @param {ContactStatus} params.status - Default 'invited' on create.
|
|
154
390
|
* @throws {RevenexxException}
|
|
155
391
|
* @returns {Promise<Models.Contact>}
|
|
156
392
|
*/
|
|
157
393
|
customersContactsUpdate(params: {
|
|
158
394
|
id: string;
|
|
395
|
+
email?: string;
|
|
396
|
+
firstName?: string;
|
|
397
|
+
isPrimary?: boolean;
|
|
398
|
+
lastName?: string;
|
|
399
|
+
locale?: string;
|
|
400
|
+
organizationId?: string;
|
|
401
|
+
phone?: string;
|
|
402
|
+
role?: ContactRole;
|
|
403
|
+
status?: ContactStatus;
|
|
159
404
|
}): Promise<Models.Contact>;
|
|
160
405
|
/**
|
|
161
406
|
*
|
|
162
407
|
* @param {string} id -
|
|
408
|
+
* @param {string} email -
|
|
409
|
+
* @param {string} firstName -
|
|
410
|
+
* @param {boolean} isPrimary - The primary contact of its organization.
|
|
411
|
+
* @param {string} lastName -
|
|
412
|
+
* @param {string} locale - BCP 47, e.g. de-DE
|
|
413
|
+
* @param {string} organizationId - Owning organization — membership is mirrored to the platform team.
|
|
414
|
+
* @param {string} phone -
|
|
415
|
+
* @param {ContactRole} role - Default 'buyer' — also the team role on the platform mirror.
|
|
416
|
+
* @param {ContactStatus} status - Default 'invited' on create.
|
|
163
417
|
* @throws {RevenexxException}
|
|
164
418
|
* @returns {Promise<Models.Contact>}
|
|
165
419
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
166
420
|
*/
|
|
167
|
-
customersContactsUpdate(id: string): Promise<Models.Contact>;
|
|
421
|
+
customersContactsUpdate(id: string, email?: string, firstName?: string, isPrimary?: boolean, lastName?: string, locale?: string, organizationId?: string, phone?: string, role?: ContactRole, status?: ContactStatus): Promise<Models.Contact>;
|
|
168
422
|
/**
|
|
169
423
|
*
|
|
170
424
|
* @throws {RevenexxException}
|
|
@@ -173,10 +427,30 @@ export declare class Customers {
|
|
|
173
427
|
customersOrganizationsList(): Promise<{}>;
|
|
174
428
|
/**
|
|
175
429
|
*
|
|
430
|
+
* @param {string} params.name - Company name — mirrored to the platform team.
|
|
431
|
+
* @param {object} params.settings - Free-form organization settings.
|
|
432
|
+
* @param {OrganizationStatus} params.status - Default 'active'.
|
|
433
|
+
* @param {string} params.vatId -
|
|
176
434
|
* @throws {RevenexxException}
|
|
177
435
|
* @returns {Promise<Models.Organization>}
|
|
178
436
|
*/
|
|
179
|
-
customersOrganizationsCreate(
|
|
437
|
+
customersOrganizationsCreate(params: {
|
|
438
|
+
name: string;
|
|
439
|
+
settings?: object;
|
|
440
|
+
status?: OrganizationStatus;
|
|
441
|
+
vatId?: string;
|
|
442
|
+
}): Promise<Models.Organization>;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @param {string} name - Company name — mirrored to the platform team.
|
|
446
|
+
* @param {object} settings - Free-form organization settings.
|
|
447
|
+
* @param {OrganizationStatus} status - Default 'active'.
|
|
448
|
+
* @param {string} vatId -
|
|
449
|
+
* @throws {RevenexxException}
|
|
450
|
+
* @returns {Promise<Models.Organization>}
|
|
451
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
452
|
+
*/
|
|
453
|
+
customersOrganizationsCreate(name: string, settings?: object, status?: OrganizationStatus, vatId?: string): Promise<Models.Organization>;
|
|
180
454
|
/**
|
|
181
455
|
*
|
|
182
456
|
* @param {string} params.id -
|
|
@@ -214,18 +488,30 @@ export declare class Customers {
|
|
|
214
488
|
/**
|
|
215
489
|
*
|
|
216
490
|
* @param {string} params.id -
|
|
491
|
+
* @param {string} params.name - Company name — mirrored to the platform team.
|
|
492
|
+
* @param {object} params.settings - Free-form organization settings.
|
|
493
|
+
* @param {OrganizationStatus} params.status - Default 'active'.
|
|
494
|
+
* @param {string} params.vatId -
|
|
217
495
|
* @throws {RevenexxException}
|
|
218
496
|
* @returns {Promise<Models.Organization>}
|
|
219
497
|
*/
|
|
220
498
|
customersOrganizationsUpdate(params: {
|
|
221
499
|
id: string;
|
|
500
|
+
name?: string;
|
|
501
|
+
settings?: object;
|
|
502
|
+
status?: OrganizationStatus;
|
|
503
|
+
vatId?: string;
|
|
222
504
|
}): Promise<Models.Organization>;
|
|
223
505
|
/**
|
|
224
506
|
*
|
|
225
507
|
* @param {string} id -
|
|
508
|
+
* @param {string} name - Company name — mirrored to the platform team.
|
|
509
|
+
* @param {object} settings - Free-form organization settings.
|
|
510
|
+
* @param {OrganizationStatus} status - Default 'active'.
|
|
511
|
+
* @param {string} vatId -
|
|
226
512
|
* @throws {RevenexxException}
|
|
227
513
|
* @returns {Promise<Models.Organization>}
|
|
228
514
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
229
515
|
*/
|
|
230
|
-
customersOrganizationsUpdate(id: string): Promise<Models.Organization>;
|
|
516
|
+
customersOrganizationsUpdate(id: string, name?: string, settings?: object, status?: OrganizationStatus, vatId?: string): Promise<Models.Organization>;
|
|
231
517
|
}
|