@wix/ditto-codegen-public 1.0.7 → 1.0.8
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/docs-output/service-plugins/ecom-additional-fees-doc.txt +411 -0
- package/dist/docs-output/service-plugins/ecom-catalog-doc.txt +460 -0
- package/dist/docs-output/service-plugins/ecom-custom-triggers-doc.txt +149 -0
- package/dist/docs-output/service-plugins/ecom-gift-vouchers-provider-doc.txt +169 -0
- package/dist/docs-output/service-plugins/ecom-payment-settings-doc.txt +2368 -0
- package/dist/docs-output/service-plugins/ecom-recommendations-provider-doc.txt +147 -0
- package/dist/docs-output/service-plugins/ecom-shipping-rates-doc.txt +352 -0
- package/dist/docs-output/service-plugins/ecom-tax-calculation-provider-doc.txt +244 -0
- package/dist/docs-output/service-plugins/ecom-validations-doc.txt +579 -0
- package/dist/out.js +75 -75
- package/package.json +2 -2
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
|
|
2
|
+
<validations_service_plugin>
|
|
3
|
+
<purpose>Required. Base URI where the endpoints are called. Wix appends the endpoint path to the base URI.
|
|
4
|
+
For example, to call the Get Validation Violations endpoint at `https://my-validations.com/v1/get-violations`, the base URI you provide here is `https://my-validations.com`.</purpose>
|
|
5
|
+
<use_cases>
|
|
6
|
+
- Handle sourceInfo: Information about the source of the request.
|
|
7
|
+
- Handle validationInfo: Information to validate.
|
|
8
|
+
</use_cases>
|
|
9
|
+
<required_handlers>
|
|
10
|
+
- getValidationViolations() - Handler to process: Information about the source of the request.
|
|
11
|
+
</required_handlers>
|
|
12
|
+
<import>import { validations } from '@wix/ecom/service-plugins'</import>
|
|
13
|
+
<types>
|
|
14
|
+
|
|
15
|
+
**Address**
|
|
16
|
+
Properties:
|
|
17
|
+
- addressLine1: string - Main address line (usually street name and number).
|
|
18
|
+
|
|
19
|
+
maxLength 150
|
|
20
|
+
- addressLine2: string - Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
21
|
+
|
|
22
|
+
maxLength 100
|
|
23
|
+
- city: string - City name.
|
|
24
|
+
|
|
25
|
+
maxLength 50
|
|
26
|
+
- country: string - Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
27
|
+
|
|
28
|
+
format COUNTRY
|
|
29
|
+
- countryFullname: string - Country's full name.
|
|
30
|
+
- postalCode: string - Postal or zip code.
|
|
31
|
+
|
|
32
|
+
maxLength 50
|
|
33
|
+
- streetAddress: StreetAddress - Street address.
|
|
34
|
+
- subdivision: string - Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
35
|
+
|
|
36
|
+
maxLength 50
|
|
37
|
+
- subdivisionFullname: string - Subdivision full-name.
|
|
38
|
+
|
|
39
|
+
**AddressWithContact**
|
|
40
|
+
Properties:
|
|
41
|
+
- address: Address - Address.
|
|
42
|
+
- contactDetails: FullAddressContactDetails - Contact details.
|
|
43
|
+
|
|
44
|
+
**ApplicableLineItems**
|
|
45
|
+
Properties:
|
|
46
|
+
- lineItemIds: string[] - Line items that the delivery solution is for.
|
|
47
|
+
|
|
48
|
+
maxSize 300, minLength 1, maxLength 100
|
|
49
|
+
|
|
50
|
+
**AppliedDiscount**
|
|
51
|
+
Properties:
|
|
52
|
+
- discountType: DiscountType - Discount type.
|
|
53
|
+
- lineItemIds: string[] - IDs of the line items the discount applies to.
|
|
54
|
+
|
|
55
|
+
format GUID
|
|
56
|
+
One of (discountSource):
|
|
57
|
+
- coupon: Coupon - Coupon details.
|
|
58
|
+
- discountRule: DiscountRule - Discount rule.
|
|
59
|
+
- merchantDiscount: MerchantDiscount - Merchant discount.
|
|
60
|
+
|
|
61
|
+
**BuyerDetails**
|
|
62
|
+
Properties:
|
|
63
|
+
- contactId: string - Contact ID if one exists.
|
|
64
|
+
|
|
65
|
+
format GUID
|
|
66
|
+
- email: string - Buyer's email address.
|
|
67
|
+
|
|
68
|
+
format EMAIL
|
|
69
|
+
|
|
70
|
+
**Carrier**
|
|
71
|
+
Properties:
|
|
72
|
+
- appId: string - The carrier app id
|
|
73
|
+
|
|
74
|
+
format GUID
|
|
75
|
+
- code: string - Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
76
|
+
|
|
77
|
+
maxLength 250
|
|
78
|
+
|
|
79
|
+
**CatalogReference**
|
|
80
|
+
Properties:
|
|
81
|
+
- appId: string - ID of the app providing the catalog.
|
|
82
|
+
|
|
83
|
+
You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
84
|
+
|
|
85
|
+
For items from Wix catalogs, the following values always apply:
|
|
86
|
+
+ Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
87
|
+
+ Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
88
|
+
+ Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
89
|
+
|
|
90
|
+
minLength 1
|
|
91
|
+
- catalogItemId: string - ID of the item within the catalog it belongs to.
|
|
92
|
+
|
|
93
|
+
minLength 1, maxLength 36
|
|
94
|
+
- options: Record<string, any> - Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
95
|
+
|
|
96
|
+
For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
|
|
97
|
+
|
|
98
|
+
**CheckoutStage**
|
|
99
|
+
Enum values:
|
|
100
|
+
- INITIALIZATION: Deprecated.
|
|
101
|
+
Used during the initialization of the checkout (Create Checkout).
|
|
102
|
+
- IN_PROGRESS: Used during the checkout process, such as updating or retrieving the checkout.
|
|
103
|
+
- ORDER_CREATION: Used during the creation of an order from the checkout.
|
|
104
|
+
- UNKNOWN_CHECKOUT_STAGE: Not implemented.
|
|
105
|
+
|
|
106
|
+
**Context**
|
|
107
|
+
Properties:
|
|
108
|
+
- currency: string - [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.
|
|
109
|
+
|
|
110
|
+
format CURRENCY
|
|
111
|
+
- identity: IdentificationData - An object that describes the identity that triggered this request.
|
|
112
|
+
- instanceId: string - The service provider app's instance ID.
|
|
113
|
+
|
|
114
|
+
format GUID
|
|
115
|
+
- languages: string[] - A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`.
|
|
116
|
+
- requestId: string - A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs.
|
|
117
|
+
|
|
118
|
+
**Coupon**
|
|
119
|
+
Properties:
|
|
120
|
+
- _id: string - Coupon ID.
|
|
121
|
+
- amount: string
|
|
122
|
+
|
|
123
|
+
decimalValue { gte:0, lte:1000000000000000 }
|
|
124
|
+
- code: string - Coupon code.
|
|
125
|
+
- name: string - Coupon name.
|
|
126
|
+
|
|
127
|
+
**CustomField**
|
|
128
|
+
Properties:
|
|
129
|
+
- title: string - Custom field title.
|
|
130
|
+
|
|
131
|
+
minLength 1, maxLength 500
|
|
132
|
+
- translatedTitle: string - Translated custom field title.
|
|
133
|
+
|
|
134
|
+
minLength 1, maxLength 500
|
|
135
|
+
- value: any - Custom field value.
|
|
136
|
+
|
|
137
|
+
**CustomFields**
|
|
138
|
+
Properties:
|
|
139
|
+
- fields: CustomField[] - List of custom fields
|
|
140
|
+
|
|
141
|
+
maxSize 50
|
|
142
|
+
|
|
143
|
+
**DeliveryAllocation**
|
|
144
|
+
Properties:
|
|
145
|
+
- applicableLineItems: ApplicableLineItems - Populated if the delivery solution is a partially supplied by this carrier.
|
|
146
|
+
- deliveryCarrier: Carrier - The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers
|
|
147
|
+
- deliveryRegion: Region - The delivery region that are relevant for this delivery solution.
|
|
148
|
+
|
|
149
|
+
**Description**
|
|
150
|
+
Properties:
|
|
151
|
+
- original: string - Subscription option description.
|
|
152
|
+
|
|
153
|
+
maxLength 500
|
|
154
|
+
- translated: string - Translated subscription option description.
|
|
155
|
+
|
|
156
|
+
maxLength 500
|
|
157
|
+
|
|
158
|
+
**DiscountRule**
|
|
159
|
+
Properties:
|
|
160
|
+
- _id: string - Discount rule ID.
|
|
161
|
+
|
|
162
|
+
format GUID
|
|
163
|
+
- amount: string
|
|
164
|
+
|
|
165
|
+
decimalValue { gte:0, lte:1000000000000000 }
|
|
166
|
+
- name: DiscountRuleName - Discount rule name.
|
|
167
|
+
|
|
168
|
+
**DiscountRuleName**
|
|
169
|
+
Properties:
|
|
170
|
+
- original: string - Original discount rule name (in site's default language).
|
|
171
|
+
|
|
172
|
+
minLength 1, maxLength 256
|
|
173
|
+
- translated: string - Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
174
|
+
|
|
175
|
+
minLength 1, maxLength 500
|
|
176
|
+
|
|
177
|
+
**DiscountType**
|
|
178
|
+
Enum values:
|
|
179
|
+
- GLOBAL: Global discount.
|
|
180
|
+
- SHIPPING: Shipping discount.
|
|
181
|
+
- SPECIFIC_ITEMS: Discount for specific items.
|
|
182
|
+
|
|
183
|
+
**ExternalReference**
|
|
184
|
+
Properties:
|
|
185
|
+
- appId: string - ID of the app associated with the purchase flow.
|
|
186
|
+
For example, the Wix Pay Links app ID.
|
|
187
|
+
|
|
188
|
+
format GUID, immutable
|
|
189
|
+
- resourceId: string - Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
|
|
190
|
+
For example, a Wix Pay Link ID.
|
|
191
|
+
|
|
192
|
+
minLength 1, maxLength 100, immutable
|
|
193
|
+
|
|
194
|
+
**FreeTrialPeriod**
|
|
195
|
+
Properties:
|
|
196
|
+
- frequency: SubscriptionFrequency - Frequency of period. Values: DAY, WEEK, MONTH, YEAR
|
|
197
|
+
- interval: number - interval of period
|
|
198
|
+
|
|
199
|
+
min 1, max 999
|
|
200
|
+
|
|
201
|
+
**FullAddressContactDetails**
|
|
202
|
+
Properties:
|
|
203
|
+
- company: string - Company name.
|
|
204
|
+
|
|
205
|
+
maxLength 1000
|
|
206
|
+
- firstName: string - First name.
|
|
207
|
+
|
|
208
|
+
maxLength 100
|
|
209
|
+
- lastName: string - Last name.
|
|
210
|
+
|
|
211
|
+
maxLength 100
|
|
212
|
+
- phone: string - Phone number.
|
|
213
|
+
|
|
214
|
+
format PHONE
|
|
215
|
+
- vatId: VatId - Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
|
|
216
|
+
|
|
217
|
+
**GetValidationViolationsEnvelope**
|
|
218
|
+
Properties:
|
|
219
|
+
- metadata: Context
|
|
220
|
+
- request: GetValidationViolationsRequest
|
|
221
|
+
|
|
222
|
+
**GetValidationViolationsRequest**
|
|
223
|
+
Properties:
|
|
224
|
+
- sourceInfo: SourceInfo - Information about the source of the request.
|
|
225
|
+
- validationInfo: ValidationInfo - Information to validate.
|
|
226
|
+
|
|
227
|
+
**GetValidationViolationsResponse**
|
|
228
|
+
Properties:
|
|
229
|
+
- violations: Violation[] - List of validation violations.
|
|
230
|
+
|
|
231
|
+
**GiftCard**
|
|
232
|
+
Properties:
|
|
233
|
+
- _id: string (deprecated) - Gift card ID.
|
|
234
|
+
- amount: MultiCurrencyPrice - Gift card value.
|
|
235
|
+
- appId: string - App ID of the gift card provider.
|
|
236
|
+
|
|
237
|
+
format GUID
|
|
238
|
+
- obfuscatedCode: string - Gift card obfuscated code.
|
|
239
|
+
|
|
240
|
+
**IdentificationData**
|
|
241
|
+
Properties:
|
|
242
|
+
- identityType: IdentityType
|
|
243
|
+
One of (id):
|
|
244
|
+
- anonymousVisitorId: string - ID of a site visitor that has not logged in to the site.
|
|
245
|
+
- appId: string - ID of an app.
|
|
246
|
+
- memberId: string - ID of a site visitor that has logged in to the site.
|
|
247
|
+
- wixUserId: string - ID of a Wix user (site owner, contributor, etc.).
|
|
248
|
+
|
|
249
|
+
**IdentityType**
|
|
250
|
+
Enum values:
|
|
251
|
+
- ANONYMOUS_VISITOR
|
|
252
|
+
- APP
|
|
253
|
+
- MEMBER
|
|
254
|
+
- UNKNOWN
|
|
255
|
+
- WIX_USER
|
|
256
|
+
|
|
257
|
+
**ItemTaxFullDetails**
|
|
258
|
+
Properties:
|
|
259
|
+
- isTaxIncluded: boolean - Indicates whether the price already includes tax.
|
|
260
|
+
- taxableAmount: MultiCurrencyPrice - The portion of the total amount of this estimate that was taxable.
|
|
261
|
+
- taxBreakdown: TaxBreakdown[] - A detailed description of all the tax authorities applied on this item.
|
|
262
|
+
|
|
263
|
+
maxSize 1000
|
|
264
|
+
- totalTax: MultiCurrencyPrice - Calculated tax, based on `taxable_amount`.
|
|
265
|
+
|
|
266
|
+
**ItemType**
|
|
267
|
+
One of (itemTypeData):
|
|
268
|
+
- custom: string - Custom item type. When none of the preset types are suitable, specifies the custom type.
|
|
269
|
+
- preset: ItemTypeItemType - Preset item type.
|
|
270
|
+
|
|
271
|
+
**ItemTypeItemType**
|
|
272
|
+
Enum values:
|
|
273
|
+
- DIGITAL
|
|
274
|
+
- GIFT_CARD
|
|
275
|
+
- PHYSICAL
|
|
276
|
+
- SERVICE
|
|
277
|
+
- UNRECOGNISED
|
|
278
|
+
|
|
279
|
+
**JurisdictionType**
|
|
280
|
+
Enum values:
|
|
281
|
+
- CITY: City jurisdiction.
|
|
282
|
+
- COUNTRY: Country jurisdiction.
|
|
283
|
+
- COUNTY: County jurisdiction.
|
|
284
|
+
- SPECIAL: Special jurisdiction.
|
|
285
|
+
- STATE: State jurisdiction.
|
|
286
|
+
- UNDEFINED: Undefined jurisdiction type.
|
|
287
|
+
|
|
288
|
+
**LineItem**
|
|
289
|
+
Properties:
|
|
290
|
+
- _id: string - Line item ID.
|
|
291
|
+
|
|
292
|
+
format GUID
|
|
293
|
+
- catalogReference: CatalogReference - Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info.
|
|
294
|
+
- itemType: ItemType - Item type.
|
|
295
|
+
- physicalProperties: PhysicalProperties - Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
|
|
296
|
+
- price: MultiCurrencyPrice - Price of the item **after** catalog-defined discount and line item discounts.
|
|
297
|
+
- pricesBreakdown: LineItemPricesData - Price breakdown for this line item.
|
|
298
|
+
- productName: ProductName - Product name. For example,
|
|
299
|
+
+ Stores: `product.name`
|
|
300
|
+
+ Bookings: `service.info.name`
|
|
301
|
+
+ Events: `ticket.name`
|
|
302
|
+
- quantity: number - Item quantity.
|
|
303
|
+
Min: `0`
|
|
304
|
+
Max: `100000`
|
|
305
|
+
|
|
306
|
+
max 100000
|
|
307
|
+
- subscriptionOptionInfo: SubscriptionOptionInfo - [Subscription option](https://dev.wix.com/api/rest/wix-stores/subscription-options/introduction) information. A subscription is a product that is sold on a recurring basis.
|
|
308
|
+
|
|
309
|
+
**LineItemPricesData**
|
|
310
|
+
Properties:
|
|
311
|
+
- fullPrice: MultiCurrencyPrice - Item price **before** all discounts. Defaults to `price` when not provided.
|
|
312
|
+
- lineItemPrice: MultiCurrencyPrice - Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account.
|
|
313
|
+
- price: MultiCurrencyPrice - Catalog price **after** catalog-defined discount and automatic discounts.
|
|
314
|
+
- priceBeforeDiscounts: MultiCurrencyPrice - Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided.
|
|
315
|
+
- taxDetails: ItemTaxFullDetails - Tax details.
|
|
316
|
+
- totalDiscount: MultiCurrencyPrice - Total discount applied for the line item.
|
|
317
|
+
- totalPriceAfterTax: MultiCurrencyPrice - Total price after discounts and after tax.
|
|
318
|
+
- totalPriceBeforeTax: MultiCurrencyPrice - Total price after discounts, and before tax.
|
|
319
|
+
|
|
320
|
+
**MerchantDiscount**
|
|
321
|
+
Properties:
|
|
322
|
+
- amount: string
|
|
323
|
+
|
|
324
|
+
decimalValue { gte:0, lte:1000000000000000 }
|
|
325
|
+
|
|
326
|
+
**MultiCurrencyPrice**
|
|
327
|
+
Properties:
|
|
328
|
+
- amount: string - Amount.
|
|
329
|
+
|
|
330
|
+
decimalValue { gte:0, lte:1000000000000000 }
|
|
331
|
+
- convertedAmount: string - Converted amount.
|
|
332
|
+
|
|
333
|
+
decimalValue { gte:0, lte:1000000000000000 }
|
|
334
|
+
- formattedAmount: string - Amount formatted with currency symbol.
|
|
335
|
+
- formattedConvertedAmount: string - Converted amount formatted with currency symbol.
|
|
336
|
+
|
|
337
|
+
**Other**
|
|
338
|
+
Properties:
|
|
339
|
+
- name: string - Location on a checkout or a cart page where a general (other) violation will be displayed.
|
|
340
|
+
|
|
341
|
+
**PhysicalProperties**
|
|
342
|
+
Properties:
|
|
343
|
+
- shippable: boolean - Whether this line item is shippable.
|
|
344
|
+
- sku: string - Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
345
|
+
|
|
346
|
+
maxLength 40
|
|
347
|
+
- weight: number - Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.
|
|
348
|
+
|
|
349
|
+
**PriceSummary**
|
|
350
|
+
Properties:
|
|
351
|
+
- additionalFees: MultiCurrencyPrice - Total additional fees price **before** tax.
|
|
352
|
+
- discount: MultiCurrencyPrice - Total calculated discount value.
|
|
353
|
+
- shipping: MultiCurrencyPrice - Total shipping price, before discounts and before tax.
|
|
354
|
+
- subtotal: MultiCurrencyPrice - Subtotal of all line items, before discounts and before tax.
|
|
355
|
+
- tax: MultiCurrencyPrice - Total tax.
|
|
356
|
+
- total: MultiCurrencyPrice - Total price **after** discounts, gift cards, and tax.
|
|
357
|
+
|
|
358
|
+
**ProductName**
|
|
359
|
+
Properties:
|
|
360
|
+
- original: string - __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).
|
|
361
|
+
|
|
362
|
+
Min: 1 character.
|
|
363
|
+
Max: 200 characters.
|
|
364
|
+
|
|
365
|
+
minLength 1, maxLength 200
|
|
366
|
+
- translated: string - Item name translated into the buyer's language.
|
|
367
|
+
|
|
368
|
+
Min: 1 character.
|
|
369
|
+
Max: 400 characters.
|
|
370
|
+
Default: Same as `original`.
|
|
371
|
+
|
|
372
|
+
minLength 1, maxLength 400
|
|
373
|
+
|
|
374
|
+
**Region**
|
|
375
|
+
Properties:
|
|
376
|
+
- _id: string - The delivery region id.
|
|
377
|
+
|
|
378
|
+
format GUID
|
|
379
|
+
- name: string - The delivery region name.
|
|
380
|
+
|
|
381
|
+
maxLength 100
|
|
382
|
+
|
|
383
|
+
**SelectedCarrierServiceOption**
|
|
384
|
+
Properties:
|
|
385
|
+
- code: string - Unique identifier of selected option. For example, `usps_std_overnight`.
|
|
386
|
+
|
|
387
|
+
maxLength 100
|
|
388
|
+
- cost: SelectedCarrierServiceOptionPrices - Shipping costs.
|
|
389
|
+
- deliveryAllocations: DeliveryAllocation[] - Delivery solution allocations to different delivery carriers and delivery regions
|
|
390
|
+
|
|
391
|
+
maxSize 300
|
|
392
|
+
- partial: boolean - If the delivery solution is a partial and doesn't apply to all items.
|
|
393
|
+
- title: string - Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
|
|
394
|
+
For example, "Standard" or "First-Class Package International".
|
|
395
|
+
|
|
396
|
+
maxLength 250
|
|
397
|
+
|
|
398
|
+
**SelectedCarrierServiceOptionPrices**
|
|
399
|
+
Properties:
|
|
400
|
+
- price: MultiCurrencyPrice - Shipping price before discount and before tax.
|
|
401
|
+
- taxDetails: ItemTaxFullDetails - Tax details.
|
|
402
|
+
- totalDiscount: MultiCurrencyPrice - Shipping discount before tax.
|
|
403
|
+
- totalPriceAfterTax: MultiCurrencyPrice - Total shipping price, after discount and after tax.
|
|
404
|
+
- totalPriceBeforeTax: MultiCurrencyPrice - Total price of shipping after discounts (when relevant), and before tax.
|
|
405
|
+
|
|
406
|
+
**Severity**
|
|
407
|
+
Enum values:
|
|
408
|
+
- ERROR: The user is blocked from moving forward in the flow.
|
|
409
|
+
For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
|
|
410
|
+
- WARNING: The user is allowed to move forward in the flow.
|
|
411
|
+
|
|
412
|
+
**ShippingInfo**
|
|
413
|
+
Properties:
|
|
414
|
+
- selectedCarrierServiceOption: SelectedCarrierServiceOption - Selected option out of the options allowed for the `region`.
|
|
415
|
+
|
|
416
|
+
**Source**
|
|
417
|
+
Enum values:
|
|
418
|
+
- CART: Called from Ecom's Cart service
|
|
419
|
+
- CHECKOUT: Called from Ecom's Checkout service
|
|
420
|
+
- OTHER: Context cannot be recognized
|
|
421
|
+
|
|
422
|
+
**SourceInfo**
|
|
423
|
+
Properties:
|
|
424
|
+
- purchaseFlowId: string - Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
425
|
+
|
|
426
|
+
format GUID
|
|
427
|
+
- source: Source - Source of the request.
|
|
428
|
+
- stage: Stage - The stage at which the service plugin is called.
|
|
429
|
+
|
|
430
|
+
**Stage**
|
|
431
|
+
One of (stages):
|
|
432
|
+
- checkoutStage: CheckoutStage - Supported values:
|
|
433
|
+
|
|
434
|
+
**StreetAddress**
|
|
435
|
+
Properties:
|
|
436
|
+
- name: string - Street name.
|
|
437
|
+
- number: string - Street number.
|
|
438
|
+
|
|
439
|
+
**SubscriptionFrequency**
|
|
440
|
+
Enum values:
|
|
441
|
+
- DAY
|
|
442
|
+
- MONTH
|
|
443
|
+
- UNDEFINED
|
|
444
|
+
- WEEK
|
|
445
|
+
- YEAR
|
|
446
|
+
|
|
447
|
+
**SubscriptionOptionInfo**
|
|
448
|
+
Properties:
|
|
449
|
+
- description: Description - Subscription option description.
|
|
450
|
+
- subscriptionSettings: SubscriptionSettings - Subscription option settings.
|
|
451
|
+
- title: Title - Subscription option title.
|
|
452
|
+
|
|
453
|
+
**SubscriptionSettings**
|
|
454
|
+
Properties:
|
|
455
|
+
- autoRenewal: boolean - Whether subscription is renewed automatically at the end of each period.
|
|
456
|
+
- billingCycles: number - Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.
|
|
457
|
+
|
|
458
|
+
min 1
|
|
459
|
+
- enableCustomerCancellation: boolean - Whether to allow the customer to cancel the subscription..
|
|
460
|
+
- freeTrialPeriod: FreeTrialPeriod - Period until first cycle starts. If applied payNow will be 0
|
|
461
|
+
If None => no free trial
|
|
462
|
+
- frequency: SubscriptionFrequency - Frequency of recurring payment.
|
|
463
|
+
- interval: number - Interval of recurring payment.
|
|
464
|
+
|
|
465
|
+
Default: `1`.
|
|
466
|
+
If SubscriptionFrequency is Day the minimum interval is 7
|
|
467
|
+
|
|
468
|
+
min 1, max 3650
|
|
469
|
+
|
|
470
|
+
**Target**
|
|
471
|
+
One of (targetType):
|
|
472
|
+
- lineItem: TargetLineItem - Specific line item violation.
|
|
473
|
+
- other: Other - General (other) violation.
|
|
474
|
+
|
|
475
|
+
**TargetLineItem**
|
|
476
|
+
Properties:
|
|
477
|
+
- _id: string - ID of the line item containing the violation.
|
|
478
|
+
- name: string - Location on a checkout or a cart page where the specific line item violation will be displayed.
|
|
479
|
+
|
|
480
|
+
**TaxBreakdown**
|
|
481
|
+
Properties:
|
|
482
|
+
- jurisdiction: string - The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec".
|
|
483
|
+
|
|
484
|
+
maxLength 200
|
|
485
|
+
- jurisdictionType: JurisdictionType - The type of the jurisdiction in which this tax detail applies.
|
|
486
|
+
- nonTaxableAmount: MultiCurrencyPrice - The amount of this line item price that was considered nontaxable. (Decimal value)
|
|
487
|
+
- rate: string - The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)
|
|
488
|
+
|
|
489
|
+
decimalValue { maxScale:6 }
|
|
490
|
+
- taxableAmount: MultiCurrencyPrice - The taxable amount of this line item.
|
|
491
|
+
- taxAmount: MultiCurrencyPrice - The amount of tax estimated for this line item. (Decimal value)
|
|
492
|
+
- taxName: string - The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
|
|
493
|
+
This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
494
|
+
|
|
495
|
+
maxLength 200
|
|
496
|
+
- taxType: string - The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
|
|
497
|
+
|
|
498
|
+
maxLength 200
|
|
499
|
+
|
|
500
|
+
**Title**
|
|
501
|
+
Properties:
|
|
502
|
+
- original: string - 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).
|
|
503
|
+
|
|
504
|
+
minLength 1, maxLength 150
|
|
505
|
+
- translated: string - Subscription option name translated into the buyer's language.
|
|
506
|
+
|
|
507
|
+
Default: Same as `original`.
|
|
508
|
+
|
|
509
|
+
minLength 1, maxLength 150
|
|
510
|
+
|
|
511
|
+
**ValidationInfo**
|
|
512
|
+
Properties:
|
|
513
|
+
- appliedDiscounts: AppliedDiscount[] - Applied discounts.
|
|
514
|
+
|
|
515
|
+
maxSize 320
|
|
516
|
+
- billingInfo: AddressWithContact - Billing information.
|
|
517
|
+
- buyerDetails: BuyerDetails - Buyer details.
|
|
518
|
+
- conversionCurrency: string - The currency selected by the buyer during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
519
|
+
|
|
520
|
+
format CURRENCY
|
|
521
|
+
- currency: string - The site's default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
522
|
+
|
|
523
|
+
format CURRENCY
|
|
524
|
+
- customFields: CustomFields - Custom fields.
|
|
525
|
+
- externalReference: ExternalReference - References to an external app and resource associated with this checkout.
|
|
526
|
+
Used for integration and tracking across different platforms.
|
|
527
|
+
- giftCard: GiftCard - Applied gift card details.
|
|
528
|
+
|
|
529
|
+
>**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/wix-stores-setting-up-wix-gift-cards).
|
|
530
|
+
- lineItems: LineItem[] - Line items. Max: 300 line items
|
|
531
|
+
|
|
532
|
+
maxSize 300
|
|
533
|
+
- paymentCurrency: string - Currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
534
|
+
|
|
535
|
+
format CURRENCY
|
|
536
|
+
- priceSummary: PriceSummary - Price summary.
|
|
537
|
+
- shippingAddress: AddressWithContact - Shipping address and contact details.
|
|
538
|
+
- shippingInfo: ShippingInfo - Shipping information.
|
|
539
|
+
- weightUnit: WeightUnit - Weight measurement unit.
|
|
540
|
+
Default: Site's weight unit
|
|
541
|
+
|
|
542
|
+
**ValidationsSPIConfig**
|
|
543
|
+
Properties:
|
|
544
|
+
- deploymentUri: string - Required. Base URI where the endpoints are called. Wix appends the endpoint path to the base URI.
|
|
545
|
+
For example, to call the Get Validation Violations endpoint at `https://my-validations.com/v1/get-violations`, the base URI you provide here is `https://my-validations.com`.
|
|
546
|
+
|
|
547
|
+
minLength 1
|
|
548
|
+
- validateInCart: boolean - Whether to validate the cart page in addition to the checkout page. Default: `false`
|
|
549
|
+
|
|
550
|
+
**VatId**
|
|
551
|
+
Properties:
|
|
552
|
+
- _id: string - Customer's tax ID.
|
|
553
|
+
- type: VatType - Tax type.
|
|
554
|
+
|
|
555
|
+
Supported values:
|
|
556
|
+
+ `CPF`: for individual tax payers
|
|
557
|
+
+ `CNPJ`: for corporations
|
|
558
|
+
|
|
559
|
+
**VatType**
|
|
560
|
+
Enum values:
|
|
561
|
+
- CNPJ: CNPJ - for corporations
|
|
562
|
+
- CPF: CPF - for individual tax payers.
|
|
563
|
+
- UNSPECIFIED
|
|
564
|
+
|
|
565
|
+
**Violation**
|
|
566
|
+
Properties:
|
|
567
|
+
- description: string - Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href="https://www.wix.com">Click me</a>`.
|
|
568
|
+
|
|
569
|
+
minLength 1, maxLength 1000
|
|
570
|
+
- severity: Severity - Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow.
|
|
571
|
+
- target: Target - Target location on a checkout or cart page where the violation will be displayed.
|
|
572
|
+
|
|
573
|
+
**WeightUnit**
|
|
574
|
+
Enum values:
|
|
575
|
+
- KG: Kilograms.
|
|
576
|
+
- LB: Pounds.
|
|
577
|
+
- UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
|
|
578
|
+
</types>
|
|
579
|
+
</validations_service_plugin>
|