@wix/auto_sdk_ecom_checkout-settings 1.0.61 → 1.0.63

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.
@@ -0,0 +1,263 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const GetCheckoutSettingsRequest: z.ZodObject<{}, z.core.$strip>;
4
+ declare const GetCheckoutSettingsResponse: z.ZodObject<{
5
+ checkoutSettings: z.ZodOptional<z.ZodObject<{
6
+ checkoutPolicies: z.ZodOptional<z.ZodObject<{
7
+ termsAndConditions: z.ZodOptional<z.ZodObject<{
8
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
9
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
+ }, z.core.$strip>>;
11
+ privacyPolicy: z.ZodOptional<z.ZodObject<{
12
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
13
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14
+ }, z.core.$strip>>;
15
+ returnPolicy: z.ZodOptional<z.ZodObject<{
16
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
17
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
+ }, z.core.$strip>>;
19
+ digitalItemPolicy: z.ZodOptional<z.ZodObject<{
20
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
21
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ contactUs: z.ZodOptional<z.ZodObject<{
24
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
25
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
+ }, z.core.$strip>>;
27
+ customPolicy: z.ZodOptional<z.ZodObject<{
28
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
29
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
30
+ title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>>;
33
+ checkoutFields: z.ZodOptional<z.ZodObject<{
34
+ subscriptionCheckbox: z.ZodOptional<z.ZodObject<{
35
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
36
+ checkedByDefault: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
37
+ }, z.core.$strip>>;
38
+ policyAgreementCheckbox: z.ZodOptional<z.ZodObject<{
39
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
40
+ checkedByDefault: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
41
+ }, z.core.$strip>>;
42
+ giftCardRedeemEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
43
+ mitEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
44
+ delayCaptureEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
45
+ captureBeforeExpiryEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
46
+ }, z.core.$strip>>;
47
+ checkoutBrand: z.ZodOptional<z.ZodObject<{
48
+ header: z.ZodOptional<z.ZodObject<{
49
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
+ logo: z.ZodOptional<z.ZodObject<{
52
+ size: z.ZodOptional<z.ZodEnum<{
53
+ SMALL: "SMALL";
54
+ MEDIUM: "MEDIUM";
55
+ LARGE: "LARGE";
56
+ }>>;
57
+ }, z.core.$strip>>;
58
+ alignment: z.ZodOptional<z.ZodEnum<{
59
+ SIDE: "SIDE";
60
+ CENTER: "CENTER";
61
+ }>>;
62
+ displayCheckoutLabel: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
63
+ continueShopping: z.ZodOptional<z.ZodObject<{
64
+ hidden: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
65
+ displayType: z.ZodOptional<z.ZodEnum<{
66
+ TEXT: "TEXT";
67
+ ICON: "ICON";
68
+ }>>;
69
+ }, z.core.$strip>>;
70
+ backgroundFill: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
71
+ color: z.ZodOptional<z.ZodNever>;
72
+ image: z.ZodOptional<z.ZodNever>;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ image: z.ZodOptional<z.ZodNever>;
75
+ color: z.ZodString;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ color: z.ZodOptional<z.ZodNever>;
78
+ image: z.ZodString;
79
+ }, z.core.$strip>]>>>;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>>;
82
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
83
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
84
+ checkoutBillingFields: z.ZodOptional<z.ZodEnum<{
85
+ All_FIELDS: "All_FIELDS";
86
+ MINIMUM_REQUIRED_FIELDS: "MINIMUM_REQUIRED_FIELDS";
87
+ }>>;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>;
90
+ declare const UpdateCheckoutSettingsRequest: z.ZodObject<{
91
+ checkoutSettings: z.ZodObject<{
92
+ checkoutPolicies: z.ZodOptional<z.ZodObject<{
93
+ termsAndConditions: z.ZodOptional<z.ZodObject<{
94
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
95
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
96
+ }, z.core.$strip>>;
97
+ privacyPolicy: z.ZodOptional<z.ZodObject<{
98
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
99
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100
+ }, z.core.$strip>>;
101
+ returnPolicy: z.ZodOptional<z.ZodObject<{
102
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
103
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
104
+ }, z.core.$strip>>;
105
+ digitalItemPolicy: z.ZodOptional<z.ZodObject<{
106
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
107
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
108
+ }, z.core.$strip>>;
109
+ contactUs: z.ZodOptional<z.ZodObject<{
110
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
111
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
+ }, z.core.$strip>>;
113
+ customPolicy: z.ZodOptional<z.ZodObject<{
114
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
115
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
+ title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
+ }, z.core.$strip>>;
118
+ }, z.core.$strip>>;
119
+ checkoutFields: z.ZodOptional<z.ZodObject<{
120
+ subscriptionCheckbox: z.ZodOptional<z.ZodObject<{
121
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
122
+ checkedByDefault: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
123
+ }, z.core.$strip>>;
124
+ policyAgreementCheckbox: z.ZodOptional<z.ZodObject<{
125
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
126
+ checkedByDefault: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
127
+ }, z.core.$strip>>;
128
+ giftCardRedeemEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
129
+ mitEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
130
+ delayCaptureEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
131
+ captureBeforeExpiryEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
132
+ }, z.core.$strip>>;
133
+ checkoutBrand: z.ZodOptional<z.ZodObject<{
134
+ header: z.ZodOptional<z.ZodObject<{
135
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
136
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
137
+ logo: z.ZodOptional<z.ZodObject<{
138
+ size: z.ZodOptional<z.ZodEnum<{
139
+ SMALL: "SMALL";
140
+ MEDIUM: "MEDIUM";
141
+ LARGE: "LARGE";
142
+ }>>;
143
+ }, z.core.$strip>>;
144
+ alignment: z.ZodOptional<z.ZodEnum<{
145
+ SIDE: "SIDE";
146
+ CENTER: "CENTER";
147
+ }>>;
148
+ displayCheckoutLabel: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
149
+ continueShopping: z.ZodOptional<z.ZodObject<{
150
+ hidden: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
151
+ displayType: z.ZodOptional<z.ZodEnum<{
152
+ TEXT: "TEXT";
153
+ ICON: "ICON";
154
+ }>>;
155
+ }, z.core.$strip>>;
156
+ backgroundFill: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
157
+ color: z.ZodOptional<z.ZodNever>;
158
+ image: z.ZodOptional<z.ZodNever>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ image: z.ZodOptional<z.ZodNever>;
161
+ color: z.ZodString;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ color: z.ZodOptional<z.ZodNever>;
164
+ image: z.ZodString;
165
+ }, z.core.$strip>]>>>;
166
+ }, z.core.$strip>>;
167
+ }, z.core.$strip>>;
168
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
169
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
170
+ checkoutBillingFields: z.ZodOptional<z.ZodEnum<{
171
+ All_FIELDS: "All_FIELDS";
172
+ MINIMUM_REQUIRED_FIELDS: "MINIMUM_REQUIRED_FIELDS";
173
+ }>>;
174
+ }, z.core.$strip>;
175
+ }, z.core.$strip>;
176
+ declare const UpdateCheckoutSettingsResponse: z.ZodObject<{
177
+ checkoutSettings: z.ZodOptional<z.ZodObject<{
178
+ checkoutPolicies: z.ZodOptional<z.ZodObject<{
179
+ termsAndConditions: z.ZodOptional<z.ZodObject<{
180
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
181
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
182
+ }, z.core.$strip>>;
183
+ privacyPolicy: z.ZodOptional<z.ZodObject<{
184
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
185
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
186
+ }, z.core.$strip>>;
187
+ returnPolicy: z.ZodOptional<z.ZodObject<{
188
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
189
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
190
+ }, z.core.$strip>>;
191
+ digitalItemPolicy: z.ZodOptional<z.ZodObject<{
192
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
193
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
194
+ }, z.core.$strip>>;
195
+ contactUs: z.ZodOptional<z.ZodObject<{
196
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
197
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
198
+ }, z.core.$strip>>;
199
+ customPolicy: z.ZodOptional<z.ZodObject<{
200
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
201
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
202
+ title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
203
+ }, z.core.$strip>>;
204
+ }, z.core.$strip>>;
205
+ checkoutFields: z.ZodOptional<z.ZodObject<{
206
+ subscriptionCheckbox: z.ZodOptional<z.ZodObject<{
207
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
208
+ checkedByDefault: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
209
+ }, z.core.$strip>>;
210
+ policyAgreementCheckbox: z.ZodOptional<z.ZodObject<{
211
+ visible: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
212
+ checkedByDefault: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
213
+ }, z.core.$strip>>;
214
+ giftCardRedeemEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
215
+ mitEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
216
+ delayCaptureEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
217
+ captureBeforeExpiryEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
218
+ }, z.core.$strip>>;
219
+ checkoutBrand: z.ZodOptional<z.ZodObject<{
220
+ header: z.ZodOptional<z.ZodObject<{
221
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
222
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
223
+ logo: z.ZodOptional<z.ZodObject<{
224
+ size: z.ZodOptional<z.ZodEnum<{
225
+ SMALL: "SMALL";
226
+ MEDIUM: "MEDIUM";
227
+ LARGE: "LARGE";
228
+ }>>;
229
+ }, z.core.$strip>>;
230
+ alignment: z.ZodOptional<z.ZodEnum<{
231
+ SIDE: "SIDE";
232
+ CENTER: "CENTER";
233
+ }>>;
234
+ displayCheckoutLabel: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
235
+ continueShopping: z.ZodOptional<z.ZodObject<{
236
+ hidden: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
237
+ displayType: z.ZodOptional<z.ZodEnum<{
238
+ TEXT: "TEXT";
239
+ ICON: "ICON";
240
+ }>>;
241
+ }, z.core.$strip>>;
242
+ backgroundFill: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
243
+ color: z.ZodOptional<z.ZodNever>;
244
+ image: z.ZodOptional<z.ZodNever>;
245
+ }, z.core.$strip>, z.ZodObject<{
246
+ image: z.ZodOptional<z.ZodNever>;
247
+ color: z.ZodString;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ color: z.ZodOptional<z.ZodNever>;
250
+ image: z.ZodString;
251
+ }, z.core.$strip>]>>>;
252
+ }, z.core.$strip>>;
253
+ }, z.core.$strip>>;
254
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
255
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
256
+ checkoutBillingFields: z.ZodOptional<z.ZodEnum<{
257
+ All_FIELDS: "All_FIELDS";
258
+ MINIMUM_REQUIRED_FIELDS: "MINIMUM_REQUIRED_FIELDS";
259
+ }>>;
260
+ }, z.core.$strip>>;
261
+ }, z.core.$strip>;
262
+
263
+ export { GetCheckoutSettingsRequest, GetCheckoutSettingsResponse, UpdateCheckoutSettingsRequest, UpdateCheckoutSettingsResponse };
@@ -0,0 +1,396 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // schemas.ts
31
+ var schemas_exports = {};
32
+ __export(schemas_exports, {
33
+ GetCheckoutSettingsRequest: () => GetCheckoutSettingsRequest,
34
+ GetCheckoutSettingsResponse: () => GetCheckoutSettingsResponse,
35
+ UpdateCheckoutSettingsRequest: () => UpdateCheckoutSettingsRequest,
36
+ UpdateCheckoutSettingsResponse: () => UpdateCheckoutSettingsResponse
37
+ });
38
+ module.exports = __toCommonJS(schemas_exports);
39
+
40
+ // src/ecom-v1-checkout-settings-checkout-settings.schemas.ts
41
+ var z = __toESM(require("zod"));
42
+ var GetCheckoutSettingsRequest = z.object({});
43
+ var GetCheckoutSettingsResponse = z.object({
44
+ checkoutSettings: z.object({
45
+ checkoutPolicies: z.object({
46
+ termsAndConditions: z.object({
47
+ visible: z.boolean().describe(
48
+ "Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
49
+ ).optional().nullable(),
50
+ content: z.string().describe("Terms and conditions policy content.").optional().nullable()
51
+ }).describe("Terms and conditions.").optional(),
52
+ privacyPolicy: z.object({
53
+ visible: z.boolean().describe(
54
+ "Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
55
+ ).optional().nullable(),
56
+ content: z.string().describe("Privacy policy content.").optional().nullable()
57
+ }).describe("Privacy policy.").optional(),
58
+ returnPolicy: z.object({
59
+ visible: z.boolean().describe(
60
+ "Whether the return policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
61
+ ).optional().nullable(),
62
+ content: z.string().describe("Return policy content.").optional().nullable()
63
+ }).describe("Return policy.").optional(),
64
+ digitalItemPolicy: z.object({
65
+ visible: z.boolean().describe(
66
+ "Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
67
+ ).optional().nullable(),
68
+ content: z.string().describe("Digital item policy content.").optional().nullable()
69
+ }).describe("Digital item policy.").optional(),
70
+ contactUs: z.object({
71
+ visible: z.boolean().describe(
72
+ "Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
73
+ ).optional().nullable(),
74
+ content: z.string().describe("Contact us policy content.").optional().nullable()
75
+ }).describe('"Contact us" information.').optional(),
76
+ customPolicy: z.object({
77
+ visible: z.boolean().describe(
78
+ "Whether the custom policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
79
+ ).optional().nullable(),
80
+ content: z.string().describe("Custom policy content.").optional().nullable(),
81
+ title: z.string().describe("Custom policy title.").optional().nullable()
82
+ }).describe("Custom policy.").optional()
83
+ }).describe("Checkout policies.").optional(),
84
+ checkoutFields: z.object({
85
+ subscriptionCheckbox: z.object({
86
+ visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
87
+ checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
88
+ }).describe(
89
+ "Subscription checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
90
+ ).optional(),
91
+ policyAgreementCheckbox: z.object({
92
+ visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
93
+ checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
94
+ }).describe(
95
+ "Policy agreement checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
96
+ ).optional(),
97
+ giftCardRedeemEnabled: z.boolean().describe(
98
+ "Whether the ability to redeem a gift card is enabled. <br><br>\n\nDefault: `false`"
99
+ ).optional().nullable(),
100
+ mitEnabled: z.boolean().describe(
101
+ "Whether to allow for MIT transactions. <br><br>\n\nDefault: `false`"
102
+ ).optional().nullable(),
103
+ delayCaptureEnabled: z.boolean().describe(
104
+ "Whether to allow for Auth & Capture transactions. <br><br>\n\nDefault: `false`"
105
+ ).optional().nullable(),
106
+ captureBeforeExpiryEnabled: z.boolean().describe(
107
+ "Whether to automatically capture the transaction before the authorization expires.\n\nDefault: `true`\n>**Note:** this setting is only relevant when `delay_capture_enabled: true`."
108
+ ).optional().nullable()
109
+ }).describe(
110
+ "Settings that apply to checkout fields and the checkout process."
111
+ ).optional(),
112
+ checkoutBrand: z.object({
113
+ header: z.object({
114
+ text: z.string().describe(
115
+ "Textual content to be included in the header (e.g. Business Name)"
116
+ ).max(55).optional().nullable(),
117
+ textColor: z.string().describe("Text color hex code.").optional().nullable(),
118
+ logo: z.object({
119
+ size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the logo.").optional()
120
+ }).describe(
121
+ "Specifications for when a logo is included in the header."
122
+ ).optional(),
123
+ alignment: z.enum(["SIDE", "CENTER"]).describe(
124
+ "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."
125
+ ).optional(),
126
+ displayCheckoutLabel: z.boolean().describe(
127
+ "Whether to display the 'Checkout' label within the header.\nDepending on the locale, the label may be translated."
128
+ ).optional().nullable(),
129
+ continueShopping: z.object({
130
+ hidden: z.boolean().describe(
131
+ "Whether the continue shopping element is hidden."
132
+ ).optional().nullable(),
133
+ displayType: z.enum(["TEXT", "ICON"]).describe("Display type for the continue shopping element.").optional()
134
+ }).describe("Continue shopping specifications.").optional(),
135
+ backgroundFill: z.intersection(
136
+ z.object({}),
137
+ z.xor([
138
+ z.object({
139
+ color: z.never().optional(),
140
+ image: z.never().optional()
141
+ }),
142
+ z.object({
143
+ image: z.never().optional(),
144
+ color: z.string().describe("Background color hex code.")
145
+ }),
146
+ z.object({
147
+ color: z.never().optional(),
148
+ image: z.string().describe("Background image.")
149
+ })
150
+ ])
151
+ ).describe("Background fill specifications.").optional()
152
+ }).describe("Checkout header.").optional()
153
+ }).describe("Checkout brand settings.").optional(),
154
+ _createdDate: z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
155
+ _updatedDate: z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
156
+ checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).describe("Billing information required to complete the checkout.").optional()
157
+ }).describe("Checkout settings.").optional()
158
+ });
159
+ var UpdateCheckoutSettingsRequest = z.object({
160
+ checkoutSettings: z.object({
161
+ checkoutPolicies: z.object({
162
+ termsAndConditions: z.object({
163
+ visible: z.boolean().describe(
164
+ "Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
165
+ ).optional().nullable(),
166
+ content: z.string().describe("Terms and conditions policy content.").optional().nullable()
167
+ }).describe("Terms and conditions.").optional(),
168
+ privacyPolicy: z.object({
169
+ visible: z.boolean().describe(
170
+ "Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
171
+ ).optional().nullable(),
172
+ content: z.string().describe("Privacy policy content.").optional().nullable()
173
+ }).describe("Privacy policy.").optional(),
174
+ returnPolicy: z.object({
175
+ visible: z.boolean().describe(
176
+ "Whether the return policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
177
+ ).optional().nullable(),
178
+ content: z.string().describe("Return policy content.").optional().nullable()
179
+ }).describe("Return policy.").optional(),
180
+ digitalItemPolicy: z.object({
181
+ visible: z.boolean().describe(
182
+ "Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
183
+ ).optional().nullable(),
184
+ content: z.string().describe("Digital item policy content.").optional().nullable()
185
+ }).describe("Digital item policy.").optional(),
186
+ contactUs: z.object({
187
+ visible: z.boolean().describe(
188
+ "Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
189
+ ).optional().nullable(),
190
+ content: z.string().describe("Contact us policy content.").optional().nullable()
191
+ }).describe('"Contact us" information.').optional(),
192
+ customPolicy: z.object({
193
+ visible: z.boolean().describe(
194
+ "Whether the custom policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
195
+ ).optional().nullable(),
196
+ content: z.string().describe("Custom policy content.").optional().nullable(),
197
+ title: z.string().describe("Custom policy title.").optional().nullable()
198
+ }).describe("Custom policy.").optional()
199
+ }).describe("Checkout policies.").optional(),
200
+ checkoutFields: z.object({
201
+ subscriptionCheckbox: z.object({
202
+ visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
203
+ checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
204
+ }).describe(
205
+ "Subscription checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
206
+ ).optional(),
207
+ policyAgreementCheckbox: z.object({
208
+ visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
209
+ checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
210
+ }).describe(
211
+ "Policy agreement checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
212
+ ).optional(),
213
+ giftCardRedeemEnabled: z.boolean().describe(
214
+ "Whether the ability to redeem a gift card is enabled. <br><br>\n\nDefault: `false`"
215
+ ).optional().nullable(),
216
+ mitEnabled: z.boolean().describe(
217
+ "Whether to allow for MIT transactions. <br><br>\n\nDefault: `false`"
218
+ ).optional().nullable(),
219
+ delayCaptureEnabled: z.boolean().describe(
220
+ "Whether to allow for Auth & Capture transactions. <br><br>\n\nDefault: `false`"
221
+ ).optional().nullable(),
222
+ captureBeforeExpiryEnabled: z.boolean().describe(
223
+ "Whether to automatically capture the transaction before the authorization expires.\n\nDefault: `true`\n>**Note:** this setting is only relevant when `delay_capture_enabled: true`."
224
+ ).optional().nullable()
225
+ }).describe(
226
+ "Settings that apply to checkout fields and the checkout process."
227
+ ).optional(),
228
+ checkoutBrand: z.object({
229
+ header: z.object({
230
+ text: z.string().describe(
231
+ "Textual content to be included in the header (e.g. Business Name)"
232
+ ).max(55).optional().nullable(),
233
+ textColor: z.string().describe("Text color hex code.").optional().nullable(),
234
+ logo: z.object({
235
+ size: z.enum(["SMALL", "MEDIUM", "LARGE"]).optional()
236
+ }).describe(
237
+ "Specifications for when a logo is included in the header."
238
+ ).optional(),
239
+ alignment: z.enum(["SIDE", "CENTER"]).optional(),
240
+ displayCheckoutLabel: z.boolean().describe(
241
+ "Whether to display the 'Checkout' label within the header.\nDepending on the locale, the label may be translated."
242
+ ).optional().nullable(),
243
+ continueShopping: z.object({
244
+ hidden: z.boolean().describe(
245
+ "Whether the continue shopping element is hidden."
246
+ ).optional().nullable(),
247
+ displayType: z.enum(["TEXT", "ICON"]).optional()
248
+ }).describe("Continue shopping specifications.").optional(),
249
+ backgroundFill: z.intersection(
250
+ z.object({}),
251
+ z.xor([
252
+ z.object({
253
+ color: z.never().optional(),
254
+ image: z.never().optional()
255
+ }),
256
+ z.object({
257
+ image: z.never().optional(),
258
+ color: z.string().describe("Background color hex code.")
259
+ }),
260
+ z.object({
261
+ color: z.never().optional(),
262
+ image: z.string().describe("Background image.")
263
+ })
264
+ ])
265
+ ).describe("Background fill specifications.").optional()
266
+ }).describe("Checkout header.").optional()
267
+ }).describe("Checkout brand settings.").optional(),
268
+ _createdDate: z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
269
+ _updatedDate: z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
270
+ checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).optional()
271
+ }).describe("Checkout settings to update.")
272
+ });
273
+ var UpdateCheckoutSettingsResponse = z.object({
274
+ checkoutSettings: z.object({
275
+ checkoutPolicies: z.object({
276
+ termsAndConditions: z.object({
277
+ visible: z.boolean().describe(
278
+ "Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
279
+ ).optional().nullable(),
280
+ content: z.string().describe("Terms and conditions policy content.").optional().nullable()
281
+ }).describe("Terms and conditions.").optional(),
282
+ privacyPolicy: z.object({
283
+ visible: z.boolean().describe(
284
+ "Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
285
+ ).optional().nullable(),
286
+ content: z.string().describe("Privacy policy content.").optional().nullable()
287
+ }).describe("Privacy policy.").optional(),
288
+ returnPolicy: z.object({
289
+ visible: z.boolean().describe(
290
+ "Whether the return policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
291
+ ).optional().nullable(),
292
+ content: z.string().describe("Return policy content.").optional().nullable()
293
+ }).describe("Return policy.").optional(),
294
+ digitalItemPolicy: z.object({
295
+ visible: z.boolean().describe(
296
+ "Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
297
+ ).optional().nullable(),
298
+ content: z.string().describe("Digital item policy content.").optional().nullable()
299
+ }).describe("Digital item policy.").optional(),
300
+ contactUs: z.object({
301
+ visible: z.boolean().describe(
302
+ "Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
303
+ ).optional().nullable(),
304
+ content: z.string().describe("Contact us policy content.").optional().nullable()
305
+ }).describe('"Contact us" information.').optional(),
306
+ customPolicy: z.object({
307
+ visible: z.boolean().describe(
308
+ "Whether the custom policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
309
+ ).optional().nullable(),
310
+ content: z.string().describe("Custom policy content.").optional().nullable(),
311
+ title: z.string().describe("Custom policy title.").optional().nullable()
312
+ }).describe("Custom policy.").optional()
313
+ }).describe("Checkout policies.").optional(),
314
+ checkoutFields: z.object({
315
+ subscriptionCheckbox: z.object({
316
+ visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
317
+ checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
318
+ }).describe(
319
+ "Subscription checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
320
+ ).optional(),
321
+ policyAgreementCheckbox: z.object({
322
+ visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
323
+ checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
324
+ }).describe(
325
+ "Policy agreement checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
326
+ ).optional(),
327
+ giftCardRedeemEnabled: z.boolean().describe(
328
+ "Whether the ability to redeem a gift card is enabled. <br><br>\n\nDefault: `false`"
329
+ ).optional().nullable(),
330
+ mitEnabled: z.boolean().describe(
331
+ "Whether to allow for MIT transactions. <br><br>\n\nDefault: `false`"
332
+ ).optional().nullable(),
333
+ delayCaptureEnabled: z.boolean().describe(
334
+ "Whether to allow for Auth & Capture transactions. <br><br>\n\nDefault: `false`"
335
+ ).optional().nullable(),
336
+ captureBeforeExpiryEnabled: z.boolean().describe(
337
+ "Whether to automatically capture the transaction before the authorization expires.\n\nDefault: `true`\n>**Note:** this setting is only relevant when `delay_capture_enabled: true`."
338
+ ).optional().nullable()
339
+ }).describe(
340
+ "Settings that apply to checkout fields and the checkout process."
341
+ ).optional(),
342
+ checkoutBrand: z.object({
343
+ header: z.object({
344
+ text: z.string().describe(
345
+ "Textual content to be included in the header (e.g. Business Name)"
346
+ ).max(55).optional().nullable(),
347
+ textColor: z.string().describe("Text color hex code.").optional().nullable(),
348
+ logo: z.object({
349
+ size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the logo.").optional()
350
+ }).describe(
351
+ "Specifications for when a logo is included in the header."
352
+ ).optional(),
353
+ alignment: z.enum(["SIDE", "CENTER"]).describe(
354
+ "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."
355
+ ).optional(),
356
+ displayCheckoutLabel: z.boolean().describe(
357
+ "Whether to display the 'Checkout' label within the header.\nDepending on the locale, the label may be translated."
358
+ ).optional().nullable(),
359
+ continueShopping: z.object({
360
+ hidden: z.boolean().describe(
361
+ "Whether the continue shopping element is hidden."
362
+ ).optional().nullable(),
363
+ displayType: z.enum(["TEXT", "ICON"]).describe("Display type for the continue shopping element.").optional()
364
+ }).describe("Continue shopping specifications.").optional(),
365
+ backgroundFill: z.intersection(
366
+ z.object({}),
367
+ z.xor([
368
+ z.object({
369
+ color: z.never().optional(),
370
+ image: z.never().optional()
371
+ }),
372
+ z.object({
373
+ image: z.never().optional(),
374
+ color: z.string().describe("Background color hex code.")
375
+ }),
376
+ z.object({
377
+ color: z.never().optional(),
378
+ image: z.string().describe("Background image.")
379
+ })
380
+ ])
381
+ ).describe("Background fill specifications.").optional()
382
+ }).describe("Checkout header.").optional()
383
+ }).describe("Checkout brand settings.").optional(),
384
+ _createdDate: z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
385
+ _updatedDate: z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
386
+ checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).describe("Billing information required to complete the checkout.").optional()
387
+ }).describe("Updated checkout settings.").optional()
388
+ });
389
+ // Annotate the CommonJS export names for ESM import in node:
390
+ 0 && (module.exports = {
391
+ GetCheckoutSettingsRequest,
392
+ GetCheckoutSettingsResponse,
393
+ UpdateCheckoutSettingsRequest,
394
+ UpdateCheckoutSettingsResponse
395
+ });
396
+ //# sourceMappingURL=schemas.js.map