@wix/auto_sdk_ecom_checkout-settings 1.0.16 → 1.0.17
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/{internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → ecom-v1-checkout-settings-checkout-settings.universal-C1VQueHJ.d.mts} +45 -119
- package/build/{cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → ecom-v1-checkout-settings-checkout-settings.universal-C1VQueHJ.d.ts} +45 -119
- package/build/index.d.mts +29 -0
- package/build/index.d.ts +29 -0
- package/build/index.js +332 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +303 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → ecom-v1-checkout-settings-checkout-settings.universal-C1VQueHJ.d.mts} +45 -119
- package/build/{es/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → internal/ecom-v1-checkout-settings-checkout-settings.universal-C1VQueHJ.d.ts} +45 -119
- package/build/internal/index.d.mts +29 -0
- package/build/internal/index.d.ts +29 -0
- package/build/internal/index.js +332 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +303 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +218 -0
- package/build/internal/meta.d.ts +218 -0
- package/build/internal/meta.js +213 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +185 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +218 -0
- package/build/meta.d.ts +218 -0
- package/build/meta.js +213 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +185 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- 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-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -18
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -149
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -66
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -41
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -387
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -25
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -158
- package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.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-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -12
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -144
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -38
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -33
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -387
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -22
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -130
- package/build/es/src/ecom-v1-checkout-settings-checkout-settings.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-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -18
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -149
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -66
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -41
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -387
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -25
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -158
- package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.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-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -12
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -144
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -38
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -33
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -387
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -22
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -130
- package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface CheckoutSettings {
|
|
1
|
+
interface CheckoutSettings {
|
|
3
2
|
/** Checkout policies. */
|
|
4
3
|
checkoutPolicies?: CheckoutPolicies;
|
|
5
4
|
/** Settings that apply to checkout fields and the checkout process. */
|
|
@@ -17,7 +16,7 @@ export interface CheckoutSettings {
|
|
|
17
16
|
*/
|
|
18
17
|
_updatedDate?: Date | null;
|
|
19
18
|
}
|
|
20
|
-
|
|
19
|
+
interface CheckoutPolicies {
|
|
21
20
|
/** Terms and conditions. */
|
|
22
21
|
termsAndConditions?: TermsAndConditionsPolicy;
|
|
23
22
|
/** Privacy policy. */
|
|
@@ -31,7 +30,7 @@ export interface CheckoutPolicies {
|
|
|
31
30
|
/** Custom policy. */
|
|
32
31
|
customPolicy?: CustomCheckoutPolicy;
|
|
33
32
|
}
|
|
34
|
-
|
|
33
|
+
interface TermsAndConditionsPolicy {
|
|
35
34
|
/**
|
|
36
35
|
* Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>
|
|
37
36
|
*
|
|
@@ -41,7 +40,7 @@ export interface TermsAndConditionsPolicy {
|
|
|
41
40
|
/** Terms and conditions policy content. */
|
|
42
41
|
content?: string | null;
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
interface PrivacyPolicy {
|
|
45
44
|
/**
|
|
46
45
|
* Whether the privacy policy is visible to the customer in the checkout page. <br><br>
|
|
47
46
|
*
|
|
@@ -51,7 +50,7 @@ export interface PrivacyPolicy {
|
|
|
51
50
|
/** Privacy policy content. */
|
|
52
51
|
content?: string | null;
|
|
53
52
|
}
|
|
54
|
-
|
|
53
|
+
interface ReturnPolicy {
|
|
55
54
|
/**
|
|
56
55
|
* Whether the return policy is visible to the customer in the checkout page. <br><br>
|
|
57
56
|
*
|
|
@@ -61,7 +60,7 @@ export interface ReturnPolicy {
|
|
|
61
60
|
/** Return policy content. */
|
|
62
61
|
content?: string | null;
|
|
63
62
|
}
|
|
64
|
-
|
|
63
|
+
interface DigitalItemPolicy {
|
|
65
64
|
/**
|
|
66
65
|
* Whether the digital item policy is visible to the customer in the checkout page. <br><br>
|
|
67
66
|
*
|
|
@@ -71,7 +70,7 @@ export interface DigitalItemPolicy {
|
|
|
71
70
|
/** Digital item policy content. */
|
|
72
71
|
content?: string | null;
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
interface ContactUsPolicy {
|
|
75
74
|
/**
|
|
76
75
|
* Whether the contact us policy is visible to the customer in the checkout page. <br><br>
|
|
77
76
|
*
|
|
@@ -81,7 +80,7 @@ export interface ContactUsPolicy {
|
|
|
81
80
|
/** Contact us policy content. */
|
|
82
81
|
content?: string | null;
|
|
83
82
|
}
|
|
84
|
-
|
|
83
|
+
interface CustomCheckoutPolicy {
|
|
85
84
|
/**
|
|
86
85
|
* Whether the custom policy is visible to the customer in the checkout page. <br><br>
|
|
87
86
|
*
|
|
@@ -93,7 +92,7 @@ export interface CustomCheckoutPolicy {
|
|
|
93
92
|
/** Custom policy title. */
|
|
94
93
|
title?: string | null;
|
|
95
94
|
}
|
|
96
|
-
|
|
95
|
+
interface CheckoutFields {
|
|
97
96
|
/**
|
|
98
97
|
* Subscription checkbox. <br><br>
|
|
99
98
|
*
|
|
@@ -136,17 +135,17 @@ export interface CheckoutFields {
|
|
|
136
135
|
*/
|
|
137
136
|
captureBeforeExpiryEnabled?: boolean | null;
|
|
138
137
|
}
|
|
139
|
-
|
|
138
|
+
interface CheckboxField {
|
|
140
139
|
/** Whether the checkbox is visible to the customer. */
|
|
141
140
|
visible?: boolean | null;
|
|
142
141
|
/** Whether the checkbox is checked by default. */
|
|
143
142
|
checkedByDefault?: boolean | null;
|
|
144
143
|
}
|
|
145
|
-
|
|
144
|
+
interface CheckoutBrand {
|
|
146
145
|
/** Checkout header. */
|
|
147
146
|
header?: CheckoutHeader;
|
|
148
147
|
}
|
|
149
|
-
|
|
148
|
+
interface CheckoutHeader {
|
|
150
149
|
/**
|
|
151
150
|
* Textual content to be included in the header (e.g. Business Name)
|
|
152
151
|
* TODO: update maxLength validation once limitation is known
|
|
@@ -167,11 +166,11 @@ export interface CheckoutHeader {
|
|
|
167
166
|
*/
|
|
168
167
|
displayCheckoutLabel?: boolean | null;
|
|
169
168
|
}
|
|
170
|
-
|
|
169
|
+
interface Logo {
|
|
171
170
|
/** Size of the logo. */
|
|
172
171
|
size?: LogoSizeWithLiterals;
|
|
173
172
|
}
|
|
174
|
-
|
|
173
|
+
interface FocalPoint {
|
|
175
174
|
/** X-coordinate of the focal point. */
|
|
176
175
|
x?: number;
|
|
177
176
|
/** Y-coordinate of the focal point. */
|
|
@@ -181,53 +180,53 @@ export interface FocalPoint {
|
|
|
181
180
|
/** crop by width */
|
|
182
181
|
width?: number | null;
|
|
183
182
|
}
|
|
184
|
-
|
|
183
|
+
declare enum LogoSize {
|
|
185
184
|
UNKNOWN_LOGO_SIZE = "UNKNOWN_LOGO_SIZE",
|
|
186
185
|
SMALL = "SMALL",
|
|
187
186
|
MEDIUM = "MEDIUM",
|
|
188
187
|
LARGE = "LARGE"
|
|
189
188
|
}
|
|
190
189
|
/** @enumType */
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
191
|
+
declare enum Alignment {
|
|
193
192
|
UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
|
|
194
193
|
SIDE = "SIDE",
|
|
195
194
|
CENTER = "CENTER"
|
|
196
195
|
}
|
|
197
196
|
/** @enumType */
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
|
|
198
|
+
interface GetCheckoutSettingsRequest {
|
|
200
199
|
}
|
|
201
|
-
|
|
200
|
+
interface GetCheckoutSettingsResponse {
|
|
202
201
|
/** Checkout settings. */
|
|
203
202
|
checkoutSettings?: CheckoutSettings;
|
|
204
203
|
}
|
|
205
|
-
|
|
204
|
+
interface UpdateCheckoutSettingsRequest {
|
|
206
205
|
/** Checkout settings to update. */
|
|
207
206
|
checkoutSettings: CheckoutSettings;
|
|
208
207
|
}
|
|
209
|
-
|
|
208
|
+
interface UpdateCheckoutSettingsResponse {
|
|
210
209
|
/** Updated checkout settings. */
|
|
211
210
|
checkoutSettings?: CheckoutSettings;
|
|
212
211
|
}
|
|
213
|
-
|
|
212
|
+
interface ListCheckoutSettingsRequest {
|
|
214
213
|
}
|
|
215
|
-
|
|
214
|
+
interface ListCheckoutSettingsResponse {
|
|
216
215
|
/** List of retrieved checkout settings. */
|
|
217
216
|
checkoutSettings?: CheckoutSettings[];
|
|
218
217
|
}
|
|
219
|
-
|
|
218
|
+
interface GiftCardProviderWasProvisioned {
|
|
220
219
|
/** The gift card provider which was installed */
|
|
221
220
|
providerAppDefId?: string;
|
|
222
221
|
providerInstanceId?: string;
|
|
223
222
|
}
|
|
224
|
-
|
|
223
|
+
interface Empty {
|
|
225
224
|
}
|
|
226
|
-
|
|
225
|
+
interface DeleteCheckoutSettingsRequest {
|
|
227
226
|
}
|
|
228
|
-
|
|
227
|
+
interface DeleteCheckoutSettingsResponse {
|
|
229
228
|
}
|
|
230
|
-
|
|
229
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
231
230
|
createdEvent?: EntityCreatedEvent;
|
|
232
231
|
updatedEvent?: EntityUpdatedEvent;
|
|
233
232
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -262,19 +261,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
262
261
|
entityEventSequence?: string | null;
|
|
263
262
|
}
|
|
264
263
|
/** @oneof */
|
|
265
|
-
|
|
264
|
+
interface DomainEventBodyOneOf {
|
|
266
265
|
createdEvent?: EntityCreatedEvent;
|
|
267
266
|
updatedEvent?: EntityUpdatedEvent;
|
|
268
267
|
deletedEvent?: EntityDeletedEvent;
|
|
269
268
|
actionEvent?: ActionEvent;
|
|
270
269
|
}
|
|
271
|
-
|
|
270
|
+
interface EntityCreatedEvent {
|
|
272
271
|
entity?: string;
|
|
273
272
|
}
|
|
274
|
-
|
|
273
|
+
interface RestoreInfo {
|
|
275
274
|
deletedDate?: Date | null;
|
|
276
275
|
}
|
|
277
|
-
|
|
276
|
+
interface EntityUpdatedEvent {
|
|
278
277
|
/**
|
|
279
278
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
280
279
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -282,14 +281,14 @@ export interface EntityUpdatedEvent {
|
|
|
282
281
|
*/
|
|
283
282
|
currentEntity?: string;
|
|
284
283
|
}
|
|
285
|
-
|
|
284
|
+
interface EntityDeletedEvent {
|
|
286
285
|
/** Entity that was deleted. */
|
|
287
286
|
deletedEntity?: string | null;
|
|
288
287
|
}
|
|
289
|
-
|
|
288
|
+
interface ActionEvent {
|
|
290
289
|
body?: string;
|
|
291
290
|
}
|
|
292
|
-
|
|
291
|
+
interface MessageEnvelope {
|
|
293
292
|
/**
|
|
294
293
|
* App instance ID.
|
|
295
294
|
* @format GUID
|
|
@@ -305,7 +304,7 @@ export interface MessageEnvelope {
|
|
|
305
304
|
/** Stringify payload. */
|
|
306
305
|
data?: string;
|
|
307
306
|
}
|
|
308
|
-
|
|
307
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
309
308
|
/**
|
|
310
309
|
* ID of a site visitor that has not logged in to the site.
|
|
311
310
|
* @format GUID
|
|
@@ -330,7 +329,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
330
329
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
331
330
|
}
|
|
332
331
|
/** @oneof */
|
|
333
|
-
|
|
332
|
+
interface IdentificationDataIdOneOf {
|
|
334
333
|
/**
|
|
335
334
|
* ID of a site visitor that has not logged in to the site.
|
|
336
335
|
* @format GUID
|
|
@@ -352,7 +351,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
352
351
|
*/
|
|
353
352
|
appId?: string;
|
|
354
353
|
}
|
|
355
|
-
|
|
354
|
+
declare enum WebhookIdentityType {
|
|
356
355
|
UNKNOWN = "UNKNOWN",
|
|
357
356
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
358
357
|
MEMBER = "MEMBER",
|
|
@@ -360,8 +359,8 @@ export declare enum WebhookIdentityType {
|
|
|
360
359
|
APP = "APP"
|
|
361
360
|
}
|
|
362
361
|
/** @enumType */
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
363
|
+
interface BaseEventMetadata {
|
|
365
364
|
/**
|
|
366
365
|
* App instance ID.
|
|
367
366
|
* @format GUID
|
|
@@ -375,7 +374,7 @@ export interface BaseEventMetadata {
|
|
|
375
374
|
/** The identification type and identity data. */
|
|
376
375
|
identity?: IdentificationData;
|
|
377
376
|
}
|
|
378
|
-
|
|
377
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
379
378
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
380
379
|
_id?: string;
|
|
381
380
|
/**
|
|
@@ -405,82 +404,9 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
405
404
|
*/
|
|
406
405
|
entityEventSequence?: string | null;
|
|
407
406
|
}
|
|
408
|
-
|
|
407
|
+
interface CheckoutSettingsUpdatedEnvelope {
|
|
409
408
|
entity: CheckoutSettings;
|
|
410
409
|
metadata: EventMetadata;
|
|
411
410
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
* @permissionScope Manage Stores - all permissions
|
|
415
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
416
|
-
* @permissionScope Manage Stores
|
|
417
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
418
|
-
* @permissionScope Read eCommerce - all read permissions
|
|
419
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
420
|
-
* @permissionScope Read Orders
|
|
421
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
|
|
422
|
-
* @permissionScope Read Stores - all read permissions
|
|
423
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
424
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
425
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
426
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
427
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
428
|
-
* @permissionScope Manage Orders
|
|
429
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
430
|
-
* @permissionId ECOM.READ_CHECKOUT_SETTINGS
|
|
431
|
-
* @webhook
|
|
432
|
-
* @eventType wix.ecom.v1.checkout_settings_updated
|
|
433
|
-
* @slug updated
|
|
434
|
-
*/
|
|
435
|
-
export declare function onCheckoutSettingsUpdated(handler: (event: CheckoutSettingsUpdatedEnvelope) => void | Promise<void>): void;
|
|
436
|
-
type CheckoutSettingsNonNullablePaths = `checkoutBrand.header.logo.size` | `checkoutBrand.header.alignment`;
|
|
437
|
-
/**
|
|
438
|
-
* Retrieves the site's checkout settings.
|
|
439
|
-
* @public
|
|
440
|
-
* @permissionId ECOM.READ_CHECKOUT_SETTINGS
|
|
441
|
-
* @permissionScope Manage Stores - all permissions
|
|
442
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
443
|
-
* @permissionScope Manage Stores
|
|
444
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
445
|
-
* @permissionScope Read eCommerce - all read permissions
|
|
446
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
447
|
-
* @permissionScope Read Orders
|
|
448
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
|
|
449
|
-
* @permissionScope Read Stores - all read permissions
|
|
450
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
451
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
452
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
453
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
454
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
455
|
-
* @permissionScope Manage Orders
|
|
456
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
457
|
-
* @applicableIdentity APP
|
|
458
|
-
* @applicableIdentity VISITOR
|
|
459
|
-
* @fqn wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.GetCheckoutSettings
|
|
460
|
-
*/
|
|
461
|
-
export declare function getCheckoutSettings(): Promise<NonNullablePaths<GetCheckoutSettingsResponse, {
|
|
462
|
-
[P in CheckoutSettingsNonNullablePaths]: `checkoutSettings.${P}`;
|
|
463
|
-
}[CheckoutSettingsNonNullablePaths]>>;
|
|
464
|
-
/**
|
|
465
|
-
* Updates the site's checkout settings.
|
|
466
|
-
* @param checkoutSettings - Checkout settings to update.
|
|
467
|
-
* @public
|
|
468
|
-
* @requiredField checkoutSettings
|
|
469
|
-
* @permissionId ECOM.UPDATE_CHECKOUT_SETTINGS
|
|
470
|
-
* @permissionScope Manage Stores - all permissions
|
|
471
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
472
|
-
* @permissionScope Manage Stores
|
|
473
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
474
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
475
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
476
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
477
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
478
|
-
* @permissionScope Manage Orders
|
|
479
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
480
|
-
* @applicableIdentity APP
|
|
481
|
-
* @fqn wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.UpdateCheckoutSettings
|
|
482
|
-
*/
|
|
483
|
-
export declare function updateCheckoutSettings(checkoutSettings: CheckoutSettings): Promise<NonNullablePaths<UpdateCheckoutSettingsResponse, {
|
|
484
|
-
[P in CheckoutSettingsNonNullablePaths]: `checkoutSettings.${P}`;
|
|
485
|
-
}[CheckoutSettingsNonNullablePaths]>>;
|
|
486
|
-
export {};
|
|
411
|
+
|
|
412
|
+
export { Alignment as A, type BaseEventMetadata as B, type CheckoutSettings as C, type DigitalItemPolicy as D, type Empty as E, type FocalPoint as F, type GetCheckoutSettingsResponse as G, type IdentificationData as I, LogoSize as L, type MessageEnvelope as M, type PrivacyPolicy as P, type ReturnPolicy as R, type TermsAndConditionsPolicy as T, type UpdateCheckoutSettingsResponse as U, WebhookIdentityType as W, type CheckoutSettingsUpdatedEnvelope as a, type CheckoutPolicies as b, type ContactUsPolicy as c, type CustomCheckoutPolicy as d, type CheckoutFields as e, type CheckboxField as f, type CheckoutBrand as g, type CheckoutHeader as h, type Logo as i, type GetCheckoutSettingsRequest as j, type UpdateCheckoutSettingsRequest as k, type ListCheckoutSettingsRequest as l, type ListCheckoutSettingsResponse as m, type GiftCardProviderWasProvisioned as n, type DeleteCheckoutSettingsRequest as o, type DeleteCheckoutSettingsResponse as p, type DomainEvent as q, type DomainEventBodyOneOf as r, type EntityCreatedEvent as s, type RestoreInfo as t, type EntityUpdatedEvent as u, type EntityDeletedEvent as v, type ActionEvent as w, type IdentificationDataIdOneOf as x, type EventMetadata as y };
|