@wix/auto_sdk_ecom_checkout-settings 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.
Files changed (134) hide show
  1. package/build/{internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → ecom-v1-checkout-settings-checkout-settings.universal-DL30mjR_.d.mts} +42 -116
  2. package/build/{cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → ecom-v1-checkout-settings-checkout-settings.universal-DL30mjR_.d.ts} +42 -116
  3. package/build/index.d.mts +29 -0
  4. package/build/index.d.ts +29 -0
  5. package/build/index.js +332 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +303 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → internal/ecom-v1-checkout-settings-checkout-settings.universal-DL30mjR_.d.mts} +42 -116
  10. package/build/internal/{es/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts → ecom-v1-checkout-settings-checkout-settings.universal-DL30mjR_.d.ts} +42 -116
  11. package/build/internal/index.d.mts +29 -0
  12. package/build/internal/index.d.ts +29 -0
  13. package/build/internal/index.js +332 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +303 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +214 -0
  18. package/build/internal/meta.d.ts +214 -0
  19. package/build/internal/meta.js +213 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +185 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +214 -0
  24. package/build/meta.d.ts +214 -0
  25. package/build/meta.js +213 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +185 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
  40. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -18
  41. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
  43. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -149
  44. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
  46. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -66
  47. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
  49. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -41
  50. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -389
  52. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -25
  53. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
  54. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -158
  55. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
  67. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -12
  68. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
  70. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -144
  71. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
  73. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -38
  74. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
  76. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -33
  77. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -389
  79. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -22
  80. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
  81. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -130
  82. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
  93. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -18
  94. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
  96. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -149
  97. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
  99. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -66
  100. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
  102. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -41
  103. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -389
  105. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -25
  106. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
  107. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -158
  108. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.context.d.ts +0 -12
  119. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.context.js +0 -12
  120. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.http.d.ts +0 -5
  122. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.http.js +0 -144
  123. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.meta.d.ts +0 -14
  125. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js +0 -38
  126. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.public.d.ts +0 -22
  128. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.public.js +0 -33
  129. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +0 -389
  131. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.js +0 -22
  132. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +0 -1
  133. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js +0 -130
  134. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +0 -1
@@ -1,5 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
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
- export interface CheckoutPolicies {
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
- export interface TermsAndConditionsPolicy {
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
- export interface PrivacyPolicy {
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
- export interface ReturnPolicy {
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
- export interface DigitalItemPolicy {
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
- export interface ContactUsPolicy {
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
- export interface CustomCheckoutPolicy {
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
- export interface CheckoutFields {
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
- export interface CheckboxField {
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
- export interface CheckoutBrand {
144
+ interface CheckoutBrand {
146
145
  /** Checkout header. */
147
146
  header?: CheckoutHeader;
148
147
  }
149
- export interface CheckoutHeader {
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
- export interface Logo {
169
+ interface Logo {
171
170
  /** Size of the logo. */
172
171
  size?: LogoSize;
173
172
  }
174
- export interface FocalPoint {
173
+ interface FocalPoint {
175
174
  /** X-coordinate of the focal point. */
176
175
  x?: number;
177
176
  /** Y-coordinate of the focal point. */
@@ -181,49 +180,49 @@ export interface FocalPoint {
181
180
  /** crop by width */
182
181
  width?: number | null;
183
182
  }
184
- export declare enum LogoSize {
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
- export declare enum Alignment {
189
+ declare enum Alignment {
191
190
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
192
191
  SIDE = "SIDE",
193
192
  CENTER = "CENTER"
194
193
  }
195
- export interface GetCheckoutSettingsRequest {
194
+ interface GetCheckoutSettingsRequest {
196
195
  }
197
- export interface GetCheckoutSettingsResponse {
196
+ interface GetCheckoutSettingsResponse {
198
197
  /** Checkout settings. */
199
198
  checkoutSettings?: CheckoutSettings;
200
199
  }
201
- export interface UpdateCheckoutSettingsRequest {
200
+ interface UpdateCheckoutSettingsRequest {
202
201
  /** Checkout settings to update. */
203
202
  checkoutSettings: CheckoutSettings;
204
203
  }
205
- export interface UpdateCheckoutSettingsResponse {
204
+ interface UpdateCheckoutSettingsResponse {
206
205
  /** Updated checkout settings. */
207
206
  checkoutSettings?: CheckoutSettings;
208
207
  }
209
- export interface ListCheckoutSettingsRequest {
208
+ interface ListCheckoutSettingsRequest {
210
209
  }
211
- export interface ListCheckoutSettingsResponse {
210
+ interface ListCheckoutSettingsResponse {
212
211
  /** List of retrieved checkout settings. */
213
212
  checkoutSettings?: CheckoutSettings[];
214
213
  }
215
- export interface GiftCardProviderWasProvisioned {
214
+ interface GiftCardProviderWasProvisioned {
216
215
  /** The gift card provider which was installed */
217
216
  providerAppDefId?: string;
218
217
  providerInstanceId?: string;
219
218
  }
220
- export interface Empty {
219
+ interface Empty {
221
220
  }
222
- export interface DeleteCheckoutSettingsRequest {
221
+ interface DeleteCheckoutSettingsRequest {
223
222
  }
224
- export interface DeleteCheckoutSettingsResponse {
223
+ interface DeleteCheckoutSettingsResponse {
225
224
  }
226
- export interface DomainEvent extends DomainEventBodyOneOf {
225
+ interface DomainEvent extends DomainEventBodyOneOf {
227
226
  createdEvent?: EntityCreatedEvent;
228
227
  updatedEvent?: EntityUpdatedEvent;
229
228
  deletedEvent?: EntityDeletedEvent;
@@ -266,19 +265,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
266
265
  entityEventSequence?: string | null;
267
266
  }
268
267
  /** @oneof */
269
- export interface DomainEventBodyOneOf {
268
+ interface DomainEventBodyOneOf {
270
269
  createdEvent?: EntityCreatedEvent;
271
270
  updatedEvent?: EntityUpdatedEvent;
272
271
  deletedEvent?: EntityDeletedEvent;
273
272
  actionEvent?: ActionEvent;
274
273
  }
275
- export interface EntityCreatedEvent {
274
+ interface EntityCreatedEvent {
276
275
  entity?: string;
277
276
  }
278
- export interface RestoreInfo {
277
+ interface RestoreInfo {
279
278
  deletedDate?: Date | null;
280
279
  }
281
- export interface EntityUpdatedEvent {
280
+ interface EntityUpdatedEvent {
282
281
  /**
283
282
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
284
283
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -286,14 +285,14 @@ export interface EntityUpdatedEvent {
286
285
  */
287
286
  currentEntity?: string;
288
287
  }
289
- export interface EntityDeletedEvent {
288
+ interface EntityDeletedEvent {
290
289
  /** Entity that was deleted */
291
290
  deletedEntity?: string | null;
292
291
  }
293
- export interface ActionEvent {
292
+ interface ActionEvent {
294
293
  body?: string;
295
294
  }
296
- export interface MessageEnvelope {
295
+ interface MessageEnvelope {
297
296
  /**
298
297
  * App instance ID.
299
298
  * @format GUID
@@ -309,7 +308,7 @@ export interface MessageEnvelope {
309
308
  /** Stringify payload. */
310
309
  data?: string;
311
310
  }
312
- export interface IdentificationData extends IdentificationDataIdOneOf {
311
+ interface IdentificationData extends IdentificationDataIdOneOf {
313
312
  /**
314
313
  * ID of a site visitor that has not logged in to the site.
315
314
  * @format GUID
@@ -334,7 +333,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
334
333
  identityType?: WebhookIdentityType;
335
334
  }
336
335
  /** @oneof */
337
- export interface IdentificationDataIdOneOf {
336
+ interface IdentificationDataIdOneOf {
338
337
  /**
339
338
  * ID of a site visitor that has not logged in to the site.
340
339
  * @format GUID
@@ -356,14 +355,14 @@ export interface IdentificationDataIdOneOf {
356
355
  */
357
356
  appId?: string;
358
357
  }
359
- export declare enum WebhookIdentityType {
358
+ declare enum WebhookIdentityType {
360
359
  UNKNOWN = "UNKNOWN",
361
360
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
362
361
  MEMBER = "MEMBER",
363
362
  WIX_USER = "WIX_USER",
364
363
  APP = "APP"
365
364
  }
366
- export interface BaseEventMetadata {
365
+ interface BaseEventMetadata {
367
366
  /**
368
367
  * App instance ID.
369
368
  * @format GUID
@@ -377,7 +376,7 @@ export interface BaseEventMetadata {
377
376
  /** The identification type and identity data. */
378
377
  identity?: IdentificationData;
379
378
  }
380
- export interface EventMetadata extends BaseEventMetadata {
379
+ interface EventMetadata extends BaseEventMetadata {
381
380
  /**
382
381
  * Unique event ID.
383
382
  * Allows clients to ignore duplicate webhooks.
@@ -415,82 +414,9 @@ export interface EventMetadata extends BaseEventMetadata {
415
414
  */
416
415
  entityEventSequence?: string | null;
417
416
  }
418
- export interface CheckoutSettingsUpdatedEnvelope {
417
+ interface CheckoutSettingsUpdatedEnvelope {
419
418
  entity: CheckoutSettings;
420
419
  metadata: EventMetadata;
421
420
  }
422
- /**
423
- * Triggered when checkout settings are updated.
424
- * @permissionScope Manage Stores - all permissions
425
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
426
- * @permissionScope Read eCommerce - all read permissions
427
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
428
- * @permissionScope Read Orders
429
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
430
- * @permissionScope Read Stores - all read permissions
431
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
432
- * @permissionScope Manage Restaurants - all permissions
433
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
434
- * @permissionScope Manage eCommerce - all permissions
435
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
436
- * @permissionScope Picasso private app mega scope
437
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
438
- * @permissionScope Manage Orders
439
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
440
- * @permissionId ECOM.READ_CHECKOUT_SETTINGS
441
- * @webhook
442
- * @eventType wix.ecom.v1.checkout_settings_updated
443
- * @slug updated
444
- */
445
- export declare function onCheckoutSettingsUpdated(handler: (event: CheckoutSettingsUpdatedEnvelope) => void | Promise<void>): void;
446
- type CheckoutSettingsNonNullablePaths = `checkoutBrand.header.logo.size` | `checkoutBrand.header.alignment`;
447
- /**
448
- * Retrieves the site's checkout settings.
449
- * @public
450
- * @permissionId ECOM.READ_CHECKOUT_SETTINGS
451
- * @permissionScope Manage Stores - all permissions
452
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
453
- * @permissionScope Read eCommerce - all read permissions
454
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
455
- * @permissionScope Read Orders
456
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
457
- * @permissionScope Read Stores - all read permissions
458
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
459
- * @permissionScope Manage Restaurants - all permissions
460
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
461
- * @permissionScope Manage eCommerce - all permissions
462
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
463
- * @permissionScope Picasso private app mega scope
464
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
465
- * @permissionScope Manage Orders
466
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
467
- * @applicableIdentity APP
468
- * @applicableIdentity VISITOR
469
- * @fqn wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.GetCheckoutSettings
470
- */
471
- export declare function getCheckoutSettings(): Promise<NonNullablePaths<GetCheckoutSettingsResponse, {
472
- [P in CheckoutSettingsNonNullablePaths]: `checkoutSettings.${P}`;
473
- }[CheckoutSettingsNonNullablePaths]>>;
474
- /**
475
- * Updates the site's checkout settings.
476
- * @param checkoutSettings - Checkout settings to update.
477
- * @public
478
- * @requiredField checkoutSettings
479
- * @permissionId ECOM.UPDATE_CHECKOUT_SETTINGS
480
- * @permissionScope Manage Stores - all permissions
481
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
482
- * @permissionScope Manage Restaurants - all permissions
483
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
484
- * @permissionScope Manage eCommerce - all permissions
485
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
486
- * @permissionScope Picasso private app mega scope
487
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
488
- * @permissionScope Manage Orders
489
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
490
- * @applicableIdentity APP
491
- * @fqn wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.UpdateCheckoutSettings
492
- */
493
- export declare function updateCheckoutSettings(checkoutSettings: CheckoutSettings): Promise<NonNullablePaths<UpdateCheckoutSettingsResponse, {
494
- [P in CheckoutSettingsNonNullablePaths]: `checkoutSettings.${P}`;
495
- }[CheckoutSettingsNonNullablePaths]>>;
496
- export {};
421
+
422
+ 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 CheckoutPolicies as a, type ContactUsPolicy as b, type CustomCheckoutPolicy as c, type CheckoutFields as d, type CheckboxField as e, type CheckoutBrand as f, type CheckoutHeader as g, type Logo as h, type GetCheckoutSettingsRequest as i, type UpdateCheckoutSettingsRequest as j, type ListCheckoutSettingsRequest as k, type ListCheckoutSettingsResponse as l, type GiftCardProviderWasProvisioned as m, type DeleteCheckoutSettingsRequest as n, type DeleteCheckoutSettingsResponse as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityCreatedEvent as r, type RestoreInfo as s, type EntityUpdatedEvent as t, type EntityDeletedEvent as u, type ActionEvent as v, type IdentificationDataIdOneOf as w, type EventMetadata as x, type CheckoutSettingsUpdatedEnvelope as y };
@@ -1,5 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
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
- export interface CheckoutPolicies {
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
- export interface TermsAndConditionsPolicy {
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
- export interface PrivacyPolicy {
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
- export interface ReturnPolicy {
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
- export interface DigitalItemPolicy {
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
- export interface ContactUsPolicy {
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
- export interface CustomCheckoutPolicy {
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
- export interface CheckoutFields {
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
- export interface CheckboxField {
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
- export interface CheckoutBrand {
144
+ interface CheckoutBrand {
146
145
  /** Checkout header. */
147
146
  header?: CheckoutHeader;
148
147
  }
149
- export interface CheckoutHeader {
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
- export interface Logo {
169
+ interface Logo {
171
170
  /** Size of the logo. */
172
171
  size?: LogoSize;
173
172
  }
174
- export interface FocalPoint {
173
+ interface FocalPoint {
175
174
  /** X-coordinate of the focal point. */
176
175
  x?: number;
177
176
  /** Y-coordinate of the focal point. */
@@ -181,49 +180,49 @@ export interface FocalPoint {
181
180
  /** crop by width */
182
181
  width?: number | null;
183
182
  }
184
- export declare enum LogoSize {
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
- export declare enum Alignment {
189
+ declare enum Alignment {
191
190
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
192
191
  SIDE = "SIDE",
193
192
  CENTER = "CENTER"
194
193
  }
195
- export interface GetCheckoutSettingsRequest {
194
+ interface GetCheckoutSettingsRequest {
196
195
  }
197
- export interface GetCheckoutSettingsResponse {
196
+ interface GetCheckoutSettingsResponse {
198
197
  /** Checkout settings. */
199
198
  checkoutSettings?: CheckoutSettings;
200
199
  }
201
- export interface UpdateCheckoutSettingsRequest {
200
+ interface UpdateCheckoutSettingsRequest {
202
201
  /** Checkout settings to update. */
203
202
  checkoutSettings: CheckoutSettings;
204
203
  }
205
- export interface UpdateCheckoutSettingsResponse {
204
+ interface UpdateCheckoutSettingsResponse {
206
205
  /** Updated checkout settings. */
207
206
  checkoutSettings?: CheckoutSettings;
208
207
  }
209
- export interface ListCheckoutSettingsRequest {
208
+ interface ListCheckoutSettingsRequest {
210
209
  }
211
- export interface ListCheckoutSettingsResponse {
210
+ interface ListCheckoutSettingsResponse {
212
211
  /** List of retrieved checkout settings. */
213
212
  checkoutSettings?: CheckoutSettings[];
214
213
  }
215
- export interface GiftCardProviderWasProvisioned {
214
+ interface GiftCardProviderWasProvisioned {
216
215
  /** The gift card provider which was installed */
217
216
  providerAppDefId?: string;
218
217
  providerInstanceId?: string;
219
218
  }
220
- export interface Empty {
219
+ interface Empty {
221
220
  }
222
- export interface DeleteCheckoutSettingsRequest {
221
+ interface DeleteCheckoutSettingsRequest {
223
222
  }
224
- export interface DeleteCheckoutSettingsResponse {
223
+ interface DeleteCheckoutSettingsResponse {
225
224
  }
226
- export interface DomainEvent extends DomainEventBodyOneOf {
225
+ interface DomainEvent extends DomainEventBodyOneOf {
227
226
  createdEvent?: EntityCreatedEvent;
228
227
  updatedEvent?: EntityUpdatedEvent;
229
228
  deletedEvent?: EntityDeletedEvent;
@@ -266,19 +265,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
266
265
  entityEventSequence?: string | null;
267
266
  }
268
267
  /** @oneof */
269
- export interface DomainEventBodyOneOf {
268
+ interface DomainEventBodyOneOf {
270
269
  createdEvent?: EntityCreatedEvent;
271
270
  updatedEvent?: EntityUpdatedEvent;
272
271
  deletedEvent?: EntityDeletedEvent;
273
272
  actionEvent?: ActionEvent;
274
273
  }
275
- export interface EntityCreatedEvent {
274
+ interface EntityCreatedEvent {
276
275
  entity?: string;
277
276
  }
278
- export interface RestoreInfo {
277
+ interface RestoreInfo {
279
278
  deletedDate?: Date | null;
280
279
  }
281
- export interface EntityUpdatedEvent {
280
+ interface EntityUpdatedEvent {
282
281
  /**
283
282
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
284
283
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -286,14 +285,14 @@ export interface EntityUpdatedEvent {
286
285
  */
287
286
  currentEntity?: string;
288
287
  }
289
- export interface EntityDeletedEvent {
288
+ interface EntityDeletedEvent {
290
289
  /** Entity that was deleted */
291
290
  deletedEntity?: string | null;
292
291
  }
293
- export interface ActionEvent {
292
+ interface ActionEvent {
294
293
  body?: string;
295
294
  }
296
- export interface MessageEnvelope {
295
+ interface MessageEnvelope {
297
296
  /**
298
297
  * App instance ID.
299
298
  * @format GUID
@@ -309,7 +308,7 @@ export interface MessageEnvelope {
309
308
  /** Stringify payload. */
310
309
  data?: string;
311
310
  }
312
- export interface IdentificationData extends IdentificationDataIdOneOf {
311
+ interface IdentificationData extends IdentificationDataIdOneOf {
313
312
  /**
314
313
  * ID of a site visitor that has not logged in to the site.
315
314
  * @format GUID
@@ -334,7 +333,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
334
333
  identityType?: WebhookIdentityType;
335
334
  }
336
335
  /** @oneof */
337
- export interface IdentificationDataIdOneOf {
336
+ interface IdentificationDataIdOneOf {
338
337
  /**
339
338
  * ID of a site visitor that has not logged in to the site.
340
339
  * @format GUID
@@ -356,14 +355,14 @@ export interface IdentificationDataIdOneOf {
356
355
  */
357
356
  appId?: string;
358
357
  }
359
- export declare enum WebhookIdentityType {
358
+ declare enum WebhookIdentityType {
360
359
  UNKNOWN = "UNKNOWN",
361
360
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
362
361
  MEMBER = "MEMBER",
363
362
  WIX_USER = "WIX_USER",
364
363
  APP = "APP"
365
364
  }
366
- export interface BaseEventMetadata {
365
+ interface BaseEventMetadata {
367
366
  /**
368
367
  * App instance ID.
369
368
  * @format GUID
@@ -377,7 +376,7 @@ export interface BaseEventMetadata {
377
376
  /** The identification type and identity data. */
378
377
  identity?: IdentificationData;
379
378
  }
380
- export interface EventMetadata extends BaseEventMetadata {
379
+ interface EventMetadata extends BaseEventMetadata {
381
380
  /**
382
381
  * Unique event ID.
383
382
  * Allows clients to ignore duplicate webhooks.
@@ -415,82 +414,9 @@ export interface EventMetadata extends BaseEventMetadata {
415
414
  */
416
415
  entityEventSequence?: string | null;
417
416
  }
418
- export interface CheckoutSettingsUpdatedEnvelope {
417
+ interface CheckoutSettingsUpdatedEnvelope {
419
418
  entity: CheckoutSettings;
420
419
  metadata: EventMetadata;
421
420
  }
422
- /**
423
- * Triggered when checkout settings are updated.
424
- * @permissionScope Manage Stores - all permissions
425
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
426
- * @permissionScope Read eCommerce - all read permissions
427
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
428
- * @permissionScope Read Orders
429
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
430
- * @permissionScope Read Stores - all read permissions
431
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
432
- * @permissionScope Manage Restaurants - all permissions
433
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
434
- * @permissionScope Manage eCommerce - all permissions
435
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
436
- * @permissionScope Picasso private app mega scope
437
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
438
- * @permissionScope Manage Orders
439
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
440
- * @permissionId ECOM.READ_CHECKOUT_SETTINGS
441
- * @webhook
442
- * @eventType wix.ecom.v1.checkout_settings_updated
443
- * @slug updated
444
- */
445
- export declare function onCheckoutSettingsUpdated(handler: (event: CheckoutSettingsUpdatedEnvelope) => void | Promise<void>): void;
446
- type CheckoutSettingsNonNullablePaths = `checkoutBrand.header.logo.size` | `checkoutBrand.header.alignment`;
447
- /**
448
- * Retrieves the site's checkout settings.
449
- * @public
450
- * @permissionId ECOM.READ_CHECKOUT_SETTINGS
451
- * @permissionScope Manage Stores - all permissions
452
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
453
- * @permissionScope Read eCommerce - all read permissions
454
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
455
- * @permissionScope Read Orders
456
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
457
- * @permissionScope Read Stores - all read permissions
458
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
459
- * @permissionScope Manage Restaurants - all permissions
460
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
461
- * @permissionScope Manage eCommerce - all permissions
462
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
463
- * @permissionScope Picasso private app mega scope
464
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
465
- * @permissionScope Manage Orders
466
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
467
- * @applicableIdentity APP
468
- * @applicableIdentity VISITOR
469
- * @fqn wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.GetCheckoutSettings
470
- */
471
- export declare function getCheckoutSettings(): Promise<NonNullablePaths<GetCheckoutSettingsResponse, {
472
- [P in CheckoutSettingsNonNullablePaths]: `checkoutSettings.${P}`;
473
- }[CheckoutSettingsNonNullablePaths]>>;
474
- /**
475
- * Updates the site's checkout settings.
476
- * @param checkoutSettings - Checkout settings to update.
477
- * @public
478
- * @requiredField checkoutSettings
479
- * @permissionId ECOM.UPDATE_CHECKOUT_SETTINGS
480
- * @permissionScope Manage Stores - all permissions
481
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
482
- * @permissionScope Manage Restaurants - all permissions
483
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
484
- * @permissionScope Manage eCommerce - all permissions
485
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
486
- * @permissionScope Picasso private app mega scope
487
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
488
- * @permissionScope Manage Orders
489
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
490
- * @applicableIdentity APP
491
- * @fqn wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.UpdateCheckoutSettings
492
- */
493
- export declare function updateCheckoutSettings(checkoutSettings: CheckoutSettings): Promise<NonNullablePaths<UpdateCheckoutSettingsResponse, {
494
- [P in CheckoutSettingsNonNullablePaths]: `checkoutSettings.${P}`;
495
- }[CheckoutSettingsNonNullablePaths]>>;
496
- export {};
421
+
422
+ 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 CheckoutPolicies as a, type ContactUsPolicy as b, type CustomCheckoutPolicy as c, type CheckoutFields as d, type CheckboxField as e, type CheckoutBrand as f, type CheckoutHeader as g, type Logo as h, type GetCheckoutSettingsRequest as i, type UpdateCheckoutSettingsRequest as j, type ListCheckoutSettingsRequest as k, type ListCheckoutSettingsResponse as l, type GiftCardProviderWasProvisioned as m, type DeleteCheckoutSettingsRequest as n, type DeleteCheckoutSettingsResponse as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityCreatedEvent as r, type RestoreInfo as s, type EntityUpdatedEvent as t, type EntityDeletedEvent as u, type ActionEvent as v, type IdentificationDataIdOneOf as w, type EventMetadata as x, type CheckoutSettingsUpdatedEnvelope as y };