@wix/auto_sdk_ecom_order-invoices 1.0.1 → 1.0.2

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.
@@ -5,7 +5,11 @@ export interface Invoice {
5
5
  appId?: string;
6
6
  }
7
7
  export interface ListInvoicesForSingleOrderRequest {
8
- /** Order ID. */
8
+ /**
9
+ * Order ID.
10
+ * @minLength 1
11
+ * @maxLength 100
12
+ */
9
13
  orderId?: string;
10
14
  }
11
15
  export interface ListInvoicesForSingleOrderResponse {
@@ -13,7 +17,12 @@ export interface ListInvoicesForSingleOrderResponse {
13
17
  invoices?: Invoice[];
14
18
  }
15
19
  export interface ListInvoicesForMultipleOrdersRequest {
16
- /** Order IDs for which to retrieve invoices. */
20
+ /**
21
+ * Order IDs for which to retrieve invoices.
22
+ * @maxSize 100
23
+ * @minLength 1
24
+ * @maxLength 100
25
+ */
17
26
  orderIds: string[];
18
27
  }
19
28
  export interface ListInvoicesForMultipleOrdersResponse {
@@ -23,11 +32,18 @@ export interface ListInvoicesForMultipleOrdersResponse {
23
32
  export interface InvoicesForOrder {
24
33
  /** Order ID. */
25
34
  orderId?: string;
26
- /** Invoices info. */
35
+ /**
36
+ * Invoices info.
37
+ * @maxSize 300
38
+ */
27
39
  invoicesInfo?: Invoice[];
28
40
  }
29
41
  export interface GenerateInvoiceRequest {
30
- /** Order ID. */
42
+ /**
43
+ * Order ID.
44
+ * @minLength 1
45
+ * @maxLength 100
46
+ */
31
47
  orderId: string;
32
48
  }
33
49
  export interface GenerateInvoiceResponse {
@@ -35,7 +51,13 @@ export interface GenerateInvoiceResponse {
35
51
  invoiceId?: string;
36
52
  }
37
53
  export interface BulkGenerateInvoicesRequest {
38
- /** Order IDs. */
54
+ /**
55
+ * Order IDs.
56
+ * @minSize 1
57
+ * @maxSize 300
58
+ * @minLength 1
59
+ * @maxLength 100
60
+ */
39
61
  orderIds: string[];
40
62
  }
41
63
  export interface BulkGenerateInvoicesResponse {
@@ -79,7 +101,11 @@ export interface BulkActionMetadata {
79
101
  undetailedFailures?: number;
80
102
  }
81
103
  export interface AddInvoiceToOrderRequest {
82
- /** Order ID. */
104
+ /**
105
+ * Order ID.
106
+ * @minLength 1
107
+ * @maxLength 100
108
+ */
83
109
  orderId: string;
84
110
  /** Invoice info. */
85
111
  invoiceInfo: Invoice;
@@ -163,30 +189,56 @@ export interface ActionEvent {
163
189
  export interface Empty {
164
190
  }
165
191
  export interface GetOrderInvoiceRequest {
166
- /** Invoice ID. */
192
+ /**
193
+ * Invoice ID.
194
+ * @minLength 1
195
+ * @maxLength 100
196
+ */
167
197
  invoiceId?: string;
168
198
  }
169
199
  export interface GetOrderInvoiceResponse {
170
- /** Order ID. */
200
+ /**
201
+ * Order ID.
202
+ * @minLength 1
203
+ * @maxLength 100
204
+ */
171
205
  orderId?: string;
172
206
  /** Invoice info. */
173
207
  invoiceInfo?: Invoice;
174
208
  }
175
209
  export interface GenerateInvoiceWithNumberRequest {
176
- /** Order ID. */
210
+ /**
211
+ * Order ID.
212
+ * @minLength 1
213
+ * @maxLength 100
214
+ */
177
215
  orderId?: string;
216
+ /**
217
+ * @minLength 1
218
+ * @maxLength 11
219
+ */
178
220
  invoiceNumber?: string;
179
221
  /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
180
222
  issueDate?: Date | null;
181
223
  }
182
224
  export interface GenerateInvoiceWithNumberResponse {
183
- /** Invoice ID. */
225
+ /**
226
+ * Invoice ID.
227
+ * @minLength 1
228
+ * @maxLength 100
229
+ */
184
230
  invoiceId?: string;
185
231
  }
186
232
  export interface MessageEnvelope {
187
- /** App instance ID. */
233
+ /**
234
+ * App instance ID.
235
+ * @format GUID
236
+ */
188
237
  instanceId?: string | null;
189
- /** Event type. */
238
+ /**
239
+ * Event type.
240
+ * @maxLength 150
241
+ */
190
242
  eventType?: string;
191
243
  /** The identification type and identity data. */
192
244
  identity?: IdentificationData;
@@ -194,26 +246,50 @@ export interface MessageEnvelope {
194
246
  data?: string;
195
247
  }
196
248
  export interface IdentificationData extends IdentificationDataIdOneOf {
197
- /** ID of a site visitor that has not logged in to the site. */
249
+ /**
250
+ * ID of a site visitor that has not logged in to the site.
251
+ * @format GUID
252
+ */
198
253
  anonymousVisitorId?: string;
199
- /** ID of a site visitor that has logged in to the site. */
254
+ /**
255
+ * ID of a site visitor that has logged in to the site.
256
+ * @format GUID
257
+ */
200
258
  memberId?: string;
201
- /** ID of a Wix user (site owner, contributor, etc.). */
259
+ /**
260
+ * ID of a Wix user (site owner, contributor, etc.).
261
+ * @format GUID
262
+ */
202
263
  wixUserId?: string;
203
- /** ID of an app. */
264
+ /**
265
+ * ID of an app.
266
+ * @format GUID
267
+ */
204
268
  appId?: string;
205
269
  /** @readonly */
206
270
  identityType?: WebhookIdentityType;
207
271
  }
208
272
  /** @oneof */
209
273
  export interface IdentificationDataIdOneOf {
210
- /** ID of a site visitor that has not logged in to the site. */
274
+ /**
275
+ * ID of a site visitor that has not logged in to the site.
276
+ * @format GUID
277
+ */
211
278
  anonymousVisitorId?: string;
212
- /** ID of a site visitor that has logged in to the site. */
279
+ /**
280
+ * ID of a site visitor that has logged in to the site.
281
+ * @format GUID
282
+ */
213
283
  memberId?: string;
214
- /** ID of a Wix user (site owner, contributor, etc.). */
284
+ /**
285
+ * ID of a Wix user (site owner, contributor, etc.).
286
+ * @format GUID
287
+ */
215
288
  wixUserId?: string;
216
- /** ID of an app. */
289
+ /**
290
+ * ID of an app.
291
+ * @format GUID
292
+ */
217
293
  appId?: string;
218
294
  }
219
295
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.types.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.types.ts"],"names":[],"mappings":";;;AAyPA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.types.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.types.ts"],"names":[],"mappings":";;;AAqUA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
@@ -5,7 +5,11 @@ export interface Invoice {
5
5
  appId?: string;
6
6
  }
7
7
  export interface ListInvoicesForSingleOrderRequest {
8
- /** Order ID. */
8
+ /**
9
+ * Order ID.
10
+ * @minLength 1
11
+ * @maxLength 100
12
+ */
9
13
  orderId?: string;
10
14
  }
11
15
  export interface ListInvoicesForSingleOrderResponse {
@@ -13,7 +17,12 @@ export interface ListInvoicesForSingleOrderResponse {
13
17
  invoices?: Invoice[];
14
18
  }
15
19
  export interface ListInvoicesForMultipleOrdersRequest {
16
- /** Order IDs for which to retrieve invoices. */
20
+ /**
21
+ * Order IDs for which to retrieve invoices.
22
+ * @maxSize 100
23
+ * @minLength 1
24
+ * @maxLength 100
25
+ */
17
26
  orderIds: string[];
18
27
  }
19
28
  export interface ListInvoicesForMultipleOrdersResponse {
@@ -23,11 +32,18 @@ export interface ListInvoicesForMultipleOrdersResponse {
23
32
  export interface InvoicesForOrder {
24
33
  /** Order ID. */
25
34
  orderId?: string;
26
- /** Invoices info. */
35
+ /**
36
+ * Invoices info.
37
+ * @maxSize 300
38
+ */
27
39
  invoicesInfo?: Invoice[];
28
40
  }
29
41
  export interface GenerateInvoiceRequest {
30
- /** Order ID. */
42
+ /**
43
+ * Order ID.
44
+ * @minLength 1
45
+ * @maxLength 100
46
+ */
31
47
  orderId: string;
32
48
  }
33
49
  export interface GenerateInvoiceResponse {
@@ -35,7 +51,13 @@ export interface GenerateInvoiceResponse {
35
51
  invoiceId?: string;
36
52
  }
37
53
  export interface BulkGenerateInvoicesRequest {
38
- /** Order IDs. */
54
+ /**
55
+ * Order IDs.
56
+ * @minSize 1
57
+ * @maxSize 300
58
+ * @minLength 1
59
+ * @maxLength 100
60
+ */
39
61
  orderIds: string[];
40
62
  }
41
63
  export interface BulkGenerateInvoicesResponse {
@@ -79,7 +101,11 @@ export interface BulkActionMetadata {
79
101
  undetailedFailures?: number;
80
102
  }
81
103
  export interface AddInvoiceToOrderRequest {
82
- /** Order ID. */
104
+ /**
105
+ * Order ID.
106
+ * @minLength 1
107
+ * @maxLength 100
108
+ */
83
109
  orderId: string;
84
110
  /** Invoice info. */
85
111
  invoiceInfo: Invoice;
@@ -161,30 +187,56 @@ export interface ActionEvent {
161
187
  export interface Empty {
162
188
  }
163
189
  export interface GetOrderInvoiceRequest {
164
- /** Invoice ID. */
190
+ /**
191
+ * Invoice ID.
192
+ * @minLength 1
193
+ * @maxLength 100
194
+ */
165
195
  invoiceId?: string;
166
196
  }
167
197
  export interface GetOrderInvoiceResponse {
168
- /** Order ID. */
198
+ /**
199
+ * Order ID.
200
+ * @minLength 1
201
+ * @maxLength 100
202
+ */
169
203
  orderId?: string;
170
204
  /** Invoice info. */
171
205
  invoiceInfo?: Invoice;
172
206
  }
173
207
  export interface GenerateInvoiceWithNumberRequest {
174
- /** Order ID. */
208
+ /**
209
+ * Order ID.
210
+ * @minLength 1
211
+ * @maxLength 100
212
+ */
175
213
  orderId?: string;
214
+ /**
215
+ * @minLength 1
216
+ * @maxLength 11
217
+ */
176
218
  invoiceNumber?: string;
177
219
  /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
178
220
  issueDate?: Date | null;
179
221
  }
180
222
  export interface GenerateInvoiceWithNumberResponse {
181
- /** Invoice ID. */
223
+ /**
224
+ * Invoice ID.
225
+ * @minLength 1
226
+ * @maxLength 100
227
+ */
182
228
  invoiceId?: string;
183
229
  }
184
230
  export interface MessageEnvelope {
185
- /** App instance ID. */
231
+ /**
232
+ * App instance ID.
233
+ * @format GUID
234
+ */
186
235
  instanceId?: string | null;
187
- /** Event type. */
236
+ /**
237
+ * Event type.
238
+ * @maxLength 150
239
+ */
188
240
  eventType?: string;
189
241
  /** The identification type and identity data. */
190
242
  identity?: IdentificationData;
@@ -192,26 +244,50 @@ export interface MessageEnvelope {
192
244
  data?: string;
193
245
  }
194
246
  export interface IdentificationData extends IdentificationDataIdOneOf {
195
- /** ID of a site visitor that has not logged in to the site. */
247
+ /**
248
+ * ID of a site visitor that has not logged in to the site.
249
+ * @format GUID
250
+ */
196
251
  anonymousVisitorId?: string;
197
- /** ID of a site visitor that has logged in to the site. */
252
+ /**
253
+ * ID of a site visitor that has logged in to the site.
254
+ * @format GUID
255
+ */
198
256
  memberId?: string;
199
- /** ID of a Wix user (site owner, contributor, etc.). */
257
+ /**
258
+ * ID of a Wix user (site owner, contributor, etc.).
259
+ * @format GUID
260
+ */
200
261
  wixUserId?: string;
201
- /** ID of an app. */
262
+ /**
263
+ * ID of an app.
264
+ * @format GUID
265
+ */
202
266
  appId?: string;
203
267
  /** @readonly */
204
268
  identityType?: WebhookIdentityType;
205
269
  }
206
270
  /** @oneof */
207
271
  export interface IdentificationDataIdOneOf {
208
- /** ID of a site visitor that has not logged in to the site. */
272
+ /**
273
+ * ID of a site visitor that has not logged in to the site.
274
+ * @format GUID
275
+ */
209
276
  anonymousVisitorId?: string;
210
- /** ID of a site visitor that has logged in to the site. */
277
+ /**
278
+ * ID of a site visitor that has logged in to the site.
279
+ * @format GUID
280
+ */
211
281
  memberId?: string;
212
- /** ID of a Wix user (site owner, contributor, etc.). */
282
+ /**
283
+ * ID of a Wix user (site owner, contributor, etc.).
284
+ * @format GUID
285
+ */
213
286
  wixUserId?: string;
214
- /** ID of an app. */
287
+ /**
288
+ * ID of an app.
289
+ * @format GUID
290
+ */
215
291
  appId?: string;
216
292
  }
217
293
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.universal.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,kHAAoG;AAyPpG,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAyDD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACI,KAAK,UAAU,6BAA6B,CACjD,QAAkB;IAKlB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAE9E,MAAM,OAAO,GACX,gCAAgC,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAE1E,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,QAAQ,EAAE,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E,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;YAClE,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,EAAE,aAAa,CAAC,CAC3B,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAvCD,8CAuCC"}
1
+ {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.universal.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,kHAAoG;AAqUpG,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAyDD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACI,KAAK,UAAU,6BAA6B,CACjD,QAAkB;IAKlB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,QA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est {
8
- /** Order ID. */
8
+ /**
9
+ * Order ID.
10
+ * @minLength 1
11
+ * @maxLength 100
12
+ */
9
13
  orderId?: string;
10
14
  }
11
15
  export interface ListInvoicesForSingleOrderResponse {
@@ -13,7 +17,12 @@ export interface ListInvoicesForSingleOrderResponse {
13
17
  invoices?: Invoice[];
14
18
  }
15
19
  export interface ListInvoicesForMultipleOrdersRequest {
16
- /** Order IDs for which to retrieve invoices. */
20
+ /**
21
+ * Order IDs for which to retrieve invoices.
22
+ * @maxSize 100
23
+ * @minLength 1
24
+ * @maxLength 100
25
+ */
17
26
  orderIds: string[];
18
27
  }
19
28
  export interface ListInvoicesForMultipleOrdersResponse {
@@ -23,11 +32,18 @@ export interface ListInvoicesForMultipleOrdersResponse {
23
32
  export interface InvoicesForOrder {
24
33
  /** Order ID. */
25
34
  orderId?: string;
26
- /** Invoices info. */
35
+ /**
36
+ * Invoices info.
37
+ * @maxSize 300
38
+ */
27
39
  invoicesInfo?: Invoice[];
28
40
  }
29
41
  export interface GenerateInvoiceRequest {
30
- /** Order ID. */
42
+ /**
43
+ * Order ID.
44
+ * @minLength 1
45
+ * @maxLength 100
46
+ */
31
47
  orderId: string;
32
48
  }
33
49
  export interface GenerateInvoiceResponse {
@@ -35,7 +51,13 @@ export interface GenerateInvoiceResponse {
35
51
  invoiceId?: string;
36
52
  }
37
53
  export interface BulkGenerateInvoicesRequest {
38
- /** Order IDs. */
54
+ /**
55
+ * Order IDs.
56
+ * @minSize 1
57
+ * @maxSize 300
58
+ * @minLength 1
59
+ * @maxLength 100
60
+ */
39
61
  orderIds: string[];
40
62
  }
41
63
  export interface BulkGenerateInvoicesResponse {
@@ -79,7 +101,11 @@ export interface BulkActionMetadata {
79
101
  undetailedFailures?: number;
80
102
  }
81
103
  export interface AddInvoiceToOrderRequest {
82
- /** Order ID. */
104
+ /**
105
+ * Order ID.
106
+ * @minLength 1
107
+ * @maxLength 100
108
+ */
83
109
  orderId: string;
84
110
  /** Invoice info. */
85
111
  invoiceInfo: Invoice;
@@ -163,30 +189,56 @@ export interface ActionEvent {
163
189
  export interface Empty {
164
190
  }
165
191
  export interface GetOrderInvoiceRequest {
166
- /** Invoice ID. */
192
+ /**
193
+ * Invoice ID.
194
+ * @minLength 1
195
+ * @maxLength 100
196
+ */
167
197
  invoiceId?: string;
168
198
  }
169
199
  export interface GetOrderInvoiceResponse {
170
- /** Order ID. */
200
+ /**
201
+ * Order ID.
202
+ * @minLength 1
203
+ * @maxLength 100
204
+ */
171
205
  orderId?: string;
172
206
  /** Invoice info. */
173
207
  invoiceInfo?: Invoice;
174
208
  }
175
209
  export interface GenerateInvoiceWithNumberRequest {
176
- /** Order ID. */
210
+ /**
211
+ * Order ID.
212
+ * @minLength 1
213
+ * @maxLength 100
214
+ */
177
215
  orderId?: string;
216
+ /**
217
+ * @minLength 1
218
+ * @maxLength 11
219
+ */
178
220
  invoiceNumber?: string;
179
221
  /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
180
222
  issueDate?: Date | null;
181
223
  }
182
224
  export interface GenerateInvoiceWithNumberResponse {
183
- /** Invoice ID. */
225
+ /**
226
+ * Invoice ID.
227
+ * @minLength 1
228
+ * @maxLength 100
229
+ */
184
230
  invoiceId?: string;
185
231
  }
186
232
  export interface MessageEnvelope {
187
- /** App instance ID. */
233
+ /**
234
+ * App instance ID.
235
+ * @format GUID
236
+ */
188
237
  instanceId?: string | null;
189
- /** Event type. */
238
+ /**
239
+ * Event type.
240
+ * @maxLength 150
241
+ */
190
242
  eventType?: string;
191
243
  /** The identification type and identity data. */
192
244
  identity?: IdentificationData;
@@ -194,26 +246,50 @@ export interface MessageEnvelope {
194
246
  data?: string;
195
247
  }
196
248
  export interface IdentificationData extends IdentificationDataIdOneOf {
197
- /** ID of a site visitor that has not logged in to the site. */
249
+ /**
250
+ * ID of a site visitor that has not logged in to the site.
251
+ * @format GUID
252
+ */
198
253
  anonymousVisitorId?: string;
199
- /** ID of a site visitor that has logged in to the site. */
254
+ /**
255
+ * ID of a site visitor that has logged in to the site.
256
+ * @format GUID
257
+ */
200
258
  memberId?: string;
201
- /** ID of a Wix user (site owner, contributor, etc.). */
259
+ /**
260
+ * ID of a Wix user (site owner, contributor, etc.).
261
+ * @format GUID
262
+ */
202
263
  wixUserId?: string;
203
- /** ID of an app. */
264
+ /**
265
+ * ID of an app.
266
+ * @format GUID
267
+ */
204
268
  appId?: string;
205
269
  /** @readonly */
206
270
  identityType?: WebhookIdentityType;
207
271
  }
208
272
  /** @oneof */
209
273
  export interface IdentificationDataIdOneOf {
210
- /** ID of a site visitor that has not logged in to the site. */
274
+ /**
275
+ * ID of a site visitor that has not logged in to the site.
276
+ * @format GUID
277
+ */
211
278
  anonymousVisitorId?: string;
212
- /** ID of a site visitor that has logged in to the site. */
279
+ /**
280
+ * ID of a site visitor that has logged in to the site.
281
+ * @format GUID
282
+ */
213
283
  memberId?: string;
214
- /** ID of a Wix user (site owner, contributor, etc.). */
284
+ /**
285
+ * ID of a Wix user (site owner, contributor, etc.).
286
+ * @format GUID
287
+ */
215
288
  wixUserId?: string;
216
- /** ID of an app. */
289
+ /**
290
+ * ID of an app.
291
+ * @format GUID
292
+ */
217
293
  appId?: string;
218
294
  }
219
295
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.types.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.types.ts"],"names":[],"mappings":"AAyPA,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.types.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.types.ts"],"names":[],"mappings":"AAqUA,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}