@wix/auto_sdk_ecom_subscription-contracts 1.0.17 → 1.0.19
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/build/{cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-C1mp-xS2.d.mts} +251 -398
- package/build/{es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-C1mp-xS2.d.ts} +251 -398
- package/build/index.d.mts +39 -0
- package/build/index.d.ts +39 -0
- package/build/index.js +659 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +615 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts → internal/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-WYe0iZSk.d.mts} +207 -447
- package/build/{es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts → internal/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-WYe0iZSk.d.ts} +207 -447
- package/build/internal/index.d.mts +39 -0
- package/build/internal/index.d.ts +39 -0
- package/build/internal/index.js +659 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +615 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/{cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → meta.d.mts} +93 -751
- package/build/internal/{es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → meta.d.ts} +93 -751
- package/build/internal/meta.js +257 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +229 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +1320 -0
- package/build/meta.d.ts +1320 -0
- package/build/meta.js +257 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +229 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -35
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -198
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -66
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -153
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -161
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -342
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -16
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -193
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -38
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -132
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -158
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -314
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -35
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -198
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -66
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -153
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -161
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +0 -2251
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -342
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -16
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -193
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -38
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -132
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -158
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +0 -2251
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -314
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { aw as GetSubscriptionContractRequest$1, ax as GetSubscriptionContractResponse$1, aA as QuerySubscriptionContractsRequest$1, aF as QuerySubscriptionContractsResponse$1 } from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-WYe0iZSk.mjs';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* A SubscriptionContract is a ...
|
|
3
5
|
* You can ...
|
|
4
6
|
* Read more about SubscriptionContracts
|
|
5
7
|
* in this [article](<LINK_TO_KB_ARTICLE>).
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
interface SubscriptionContract {
|
|
8
10
|
/**
|
|
9
11
|
* SubscriptionContract ID.
|
|
10
12
|
* @format GUID
|
|
@@ -116,19 +118,7 @@ export interface SubscriptionContract {
|
|
|
116
118
|
*/
|
|
117
119
|
additionalFees?: AdditionalFee[];
|
|
118
120
|
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Subscription option description.
|
|
122
|
-
* @maxLength 500
|
|
123
|
-
*/
|
|
124
|
-
original?: string;
|
|
125
|
-
/**
|
|
126
|
-
* Translated subscription option description.
|
|
127
|
-
* @maxLength 500
|
|
128
|
-
*/
|
|
129
|
-
translated?: string | null;
|
|
130
|
-
}
|
|
131
|
-
export interface V1SubscriptionSettings {
|
|
121
|
+
interface V1SubscriptionSettings {
|
|
132
122
|
/** Frequency of recurring payment. */
|
|
133
123
|
frequency?: SubscriptionFrequency;
|
|
134
124
|
/**
|
|
@@ -147,24 +137,14 @@ export interface V1SubscriptionSettings {
|
|
|
147
137
|
/** Whether to allow the customer to cancel the subscription. */
|
|
148
138
|
enableCustomerCancellation?: boolean;
|
|
149
139
|
}
|
|
150
|
-
|
|
140
|
+
declare enum SubscriptionFrequency {
|
|
151
141
|
UNDEFINED = "UNDEFINED",
|
|
152
142
|
DAY = "DAY",
|
|
153
143
|
WEEK = "WEEK",
|
|
154
144
|
MONTH = "MONTH",
|
|
155
145
|
YEAR = "YEAR"
|
|
156
146
|
}
|
|
157
|
-
|
|
158
|
-
/** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
|
|
159
|
-
frequency?: SubscriptionFrequency;
|
|
160
|
-
/**
|
|
161
|
-
* interval of period
|
|
162
|
-
* @min 1
|
|
163
|
-
* @max 999
|
|
164
|
-
*/
|
|
165
|
-
interval?: number;
|
|
166
|
-
}
|
|
167
|
-
export interface OrderLineItem {
|
|
147
|
+
interface OrderLineItem {
|
|
168
148
|
/**
|
|
169
149
|
* Line item ID.
|
|
170
150
|
* @immutable
|
|
@@ -281,7 +261,7 @@ export interface OrderLineItem {
|
|
|
281
261
|
*/
|
|
282
262
|
extendedFields?: ExtendedFields;
|
|
283
263
|
}
|
|
284
|
-
|
|
264
|
+
interface ProductName {
|
|
285
265
|
/**
|
|
286
266
|
* __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
287
267
|
*
|
|
@@ -303,7 +283,7 @@ export interface ProductName {
|
|
|
303
283
|
translated?: string | null;
|
|
304
284
|
}
|
|
305
285
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
306
|
-
|
|
286
|
+
interface CatalogReference {
|
|
307
287
|
/**
|
|
308
288
|
* ID of the item within the catalog it belongs to.
|
|
309
289
|
* @minLength 1
|
|
@@ -329,7 +309,7 @@ export interface CatalogReference {
|
|
|
329
309
|
*/
|
|
330
310
|
options?: Record<string, any> | null;
|
|
331
311
|
}
|
|
332
|
-
|
|
312
|
+
interface Price {
|
|
333
313
|
/**
|
|
334
314
|
* Amount.
|
|
335
315
|
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
@@ -341,7 +321,7 @@ export interface Price {
|
|
|
341
321
|
*/
|
|
342
322
|
formattedAmount?: string;
|
|
343
323
|
}
|
|
344
|
-
|
|
324
|
+
interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
|
|
345
325
|
/** Description line plain text value. */
|
|
346
326
|
plainText?: PlainTextValue;
|
|
347
327
|
/** Description line color value. */
|
|
@@ -350,16 +330,16 @@ export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionL
|
|
|
350
330
|
name?: DescriptionLineName;
|
|
351
331
|
}
|
|
352
332
|
/** @oneof */
|
|
353
|
-
|
|
333
|
+
interface DescriptionLineValueOneOf {
|
|
354
334
|
/** Description line plain text value. */
|
|
355
335
|
plainText?: PlainTextValue;
|
|
356
336
|
/** Description line color value. */
|
|
357
337
|
colorInfo?: Color;
|
|
358
338
|
}
|
|
359
339
|
/** @oneof */
|
|
360
|
-
|
|
340
|
+
interface DescriptionLineDescriptionLineValueOneOf {
|
|
361
341
|
}
|
|
362
|
-
|
|
342
|
+
interface DescriptionLineName {
|
|
363
343
|
/**
|
|
364
344
|
* Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
365
345
|
* @maxLength 100
|
|
@@ -373,7 +353,7 @@ export interface DescriptionLineName {
|
|
|
373
353
|
*/
|
|
374
354
|
translated?: string | null;
|
|
375
355
|
}
|
|
376
|
-
|
|
356
|
+
interface PlainTextValue {
|
|
377
357
|
/**
|
|
378
358
|
* Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
379
359
|
* @maxLength 600
|
|
@@ -387,7 +367,7 @@ export interface PlainTextValue {
|
|
|
387
367
|
*/
|
|
388
368
|
translated?: string | null;
|
|
389
369
|
}
|
|
390
|
-
|
|
370
|
+
interface Color {
|
|
391
371
|
/**
|
|
392
372
|
* Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
393
373
|
* @maxLength 500
|
|
@@ -403,15 +383,7 @@ export interface Color {
|
|
|
403
383
|
/** HEX or RGB color code for display. */
|
|
404
384
|
code?: string | null;
|
|
405
385
|
}
|
|
406
|
-
|
|
407
|
-
/** Unrecognized type. */
|
|
408
|
-
UNRECOGNISED = "UNRECOGNISED",
|
|
409
|
-
/** Plain text type. */
|
|
410
|
-
PLAIN_TEXT = "PLAIN_TEXT",
|
|
411
|
-
/** Color type. */
|
|
412
|
-
COLOR = "COLOR"
|
|
413
|
-
}
|
|
414
|
-
export interface Image {
|
|
386
|
+
interface Image {
|
|
415
387
|
/** WixMedia image ID. */
|
|
416
388
|
id?: string;
|
|
417
389
|
/** Image URL. */
|
|
@@ -434,17 +406,7 @@ export interface Image {
|
|
|
434
406
|
*/
|
|
435
407
|
filename?: string | null;
|
|
436
408
|
}
|
|
437
|
-
|
|
438
|
-
/** X-coordinate of the focal point. */
|
|
439
|
-
x?: number;
|
|
440
|
-
/** Y-coordinate of the focal point. */
|
|
441
|
-
y?: number;
|
|
442
|
-
/** crop by height */
|
|
443
|
-
height?: number | null;
|
|
444
|
-
/** crop by width */
|
|
445
|
-
width?: number | null;
|
|
446
|
-
}
|
|
447
|
-
export interface PhysicalProperties {
|
|
409
|
+
interface PhysicalProperties {
|
|
448
410
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
449
411
|
weight?: number | null;
|
|
450
412
|
/**
|
|
@@ -455,20 +417,20 @@ export interface PhysicalProperties {
|
|
|
455
417
|
/** Whether this line item is shippable. */
|
|
456
418
|
shippable?: boolean;
|
|
457
419
|
}
|
|
458
|
-
|
|
420
|
+
interface ItemType extends ItemTypeItemTypeDataOneOf {
|
|
459
421
|
/** Preset item type. */
|
|
460
422
|
preset?: ItemTypeItemType;
|
|
461
423
|
/** Custom item type. When none of the preset types are suitable, specifies the custom type. */
|
|
462
424
|
custom?: string;
|
|
463
425
|
}
|
|
464
426
|
/** @oneof */
|
|
465
|
-
|
|
427
|
+
interface ItemTypeItemTypeDataOneOf {
|
|
466
428
|
/** Preset item type. */
|
|
467
429
|
preset?: ItemTypeItemType;
|
|
468
430
|
/** Custom item type. When none of the preset types are suitable, specifies the custom type. */
|
|
469
431
|
custom?: string;
|
|
470
432
|
}
|
|
471
|
-
|
|
433
|
+
declare enum ItemTypeItemType {
|
|
472
434
|
UNRECOGNISED = "UNRECOGNISED",
|
|
473
435
|
PHYSICAL = "PHYSICAL",
|
|
474
436
|
DIGITAL = "DIGITAL",
|
|
@@ -476,7 +438,7 @@ export declare enum ItemTypeItemType {
|
|
|
476
438
|
SERVICE = "SERVICE"
|
|
477
439
|
}
|
|
478
440
|
/** Type of selected payment option for catalog item */
|
|
479
|
-
|
|
441
|
+
declare enum PaymentOptionType {
|
|
480
442
|
/** The entire payment for this item happens as part of the checkout. */
|
|
481
443
|
FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
|
|
482
444
|
/** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
|
|
@@ -488,7 +450,7 @@ export declare enum PaymentOptionType {
|
|
|
488
450
|
/** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
|
|
489
451
|
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
|
|
490
452
|
}
|
|
491
|
-
|
|
453
|
+
interface ItemTaxFullDetails {
|
|
492
454
|
/** Taxable amount of this line item. */
|
|
493
455
|
taxableAmount?: Price;
|
|
494
456
|
/**
|
|
@@ -499,7 +461,7 @@ export interface ItemTaxFullDetails {
|
|
|
499
461
|
/** The calculated tax, based on the `taxableAmount` and `taxRate`. */
|
|
500
462
|
totalTax?: Price;
|
|
501
463
|
}
|
|
502
|
-
|
|
464
|
+
interface LineItemTaxInfo {
|
|
503
465
|
/** Calculated tax, based on `taxable_amount` and `tax_rate`. */
|
|
504
466
|
taxAmount?: Price;
|
|
505
467
|
/** Amount for which tax is calculated. */
|
|
@@ -527,7 +489,7 @@ export interface LineItemTaxInfo {
|
|
|
527
489
|
* TaxBreakdown represents tax information for a line item.
|
|
528
490
|
* It holds the tax amount and the tax rate for each tax authority that apply on the line item.
|
|
529
491
|
*/
|
|
530
|
-
|
|
492
|
+
interface LineItemTaxBreakdown {
|
|
531
493
|
/**
|
|
532
494
|
* Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
|
|
533
495
|
* @maxLength 200
|
|
@@ -560,7 +522,7 @@ export interface LineItemTaxBreakdown {
|
|
|
560
522
|
taxableAmount?: Price;
|
|
561
523
|
}
|
|
562
524
|
/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
563
|
-
|
|
525
|
+
declare enum JurisdictionType {
|
|
564
526
|
UNDEFINED = "UNDEFINED",
|
|
565
527
|
COUNTRY = "COUNTRY",
|
|
566
528
|
STATE = "STATE",
|
|
@@ -568,7 +530,7 @@ export declare enum JurisdictionType {
|
|
|
568
530
|
CITY = "CITY",
|
|
569
531
|
SPECIAL = "SPECIAL"
|
|
570
532
|
}
|
|
571
|
-
|
|
533
|
+
interface DigitalFile {
|
|
572
534
|
/**
|
|
573
535
|
* ID of the secure file in media.
|
|
574
536
|
* @minLength 1
|
|
@@ -588,7 +550,7 @@ export interface DigitalFile {
|
|
|
588
550
|
*/
|
|
589
551
|
expirationDate?: Date | null;
|
|
590
552
|
}
|
|
591
|
-
|
|
553
|
+
interface SubscriptionInfo {
|
|
592
554
|
/**
|
|
593
555
|
* Subscription ID.
|
|
594
556
|
* @format GUID
|
|
@@ -621,35 +583,7 @@ export interface SubscriptionInfo {
|
|
|
621
583
|
*/
|
|
622
584
|
subscriptionSettings?: SubscriptionSettings;
|
|
623
585
|
}
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
627
|
-
* @minLength 1
|
|
628
|
-
* @maxLength 150
|
|
629
|
-
*/
|
|
630
|
-
original?: string;
|
|
631
|
-
/**
|
|
632
|
-
* Subscription option name translated into the buyer's language.
|
|
633
|
-
*
|
|
634
|
-
* Default: Same as `original`.
|
|
635
|
-
* @minLength 1
|
|
636
|
-
* @maxLength 150
|
|
637
|
-
*/
|
|
638
|
-
translated?: string | null;
|
|
639
|
-
}
|
|
640
|
-
export interface SubscriptionDescription {
|
|
641
|
-
/**
|
|
642
|
-
* Subscription option description.
|
|
643
|
-
* @maxLength 500
|
|
644
|
-
*/
|
|
645
|
-
original?: string;
|
|
646
|
-
/**
|
|
647
|
-
* Translated subscription option description.
|
|
648
|
-
* @maxLength 500
|
|
649
|
-
*/
|
|
650
|
-
translated?: string | null;
|
|
651
|
-
}
|
|
652
|
-
export interface SubscriptionSettings {
|
|
586
|
+
interface SubscriptionSettings {
|
|
653
587
|
/** Frequency of recurring payment. */
|
|
654
588
|
frequency?: V2SubscriptionFrequency;
|
|
655
589
|
/**
|
|
@@ -667,45 +601,14 @@ export interface SubscriptionSettings {
|
|
|
667
601
|
billingCycles?: number | null;
|
|
668
602
|
}
|
|
669
603
|
/** Frequency unit of recurring payment */
|
|
670
|
-
|
|
604
|
+
declare enum V2SubscriptionFrequency {
|
|
671
605
|
UNDEFINED = "UNDEFINED",
|
|
672
606
|
DAY = "DAY",
|
|
673
607
|
WEEK = "WEEK",
|
|
674
608
|
MONTH = "MONTH",
|
|
675
609
|
YEAR = "YEAR"
|
|
676
610
|
}
|
|
677
|
-
|
|
678
|
-
/** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
|
|
679
|
-
frequency?: V2SubscriptionFrequency;
|
|
680
|
-
/**
|
|
681
|
-
* interval of period
|
|
682
|
-
* @min 1
|
|
683
|
-
* @max 999
|
|
684
|
-
*/
|
|
685
|
-
interval?: number;
|
|
686
|
-
}
|
|
687
|
-
export interface BillingAdjustment {
|
|
688
|
-
/** The type of adjustment. */
|
|
689
|
-
type?: AdjustmentType;
|
|
690
|
-
/** Summary of the prorated adjustment amount. */
|
|
691
|
-
priceSummary?: BillingAdjustmentPriceSummary;
|
|
692
|
-
}
|
|
693
|
-
export declare enum AdjustmentType {
|
|
694
|
-
UNKNOWN_ADJUSTMENT_TYPE = "UNKNOWN_ADJUSTMENT_TYPE",
|
|
695
|
-
/** Adjustment increases the total amount due to changes like covering extra billing days. Typically results in an additional fee. */
|
|
696
|
-
EXTRA_CHARGE = "EXTRA_CHARGE",
|
|
697
|
-
/** Adjustment reduces the total amount due to changes like covering fewer billing days. Typically results in a credit or discount. */
|
|
698
|
-
CREDIT = "CREDIT"
|
|
699
|
-
}
|
|
700
|
-
export interface BillingAdjustmentPriceSummary {
|
|
701
|
-
/** Subtotal of adjustment, before tax. */
|
|
702
|
-
subtotal?: Price;
|
|
703
|
-
/** Tax on adjustment. */
|
|
704
|
-
tax?: Price;
|
|
705
|
-
/** Total price after tax. */
|
|
706
|
-
total?: Price;
|
|
707
|
-
}
|
|
708
|
-
export interface PriceDescription {
|
|
611
|
+
interface PriceDescription {
|
|
709
612
|
/**
|
|
710
613
|
* __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
711
614
|
* @minLength 1
|
|
@@ -721,7 +624,7 @@ export interface PriceDescription {
|
|
|
721
624
|
*/
|
|
722
625
|
translated?: string | null;
|
|
723
626
|
}
|
|
724
|
-
|
|
627
|
+
interface LocationAndQuantity {
|
|
725
628
|
/**
|
|
726
629
|
* Location id in the associated owner app.
|
|
727
630
|
* @format GUID
|
|
@@ -747,22 +650,7 @@ export interface LocationAndQuantity {
|
|
|
747
650
|
*/
|
|
748
651
|
name?: string | null;
|
|
749
652
|
}
|
|
750
|
-
|
|
751
|
-
/** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
|
|
752
|
-
addressType?: TaxableAddressType;
|
|
753
|
-
}
|
|
754
|
-
/** @oneof */
|
|
755
|
-
export interface TaxableAddressTaxableAddressDataOneOf {
|
|
756
|
-
/** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
|
|
757
|
-
addressType?: TaxableAddressType;
|
|
758
|
-
}
|
|
759
|
-
export declare enum TaxableAddressType {
|
|
760
|
-
UNKNOWN_TAXABLE_ADDRESS = "UNKNOWN_TAXABLE_ADDRESS",
|
|
761
|
-
BUSINESS = "BUSINESS",
|
|
762
|
-
BILLING = "BILLING",
|
|
763
|
-
SHIPPING = "SHIPPING"
|
|
764
|
-
}
|
|
765
|
-
export interface ExtendedFields {
|
|
653
|
+
interface ExtendedFields {
|
|
766
654
|
/**
|
|
767
655
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
768
656
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -774,7 +662,7 @@ export interface ExtendedFields {
|
|
|
774
662
|
namespaces?: Record<string, Record<string, any>>;
|
|
775
663
|
}
|
|
776
664
|
/** Buyer Info */
|
|
777
|
-
|
|
665
|
+
interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
778
666
|
/**
|
|
779
667
|
* Visitor ID (if site visitor is not a member).
|
|
780
668
|
* @format GUID
|
|
@@ -797,7 +685,7 @@ export interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
|
797
685
|
email?: string | null;
|
|
798
686
|
}
|
|
799
687
|
/** @oneof */
|
|
800
|
-
|
|
688
|
+
interface BuyerInfoIdOneOf {
|
|
801
689
|
/**
|
|
802
690
|
* Visitor ID (if site visitor is not a member).
|
|
803
691
|
* @format GUID
|
|
@@ -809,7 +697,7 @@ export interface BuyerInfoIdOneOf {
|
|
|
809
697
|
*/
|
|
810
698
|
memberId?: string;
|
|
811
699
|
}
|
|
812
|
-
|
|
700
|
+
declare enum WeightUnit {
|
|
813
701
|
/** Weight unit can't be classified due to an error. */
|
|
814
702
|
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
815
703
|
/** Kilograms. */
|
|
@@ -817,7 +705,7 @@ export declare enum WeightUnit {
|
|
|
817
705
|
/** Pounds. */
|
|
818
706
|
LB = "LB"
|
|
819
707
|
}
|
|
820
|
-
|
|
708
|
+
interface CurrencyConversionDetails {
|
|
821
709
|
/**
|
|
822
710
|
* Original currency used to calculate the pricing before conversion to payment currency set on the order [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
|
|
823
711
|
* @readonly
|
|
@@ -833,7 +721,7 @@ export interface CurrencyConversionDetails {
|
|
|
833
721
|
*/
|
|
834
722
|
conversionRate?: string | null;
|
|
835
723
|
}
|
|
836
|
-
|
|
724
|
+
interface PriceSummary {
|
|
837
725
|
/** Subtotal of all the line items, before discounts and before tax. */
|
|
838
726
|
subtotal?: Price;
|
|
839
727
|
/** Total shipping price, before discounts and before tax. */
|
|
@@ -848,14 +736,14 @@ export interface PriceSummary {
|
|
|
848
736
|
totalAdditionalFees?: Price;
|
|
849
737
|
}
|
|
850
738
|
/** Billing Info and shipping details */
|
|
851
|
-
|
|
739
|
+
interface AddressWithContact {
|
|
852
740
|
/** Address. */
|
|
853
741
|
address?: Address;
|
|
854
742
|
/** Contact details. */
|
|
855
743
|
contactDetails?: FullAddressContactDetails;
|
|
856
744
|
}
|
|
857
745
|
/** Physical address */
|
|
858
|
-
|
|
746
|
+
interface Address {
|
|
859
747
|
/**
|
|
860
748
|
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
861
749
|
* @format COUNTRY
|
|
@@ -899,20 +787,14 @@ export interface Address {
|
|
|
899
787
|
*/
|
|
900
788
|
subdivisionFullname?: string | null;
|
|
901
789
|
}
|
|
902
|
-
|
|
790
|
+
interface StreetAddress {
|
|
903
791
|
/** Street number. */
|
|
904
792
|
number?: string;
|
|
905
793
|
/** Street name. */
|
|
906
794
|
name?: string;
|
|
907
795
|
}
|
|
908
|
-
export interface AddressLocation {
|
|
909
|
-
/** Address latitude. */
|
|
910
|
-
latitude?: number | null;
|
|
911
|
-
/** Address longitude. */
|
|
912
|
-
longitude?: number | null;
|
|
913
|
-
}
|
|
914
796
|
/** Full contact details for an address */
|
|
915
|
-
|
|
797
|
+
interface FullAddressContactDetails {
|
|
916
798
|
/**
|
|
917
799
|
* First name.
|
|
918
800
|
* @maxLength 100
|
|
@@ -936,7 +818,7 @@ export interface FullAddressContactDetails {
|
|
|
936
818
|
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
937
819
|
vatId?: VatId;
|
|
938
820
|
}
|
|
939
|
-
|
|
821
|
+
interface VatId {
|
|
940
822
|
/** Customer's tax ID. */
|
|
941
823
|
id?: string;
|
|
942
824
|
/**
|
|
@@ -949,14 +831,14 @@ export interface VatId {
|
|
|
949
831
|
type?: VatType;
|
|
950
832
|
}
|
|
951
833
|
/** tax info types */
|
|
952
|
-
|
|
834
|
+
declare enum VatType {
|
|
953
835
|
UNSPECIFIED = "UNSPECIFIED",
|
|
954
836
|
/** CPF - for individual tax payers. */
|
|
955
837
|
CPF = "CPF",
|
|
956
838
|
/** CNPJ - for corporations */
|
|
957
839
|
CNPJ = "CNPJ"
|
|
958
840
|
}
|
|
959
|
-
|
|
841
|
+
interface ShippingInformation {
|
|
960
842
|
/**
|
|
961
843
|
* App Def Id of external provider which was a source of shipping info
|
|
962
844
|
* @minLength 1
|
|
@@ -982,7 +864,7 @@ export interface ShippingInformation {
|
|
|
982
864
|
/** Shipping region. */
|
|
983
865
|
region?: ShippingRegion;
|
|
984
866
|
}
|
|
985
|
-
|
|
867
|
+
interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
|
|
986
868
|
/** Shipping address and contact details. */
|
|
987
869
|
shippingDestination?: AddressWithContact;
|
|
988
870
|
/** Pickup details. */
|
|
@@ -1006,20 +888,20 @@ export interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
|
|
|
1006
888
|
deliveryTimeSlot?: DeliveryTimeSlot;
|
|
1007
889
|
}
|
|
1008
890
|
/** @oneof */
|
|
1009
|
-
|
|
891
|
+
interface DeliveryLogisticsAddressOneOf {
|
|
1010
892
|
/** Shipping address and contact details. */
|
|
1011
893
|
shippingDestination?: AddressWithContact;
|
|
1012
894
|
/** Pickup details. */
|
|
1013
895
|
pickupDetails?: PickupDetails;
|
|
1014
896
|
}
|
|
1015
|
-
|
|
897
|
+
interface PickupDetails {
|
|
1016
898
|
/** Pickup address. */
|
|
1017
899
|
address?: PickupAddress;
|
|
1018
900
|
/** Pickup method */
|
|
1019
901
|
pickupMethod?: PickupMethod;
|
|
1020
902
|
}
|
|
1021
903
|
/** Physical address */
|
|
1022
|
-
|
|
904
|
+
interface PickupAddress {
|
|
1023
905
|
/**
|
|
1024
906
|
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
1025
907
|
* @format COUNTRY
|
|
@@ -1063,18 +945,18 @@ export interface PickupAddress {
|
|
|
1063
945
|
*/
|
|
1064
946
|
subdivisionFullname?: string | null;
|
|
1065
947
|
}
|
|
1066
|
-
|
|
948
|
+
declare enum PickupMethod {
|
|
1067
949
|
UNKNOWN_METHOD = "UNKNOWN_METHOD",
|
|
1068
950
|
STORE_PICKUP = "STORE_PICKUP",
|
|
1069
951
|
PICKUP_POINT = "PICKUP_POINT"
|
|
1070
952
|
}
|
|
1071
|
-
|
|
953
|
+
interface DeliveryTimeSlot {
|
|
1072
954
|
/** Delivery slot starting time. */
|
|
1073
955
|
from?: Date | null;
|
|
1074
956
|
/** Delivery slot ending time. */
|
|
1075
957
|
to?: Date | null;
|
|
1076
958
|
}
|
|
1077
|
-
|
|
959
|
+
interface ShippingPrice {
|
|
1078
960
|
/** Shipping price for display purposes. */
|
|
1079
961
|
price?: Price;
|
|
1080
962
|
/**
|
|
@@ -1095,61 +977,14 @@ export interface ShippingPrice {
|
|
|
1095
977
|
*/
|
|
1096
978
|
discount?: Price;
|
|
1097
979
|
}
|
|
1098
|
-
|
|
980
|
+
interface ShippingRegion {
|
|
1099
981
|
/**
|
|
1100
982
|
* Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
|
|
1101
983
|
* @maxLength 100
|
|
1102
984
|
*/
|
|
1103
985
|
name?: string | null;
|
|
1104
986
|
}
|
|
1105
|
-
|
|
1106
|
-
/** Calculated tax, added from line items. */
|
|
1107
|
-
totalTax?: Price;
|
|
1108
|
-
/**
|
|
1109
|
-
* The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
|
|
1110
|
-
* @maxSize 50
|
|
1111
|
-
*/
|
|
1112
|
-
taxBreakdown?: OrderTaxBreakdown[];
|
|
1113
|
-
/**
|
|
1114
|
-
* Whether the order is exempt from tax calculations.
|
|
1115
|
-
*
|
|
1116
|
-
* Default: `false`
|
|
1117
|
-
* @readonly
|
|
1118
|
-
*/
|
|
1119
|
-
taxExempt?: boolean | null;
|
|
1120
|
-
}
|
|
1121
|
-
/**
|
|
1122
|
-
* The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
|
|
1123
|
-
* Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
|
|
1124
|
-
*/
|
|
1125
|
-
export interface OrderTaxBreakdown {
|
|
1126
|
-
/**
|
|
1127
|
-
* The name of the tax against which this tax amount was calculated.
|
|
1128
|
-
* @maxLength 200
|
|
1129
|
-
*/
|
|
1130
|
-
taxName?: string;
|
|
1131
|
-
/**
|
|
1132
|
-
* The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
|
|
1133
|
-
* @maxLength 200
|
|
1134
|
-
*/
|
|
1135
|
-
taxType?: string;
|
|
1136
|
-
/**
|
|
1137
|
-
* The name of the jurisdiction in which this tax detail applies.
|
|
1138
|
-
* @maxLength 200
|
|
1139
|
-
*/
|
|
1140
|
-
jurisdiction?: string;
|
|
1141
|
-
/** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
1142
|
-
jurisdictionType?: JurisdictionType;
|
|
1143
|
-
/**
|
|
1144
|
-
* The rate at which this tax detail was calculated.
|
|
1145
|
-
* @format DECIMAL_VALUE
|
|
1146
|
-
* @decimalValue options { gte:0, maxScale:6 }
|
|
1147
|
-
*/
|
|
1148
|
-
rate?: string;
|
|
1149
|
-
/** The sum of all the tax from line items that calculated by the tax identifiers. */
|
|
1150
|
-
aggregatedTaxAmount?: Price;
|
|
1151
|
-
}
|
|
1152
|
-
export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
987
|
+
interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
1153
988
|
/** Applied coupon info. */
|
|
1154
989
|
coupon?: Coupon;
|
|
1155
990
|
/** Merchant discount. */
|
|
@@ -1182,7 +1017,7 @@ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
|
1182
1017
|
id?: string | null;
|
|
1183
1018
|
}
|
|
1184
1019
|
/** @oneof */
|
|
1185
|
-
|
|
1020
|
+
interface AppliedDiscountDiscountSourceOneOf {
|
|
1186
1021
|
/** Applied coupon info. */
|
|
1187
1022
|
coupon?: Coupon;
|
|
1188
1023
|
/** Merchant discount. */
|
|
@@ -1190,13 +1025,13 @@ export interface AppliedDiscountDiscountSourceOneOf {
|
|
|
1190
1025
|
/** Automatic Discount */
|
|
1191
1026
|
discountRule?: DiscountRule;
|
|
1192
1027
|
}
|
|
1193
|
-
|
|
1028
|
+
declare enum DiscountType {
|
|
1194
1029
|
GLOBAL = "GLOBAL",
|
|
1195
1030
|
SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
|
|
1196
1031
|
SHIPPING = "SHIPPING"
|
|
1197
1032
|
}
|
|
1198
1033
|
/** Coupon */
|
|
1199
|
-
|
|
1034
|
+
interface Coupon {
|
|
1200
1035
|
/** Coupon ID. */
|
|
1201
1036
|
id?: string;
|
|
1202
1037
|
/** Coupon code. */
|
|
@@ -1206,7 +1041,7 @@ export interface Coupon {
|
|
|
1206
1041
|
/** Coupon value. */
|
|
1207
1042
|
amount?: Price;
|
|
1208
1043
|
}
|
|
1209
|
-
|
|
1044
|
+
interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
|
|
1210
1045
|
/**
|
|
1211
1046
|
* Pre-defined discount reason (optional).
|
|
1212
1047
|
* * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
@@ -1221,7 +1056,7 @@ export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReason
|
|
|
1221
1056
|
amount?: Price;
|
|
1222
1057
|
}
|
|
1223
1058
|
/** @oneof */
|
|
1224
|
-
|
|
1059
|
+
interface MerchantDiscountMerchantDiscountReasonOneOf {
|
|
1225
1060
|
/**
|
|
1226
1061
|
* Pre-defined discount reason (optional).
|
|
1227
1062
|
* * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
@@ -1233,12 +1068,12 @@ export interface MerchantDiscountMerchantDiscountReasonOneOf {
|
|
|
1233
1068
|
*/
|
|
1234
1069
|
description?: string | null;
|
|
1235
1070
|
}
|
|
1236
|
-
|
|
1071
|
+
declare enum DiscountReason {
|
|
1237
1072
|
UNSPECIFIED = "UNSPECIFIED",
|
|
1238
1073
|
EXCHANGED_ITEMS = "EXCHANGED_ITEMS",
|
|
1239
1074
|
BILLING_ADJUSTMENT = "BILLING_ADJUSTMENT"
|
|
1240
1075
|
}
|
|
1241
|
-
|
|
1076
|
+
interface DiscountRule {
|
|
1242
1077
|
/**
|
|
1243
1078
|
* Discount rule ID
|
|
1244
1079
|
* @format GUID
|
|
@@ -1249,7 +1084,7 @@ export interface DiscountRule {
|
|
|
1249
1084
|
/** Discount value. */
|
|
1250
1085
|
amount?: Price;
|
|
1251
1086
|
}
|
|
1252
|
-
|
|
1087
|
+
interface DiscountRuleName {
|
|
1253
1088
|
/**
|
|
1254
1089
|
* Original discount rule name (in site's default language).
|
|
1255
1090
|
* @minLength 1
|
|
@@ -1263,16 +1098,7 @@ export interface DiscountRuleName {
|
|
|
1263
1098
|
*/
|
|
1264
1099
|
translated?: string | null;
|
|
1265
1100
|
}
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* ID of line item the discount applies to.
|
|
1269
|
-
* @format GUID
|
|
1270
|
-
*/
|
|
1271
|
-
id?: string;
|
|
1272
|
-
/** Total discount for this line item. */
|
|
1273
|
-
totalDiscount?: Price;
|
|
1274
|
-
}
|
|
1275
|
-
export interface ChannelInfo {
|
|
1101
|
+
interface ChannelInfo {
|
|
1276
1102
|
/** Sales channel that submitted the order. */
|
|
1277
1103
|
type?: ChannelType;
|
|
1278
1104
|
/**
|
|
@@ -1286,7 +1112,7 @@ export interface ChannelInfo {
|
|
|
1286
1112
|
*/
|
|
1287
1113
|
externalOrderUrl?: string | null;
|
|
1288
1114
|
}
|
|
1289
|
-
|
|
1115
|
+
declare enum ChannelType {
|
|
1290
1116
|
/** Unspecified sales channel. This value is not supported. */
|
|
1291
1117
|
UNSPECIFIED = "UNSPECIFIED",
|
|
1292
1118
|
/** A web client. */
|
|
@@ -1320,7 +1146,7 @@ export declare enum ChannelType {
|
|
|
1320
1146
|
/** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */
|
|
1321
1147
|
FAIRE_COM = "FAIRE_COM"
|
|
1322
1148
|
}
|
|
1323
|
-
|
|
1149
|
+
interface CustomField {
|
|
1324
1150
|
/** Custom field value. */
|
|
1325
1151
|
value?: any;
|
|
1326
1152
|
/**
|
|
@@ -1336,23 +1162,7 @@ export interface CustomField {
|
|
|
1336
1162
|
*/
|
|
1337
1163
|
translatedTitle?: string | null;
|
|
1338
1164
|
}
|
|
1339
|
-
|
|
1340
|
-
/**
|
|
1341
|
-
* Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
1342
|
-
* @minLength 1
|
|
1343
|
-
* @maxLength 150
|
|
1344
|
-
*/
|
|
1345
|
-
original?: string;
|
|
1346
|
-
/**
|
|
1347
|
-
* Subscription option name translated into the buyer's language.
|
|
1348
|
-
*
|
|
1349
|
-
* Default: Same as `original`.
|
|
1350
|
-
* @minLength 1
|
|
1351
|
-
* @maxLength 150
|
|
1352
|
-
*/
|
|
1353
|
-
translated?: string | null;
|
|
1354
|
-
}
|
|
1355
|
-
export interface AdditionalFee {
|
|
1165
|
+
interface AdditionalFee {
|
|
1356
1166
|
/**
|
|
1357
1167
|
* Additional fee's unique code for future processing.
|
|
1358
1168
|
* @minLength 1
|
|
@@ -1391,53 +1201,22 @@ export interface AdditionalFee {
|
|
|
1391
1201
|
*/
|
|
1392
1202
|
lineItemIds?: string[];
|
|
1393
1203
|
}
|
|
1394
|
-
|
|
1395
|
-
/**
|
|
1396
|
-
* Location ID.
|
|
1397
|
-
* Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
1398
|
-
* @format GUID
|
|
1399
|
-
*/
|
|
1400
|
-
id?: string;
|
|
1401
|
-
/**
|
|
1402
|
-
* Location name.
|
|
1403
|
-
* @minLength 1
|
|
1404
|
-
* @maxLength 500
|
|
1405
|
-
* @readonly
|
|
1406
|
-
*/
|
|
1407
|
-
name?: string;
|
|
1408
|
-
}
|
|
1409
|
-
export interface CreateSubscriptionContractRequest {
|
|
1410
|
-
/** SubscriptionContract to be created. */
|
|
1411
|
-
subscriptionContract?: SubscriptionContract;
|
|
1412
|
-
}
|
|
1413
|
-
export interface CreateSubscriptionContractResponse {
|
|
1414
|
-
/** The created SubscriptionContract. */
|
|
1415
|
-
subscriptionContract?: SubscriptionContract;
|
|
1416
|
-
}
|
|
1417
|
-
export interface GetSubscriptionContractRequest {
|
|
1204
|
+
interface GetSubscriptionContractRequest {
|
|
1418
1205
|
/**
|
|
1419
1206
|
* ID of the SubscriptionContract to retrieve.
|
|
1420
1207
|
* @format GUID
|
|
1421
1208
|
*/
|
|
1422
1209
|
subscriptionContractId: string;
|
|
1423
1210
|
}
|
|
1424
|
-
|
|
1211
|
+
interface GetSubscriptionContractResponse {
|
|
1425
1212
|
/** The requested SubscriptionContract. */
|
|
1426
1213
|
subscriptionContract?: SubscriptionContract;
|
|
1427
1214
|
}
|
|
1428
|
-
|
|
1429
|
-
/** SubscriptionContract to be updated, may be partial. */
|
|
1430
|
-
subscriptionContract?: SubscriptionContract;
|
|
1431
|
-
}
|
|
1432
|
-
export interface UpdateSubscriptionContractResponse {
|
|
1433
|
-
/** Updated SubscriptionContract. */
|
|
1434
|
-
subscriptionContract?: SubscriptionContract;
|
|
1435
|
-
}
|
|
1436
|
-
export interface QuerySubscriptionContractsRequest {
|
|
1215
|
+
interface QuerySubscriptionContractsRequest {
|
|
1437
1216
|
/** WQL expression. */
|
|
1438
1217
|
query?: CursorQuery;
|
|
1439
1218
|
}
|
|
1440
|
-
|
|
1219
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
1441
1220
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1442
1221
|
cursorPaging?: CursorPaging;
|
|
1443
1222
|
/**
|
|
@@ -1459,11 +1238,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
1459
1238
|
sort?: Sorting[];
|
|
1460
1239
|
}
|
|
1461
1240
|
/** @oneof */
|
|
1462
|
-
|
|
1241
|
+
interface CursorQueryPagingMethodOneOf {
|
|
1463
1242
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1464
1243
|
cursorPaging?: CursorPaging;
|
|
1465
1244
|
}
|
|
1466
|
-
|
|
1245
|
+
interface Sorting {
|
|
1467
1246
|
/**
|
|
1468
1247
|
* Name of the field to sort by.
|
|
1469
1248
|
* @maxLength 512
|
|
@@ -1472,11 +1251,11 @@ export interface Sorting {
|
|
|
1472
1251
|
/** Sort order. */
|
|
1473
1252
|
order?: SortOrder;
|
|
1474
1253
|
}
|
|
1475
|
-
|
|
1254
|
+
declare enum SortOrder {
|
|
1476
1255
|
ASC = "ASC",
|
|
1477
1256
|
DESC = "DESC"
|
|
1478
1257
|
}
|
|
1479
|
-
|
|
1258
|
+
interface CursorPaging {
|
|
1480
1259
|
/**
|
|
1481
1260
|
* Maximum number of items to return in the results.
|
|
1482
1261
|
* @max 100
|
|
@@ -1491,13 +1270,13 @@ export interface CursorPaging {
|
|
|
1491
1270
|
*/
|
|
1492
1271
|
cursor?: string | null;
|
|
1493
1272
|
}
|
|
1494
|
-
|
|
1273
|
+
interface QuerySubscriptionContractsResponse {
|
|
1495
1274
|
/** List of SubscriptionContracts. */
|
|
1496
1275
|
subscriptionContracts?: SubscriptionContract[];
|
|
1497
1276
|
/** Paging metadata */
|
|
1498
1277
|
pagingMetadata?: CursorPagingMetadata;
|
|
1499
1278
|
}
|
|
1500
|
-
|
|
1279
|
+
interface CursorPagingMetadata {
|
|
1501
1280
|
/** Number of items returned in the response. */
|
|
1502
1281
|
count?: number | null;
|
|
1503
1282
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -1510,7 +1289,7 @@ export interface CursorPagingMetadata {
|
|
|
1510
1289
|
*/
|
|
1511
1290
|
hasNext?: boolean | null;
|
|
1512
1291
|
}
|
|
1513
|
-
|
|
1292
|
+
interface Cursors {
|
|
1514
1293
|
/**
|
|
1515
1294
|
* Cursor string pointing to the next page in the list of results.
|
|
1516
1295
|
* @maxLength 16000
|
|
@@ -1522,457 +1301,20 @@ export interface Cursors {
|
|
|
1522
1301
|
*/
|
|
1523
1302
|
prev?: string | null;
|
|
1524
1303
|
}
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1543
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1544
|
-
*/
|
|
1545
|
-
slug?: string;
|
|
1546
|
-
/** ID of the entity associated with the event. */
|
|
1547
|
-
entityId?: string;
|
|
1548
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1549
|
-
eventTime?: Date | null;
|
|
1550
|
-
/**
|
|
1551
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1552
|
-
* (for example, GDPR).
|
|
1553
|
-
*/
|
|
1554
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1555
|
-
/** If present, indicates the action that triggered the event. */
|
|
1556
|
-
originatedFrom?: string | null;
|
|
1557
|
-
/**
|
|
1558
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1559
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1560
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1561
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1562
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1563
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1564
|
-
*/
|
|
1565
|
-
entityEventSequence?: string | null;
|
|
1566
|
-
}
|
|
1567
|
-
/** @oneof */
|
|
1568
|
-
export interface DomainEventBodyOneOf {
|
|
1569
|
-
createdEvent?: EntityCreatedEvent;
|
|
1570
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1571
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1572
|
-
actionEvent?: ActionEvent;
|
|
1573
|
-
}
|
|
1574
|
-
export interface EntityCreatedEvent {
|
|
1575
|
-
entityAsJson?: string;
|
|
1576
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1577
|
-
restoreInfo?: RestoreInfo;
|
|
1578
|
-
}
|
|
1579
|
-
export interface RestoreInfo {
|
|
1580
|
-
deletedDate?: Date | null;
|
|
1581
|
-
}
|
|
1582
|
-
export interface EntityUpdatedEvent {
|
|
1583
|
-
/**
|
|
1584
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1585
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1586
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1587
|
-
*/
|
|
1588
|
-
currentEntityAsJson?: string;
|
|
1589
|
-
}
|
|
1590
|
-
export interface EntityDeletedEvent {
|
|
1591
|
-
/** Entity that was deleted */
|
|
1592
|
-
deletedEntityAsJson?: string | null;
|
|
1593
|
-
}
|
|
1594
|
-
export interface ActionEvent {
|
|
1595
|
-
bodyAsJson?: string;
|
|
1596
|
-
}
|
|
1597
|
-
export interface Empty {
|
|
1598
|
-
}
|
|
1599
|
-
export interface MessageEnvelope {
|
|
1600
|
-
/**
|
|
1601
|
-
* App instance ID.
|
|
1602
|
-
* @format GUID
|
|
1603
|
-
*/
|
|
1604
|
-
instanceId?: string | null;
|
|
1605
|
-
/**
|
|
1606
|
-
* Event type.
|
|
1607
|
-
* @maxLength 150
|
|
1608
|
-
*/
|
|
1609
|
-
eventType?: string;
|
|
1610
|
-
/** The identification type and identity data. */
|
|
1611
|
-
identity?: IdentificationData;
|
|
1612
|
-
/** Stringify payload. */
|
|
1613
|
-
data?: string;
|
|
1614
|
-
}
|
|
1615
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1616
|
-
/**
|
|
1617
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1618
|
-
* @format GUID
|
|
1619
|
-
*/
|
|
1620
|
-
anonymousVisitorId?: string;
|
|
1621
|
-
/**
|
|
1622
|
-
* ID of a site visitor that has logged in to the site.
|
|
1623
|
-
* @format GUID
|
|
1624
|
-
*/
|
|
1625
|
-
memberId?: string;
|
|
1626
|
-
/**
|
|
1627
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1628
|
-
* @format GUID
|
|
1629
|
-
*/
|
|
1630
|
-
wixUserId?: string;
|
|
1631
|
-
/**
|
|
1632
|
-
* ID of an app.
|
|
1633
|
-
* @format GUID
|
|
1634
|
-
*/
|
|
1635
|
-
appId?: string;
|
|
1636
|
-
/** @readonly */
|
|
1637
|
-
identityType?: WebhookIdentityType;
|
|
1638
|
-
}
|
|
1639
|
-
/** @oneof */
|
|
1640
|
-
export interface IdentificationDataIdOneOf {
|
|
1641
|
-
/**
|
|
1642
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1643
|
-
* @format GUID
|
|
1644
|
-
*/
|
|
1645
|
-
anonymousVisitorId?: string;
|
|
1646
|
-
/**
|
|
1647
|
-
* ID of a site visitor that has logged in to the site.
|
|
1648
|
-
* @format GUID
|
|
1649
|
-
*/
|
|
1650
|
-
memberId?: string;
|
|
1651
|
-
/**
|
|
1652
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1653
|
-
* @format GUID
|
|
1654
|
-
*/
|
|
1655
|
-
wixUserId?: string;
|
|
1656
|
-
/**
|
|
1657
|
-
* ID of an app.
|
|
1658
|
-
* @format GUID
|
|
1659
|
-
*/
|
|
1660
|
-
appId?: string;
|
|
1661
|
-
}
|
|
1662
|
-
export declare enum WebhookIdentityType {
|
|
1663
|
-
UNKNOWN = "UNKNOWN",
|
|
1664
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1665
|
-
MEMBER = "MEMBER",
|
|
1666
|
-
WIX_USER = "WIX_USER",
|
|
1667
|
-
APP = "APP"
|
|
1668
|
-
}
|
|
1669
|
-
interface V1SubscriptionDescriptionNonNullableFields {
|
|
1670
|
-
original: string;
|
|
1671
|
-
}
|
|
1672
|
-
interface V1FreeTrialPeriodNonNullableFields {
|
|
1673
|
-
frequency: SubscriptionFrequency;
|
|
1674
|
-
interval: number;
|
|
1675
|
-
}
|
|
1676
|
-
interface V1SubscriptionSettingsNonNullableFields {
|
|
1677
|
-
frequency: SubscriptionFrequency;
|
|
1678
|
-
autoRenewal: boolean;
|
|
1679
|
-
enableCustomerCancellation: boolean;
|
|
1680
|
-
/** @internal */
|
|
1681
|
-
freeTrialPeriod?: V1FreeTrialPeriodNonNullableFields;
|
|
1682
|
-
}
|
|
1683
|
-
interface ProductNameNonNullableFields {
|
|
1684
|
-
original: string;
|
|
1685
|
-
}
|
|
1686
|
-
interface CatalogReferenceNonNullableFields {
|
|
1687
|
-
catalogItemId: string;
|
|
1688
|
-
appId: string;
|
|
1689
|
-
}
|
|
1690
|
-
interface PriceNonNullableFields {
|
|
1691
|
-
amount: string;
|
|
1692
|
-
formattedAmount: string;
|
|
1693
|
-
}
|
|
1694
|
-
interface PlainTextValueNonNullableFields {
|
|
1695
|
-
original: string;
|
|
1696
|
-
}
|
|
1697
|
-
interface ColorNonNullableFields {
|
|
1698
|
-
original: string;
|
|
1699
|
-
}
|
|
1700
|
-
interface DescriptionLineNameNonNullableFields {
|
|
1701
|
-
original: string;
|
|
1702
|
-
}
|
|
1703
|
-
interface DescriptionLineNonNullableFields {
|
|
1704
|
-
plainText?: PlainTextValueNonNullableFields;
|
|
1705
|
-
colorInfo?: ColorNonNullableFields;
|
|
1706
|
-
plainTextValue?: PlainTextValueNonNullableFields;
|
|
1707
|
-
color: string;
|
|
1708
|
-
name?: DescriptionLineNameNonNullableFields;
|
|
1709
|
-
lineType: DescriptionLineType;
|
|
1710
|
-
}
|
|
1711
|
-
interface FocalPointNonNullableFields {
|
|
1712
|
-
x: number;
|
|
1713
|
-
y: number;
|
|
1714
|
-
}
|
|
1715
|
-
interface ImageNonNullableFields {
|
|
1716
|
-
id: string;
|
|
1717
|
-
url: string;
|
|
1718
|
-
height: number;
|
|
1719
|
-
width: number;
|
|
1720
|
-
focalPoint?: FocalPointNonNullableFields;
|
|
1721
|
-
}
|
|
1722
|
-
interface PhysicalPropertiesNonNullableFields {
|
|
1723
|
-
shippable: boolean;
|
|
1724
|
-
}
|
|
1725
|
-
interface ItemTypeNonNullableFields {
|
|
1726
|
-
preset: ItemTypeItemType;
|
|
1727
|
-
custom: string;
|
|
1728
|
-
}
|
|
1729
|
-
interface ItemTaxFullDetailsNonNullableFields {
|
|
1730
|
-
taxableAmount?: PriceNonNullableFields;
|
|
1731
|
-
taxRate: string;
|
|
1732
|
-
totalTax?: PriceNonNullableFields;
|
|
1733
|
-
}
|
|
1734
|
-
interface LineItemTaxBreakdownNonNullableFields {
|
|
1735
|
-
taxAmount?: PriceNonNullableFields;
|
|
1736
|
-
jurisdictionType: JurisdictionType;
|
|
1737
|
-
nonTaxableAmount?: PriceNonNullableFields;
|
|
1738
|
-
taxableAmount?: PriceNonNullableFields;
|
|
1739
|
-
}
|
|
1740
|
-
interface LineItemTaxInfoNonNullableFields {
|
|
1741
|
-
taxAmount?: PriceNonNullableFields;
|
|
1742
|
-
taxableAmount?: PriceNonNullableFields;
|
|
1743
|
-
taxIncludedInPrice: boolean;
|
|
1744
|
-
taxBreakdown: LineItemTaxBreakdownNonNullableFields[];
|
|
1745
|
-
}
|
|
1746
|
-
interface DigitalFileNonNullableFields {
|
|
1747
|
-
fileId: string;
|
|
1748
|
-
}
|
|
1749
|
-
interface SubscriptionTitleNonNullableFields {
|
|
1750
|
-
original: string;
|
|
1751
|
-
}
|
|
1752
|
-
interface SubscriptionDescriptionNonNullableFields {
|
|
1753
|
-
original: string;
|
|
1754
|
-
}
|
|
1755
|
-
interface FreeTrialPeriodNonNullableFields {
|
|
1756
|
-
frequency: V2SubscriptionFrequency;
|
|
1757
|
-
interval: number;
|
|
1758
|
-
}
|
|
1759
|
-
interface SubscriptionSettingsNonNullableFields {
|
|
1760
|
-
frequency: V2SubscriptionFrequency;
|
|
1761
|
-
autoRenewal: boolean;
|
|
1762
|
-
/** @internal */
|
|
1763
|
-
enableCustomerCancellation: boolean;
|
|
1764
|
-
/** @internal */
|
|
1765
|
-
freeTrialPeriod?: FreeTrialPeriodNonNullableFields;
|
|
1766
|
-
}
|
|
1767
|
-
interface BillingAdjustmentPriceSummaryNonNullableFields {
|
|
1768
|
-
subtotal?: PriceNonNullableFields;
|
|
1769
|
-
tax?: PriceNonNullableFields;
|
|
1770
|
-
total?: PriceNonNullableFields;
|
|
1771
|
-
}
|
|
1772
|
-
interface BillingAdjustmentNonNullableFields {
|
|
1773
|
-
type: AdjustmentType;
|
|
1774
|
-
priceSummary?: BillingAdjustmentPriceSummaryNonNullableFields;
|
|
1775
|
-
}
|
|
1776
|
-
interface SubscriptionInfoNonNullableFields {
|
|
1777
|
-
cycleNumber: number;
|
|
1778
|
-
subscriptionOptionTitle: string;
|
|
1779
|
-
/** @internal */
|
|
1780
|
-
title?: SubscriptionTitleNonNullableFields;
|
|
1781
|
-
/** @internal */
|
|
1782
|
-
description?: SubscriptionDescriptionNonNullableFields;
|
|
1783
|
-
subscriptionSettings?: SubscriptionSettingsNonNullableFields;
|
|
1784
|
-
/** @internal */
|
|
1785
|
-
billingAdjustment?: BillingAdjustmentNonNullableFields;
|
|
1786
|
-
}
|
|
1787
|
-
interface PriceDescriptionNonNullableFields {
|
|
1788
|
-
original: string;
|
|
1789
|
-
}
|
|
1790
|
-
interface LocationAndQuantityNonNullableFields {
|
|
1791
|
-
id: string;
|
|
1792
|
-
quantity: number;
|
|
1793
|
-
}
|
|
1794
|
-
interface TaxableAddressNonNullableFields {
|
|
1795
|
-
addressType: TaxableAddressType;
|
|
1796
|
-
}
|
|
1797
|
-
interface OrderLineItemNonNullableFields {
|
|
1798
|
-
id: string;
|
|
1799
|
-
productName?: ProductNameNonNullableFields;
|
|
1800
|
-
catalogReference?: CatalogReferenceNonNullableFields;
|
|
1801
|
-
quantity: number;
|
|
1802
|
-
totalDiscount?: PriceNonNullableFields;
|
|
1803
|
-
descriptionLines: DescriptionLineNonNullableFields[];
|
|
1804
|
-
image?: ImageNonNullableFields;
|
|
1805
|
-
physicalProperties?: PhysicalPropertiesNonNullableFields;
|
|
1806
|
-
itemType?: ItemTypeNonNullableFields;
|
|
1807
|
-
price?: PriceNonNullableFields;
|
|
1808
|
-
priceBeforeDiscounts?: PriceNonNullableFields;
|
|
1809
|
-
totalPriceBeforeTax?: PriceNonNullableFields;
|
|
1810
|
-
totalPriceAfterTax?: PriceNonNullableFields;
|
|
1811
|
-
paymentOption: PaymentOptionType;
|
|
1812
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
1813
|
-
taxInfo?: LineItemTaxInfoNonNullableFields;
|
|
1814
|
-
digitalFile?: DigitalFileNonNullableFields;
|
|
1815
|
-
subscriptionInfo?: SubscriptionInfoNonNullableFields;
|
|
1816
|
-
priceDescription?: PriceDescriptionNonNullableFields;
|
|
1817
|
-
depositAmount?: PriceNonNullableFields;
|
|
1818
|
-
locations: LocationAndQuantityNonNullableFields[];
|
|
1819
|
-
lineItemPrice?: PriceNonNullableFields;
|
|
1820
|
-
/** @internal */
|
|
1821
|
-
taxableAddress?: TaxableAddressNonNullableFields;
|
|
1822
|
-
/** @internal */
|
|
1823
|
-
priceUndetermined: boolean;
|
|
1824
|
-
/** @internal */
|
|
1825
|
-
fixedQuantity: boolean;
|
|
1826
|
-
}
|
|
1827
|
-
interface BuyerInfoNonNullableFields {
|
|
1828
|
-
visitorId: string;
|
|
1829
|
-
memberId: string;
|
|
1830
|
-
}
|
|
1831
|
-
interface PriceSummaryNonNullableFields {
|
|
1832
|
-
subtotal?: PriceNonNullableFields;
|
|
1833
|
-
shipping?: PriceNonNullableFields;
|
|
1834
|
-
tax?: PriceNonNullableFields;
|
|
1835
|
-
discount?: PriceNonNullableFields;
|
|
1836
|
-
totalPrice?: PriceNonNullableFields;
|
|
1837
|
-
total?: PriceNonNullableFields;
|
|
1838
|
-
totalWithGiftCard?: PriceNonNullableFields;
|
|
1839
|
-
totalWithoutGiftCard?: PriceNonNullableFields;
|
|
1840
|
-
totalAdditionalFees?: PriceNonNullableFields;
|
|
1841
|
-
}
|
|
1842
|
-
interface StreetAddressNonNullableFields {
|
|
1843
|
-
number: string;
|
|
1844
|
-
name: string;
|
|
1845
|
-
apt: string;
|
|
1846
|
-
}
|
|
1847
|
-
interface AddressNonNullableFields {
|
|
1848
|
-
streetAddress?: StreetAddressNonNullableFields;
|
|
1849
|
-
}
|
|
1850
|
-
interface VatIdNonNullableFields {
|
|
1851
|
-
id: string;
|
|
1852
|
-
type: VatType;
|
|
1853
|
-
}
|
|
1854
|
-
interface FullAddressContactDetailsNonNullableFields {
|
|
1855
|
-
vatId?: VatIdNonNullableFields;
|
|
1856
|
-
}
|
|
1857
|
-
interface AddressWithContactNonNullableFields {
|
|
1858
|
-
address?: AddressNonNullableFields;
|
|
1859
|
-
contactDetails?: FullAddressContactDetailsNonNullableFields;
|
|
1860
|
-
}
|
|
1861
|
-
interface PickupAddressNonNullableFields {
|
|
1862
|
-
streetAddress?: StreetAddressNonNullableFields;
|
|
1863
|
-
}
|
|
1864
|
-
interface PickupDetailsNonNullableFields {
|
|
1865
|
-
address?: PickupAddressNonNullableFields;
|
|
1866
|
-
pickupMethod: PickupMethod;
|
|
1867
|
-
}
|
|
1868
|
-
interface DeliveryLogisticsNonNullableFields {
|
|
1869
|
-
shippingDestination?: AddressWithContactNonNullableFields;
|
|
1870
|
-
pickupDetails?: PickupDetailsNonNullableFields;
|
|
1871
|
-
}
|
|
1872
|
-
interface ShippingPriceNonNullableFields {
|
|
1873
|
-
price?: PriceNonNullableFields;
|
|
1874
|
-
totalPriceBeforeTax?: PriceNonNullableFields;
|
|
1875
|
-
totalPriceAfterTax?: PriceNonNullableFields;
|
|
1876
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
1877
|
-
discount?: PriceNonNullableFields;
|
|
1878
|
-
}
|
|
1879
|
-
interface ShippingInformationNonNullableFields {
|
|
1880
|
-
title: string;
|
|
1881
|
-
logistics?: DeliveryLogisticsNonNullableFields;
|
|
1882
|
-
cost?: ShippingPriceNonNullableFields;
|
|
1883
|
-
}
|
|
1884
|
-
interface OrderTaxBreakdownNonNullableFields {
|
|
1885
|
-
taxName: string;
|
|
1886
|
-
taxType: string;
|
|
1887
|
-
jurisdiction: string;
|
|
1888
|
-
jurisdictionType: JurisdictionType;
|
|
1889
|
-
rate: string;
|
|
1890
|
-
aggregatedTaxAmount?: PriceNonNullableFields;
|
|
1891
|
-
aggregatedTaxableAmount?: PriceNonNullableFields;
|
|
1892
|
-
}
|
|
1893
|
-
interface OrderTaxInfoNonNullableFields {
|
|
1894
|
-
totalTax?: PriceNonNullableFields;
|
|
1895
|
-
taxBreakdown: OrderTaxBreakdownNonNullableFields[];
|
|
1896
|
-
}
|
|
1897
|
-
interface CouponNonNullableFields {
|
|
1898
|
-
id: string;
|
|
1899
|
-
code: string;
|
|
1900
|
-
name: string;
|
|
1901
|
-
amount?: PriceNonNullableFields;
|
|
1902
|
-
}
|
|
1903
|
-
interface MerchantDiscountNonNullableFields {
|
|
1904
|
-
discountReason: DiscountReason;
|
|
1905
|
-
amount?: PriceNonNullableFields;
|
|
1906
|
-
}
|
|
1907
|
-
interface DiscountRuleNameNonNullableFields {
|
|
1908
|
-
original: string;
|
|
1909
|
-
}
|
|
1910
|
-
interface DiscountRuleNonNullableFields {
|
|
1911
|
-
id: string;
|
|
1912
|
-
name?: DiscountRuleNameNonNullableFields;
|
|
1913
|
-
amount?: PriceNonNullableFields;
|
|
1914
|
-
}
|
|
1915
|
-
interface LineItemDiscountNonNullableFields {
|
|
1916
|
-
id: string;
|
|
1917
|
-
totalDiscount?: PriceNonNullableFields;
|
|
1918
|
-
}
|
|
1919
|
-
interface AppliedDiscountNonNullableFields {
|
|
1920
|
-
coupon?: CouponNonNullableFields;
|
|
1921
|
-
merchantDiscount?: MerchantDiscountNonNullableFields;
|
|
1922
|
-
discountRule?: DiscountRuleNonNullableFields;
|
|
1923
|
-
discountType: DiscountType;
|
|
1924
|
-
lineItemIds: string[];
|
|
1925
|
-
/** @internal */
|
|
1926
|
-
lineItemDiscounts: LineItemDiscountNonNullableFields[];
|
|
1927
|
-
}
|
|
1928
|
-
interface ChannelInfoNonNullableFields {
|
|
1929
|
-
type: ChannelType;
|
|
1930
|
-
}
|
|
1931
|
-
interface CustomFieldNonNullableFields {
|
|
1932
|
-
title: string;
|
|
1933
|
-
}
|
|
1934
|
-
interface V1SubscriptionTitleNonNullableFields {
|
|
1935
|
-
original: string;
|
|
1936
|
-
}
|
|
1937
|
-
interface AdditionalFeeNonNullableFields {
|
|
1938
|
-
name: string;
|
|
1939
|
-
price?: PriceNonNullableFields;
|
|
1940
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
1941
|
-
priceBeforeTax?: PriceNonNullableFields;
|
|
1942
|
-
priceAfterTax?: PriceNonNullableFields;
|
|
1943
|
-
id: string;
|
|
1944
|
-
lineItemIds: string[];
|
|
1945
|
-
}
|
|
1946
|
-
interface LocationNonNullableFields {
|
|
1947
|
-
id: string;
|
|
1948
|
-
name: string;
|
|
1949
|
-
}
|
|
1950
|
-
interface SubscriptionContractNonNullableFields {
|
|
1951
|
-
/** @internal */
|
|
1952
|
-
subscriptionDescription?: V1SubscriptionDescriptionNonNullableFields;
|
|
1953
|
-
subscriptionSettings?: V1SubscriptionSettingsNonNullableFields;
|
|
1954
|
-
lineItems: OrderLineItemNonNullableFields[];
|
|
1955
|
-
buyerInfo?: BuyerInfoNonNullableFields;
|
|
1956
|
-
weightUnit: WeightUnit;
|
|
1957
|
-
taxIncludedInPrices: boolean;
|
|
1958
|
-
priceSummary?: PriceSummaryNonNullableFields;
|
|
1959
|
-
billingInfo?: AddressWithContactNonNullableFields;
|
|
1960
|
-
shippingInfo?: ShippingInformationNonNullableFields;
|
|
1961
|
-
taxInfo?: OrderTaxInfoNonNullableFields;
|
|
1962
|
-
appliedDiscounts: AppliedDiscountNonNullableFields[];
|
|
1963
|
-
channelInfo?: ChannelInfoNonNullableFields;
|
|
1964
|
-
customFields: CustomFieldNonNullableFields[];
|
|
1965
|
-
recipientInfo?: AddressWithContactNonNullableFields;
|
|
1966
|
-
/** @internal */
|
|
1967
|
-
subscriptionTitle?: V1SubscriptionTitleNonNullableFields;
|
|
1968
|
-
additionalFees: AdditionalFeeNonNullableFields[];
|
|
1969
|
-
/** @internal */
|
|
1970
|
-
businessLocation?: LocationNonNullableFields;
|
|
1971
|
-
}
|
|
1972
|
-
export interface GetSubscriptionContractResponseNonNullableFields {
|
|
1973
|
-
subscriptionContract?: SubscriptionContractNonNullableFields;
|
|
1974
|
-
}
|
|
1975
|
-
export interface QuerySubscriptionContractsResponseNonNullableFields {
|
|
1976
|
-
subscriptionContracts: SubscriptionContractNonNullableFields[];
|
|
1977
|
-
}
|
|
1978
|
-
export {};
|
|
1304
|
+
|
|
1305
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1306
|
+
getUrl: (context: any) => string;
|
|
1307
|
+
httpMethod: K;
|
|
1308
|
+
path: string;
|
|
1309
|
+
pathParams: M;
|
|
1310
|
+
__requestType: T;
|
|
1311
|
+
__originalRequestType: S;
|
|
1312
|
+
__responseType: Q;
|
|
1313
|
+
__originalResponseType: R;
|
|
1314
|
+
};
|
|
1315
|
+
declare function getSubscriptionContract(): __PublicMethodMetaInfo<'GET', {
|
|
1316
|
+
subscriptionContractId: string;
|
|
1317
|
+
}, GetSubscriptionContractRequest$1, GetSubscriptionContractRequest, GetSubscriptionContractResponse$1, GetSubscriptionContractResponse>;
|
|
1318
|
+
declare function querySubscriptionContracts(): __PublicMethodMetaInfo<'GET', {}, QuerySubscriptionContractsRequest$1, QuerySubscriptionContractsRequest, QuerySubscriptionContractsResponse$1, QuerySubscriptionContractsResponse>;
|
|
1319
|
+
|
|
1320
|
+
export { type __PublicMethodMetaInfo, getSubscriptionContract, querySubscriptionContracts };
|