@wix/auto_sdk_ecom_checkout-settings 1.0.68 → 1.0.70

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.
@@ -141,6 +141,13 @@ interface CheckoutFields {
141
141
  * >**Note:** this setting is only relevant when `delay_capture_enabled: true`.
142
142
  */
143
143
  captureBeforeExpiryEnabled?: boolean | null;
144
+ /**
145
+ * Whether purchase recommendations are shown to the buyer at checkout.
146
+ *
147
+ * Default: `false`
148
+ * @internal
149
+ */
150
+ purchaseRecommendationsEnabled?: boolean | null;
144
151
  }
145
152
  interface SubscriptionCheckboxField {
146
153
  /**
@@ -174,6 +181,21 @@ interface CheckboxField {
174
181
  interface CheckoutBrand {
175
182
  /** Checkout header. */
176
183
  header?: CheckoutHeader;
184
+ /**
185
+ * Main checkout area branding.
186
+ * @internal
187
+ */
188
+ mainSection?: CheckoutMain;
189
+ /**
190
+ * Checkout footer branding.
191
+ * @internal
192
+ */
193
+ footer?: CheckoutFooter;
194
+ /**
195
+ * Global checkout branding.
196
+ * @internal
197
+ */
198
+ global?: CheckoutGlobal;
177
199
  }
178
200
  interface CheckoutHeader {
179
201
  /**
@@ -203,8 +225,19 @@ interface CheckoutHeader {
203
225
  continueShopping?: ContinueShopping;
204
226
  /** Background fill specifications. */
205
227
  backgroundFill?: BackgroundFill;
228
+ /**
229
+ * Color hex code of the full-width divider rule below the header.
230
+ * @internal
231
+ * @format COLOR_HEX
232
+ */
233
+ dividerColor?: string | null;
206
234
  }
207
235
  interface Logo {
236
+ /**
237
+ * Logo image.
238
+ * @internal
239
+ */
240
+ image?: Image;
208
241
  /** Size of the logo. */
209
242
  size?: LogoSizeWithLiterals;
210
243
  }
@@ -225,11 +258,29 @@ interface Image {
225
258
  width?: number;
226
259
  /** Image alt text. */
227
260
  altText?: string | null;
261
+ /**
262
+ * Image URL expiration date (when relevant).
263
+ * @internal
264
+ * @readonly
265
+ */
266
+ urlExpirationDate?: Date | null;
228
267
  /**
229
268
  * Image filename.
230
269
  * @readonly
231
270
  */
232
271
  filename?: string | null;
272
+ /**
273
+ * Image size in bytes.
274
+ * @internal
275
+ * @readonly
276
+ * @format DECIMAL_VALUE
277
+ */
278
+ sizeInBytes?: string | null;
279
+ /**
280
+ * Focal point of the image.
281
+ * @internal
282
+ */
283
+ focalPoint?: FocalPoint;
233
284
  }
234
285
  interface FocalPoint {
235
286
  /** X-coordinate of the focal point. */
@@ -286,6 +337,39 @@ interface BackgroundFillOptionsOneOf {
286
337
  image?: Image;
287
338
  }
288
339
  interface CheckoutMain {
340
+ /**
341
+ * Background fill of the checkout form.
342
+ * @internal
343
+ */
344
+ formBackgroundFill?: BackgroundFill;
345
+ /**
346
+ * Background fill of the checkout summary.
347
+ * @internal
348
+ */
349
+ summaryBackgroundFill?: BackgroundFill;
350
+ /**
351
+ * Color hex code of the dividers.
352
+ * @internal
353
+ * @format COLOR_HEX
354
+ */
355
+ dividerColor?: string | null;
356
+ /**
357
+ * Color hex code of the tinted boxes (e.g. show-summary box). Stored and applied solid (no opacity).
358
+ * @internal
359
+ * @format COLOR_HEX
360
+ */
361
+ tintedBoxColor?: string | null;
362
+ /**
363
+ * Corner radius style applied to the express checkout buttons.
364
+ * @internal
365
+ */
366
+ expressButtonsCornerRadius?: ExpressButtonsCornerRadiusWithLiterals;
367
+ /**
368
+ * Corner radius applied everywhere except the express checkout buttons — line-item images and form-field inputs.
369
+ * @internal
370
+ * @max 100
371
+ */
372
+ cornerRadius?: number | null;
289
373
  }
290
374
  declare enum ExpressButtonsCornerRadius {
291
375
  RECTANGLE = "RECTANGLE",
@@ -294,8 +378,54 @@ declare enum ExpressButtonsCornerRadius {
294
378
  /** @enumType */
295
379
  type ExpressButtonsCornerRadiusWithLiterals = ExpressButtonsCornerRadius | 'RECTANGLE' | 'PILL';
296
380
  interface CheckoutFooter {
381
+ /**
382
+ * Background fill of the footer.
383
+ * @internal
384
+ */
385
+ backgroundFill?: BackgroundFill;
386
+ /**
387
+ * Color hex code of the full-width divider rule above the footer.
388
+ * @internal
389
+ * @format COLOR_HEX
390
+ */
391
+ dividerColor?: string | null;
297
392
  }
298
393
  interface CheckoutGlobal {
394
+ /**
395
+ * Color hex code of selection controls (radios/checkboxes).
396
+ * @internal
397
+ * @format COLOR_HEX
398
+ */
399
+ selectionColor?: string | null;
400
+ /**
401
+ * Color hex code of the place order button.
402
+ * @internal
403
+ * @format COLOR_HEX
404
+ */
405
+ placeOrderButtonColor?: string | null;
406
+ /**
407
+ * Color hex code of the buttons.
408
+ * @internal
409
+ * @format COLOR_HEX
410
+ */
411
+ buttonColor?: string | null;
412
+ /**
413
+ * Background style applied to checkout input fields.
414
+ * @internal
415
+ */
416
+ inputFieldBackgroundStyle?: InputFieldBackgroundStyleWithLiterals;
417
+ /**
418
+ * Font family used for headings.
419
+ * @internal
420
+ * @maxLength 30
421
+ */
422
+ headingsFontFamily?: string | null;
423
+ /**
424
+ * Font family used for body text.
425
+ * @internal
426
+ * @maxLength 30
427
+ */
428
+ bodyFontFamily?: string | null;
299
429
  }
300
430
  declare enum InputFieldBackgroundStyle {
301
431
  WHITE = "WHITE",
@@ -320,6 +450,11 @@ interface GetCheckoutSettingsResponse {
320
450
  interface UpdateCheckoutSettingsRequest {
321
451
  /** Checkout settings to update. */
322
452
  checkoutSettings: CheckoutSettings;
453
+ /**
454
+ * List of exact fields to update. For example, if you define only `giftCardRedeemEnabled`, all other fields are ignored.
455
+ * @internal
456
+ */
457
+ fieldMask?: string[];
323
458
  }
324
459
  interface UpdateCheckoutSettingsResponse {
325
460
  /** Updated checkout settings. */
@@ -385,8 +520,18 @@ interface DomainEventBodyOneOf {
385
520
  }
386
521
  interface EntityCreatedEvent {
387
522
  entityAsJson?: string;
523
+ /**
524
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
525
+ * @internal
526
+ */
527
+ triggeredByUndelete?: boolean | null;
388
528
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
389
529
  restoreInfo?: RestoreInfo;
530
+ /**
531
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
532
+ * @internal
533
+ */
534
+ additionalMetadataAsJson?: string | null;
390
535
  }
391
536
  interface RestoreInfo {
392
537
  deletedDate?: Date | null;
@@ -398,10 +543,42 @@ interface EntityUpdatedEvent {
398
543
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
399
544
  */
400
545
  currentEntityAsJson?: string;
546
+ /**
547
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
548
+ * wont populate it / have any reference to it in the API.
549
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
550
+ * the developer should send only the new (current) entity.
551
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
552
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
553
+ * @internal
554
+ * @deprecated
555
+ */
556
+ previousEntityAsJson?: string | null;
557
+ /**
558
+ * Map of fully qualified field paths to their previous values for fields that changed.
559
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
560
+ * @internal
561
+ */
562
+ modifiedFields?: Record<string, any>;
563
+ /**
564
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
565
+ * @internal
566
+ */
567
+ additionalMetadataAsJson?: string | null;
401
568
  }
402
569
  interface EntityDeletedEvent {
570
+ /**
571
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
572
+ * @internal
573
+ */
574
+ movedToTrash?: boolean | null;
403
575
  /** Entity that was deleted. */
404
576
  deletedEntityAsJson?: string | null;
577
+ /**
578
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
579
+ * @internal
580
+ */
581
+ additionalMetadataAsJson?: string | null;
405
582
  }
406
583
  interface ActionEvent {
407
584
  bodyAsJson?: string;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../meta.ts","../../../src/ecom-v1-checkout-settings-checkout-settings.http.ts","../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts","../../../src/ecom-v1-checkout-settings-checkout-settings.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-checkout-settings-checkout-settings.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/checkout-settings',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_checkout-settings';\n\n/** Retrieves the site's checkout settings. */\nexport function getCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getCheckoutSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.GetCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCheckoutSettings;\n}\n\n/** Updates the site's checkout settings. */\nexport function updateCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCheckoutSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.UpdateCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCheckoutSettings;\n}\n","/** Site-level settings that control the checkout experience, including policies, field visibility, and branding. */\nexport interface CheckoutSettings {\n /** Checkout policies. */\n checkoutPolicies?: CheckoutPolicies;\n /** Settings that apply to checkout fields and the checkout process. */\n checkoutFields?: CheckoutFields;\n /** Checkout brand settings. */\n checkoutBrand?: CheckoutBrand;\n /**\n * Date and time the checkout settings were created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the checkout settings were updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Billing information required to complete the checkout. */\n checkoutBillingFields?: CheckoutBillingFieldsWithLiterals;\n}\n\nexport interface CheckoutPolicies {\n /** Terms and conditions. */\n termsAndConditions?: TermsAndConditionsPolicy;\n /** Privacy policy. */\n privacyPolicy?: PrivacyPolicy;\n /** Return policy. */\n returnPolicy?: ReturnPolicy;\n /** Digital item policy. */\n digitalItemPolicy?: DigitalItemPolicy;\n /** \"Contact us\" information. */\n contactUs?: ContactUsPolicy;\n /** Custom policy. */\n customPolicy?: CustomCheckoutPolicy;\n}\n\nexport interface TermsAndConditionsPolicy {\n /**\n * Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Terms and conditions policy content. */\n content?: string | null;\n}\n\nexport interface PrivacyPolicy {\n /**\n * Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Privacy policy content. */\n content?: string | null;\n}\n\nexport interface ReturnPolicy {\n /**\n * Whether the return policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Return policy content. */\n content?: string | null;\n}\n\nexport interface DigitalItemPolicy {\n /**\n * Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Digital item policy content. */\n content?: string | null;\n}\n\nexport interface ContactUsPolicy {\n /**\n * Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Contact us policy content. */\n content?: string | null;\n}\n\nexport interface CustomCheckoutPolicy {\n /**\n * Whether the custom policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Custom policy content. */\n content?: string | null;\n /** Custom policy title. */\n title?: string | null;\n}\n\nexport interface CheckoutFields {\n /**\n * Subscription checkbox. <br><br>\n *\n * Controls the marketing consent checkbox shown to the buyer at checkout. By default, a single\n * checkbox lets the buyer opt in to both email and SMS marketing at once. When\n * `subscriptionCheckbox.splitByChannel` is `true`, checkout instead shows two separate\n * checkboxes - one for email, one for SMS - so the buyer can opt into each channel independently.\n */\n subscriptionCheckbox?: SubscriptionCheckboxField;\n /**\n * Policy agreement checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n policyAgreementCheckbox?: CheckboxField;\n /**\n * Whether the ability to redeem a gift card is enabled. <br><br>\n *\n * Default: `false`\n */\n giftCardRedeemEnabled?: boolean | null;\n /**\n * Whether to allow for MIT transactions. <br><br>\n *\n * Default: `false`\n */\n mitEnabled?: boolean | null;\n /**\n * Whether to allow for Auth & Capture transactions. <br><br>\n *\n * Default: `false`\n */\n delayCaptureEnabled?: boolean | null;\n /**\n * Whether to automatically capture the transaction before the authorization expires.\n *\n * Default: `true`\n * >**Note:** this setting is only relevant when `delay_capture_enabled: true`.\n */\n captureBeforeExpiryEnabled?: boolean | null;\n}\n\nexport interface SubscriptionCheckboxField {\n /**\n * Whether the checkbox is visible to the customer.\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /**\n * Whether the checkbox is checked by default.\n *\n * Default: `false`\n */\n checkedByDefault?: boolean | null;\n /**\n * Whether checkout shows two separate opt-in checkboxes for email and SMS\n * instead of a single combined checkbox. Only takes effect when `visible` is `true`.\n * Both checkboxes are always shown together - a buyer can't be shown just one channel.\n * `checkedByDefault` applies to both checkboxes equally: when `true`, both start pre-checked.\n *\n * Default: `false`\n */\n splitByChannel?: boolean | null;\n}\n\nexport interface CheckboxField {\n /** Whether the checkbox is visible to the customer. */\n visible?: boolean | null;\n /** Whether the checkbox is checked by default. */\n checkedByDefault?: boolean | null;\n}\n\nexport interface CheckoutBrand {\n /** Checkout header. */\n header?: CheckoutHeader;\n}\n\nexport interface CheckoutHeader {\n /**\n * Textual content to be included in the header (e.g. Business Name)\n * @maxLength 55\n */\n text?: string | null;\n /**\n * Text color hex code.\n * @format COLOR_HEX\n */\n textColor?: string | null;\n /** Specifications for when a logo is included in the header. */\n logo?: Logo;\n /**\n * Alignment within the header.\n *\n * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.\n */\n alignment?: AlignmentWithLiterals;\n /**\n * Whether to display the 'Checkout' label within the header.\n * Depending on the locale, the label may be translated.\n */\n displayCheckoutLabel?: boolean | null;\n /** Continue shopping specifications. */\n continueShopping?: ContinueShopping;\n /** Background fill specifications. */\n backgroundFill?: BackgroundFill;\n}\n\nexport interface Logo {\n /** Size of the logo. */\n size?: LogoSizeWithLiterals;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum LogoSize {\n SMALL = 'SMALL',\n MEDIUM = 'MEDIUM',\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type LogoSizeWithLiterals = LogoSize | 'SMALL' | 'MEDIUM' | 'LARGE';\n\nexport enum Alignment {\n SIDE = 'SIDE',\n CENTER = 'CENTER',\n}\n\n/** @enumType */\nexport type AlignmentWithLiterals = Alignment | 'SIDE' | 'CENTER';\n\nexport interface ContinueShopping {\n /** Whether the continue shopping element is hidden. */\n hidden?: boolean | null;\n /** Display type for the continue shopping element. */\n displayType?: DisplayTypeWithLiterals;\n}\n\nexport enum DisplayType {\n TEXT = 'TEXT',\n ICON = 'ICON',\n}\n\n/** @enumType */\nexport type DisplayTypeWithLiterals = DisplayType | 'TEXT' | 'ICON';\n\nexport interface BackgroundFill extends BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: Image;\n}\n\n/** @oneof */\nexport interface BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: Image;\n}\n\nexport interface CheckoutMain {}\n\nexport enum ExpressButtonsCornerRadius {\n RECTANGLE = 'RECTANGLE',\n PILL = 'PILL',\n}\n\n/** @enumType */\nexport type ExpressButtonsCornerRadiusWithLiterals =\n | ExpressButtonsCornerRadius\n | 'RECTANGLE'\n | 'PILL';\n\nexport interface CheckoutFooter {}\n\nexport interface CheckoutGlobal {}\n\nexport enum InputFieldBackgroundStyle {\n WHITE = 'WHITE',\n TRANSPARENT = 'TRANSPARENT',\n}\n\n/** @enumType */\nexport type InputFieldBackgroundStyleWithLiterals =\n | InputFieldBackgroundStyle\n | 'WHITE'\n | 'TRANSPARENT';\n\nexport enum CheckoutBillingFields {\n /** All billing information fields are required. */\n All_FIELDS = 'All_FIELDS',\n /** Minimum required fields as defined by the country, payment method and payment provider. */\n MINIMUM_REQUIRED_FIELDS = 'MINIMUM_REQUIRED_FIELDS',\n}\n\n/** @enumType */\nexport type CheckoutBillingFieldsWithLiterals =\n | CheckoutBillingFields\n | 'All_FIELDS'\n | 'MINIMUM_REQUIRED_FIELDS';\n\nexport interface GetCheckoutSettingsRequest {}\n\nexport interface GetCheckoutSettingsResponse {\n /** Checkout settings. */\n checkoutSettings?: CheckoutSettings;\n}\n\nexport interface UpdateCheckoutSettingsRequest {\n /** Checkout settings to update. */\n checkoutSettings: CheckoutSettings;\n}\n\nexport interface UpdateCheckoutSettingsResponse {\n /** Updated checkout settings. */\n checkoutSettings?: CheckoutSettings;\n}\n\nexport interface ListCheckoutSettingsRequest {}\n\nexport interface ListCheckoutSettingsResponse {\n /** List of retrieved checkout settings. */\n checkoutSettings?: CheckoutSettings[];\n}\n\nexport interface GiftCardProviderWasProvisioned {\n /** The gift card provider which was installed */\n providerAppDefId?: string;\n providerInstanceId?: string;\n}\n\nexport interface Empty {}\n\nexport interface DeleteCheckoutSettingsRequest {}\n\nexport interface DeleteCheckoutSettingsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixEcomV1CheckoutSettings from './ecom-v1-checkout-settings-checkout-settings.http.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsTypes from './ecom-v1-checkout-settings-checkout-settings.types.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsUniversalTypes from './ecom-v1-checkout-settings-checkout-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getCheckoutSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.getCheckoutSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/checkout-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCheckoutSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.updateCheckoutSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/checkout-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n CheckoutSettings as CheckoutSettingsOriginal,\n CheckoutPolicies as CheckoutPoliciesOriginal,\n TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal,\n PrivacyPolicy as PrivacyPolicyOriginal,\n ReturnPolicy as ReturnPolicyOriginal,\n DigitalItemPolicy as DigitalItemPolicyOriginal,\n ContactUsPolicy as ContactUsPolicyOriginal,\n CustomCheckoutPolicy as CustomCheckoutPolicyOriginal,\n CheckoutFields as CheckoutFieldsOriginal,\n SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal,\n CheckboxField as CheckboxFieldOriginal,\n CheckoutBrand as CheckoutBrandOriginal,\n CheckoutHeader as CheckoutHeaderOriginal,\n Logo as LogoOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n LogoSize as LogoSizeOriginal,\n LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal,\n Alignment as AlignmentOriginal,\n AlignmentWithLiterals as AlignmentWithLiteralsOriginal,\n ContinueShopping as ContinueShoppingOriginal,\n DisplayType as DisplayTypeOriginal,\n DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal,\n BackgroundFill as BackgroundFillOriginal,\n BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal,\n CheckoutMain as CheckoutMainOriginal,\n ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal,\n ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal,\n CheckoutFooter as CheckoutFooterOriginal,\n CheckoutGlobal as CheckoutGlobalOriginal,\n InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal,\n InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal,\n CheckoutBillingFields as CheckoutBillingFieldsOriginal,\n CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal,\n GetCheckoutSettingsRequest as GetCheckoutSettingsRequestOriginal,\n GetCheckoutSettingsResponse as GetCheckoutSettingsResponseOriginal,\n UpdateCheckoutSettingsRequest as UpdateCheckoutSettingsRequestOriginal,\n UpdateCheckoutSettingsResponse as UpdateCheckoutSettingsResponseOriginal,\n ListCheckoutSettingsRequest as ListCheckoutSettingsRequestOriginal,\n ListCheckoutSettingsResponse as ListCheckoutSettingsResponseOriginal,\n GiftCardProviderWasProvisioned as GiftCardProviderWasProvisionedOriginal,\n Empty as EmptyOriginal,\n DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequestOriginal,\n DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './ecom-v1-checkout-settings-checkout-settings.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,8BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAA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,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACgC,uBAAuB,OAAO;AAEpE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getCheckoutSettings","updateCheckoutSettings","import_float","import_timestamp","import_rest_modules","payload","LogoSize","Alignment","DisplayType","ExpressButtonsCornerRadius","InputFieldBackgroundStyle","CheckoutBillingFields","WebhookIdentityType","getCheckoutSettings","updateCheckoutSettings"]}
1
+ {"version":3,"sources":["../../../meta.ts","../../../src/ecom-v1-checkout-settings-checkout-settings.http.ts","../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts","../../../src/ecom-v1-checkout-settings-checkout-settings.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-checkout-settings-checkout-settings.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/checkout-settings',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_checkout-settings';\n\n/** Retrieves the site's checkout settings. */\nexport function getCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getCheckoutSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.GetCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCheckoutSettings;\n}\n\n/** Updates the site's checkout settings. */\nexport function updateCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCheckoutSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.UpdateCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.footer.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCheckoutSettings;\n}\n","/** Site-level settings that control the checkout experience, including policies, field visibility, and branding. */\nexport interface CheckoutSettings {\n /** Checkout policies. */\n checkoutPolicies?: CheckoutPolicies;\n /** Settings that apply to checkout fields and the checkout process. */\n checkoutFields?: CheckoutFields;\n /** Checkout brand settings. */\n checkoutBrand?: CheckoutBrand;\n /**\n * Date and time the checkout settings were created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the checkout settings were updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Billing information required to complete the checkout. */\n checkoutBillingFields?: CheckoutBillingFieldsWithLiterals;\n}\n\nexport interface CheckoutPolicies {\n /** Terms and conditions. */\n termsAndConditions?: TermsAndConditionsPolicy;\n /** Privacy policy. */\n privacyPolicy?: PrivacyPolicy;\n /** Return policy. */\n returnPolicy?: ReturnPolicy;\n /** Digital item policy. */\n digitalItemPolicy?: DigitalItemPolicy;\n /** \"Contact us\" information. */\n contactUs?: ContactUsPolicy;\n /** Custom policy. */\n customPolicy?: CustomCheckoutPolicy;\n}\n\nexport interface TermsAndConditionsPolicy {\n /**\n * Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Terms and conditions policy content. */\n content?: string | null;\n}\n\nexport interface PrivacyPolicy {\n /**\n * Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Privacy policy content. */\n content?: string | null;\n}\n\nexport interface ReturnPolicy {\n /**\n * Whether the return policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Return policy content. */\n content?: string | null;\n}\n\nexport interface DigitalItemPolicy {\n /**\n * Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Digital item policy content. */\n content?: string | null;\n}\n\nexport interface ContactUsPolicy {\n /**\n * Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Contact us policy content. */\n content?: string | null;\n}\n\nexport interface CustomCheckoutPolicy {\n /**\n * Whether the custom policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Custom policy content. */\n content?: string | null;\n /** Custom policy title. */\n title?: string | null;\n}\n\nexport interface CheckoutFields {\n /**\n * Subscription checkbox. <br><br>\n *\n * Controls the marketing consent checkbox shown to the buyer at checkout. By default, a single\n * checkbox lets the buyer opt in to both email and SMS marketing at once. When\n * `subscriptionCheckbox.splitByChannel` is `true`, checkout instead shows two separate\n * checkboxes - one for email, one for SMS - so the buyer can opt into each channel independently.\n */\n subscriptionCheckbox?: SubscriptionCheckboxField;\n /**\n * Policy agreement checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n policyAgreementCheckbox?: CheckboxField;\n /**\n * Whether the ability to redeem a gift card is enabled. <br><br>\n *\n * Default: `false`\n */\n giftCardRedeemEnabled?: boolean | null;\n /**\n * Whether to allow for MIT transactions. <br><br>\n *\n * Default: `false`\n */\n mitEnabled?: boolean | null;\n /**\n * Whether to allow for Auth & Capture transactions. <br><br>\n *\n * Default: `false`\n */\n delayCaptureEnabled?: boolean | null;\n /**\n * Whether to automatically capture the transaction before the authorization expires.\n *\n * Default: `true`\n * >**Note:** this setting is only relevant when `delay_capture_enabled: true`.\n */\n captureBeforeExpiryEnabled?: boolean | null;\n /**\n * Whether purchase recommendations are shown to the buyer at checkout.\n *\n * Default: `false`\n * @internal\n */\n purchaseRecommendationsEnabled?: boolean | null;\n}\n\nexport interface SubscriptionCheckboxField {\n /**\n * Whether the checkbox is visible to the customer.\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /**\n * Whether the checkbox is checked by default.\n *\n * Default: `false`\n */\n checkedByDefault?: boolean | null;\n /**\n * Whether checkout shows two separate opt-in checkboxes for email and SMS\n * instead of a single combined checkbox. Only takes effect when `visible` is `true`.\n * Both checkboxes are always shown together - a buyer can't be shown just one channel.\n * `checkedByDefault` applies to both checkboxes equally: when `true`, both start pre-checked.\n *\n * Default: `false`\n */\n splitByChannel?: boolean | null;\n}\n\nexport interface CheckboxField {\n /** Whether the checkbox is visible to the customer. */\n visible?: boolean | null;\n /** Whether the checkbox is checked by default. */\n checkedByDefault?: boolean | null;\n}\n\nexport interface CheckoutBrand {\n /** Checkout header. */\n header?: CheckoutHeader;\n /**\n * Main checkout area branding.\n * @internal\n */\n mainSection?: CheckoutMain;\n /**\n * Checkout footer branding.\n * @internal\n */\n footer?: CheckoutFooter;\n /**\n * Global checkout branding.\n * @internal\n */\n global?: CheckoutGlobal;\n}\n\nexport interface CheckoutHeader {\n /**\n * Textual content to be included in the header (e.g. Business Name)\n * @maxLength 55\n */\n text?: string | null;\n /**\n * Text color hex code.\n * @format COLOR_HEX\n */\n textColor?: string | null;\n /** Specifications for when a logo is included in the header. */\n logo?: Logo;\n /**\n * Alignment within the header.\n *\n * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.\n */\n alignment?: AlignmentWithLiterals;\n /**\n * Whether to display the 'Checkout' label within the header.\n * Depending on the locale, the label may be translated.\n */\n displayCheckoutLabel?: boolean | null;\n /** Continue shopping specifications. */\n continueShopping?: ContinueShopping;\n /** Background fill specifications. */\n backgroundFill?: BackgroundFill;\n /**\n * Color hex code of the full-width divider rule below the header.\n * @internal\n * @format COLOR_HEX\n */\n dividerColor?: string | null;\n}\n\nexport interface Logo {\n /**\n * Logo image.\n * @internal\n */\n image?: Image;\n /** Size of the logo. */\n size?: LogoSizeWithLiterals;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image URL expiration date (when relevant).\n * @internal\n * @readonly\n */\n urlExpirationDate?: Date | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\n /**\n * Image size in bytes.\n * @internal\n * @readonly\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n /**\n * Focal point of the image.\n * @internal\n */\n focalPoint?: FocalPoint;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum LogoSize {\n SMALL = 'SMALL',\n MEDIUM = 'MEDIUM',\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type LogoSizeWithLiterals = LogoSize | 'SMALL' | 'MEDIUM' | 'LARGE';\n\nexport enum Alignment {\n SIDE = 'SIDE',\n CENTER = 'CENTER',\n}\n\n/** @enumType */\nexport type AlignmentWithLiterals = Alignment | 'SIDE' | 'CENTER';\n\nexport interface ContinueShopping {\n /** Whether the continue shopping element is hidden. */\n hidden?: boolean | null;\n /** Display type for the continue shopping element. */\n displayType?: DisplayTypeWithLiterals;\n}\n\nexport enum DisplayType {\n TEXT = 'TEXT',\n ICON = 'ICON',\n}\n\n/** @enumType */\nexport type DisplayTypeWithLiterals = DisplayType | 'TEXT' | 'ICON';\n\nexport interface BackgroundFill extends BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: Image;\n}\n\n/** @oneof */\nexport interface BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: Image;\n}\n\nexport interface CheckoutMain {\n /**\n * Background fill of the checkout form.\n * @internal\n */\n formBackgroundFill?: BackgroundFill;\n /**\n * Background fill of the checkout summary.\n * @internal\n */\n summaryBackgroundFill?: BackgroundFill;\n /**\n * Color hex code of the dividers.\n * @internal\n * @format COLOR_HEX\n */\n dividerColor?: string | null;\n /**\n * Color hex code of the tinted boxes (e.g. show-summary box). Stored and applied solid (no opacity).\n * @internal\n * @format COLOR_HEX\n */\n tintedBoxColor?: string | null;\n /**\n * Corner radius style applied to the express checkout buttons.\n * @internal\n */\n expressButtonsCornerRadius?: ExpressButtonsCornerRadiusWithLiterals;\n /**\n * Corner radius applied everywhere except the express checkout buttons — line-item images and form-field inputs.\n * @internal\n * @max 100\n */\n cornerRadius?: number | null;\n}\n\nexport enum ExpressButtonsCornerRadius {\n RECTANGLE = 'RECTANGLE',\n PILL = 'PILL',\n}\n\n/** @enumType */\nexport type ExpressButtonsCornerRadiusWithLiterals =\n | ExpressButtonsCornerRadius\n | 'RECTANGLE'\n | 'PILL';\n\nexport interface CheckoutFooter {\n /**\n * Background fill of the footer.\n * @internal\n */\n backgroundFill?: BackgroundFill;\n /**\n * Color hex code of the full-width divider rule above the footer.\n * @internal\n * @format COLOR_HEX\n */\n dividerColor?: string | null;\n}\n\nexport interface CheckoutGlobal {\n /**\n * Color hex code of selection controls (radios/checkboxes).\n * @internal\n * @format COLOR_HEX\n */\n selectionColor?: string | null;\n /**\n * Color hex code of the place order button.\n * @internal\n * @format COLOR_HEX\n */\n placeOrderButtonColor?: string | null;\n /**\n * Color hex code of the buttons.\n * @internal\n * @format COLOR_HEX\n */\n buttonColor?: string | null;\n /**\n * Background style applied to checkout input fields.\n * @internal\n */\n inputFieldBackgroundStyle?: InputFieldBackgroundStyleWithLiterals;\n /**\n * Font family used for headings.\n * @internal\n * @maxLength 30\n */\n headingsFontFamily?: string | null;\n /**\n * Font family used for body text.\n * @internal\n * @maxLength 30\n */\n bodyFontFamily?: string | null;\n}\n\nexport enum InputFieldBackgroundStyle {\n WHITE = 'WHITE',\n TRANSPARENT = 'TRANSPARENT',\n}\n\n/** @enumType */\nexport type InputFieldBackgroundStyleWithLiterals =\n | InputFieldBackgroundStyle\n | 'WHITE'\n | 'TRANSPARENT';\n\nexport enum CheckoutBillingFields {\n /** All billing information fields are required. */\n All_FIELDS = 'All_FIELDS',\n /** Minimum required fields as defined by the country, payment method and payment provider. */\n MINIMUM_REQUIRED_FIELDS = 'MINIMUM_REQUIRED_FIELDS',\n}\n\n/** @enumType */\nexport type CheckoutBillingFieldsWithLiterals =\n | CheckoutBillingFields\n | 'All_FIELDS'\n | 'MINIMUM_REQUIRED_FIELDS';\n\nexport interface GetCheckoutSettingsRequest {}\n\nexport interface GetCheckoutSettingsResponse {\n /** Checkout settings. */\n checkoutSettings?: CheckoutSettings;\n}\n\nexport interface UpdateCheckoutSettingsRequest {\n /** Checkout settings to update. */\n checkoutSettings: CheckoutSettings;\n /**\n * List of exact fields to update. For example, if you define only `giftCardRedeemEnabled`, all other fields are ignored.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateCheckoutSettingsResponse {\n /** Updated checkout settings. */\n checkoutSettings?: CheckoutSettings;\n}\n\nexport interface ListCheckoutSettingsRequest {}\n\nexport interface ListCheckoutSettingsResponse {\n /** List of retrieved checkout settings. */\n checkoutSettings?: CheckoutSettings[];\n}\n\nexport interface GiftCardProviderWasProvisioned {\n /** The gift card provider which was installed */\n providerAppDefId?: string;\n providerInstanceId?: string;\n}\n\nexport interface Empty {}\n\nexport interface DeleteCheckoutSettingsRequest {}\n\nexport interface DeleteCheckoutSettingsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixEcomV1CheckoutSettings from './ecom-v1-checkout-settings-checkout-settings.http.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsTypes from './ecom-v1-checkout-settings-checkout-settings.types.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsUniversalTypes from './ecom-v1-checkout-settings-checkout-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getCheckoutSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.getCheckoutSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/checkout-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCheckoutSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.updateCheckoutSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/checkout-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n CheckoutSettings as CheckoutSettingsOriginal,\n CheckoutPolicies as CheckoutPoliciesOriginal,\n TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal,\n PrivacyPolicy as PrivacyPolicyOriginal,\n ReturnPolicy as ReturnPolicyOriginal,\n DigitalItemPolicy as DigitalItemPolicyOriginal,\n ContactUsPolicy as ContactUsPolicyOriginal,\n CustomCheckoutPolicy as CustomCheckoutPolicyOriginal,\n CheckoutFields as CheckoutFieldsOriginal,\n SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal,\n CheckboxField as CheckboxFieldOriginal,\n CheckoutBrand as CheckoutBrandOriginal,\n CheckoutHeader as CheckoutHeaderOriginal,\n Logo as LogoOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n LogoSize as LogoSizeOriginal,\n LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal,\n Alignment as AlignmentOriginal,\n AlignmentWithLiterals as AlignmentWithLiteralsOriginal,\n ContinueShopping as ContinueShoppingOriginal,\n DisplayType as DisplayTypeOriginal,\n DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal,\n BackgroundFill as BackgroundFillOriginal,\n BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal,\n CheckoutMain as CheckoutMainOriginal,\n ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal,\n ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal,\n CheckoutFooter as CheckoutFooterOriginal,\n CheckoutGlobal as CheckoutGlobalOriginal,\n InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal,\n InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal,\n CheckoutBillingFields as CheckoutBillingFieldsOriginal,\n CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal,\n GetCheckoutSettingsRequest as GetCheckoutSettingsRequestOriginal,\n GetCheckoutSettingsResponse as GetCheckoutSettingsResponseOriginal,\n UpdateCheckoutSettingsRequest as UpdateCheckoutSettingsRequestOriginal,\n UpdateCheckoutSettingsResponse as UpdateCheckoutSettingsResponseOriginal,\n ListCheckoutSettingsRequest as ListCheckoutSettingsRequestOriginal,\n ListCheckoutSettingsResponse as ListCheckoutSettingsResponseOriginal,\n GiftCardProviderWasProvisioned as GiftCardProviderWasProvisionedOriginal,\n Empty as EmptyOriginal,\n DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequestOriginal,\n DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfo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A;AA2OL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,aAAU;AACV,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,SAAM;AALI,SAAAA;AAAA,GAAA;;;AC3qBL,SAASC,uBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACgC,oBAAoB,OAAO;AAEjE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACgC,uBAAuB,OAAO;AAEpE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getCheckoutSettings","updateCheckoutSettings","import_float","import_timestamp","import_rest_modules","payload","LogoSize","Alignment","DisplayType","ExpressButtonsCornerRadius","InputFieldBackgroundStyle","CheckoutBillingFields","WebhookIdentityType","getCheckoutSettings","updateCheckoutSettings"]}
@@ -39,8 +39,8 @@ module.exports = __toCommonJS(schemas_exports);
39
39
 
40
40
  // src/ecom-v1-checkout-settings-checkout-settings.schemas.ts
41
41
  var z = __toESM(require("zod"));
42
- var GetCheckoutSettingsRequest = z.object({});
43
- var GetCheckoutSettingsResponse = z.object({
42
+ var GetCheckoutSettingsRequest = /* @__PURE__ */ z.object({});
43
+ var GetCheckoutSettingsResponse = /* @__PURE__ */ z.object({
44
44
  checkoutSettings: z.object({
45
45
  checkoutPolicies: z.object({
46
46
  termsAndConditions: z.object({
@@ -163,7 +163,7 @@ var GetCheckoutSettingsResponse = z.object({
163
163
  checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).describe("Billing information required to complete the checkout.").optional()
164
164
  }).describe("Checkout settings.").optional()
165
165
  });
166
- var UpdateCheckoutSettingsRequest = z.object({
166
+ var UpdateCheckoutSettingsRequest = /* @__PURE__ */ z.object({
167
167
  checkoutSettings: z.object({
168
168
  checkoutPolicies: z.object({
169
169
  termsAndConditions: z.object({
@@ -284,7 +284,7 @@ var UpdateCheckoutSettingsRequest = z.object({
284
284
  checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).optional()
285
285
  }).describe("Checkout settings to update.")
286
286
  });
287
- var UpdateCheckoutSettingsResponse = z.object({
287
+ var UpdateCheckoutSettingsResponse = /* @__PURE__ */ z.object({
288
288
  checkoutSettings: z.object({
289
289
  checkoutPolicies: z.object({
290
290
  termsAndConditions: z.object({