@wix/auto_sdk_ecom_checkout-settings 1.0.72 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +8 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -1
- package/build/cjs/index.typings.js +8 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -1
- package/build/cjs/meta.js +8 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +321 -321
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +7 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -1
- package/build/es/index.typings.mjs +7 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +16 -1
- package/build/es/meta.mjs +7 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +321 -321
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -1
- package/build/internal/cjs/meta.d.ts +27 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +27 -1
- package/build/internal/es/meta.d.mts +27 -1
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -553
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -475
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -394
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -649
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -520
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -443
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -359
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -609
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/es/schemas.mjs
CHANGED
|
@@ -2,602 +2,602 @@
|
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
var GetCheckoutSettingsRequest = /* @__PURE__ */ z.object({});
|
|
4
4
|
var GetCheckoutSettingsResponse = /* @__PURE__ */ z.object({
|
|
5
|
-
checkoutSettings: z.object({
|
|
6
|
-
checkoutPolicies: z.object({
|
|
7
|
-
termsAndConditions: z.object({
|
|
8
|
-
visible: z.boolean().describe(
|
|
5
|
+
checkoutSettings: /* @__PURE__ */ z.object({
|
|
6
|
+
checkoutPolicies: /* @__PURE__ */ z.object({
|
|
7
|
+
termsAndConditions: /* @__PURE__ */ z.object({
|
|
8
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
9
9
|
"Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
10
10
|
).optional().nullable(),
|
|
11
|
-
content: z.string().describe("Terms and conditions policy content.").optional().nullable()
|
|
11
|
+
content: /* @__PURE__ */ z.string().describe("Terms and conditions policy content.").optional().nullable()
|
|
12
12
|
}).describe("Terms and conditions.").optional(),
|
|
13
|
-
privacyPolicy: z.object({
|
|
14
|
-
visible: z.boolean().describe(
|
|
13
|
+
privacyPolicy: /* @__PURE__ */ z.object({
|
|
14
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
15
15
|
"Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
16
16
|
).optional().nullable(),
|
|
17
|
-
content: z.string().describe("Privacy policy content.").optional().nullable()
|
|
17
|
+
content: /* @__PURE__ */ z.string().describe("Privacy policy content.").optional().nullable()
|
|
18
18
|
}).describe("Privacy policy.").optional(),
|
|
19
|
-
returnPolicy: z.object({
|
|
20
|
-
visible: z.boolean().describe(
|
|
19
|
+
returnPolicy: /* @__PURE__ */ z.object({
|
|
20
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
21
21
|
"Whether the return policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
22
22
|
).optional().nullable(),
|
|
23
|
-
content: z.string().describe("Return policy content.").optional().nullable()
|
|
23
|
+
content: /* @__PURE__ */ z.string().describe("Return policy content.").optional().nullable()
|
|
24
24
|
}).describe("Return policy.").optional(),
|
|
25
|
-
digitalItemPolicy: z.object({
|
|
26
|
-
visible: z.boolean().describe(
|
|
25
|
+
digitalItemPolicy: /* @__PURE__ */ z.object({
|
|
26
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
27
27
|
"Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
28
28
|
).optional().nullable(),
|
|
29
|
-
content: z.string().describe("Digital item policy content.").optional().nullable()
|
|
29
|
+
content: /* @__PURE__ */ z.string().describe("Digital item policy content.").optional().nullable()
|
|
30
30
|
}).describe("Digital item policy.").optional(),
|
|
31
|
-
contactUs: z.object({
|
|
32
|
-
visible: z.boolean().describe(
|
|
31
|
+
contactUs: /* @__PURE__ */ z.object({
|
|
32
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
33
33
|
"Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
34
34
|
).optional().nullable(),
|
|
35
|
-
content: z.string().describe("Contact us policy content.").optional().nullable()
|
|
35
|
+
content: /* @__PURE__ */ z.string().describe("Contact us policy content.").optional().nullable()
|
|
36
36
|
}).describe('"Contact us" information.').optional(),
|
|
37
|
-
customPolicy: z.object({
|
|
38
|
-
visible: z.boolean().describe(
|
|
37
|
+
customPolicy: /* @__PURE__ */ z.object({
|
|
38
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
39
39
|
"Whether the custom policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
40
40
|
).optional().nullable(),
|
|
41
|
-
content: z.string().describe("Custom policy content.").optional().nullable(),
|
|
42
|
-
title: z.string().describe("Custom policy title.").optional().nullable()
|
|
41
|
+
content: /* @__PURE__ */ z.string().describe("Custom policy content.").optional().nullable(),
|
|
42
|
+
title: /* @__PURE__ */ z.string().describe("Custom policy title.").optional().nullable()
|
|
43
43
|
}).describe("Custom policy.").optional()
|
|
44
44
|
}).describe("Checkout policies.").optional(),
|
|
45
|
-
checkoutFields: z.object({
|
|
46
|
-
subscriptionCheckbox: z.object({
|
|
47
|
-
visible: z.boolean().describe(
|
|
45
|
+
checkoutFields: /* @__PURE__ */ z.object({
|
|
46
|
+
subscriptionCheckbox: /* @__PURE__ */ z.object({
|
|
47
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
48
48
|
"Whether the checkbox is visible to the customer.\n\nDefault: `false`"
|
|
49
49
|
).optional().nullable(),
|
|
50
|
-
checkedByDefault: z.boolean().describe(
|
|
50
|
+
checkedByDefault: /* @__PURE__ */ z.boolean().describe(
|
|
51
51
|
"Whether the checkbox is checked by default.\n\nDefault: `false`"
|
|
52
52
|
).optional().nullable(),
|
|
53
|
-
splitByChannel: z.boolean().describe(
|
|
53
|
+
splitByChannel: /* @__PURE__ */ z.boolean().describe(
|
|
54
54
|
"Whether checkout shows two separate opt-in checkboxes for email and SMS\ninstead of a single combined checkbox. Only takes effect when `visible` is `true`.\nBoth 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\nDefault: `false`"
|
|
55
55
|
).optional().nullable()
|
|
56
56
|
}).describe(
|
|
57
57
|
"Subscription checkbox. <br><br>\n\nControls the marketing consent checkbox shown to the buyer at checkout. By default, a single\ncheckbox lets the buyer opt in to both email and SMS marketing at once. When\n`subscriptionCheckbox.splitByChannel` is `true`, checkout instead shows two separate\ncheckboxes - one for email, one for SMS - so the buyer can opt into each channel independently."
|
|
58
58
|
).optional(),
|
|
59
|
-
policyAgreementCheckbox: z.object({
|
|
60
|
-
visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
|
|
61
|
-
checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
|
|
59
|
+
policyAgreementCheckbox: /* @__PURE__ */ z.object({
|
|
60
|
+
visible: /* @__PURE__ */ z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
|
|
61
|
+
checkedByDefault: /* @__PURE__ */ z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
|
|
62
62
|
}).describe(
|
|
63
63
|
"Policy agreement checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
|
|
64
64
|
).optional(),
|
|
65
|
-
giftCardRedeemEnabled: z.boolean().describe(
|
|
65
|
+
giftCardRedeemEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
66
66
|
"Whether the ability to redeem a gift card is enabled. <br><br>\n\nDefault: `false`"
|
|
67
67
|
).optional().nullable(),
|
|
68
|
-
mitEnabled: z.boolean().describe(
|
|
68
|
+
mitEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
69
69
|
"Whether to allow for MIT transactions. <br><br>\n\nDefault: `false`"
|
|
70
70
|
).optional().nullable(),
|
|
71
|
-
delayCaptureEnabled: z.boolean().describe(
|
|
71
|
+
delayCaptureEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
72
72
|
"Whether to allow for Auth & Capture transactions. <br><br>\n\nDefault: `false`"
|
|
73
73
|
).optional().nullable(),
|
|
74
|
-
captureBeforeExpiryEnabled: z.boolean().describe(
|
|
74
|
+
captureBeforeExpiryEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
75
75
|
"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`."
|
|
76
76
|
).optional().nullable()
|
|
77
77
|
}).describe(
|
|
78
78
|
"Settings that apply to checkout fields and the checkout process."
|
|
79
79
|
).optional(),
|
|
80
|
-
checkoutBrand: z.object({
|
|
81
|
-
header: z.object({
|
|
82
|
-
text: z.string().describe(
|
|
80
|
+
checkoutBrand: /* @__PURE__ */ z.object({
|
|
81
|
+
header: /* @__PURE__ */ z.object({
|
|
82
|
+
text: /* @__PURE__ */ z.string().describe(
|
|
83
83
|
"Textual content to be included in the header (e.g. Business Name)"
|
|
84
84
|
).max(55).optional().nullable(),
|
|
85
|
-
textColor: z.string().describe("Text color hex code.").optional().nullable(),
|
|
86
|
-
logo: z.object({
|
|
87
|
-
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the logo.").optional()
|
|
85
|
+
textColor: /* @__PURE__ */ z.string().describe("Text color hex code.").optional().nullable(),
|
|
86
|
+
logo: /* @__PURE__ */ z.object({
|
|
87
|
+
size: /* @__PURE__ */ z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the logo.").optional()
|
|
88
88
|
}).describe(
|
|
89
89
|
"Specifications for when a logo is included in the header."
|
|
90
90
|
).optional(),
|
|
91
|
-
alignment: z.enum(["SIDE", "CENTER"]).describe(
|
|
91
|
+
alignment: /* @__PURE__ */ z.enum(["SIDE", "CENTER"]).describe(
|
|
92
92
|
"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."
|
|
93
93
|
).optional(),
|
|
94
|
-
displayCheckoutLabel: z.boolean().describe(
|
|
94
|
+
displayCheckoutLabel: /* @__PURE__ */ z.boolean().describe(
|
|
95
95
|
"Whether to display the 'Checkout' label within the header.\nDepending on the locale, the label may be translated."
|
|
96
96
|
).optional().nullable(),
|
|
97
|
-
continueShopping: z.object({
|
|
98
|
-
hidden: z.boolean().describe(
|
|
97
|
+
continueShopping: /* @__PURE__ */ z.object({
|
|
98
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
99
99
|
"Whether the continue shopping element is hidden."
|
|
100
100
|
).optional().nullable(),
|
|
101
|
-
displayType: z.enum(["TEXT", "ICON"]).describe("Display type for the continue shopping element.").optional()
|
|
101
|
+
displayType: /* @__PURE__ */ z.enum(["TEXT", "ICON"]).describe("Display type for the continue shopping element.").optional()
|
|
102
102
|
}).describe("Continue shopping specifications.").optional(),
|
|
103
|
-
backgroundFill: z.intersection(
|
|
104
|
-
z.object({}),
|
|
105
|
-
z.xor([
|
|
106
|
-
z.object({
|
|
107
|
-
color: z.never().optional(),
|
|
108
|
-
image: z.never().optional()
|
|
103
|
+
backgroundFill: /* @__PURE__ */ z.intersection(
|
|
104
|
+
/* @__PURE__ */ z.object({}),
|
|
105
|
+
/* @__PURE__ */ z.xor([
|
|
106
|
+
/* @__PURE__ */ z.object({
|
|
107
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
108
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
109
109
|
}),
|
|
110
|
-
z.object({
|
|
111
|
-
image: z.never().optional(),
|
|
112
|
-
color: z.string().describe("Background color hex code.")
|
|
110
|
+
/* @__PURE__ */ z.object({
|
|
111
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
112
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
113
113
|
}),
|
|
114
|
-
z.object({
|
|
115
|
-
color: z.never().optional(),
|
|
116
|
-
image: z.string().describe("Background image.")
|
|
114
|
+
/* @__PURE__ */ z.object({
|
|
115
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
116
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
117
117
|
})
|
|
118
118
|
])
|
|
119
119
|
).describe("Background fill specifications.").optional(),
|
|
120
|
-
dividerColor: z.string().describe(
|
|
120
|
+
dividerColor: /* @__PURE__ */ z.string().describe(
|
|
121
121
|
"Color hex code of the full-width divider rule below the header."
|
|
122
122
|
).optional().nullable()
|
|
123
123
|
}).describe("Checkout header.").optional(),
|
|
124
|
-
mainSection: z.object({
|
|
125
|
-
formBackgroundFill: z.intersection(
|
|
126
|
-
z.object({}),
|
|
127
|
-
z.xor([
|
|
128
|
-
z.object({
|
|
129
|
-
color: z.never().optional(),
|
|
130
|
-
image: z.never().optional()
|
|
124
|
+
mainSection: /* @__PURE__ */ z.object({
|
|
125
|
+
formBackgroundFill: /* @__PURE__ */ z.intersection(
|
|
126
|
+
/* @__PURE__ */ z.object({}),
|
|
127
|
+
/* @__PURE__ */ z.xor([
|
|
128
|
+
/* @__PURE__ */ z.object({
|
|
129
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
130
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
131
131
|
}),
|
|
132
|
-
z.object({
|
|
133
|
-
image: z.never().optional(),
|
|
134
|
-
color: z.string().describe("Background color hex code.")
|
|
132
|
+
/* @__PURE__ */ z.object({
|
|
133
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
134
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
135
135
|
}),
|
|
136
|
-
z.object({
|
|
137
|
-
color: z.never().optional(),
|
|
138
|
-
image: z.string().describe("Background image.")
|
|
136
|
+
/* @__PURE__ */ z.object({
|
|
137
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
138
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
139
139
|
})
|
|
140
140
|
])
|
|
141
141
|
).describe("Background fill of the checkout form.").optional(),
|
|
142
|
-
summaryBackgroundFill: z.intersection(
|
|
143
|
-
z.object({}),
|
|
144
|
-
z.xor([
|
|
145
|
-
z.object({
|
|
146
|
-
color: z.never().optional(),
|
|
147
|
-
image: z.never().optional()
|
|
142
|
+
summaryBackgroundFill: /* @__PURE__ */ z.intersection(
|
|
143
|
+
/* @__PURE__ */ z.object({}),
|
|
144
|
+
/* @__PURE__ */ z.xor([
|
|
145
|
+
/* @__PURE__ */ z.object({
|
|
146
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
147
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
148
148
|
}),
|
|
149
|
-
z.object({
|
|
150
|
-
image: z.never().optional(),
|
|
151
|
-
color: z.string().describe("Background color hex code.")
|
|
149
|
+
/* @__PURE__ */ z.object({
|
|
150
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
151
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
152
152
|
}),
|
|
153
|
-
z.object({
|
|
154
|
-
color: z.never().optional(),
|
|
155
|
-
image: z.string().describe("Background image.")
|
|
153
|
+
/* @__PURE__ */ z.object({
|
|
154
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
155
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
156
156
|
})
|
|
157
157
|
])
|
|
158
158
|
).describe("Background fill of the checkout summary.").optional(),
|
|
159
|
-
dividerColor: z.string().describe("Color hex code of the dividers.").optional().nullable(),
|
|
160
|
-
tintedBoxColor: z.string().describe(
|
|
159
|
+
dividerColor: /* @__PURE__ */ z.string().describe("Color hex code of the dividers.").optional().nullable(),
|
|
160
|
+
tintedBoxColor: /* @__PURE__ */ z.string().describe(
|
|
161
161
|
"Color hex code of the tinted boxes (e.g. show-summary box). Stored and applied solid (no opacity)."
|
|
162
162
|
).optional().nullable(),
|
|
163
|
-
expressButtonsCornerRadius: z.enum(["RECTANGLE", "PILL"]).describe(
|
|
163
|
+
expressButtonsCornerRadius: /* @__PURE__ */ z.enum(["RECTANGLE", "PILL"]).describe(
|
|
164
164
|
"Corner radius style applied to the express checkout buttons."
|
|
165
165
|
).optional(),
|
|
166
|
-
cornerRadius: z.number().int().describe(
|
|
166
|
+
cornerRadius: /* @__PURE__ */ z.number().int().describe(
|
|
167
167
|
"Corner radius applied everywhere except the express checkout buttons \u2014 line-item images and form-field inputs."
|
|
168
168
|
).min(0).max(100).optional().nullable()
|
|
169
169
|
}).describe("Main checkout area branding.").optional(),
|
|
170
|
-
footer: z.object({
|
|
171
|
-
backgroundFill: z.intersection(
|
|
172
|
-
z.object({}),
|
|
173
|
-
z.xor([
|
|
174
|
-
z.object({
|
|
175
|
-
color: z.never().optional(),
|
|
176
|
-
image: z.never().optional()
|
|
170
|
+
footer: /* @__PURE__ */ z.object({
|
|
171
|
+
backgroundFill: /* @__PURE__ */ z.intersection(
|
|
172
|
+
/* @__PURE__ */ z.object({}),
|
|
173
|
+
/* @__PURE__ */ z.xor([
|
|
174
|
+
/* @__PURE__ */ z.object({
|
|
175
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
176
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
177
177
|
}),
|
|
178
|
-
z.object({
|
|
179
|
-
image: z.never().optional(),
|
|
180
|
-
color: z.string().describe("Background color hex code.")
|
|
178
|
+
/* @__PURE__ */ z.object({
|
|
179
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
180
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
181
181
|
}),
|
|
182
|
-
z.object({
|
|
183
|
-
color: z.never().optional(),
|
|
184
|
-
image: z.string().describe("Background image.")
|
|
182
|
+
/* @__PURE__ */ z.object({
|
|
183
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
184
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
185
185
|
})
|
|
186
186
|
])
|
|
187
187
|
).describe("Background fill of the footer.").optional(),
|
|
188
|
-
dividerColor: z.string().describe(
|
|
188
|
+
dividerColor: /* @__PURE__ */ z.string().describe(
|
|
189
189
|
"Color hex code of the full-width divider rule above the footer."
|
|
190
190
|
).optional().nullable()
|
|
191
191
|
}).describe("Checkout footer branding.").optional(),
|
|
192
|
-
global: z.object({
|
|
193
|
-
selectionColor: z.string().describe(
|
|
192
|
+
global: /* @__PURE__ */ z.object({
|
|
193
|
+
selectionColor: /* @__PURE__ */ z.string().describe(
|
|
194
194
|
"Color hex code of selection controls (radios/checkboxes)."
|
|
195
195
|
).optional().nullable(),
|
|
196
|
-
placeOrderButtonColor: z.string().describe("Color hex code of the place order button.").optional().nullable(),
|
|
197
|
-
buttonColor: z.string().describe("Color hex code of the buttons.").optional().nullable()
|
|
196
|
+
placeOrderButtonColor: /* @__PURE__ */ z.string().describe("Color hex code of the place order button.").optional().nullable(),
|
|
197
|
+
buttonColor: /* @__PURE__ */ z.string().describe("Color hex code of the buttons.").optional().nullable()
|
|
198
198
|
}).describe("Global checkout branding.").optional()
|
|
199
199
|
}).describe("Checkout brand settings.").optional(),
|
|
200
|
-
_createdDate: z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
|
|
201
|
-
_updatedDate: z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
|
|
202
|
-
checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).describe("Billing information required to complete the checkout.").optional()
|
|
200
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
|
|
201
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
|
|
202
|
+
checkoutBillingFields: /* @__PURE__ */ z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).describe("Billing information required to complete the checkout.").optional()
|
|
203
203
|
}).describe("Checkout settings.").optional()
|
|
204
204
|
});
|
|
205
205
|
var UpdateCheckoutSettingsRequest = /* @__PURE__ */ z.object({
|
|
206
|
-
checkoutSettings: z.object({
|
|
207
|
-
checkoutPolicies: z.object({
|
|
208
|
-
termsAndConditions: z.object({
|
|
209
|
-
visible: z.boolean().describe(
|
|
206
|
+
checkoutSettings: /* @__PURE__ */ z.object({
|
|
207
|
+
checkoutPolicies: /* @__PURE__ */ z.object({
|
|
208
|
+
termsAndConditions: /* @__PURE__ */ z.object({
|
|
209
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
210
210
|
"Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
211
211
|
).optional().nullable(),
|
|
212
|
-
content: z.string().describe("Terms and conditions policy content.").optional().nullable()
|
|
212
|
+
content: /* @__PURE__ */ z.string().describe("Terms and conditions policy content.").optional().nullable()
|
|
213
213
|
}).describe("Terms and conditions.").optional(),
|
|
214
|
-
privacyPolicy: z.object({
|
|
215
|
-
visible: z.boolean().describe(
|
|
214
|
+
privacyPolicy: /* @__PURE__ */ z.object({
|
|
215
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
216
216
|
"Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
217
217
|
).optional().nullable(),
|
|
218
|
-
content: z.string().describe("Privacy policy content.").optional().nullable()
|
|
218
|
+
content: /* @__PURE__ */ z.string().describe("Privacy policy content.").optional().nullable()
|
|
219
219
|
}).describe("Privacy policy.").optional(),
|
|
220
|
-
returnPolicy: z.object({
|
|
221
|
-
visible: z.boolean().describe(
|
|
220
|
+
returnPolicy: /* @__PURE__ */ z.object({
|
|
221
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
222
222
|
"Whether the return policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
223
223
|
).optional().nullable(),
|
|
224
|
-
content: z.string().describe("Return policy content.").optional().nullable()
|
|
224
|
+
content: /* @__PURE__ */ z.string().describe("Return policy content.").optional().nullable()
|
|
225
225
|
}).describe("Return policy.").optional(),
|
|
226
|
-
digitalItemPolicy: z.object({
|
|
227
|
-
visible: z.boolean().describe(
|
|
226
|
+
digitalItemPolicy: /* @__PURE__ */ z.object({
|
|
227
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
228
228
|
"Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
229
229
|
).optional().nullable(),
|
|
230
|
-
content: z.string().describe("Digital item policy content.").optional().nullable()
|
|
230
|
+
content: /* @__PURE__ */ z.string().describe("Digital item policy content.").optional().nullable()
|
|
231
231
|
}).describe("Digital item policy.").optional(),
|
|
232
|
-
contactUs: z.object({
|
|
233
|
-
visible: z.boolean().describe(
|
|
232
|
+
contactUs: /* @__PURE__ */ z.object({
|
|
233
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
234
234
|
"Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
235
235
|
).optional().nullable(),
|
|
236
|
-
content: z.string().describe("Contact us policy content.").optional().nullable()
|
|
236
|
+
content: /* @__PURE__ */ z.string().describe("Contact us policy content.").optional().nullable()
|
|
237
237
|
}).describe('"Contact us" information.').optional(),
|
|
238
|
-
customPolicy: z.object({
|
|
239
|
-
visible: z.boolean().describe(
|
|
238
|
+
customPolicy: /* @__PURE__ */ z.object({
|
|
239
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
240
240
|
"Whether the custom policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
241
241
|
).optional().nullable(),
|
|
242
|
-
content: z.string().describe("Custom policy content.").optional().nullable(),
|
|
243
|
-
title: z.string().describe("Custom policy title.").optional().nullable()
|
|
242
|
+
content: /* @__PURE__ */ z.string().describe("Custom policy content.").optional().nullable(),
|
|
243
|
+
title: /* @__PURE__ */ z.string().describe("Custom policy title.").optional().nullable()
|
|
244
244
|
}).describe("Custom policy.").optional()
|
|
245
245
|
}).describe("Checkout policies.").optional(),
|
|
246
|
-
checkoutFields: z.object({
|
|
247
|
-
subscriptionCheckbox: z.object({
|
|
248
|
-
visible: z.boolean().describe(
|
|
246
|
+
checkoutFields: /* @__PURE__ */ z.object({
|
|
247
|
+
subscriptionCheckbox: /* @__PURE__ */ z.object({
|
|
248
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
249
249
|
"Whether the checkbox is visible to the customer.\n\nDefault: `false`"
|
|
250
250
|
).optional().nullable(),
|
|
251
|
-
checkedByDefault: z.boolean().describe(
|
|
251
|
+
checkedByDefault: /* @__PURE__ */ z.boolean().describe(
|
|
252
252
|
"Whether the checkbox is checked by default.\n\nDefault: `false`"
|
|
253
253
|
).optional().nullable(),
|
|
254
|
-
splitByChannel: z.boolean().describe(
|
|
254
|
+
splitByChannel: /* @__PURE__ */ z.boolean().describe(
|
|
255
255
|
"Whether checkout shows two separate opt-in checkboxes for email and SMS\ninstead of a single combined checkbox. Only takes effect when `visible` is `true`.\nBoth 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\nDefault: `false`"
|
|
256
256
|
).optional().nullable()
|
|
257
257
|
}).describe(
|
|
258
258
|
"Subscription checkbox. <br><br>\n\nControls the marketing consent checkbox shown to the buyer at checkout. By default, a single\ncheckbox lets the buyer opt in to both email and SMS marketing at once. When\n`subscriptionCheckbox.splitByChannel` is `true`, checkout instead shows two separate\ncheckboxes - one for email, one for SMS - so the buyer can opt into each channel independently."
|
|
259
259
|
).optional(),
|
|
260
|
-
policyAgreementCheckbox: z.object({
|
|
261
|
-
visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
|
|
262
|
-
checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
|
|
260
|
+
policyAgreementCheckbox: /* @__PURE__ */ z.object({
|
|
261
|
+
visible: /* @__PURE__ */ z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
|
|
262
|
+
checkedByDefault: /* @__PURE__ */ z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
|
|
263
263
|
}).describe(
|
|
264
264
|
"Policy agreement checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
|
|
265
265
|
).optional(),
|
|
266
|
-
giftCardRedeemEnabled: z.boolean().describe(
|
|
266
|
+
giftCardRedeemEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
267
267
|
"Whether the ability to redeem a gift card is enabled. <br><br>\n\nDefault: `false`"
|
|
268
268
|
).optional().nullable(),
|
|
269
|
-
mitEnabled: z.boolean().describe(
|
|
269
|
+
mitEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
270
270
|
"Whether to allow for MIT transactions. <br><br>\n\nDefault: `false`"
|
|
271
271
|
).optional().nullable(),
|
|
272
|
-
delayCaptureEnabled: z.boolean().describe(
|
|
272
|
+
delayCaptureEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
273
273
|
"Whether to allow for Auth & Capture transactions. <br><br>\n\nDefault: `false`"
|
|
274
274
|
).optional().nullable(),
|
|
275
|
-
captureBeforeExpiryEnabled: z.boolean().describe(
|
|
275
|
+
captureBeforeExpiryEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
276
276
|
"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`."
|
|
277
277
|
).optional().nullable()
|
|
278
278
|
}).describe(
|
|
279
279
|
"Settings that apply to checkout fields and the checkout process."
|
|
280
280
|
).optional(),
|
|
281
|
-
checkoutBrand: z.object({
|
|
282
|
-
header: z.object({
|
|
283
|
-
text: z.string().describe(
|
|
281
|
+
checkoutBrand: /* @__PURE__ */ z.object({
|
|
282
|
+
header: /* @__PURE__ */ z.object({
|
|
283
|
+
text: /* @__PURE__ */ z.string().describe(
|
|
284
284
|
"Textual content to be included in the header (e.g. Business Name)"
|
|
285
285
|
).max(55).optional().nullable(),
|
|
286
|
-
textColor: z.string().describe("Text color hex code.").optional().nullable(),
|
|
287
|
-
logo: z.object({
|
|
288
|
-
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).optional()
|
|
286
|
+
textColor: /* @__PURE__ */ z.string().describe("Text color hex code.").optional().nullable(),
|
|
287
|
+
logo: /* @__PURE__ */ z.object({
|
|
288
|
+
size: /* @__PURE__ */ z.enum(["SMALL", "MEDIUM", "LARGE"]).optional()
|
|
289
289
|
}).describe(
|
|
290
290
|
"Specifications for when a logo is included in the header."
|
|
291
291
|
).optional(),
|
|
292
|
-
alignment: z.enum(["SIDE", "CENTER"]).optional(),
|
|
293
|
-
displayCheckoutLabel: z.boolean().describe(
|
|
292
|
+
alignment: /* @__PURE__ */ z.enum(["SIDE", "CENTER"]).optional(),
|
|
293
|
+
displayCheckoutLabel: /* @__PURE__ */ z.boolean().describe(
|
|
294
294
|
"Whether to display the 'Checkout' label within the header.\nDepending on the locale, the label may be translated."
|
|
295
295
|
).optional().nullable(),
|
|
296
|
-
continueShopping: z.object({
|
|
297
|
-
hidden: z.boolean().describe(
|
|
296
|
+
continueShopping: /* @__PURE__ */ z.object({
|
|
297
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
298
298
|
"Whether the continue shopping element is hidden."
|
|
299
299
|
).optional().nullable(),
|
|
300
|
-
displayType: z.enum(["TEXT", "ICON"]).optional()
|
|
300
|
+
displayType: /* @__PURE__ */ z.enum(["TEXT", "ICON"]).optional()
|
|
301
301
|
}).describe("Continue shopping specifications.").optional(),
|
|
302
|
-
backgroundFill: z.intersection(
|
|
303
|
-
z.object({}),
|
|
304
|
-
z.xor([
|
|
305
|
-
z.object({
|
|
306
|
-
color: z.never().optional(),
|
|
307
|
-
image: z.never().optional()
|
|
302
|
+
backgroundFill: /* @__PURE__ */ z.intersection(
|
|
303
|
+
/* @__PURE__ */ z.object({}),
|
|
304
|
+
/* @__PURE__ */ z.xor([
|
|
305
|
+
/* @__PURE__ */ z.object({
|
|
306
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
307
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
308
308
|
}),
|
|
309
|
-
z.object({
|
|
310
|
-
image: z.never().optional(),
|
|
311
|
-
color: z.string().describe("Background color hex code.")
|
|
309
|
+
/* @__PURE__ */ z.object({
|
|
310
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
311
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
312
312
|
}),
|
|
313
|
-
z.object({
|
|
314
|
-
color: z.never().optional(),
|
|
315
|
-
image: z.string().describe("Background image.")
|
|
313
|
+
/* @__PURE__ */ z.object({
|
|
314
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
315
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
316
316
|
})
|
|
317
317
|
])
|
|
318
318
|
).describe("Background fill specifications.").optional(),
|
|
319
|
-
dividerColor: z.string().describe(
|
|
319
|
+
dividerColor: /* @__PURE__ */ z.string().describe(
|
|
320
320
|
"Color hex code of the full-width divider rule below the header."
|
|
321
321
|
).optional().nullable()
|
|
322
322
|
}).describe("Checkout header.").optional(),
|
|
323
|
-
mainSection: z.object({
|
|
324
|
-
formBackgroundFill: z.intersection(
|
|
325
|
-
z.object({}),
|
|
326
|
-
z.xor([
|
|
327
|
-
z.object({
|
|
328
|
-
color: z.never().optional(),
|
|
329
|
-
image: z.never().optional()
|
|
323
|
+
mainSection: /* @__PURE__ */ z.object({
|
|
324
|
+
formBackgroundFill: /* @__PURE__ */ z.intersection(
|
|
325
|
+
/* @__PURE__ */ z.object({}),
|
|
326
|
+
/* @__PURE__ */ z.xor([
|
|
327
|
+
/* @__PURE__ */ z.object({
|
|
328
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
329
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
330
330
|
}),
|
|
331
|
-
z.object({
|
|
332
|
-
image: z.never().optional(),
|
|
333
|
-
color: z.string().describe("Background color hex code.")
|
|
331
|
+
/* @__PURE__ */ z.object({
|
|
332
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
333
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
334
334
|
}),
|
|
335
|
-
z.object({
|
|
336
|
-
color: z.never().optional(),
|
|
337
|
-
image: z.string().describe("Background image.")
|
|
335
|
+
/* @__PURE__ */ z.object({
|
|
336
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
337
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
338
338
|
})
|
|
339
339
|
])
|
|
340
340
|
).describe("Background fill of the checkout form.").optional(),
|
|
341
|
-
summaryBackgroundFill: z.intersection(
|
|
342
|
-
z.object({}),
|
|
343
|
-
z.xor([
|
|
344
|
-
z.object({
|
|
345
|
-
color: z.never().optional(),
|
|
346
|
-
image: z.never().optional()
|
|
341
|
+
summaryBackgroundFill: /* @__PURE__ */ z.intersection(
|
|
342
|
+
/* @__PURE__ */ z.object({}),
|
|
343
|
+
/* @__PURE__ */ z.xor([
|
|
344
|
+
/* @__PURE__ */ z.object({
|
|
345
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
346
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
347
347
|
}),
|
|
348
|
-
z.object({
|
|
349
|
-
image: z.never().optional(),
|
|
350
|
-
color: z.string().describe("Background color hex code.")
|
|
348
|
+
/* @__PURE__ */ z.object({
|
|
349
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
350
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
351
351
|
}),
|
|
352
|
-
z.object({
|
|
353
|
-
color: z.never().optional(),
|
|
354
|
-
image: z.string().describe("Background image.")
|
|
352
|
+
/* @__PURE__ */ z.object({
|
|
353
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
354
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
355
355
|
})
|
|
356
356
|
])
|
|
357
357
|
).describe("Background fill of the checkout summary.").optional(),
|
|
358
|
-
dividerColor: z.string().describe("Color hex code of the dividers.").optional().nullable(),
|
|
359
|
-
tintedBoxColor: z.string().describe(
|
|
358
|
+
dividerColor: /* @__PURE__ */ z.string().describe("Color hex code of the dividers.").optional().nullable(),
|
|
359
|
+
tintedBoxColor: /* @__PURE__ */ z.string().describe(
|
|
360
360
|
"Color hex code of the tinted boxes (e.g. show-summary box). Stored and applied solid (no opacity)."
|
|
361
361
|
).optional().nullable(),
|
|
362
|
-
expressButtonsCornerRadius: z.enum(["RECTANGLE", "PILL"]).optional(),
|
|
363
|
-
cornerRadius: z.number().int().describe(
|
|
362
|
+
expressButtonsCornerRadius: /* @__PURE__ */ z.enum(["RECTANGLE", "PILL"]).optional(),
|
|
363
|
+
cornerRadius: /* @__PURE__ */ z.number().int().describe(
|
|
364
364
|
"Corner radius applied everywhere except the express checkout buttons \u2014 line-item images and form-field inputs."
|
|
365
365
|
).min(0).max(100).optional().nullable()
|
|
366
366
|
}).describe("Main checkout area branding.").optional(),
|
|
367
|
-
footer: z.object({
|
|
368
|
-
backgroundFill: z.intersection(
|
|
369
|
-
z.object({}),
|
|
370
|
-
z.xor([
|
|
371
|
-
z.object({
|
|
372
|
-
color: z.never().optional(),
|
|
373
|
-
image: z.never().optional()
|
|
367
|
+
footer: /* @__PURE__ */ z.object({
|
|
368
|
+
backgroundFill: /* @__PURE__ */ z.intersection(
|
|
369
|
+
/* @__PURE__ */ z.object({}),
|
|
370
|
+
/* @__PURE__ */ z.xor([
|
|
371
|
+
/* @__PURE__ */ z.object({
|
|
372
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
373
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
374
374
|
}),
|
|
375
|
-
z.object({
|
|
376
|
-
image: z.never().optional(),
|
|
377
|
-
color: z.string().describe("Background color hex code.")
|
|
375
|
+
/* @__PURE__ */ z.object({
|
|
376
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
377
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
378
378
|
}),
|
|
379
|
-
z.object({
|
|
380
|
-
color: z.never().optional(),
|
|
381
|
-
image: z.string().describe("Background image.")
|
|
379
|
+
/* @__PURE__ */ z.object({
|
|
380
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
381
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
382
382
|
})
|
|
383
383
|
])
|
|
384
384
|
).describe("Background fill of the footer.").optional(),
|
|
385
|
-
dividerColor: z.string().describe(
|
|
385
|
+
dividerColor: /* @__PURE__ */ z.string().describe(
|
|
386
386
|
"Color hex code of the full-width divider rule above the footer."
|
|
387
387
|
).optional().nullable()
|
|
388
388
|
}).describe("Checkout footer branding.").optional(),
|
|
389
|
-
global: z.object({
|
|
390
|
-
selectionColor: z.string().describe(
|
|
389
|
+
global: /* @__PURE__ */ z.object({
|
|
390
|
+
selectionColor: /* @__PURE__ */ z.string().describe(
|
|
391
391
|
"Color hex code of selection controls (radios/checkboxes)."
|
|
392
392
|
).optional().nullable(),
|
|
393
|
-
placeOrderButtonColor: z.string().describe("Color hex code of the place order button.").optional().nullable(),
|
|
394
|
-
buttonColor: z.string().describe("Color hex code of the buttons.").optional().nullable()
|
|
393
|
+
placeOrderButtonColor: /* @__PURE__ */ z.string().describe("Color hex code of the place order button.").optional().nullable(),
|
|
394
|
+
buttonColor: /* @__PURE__ */ z.string().describe("Color hex code of the buttons.").optional().nullable()
|
|
395
395
|
}).describe("Global checkout branding.").optional()
|
|
396
396
|
}).describe("Checkout brand settings.").optional(),
|
|
397
|
-
_createdDate: z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
|
|
398
|
-
_updatedDate: z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
|
|
399
|
-
checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).optional()
|
|
397
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
|
|
398
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
|
|
399
|
+
checkoutBillingFields: /* @__PURE__ */ z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).optional()
|
|
400
400
|
}).describe("Checkout settings to update.")
|
|
401
401
|
});
|
|
402
402
|
var UpdateCheckoutSettingsResponse = /* @__PURE__ */ z.object({
|
|
403
|
-
checkoutSettings: z.object({
|
|
404
|
-
checkoutPolicies: z.object({
|
|
405
|
-
termsAndConditions: z.object({
|
|
406
|
-
visible: z.boolean().describe(
|
|
403
|
+
checkoutSettings: /* @__PURE__ */ z.object({
|
|
404
|
+
checkoutPolicies: /* @__PURE__ */ z.object({
|
|
405
|
+
termsAndConditions: /* @__PURE__ */ z.object({
|
|
406
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
407
407
|
"Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
408
408
|
).optional().nullable(),
|
|
409
|
-
content: z.string().describe("Terms and conditions policy content.").optional().nullable()
|
|
409
|
+
content: /* @__PURE__ */ z.string().describe("Terms and conditions policy content.").optional().nullable()
|
|
410
410
|
}).describe("Terms and conditions.").optional(),
|
|
411
|
-
privacyPolicy: z.object({
|
|
412
|
-
visible: z.boolean().describe(
|
|
411
|
+
privacyPolicy: /* @__PURE__ */ z.object({
|
|
412
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
413
413
|
"Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
414
414
|
).optional().nullable(),
|
|
415
|
-
content: z.string().describe("Privacy policy content.").optional().nullable()
|
|
415
|
+
content: /* @__PURE__ */ z.string().describe("Privacy policy content.").optional().nullable()
|
|
416
416
|
}).describe("Privacy policy.").optional(),
|
|
417
|
-
returnPolicy: z.object({
|
|
418
|
-
visible: z.boolean().describe(
|
|
417
|
+
returnPolicy: /* @__PURE__ */ z.object({
|
|
418
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
419
419
|
"Whether the return policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
420
420
|
).optional().nullable(),
|
|
421
|
-
content: z.string().describe("Return policy content.").optional().nullable()
|
|
421
|
+
content: /* @__PURE__ */ z.string().describe("Return policy content.").optional().nullable()
|
|
422
422
|
}).describe("Return policy.").optional(),
|
|
423
|
-
digitalItemPolicy: z.object({
|
|
424
|
-
visible: z.boolean().describe(
|
|
423
|
+
digitalItemPolicy: /* @__PURE__ */ z.object({
|
|
424
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
425
425
|
"Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
426
426
|
).optional().nullable(),
|
|
427
|
-
content: z.string().describe("Digital item policy content.").optional().nullable()
|
|
427
|
+
content: /* @__PURE__ */ z.string().describe("Digital item policy content.").optional().nullable()
|
|
428
428
|
}).describe("Digital item policy.").optional(),
|
|
429
|
-
contactUs: z.object({
|
|
430
|
-
visible: z.boolean().describe(
|
|
429
|
+
contactUs: /* @__PURE__ */ z.object({
|
|
430
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
431
431
|
"Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
432
432
|
).optional().nullable(),
|
|
433
|
-
content: z.string().describe("Contact us policy content.").optional().nullable()
|
|
433
|
+
content: /* @__PURE__ */ z.string().describe("Contact us policy content.").optional().nullable()
|
|
434
434
|
}).describe('"Contact us" information.').optional(),
|
|
435
|
-
customPolicy: z.object({
|
|
436
|
-
visible: z.boolean().describe(
|
|
435
|
+
customPolicy: /* @__PURE__ */ z.object({
|
|
436
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
437
437
|
"Whether the custom policy is visible to the customer in the checkout page. <br><br>\n\nDefault: `false`"
|
|
438
438
|
).optional().nullable(),
|
|
439
|
-
content: z.string().describe("Custom policy content.").optional().nullable(),
|
|
440
|
-
title: z.string().describe("Custom policy title.").optional().nullable()
|
|
439
|
+
content: /* @__PURE__ */ z.string().describe("Custom policy content.").optional().nullable(),
|
|
440
|
+
title: /* @__PURE__ */ z.string().describe("Custom policy title.").optional().nullable()
|
|
441
441
|
}).describe("Custom policy.").optional()
|
|
442
442
|
}).describe("Checkout policies.").optional(),
|
|
443
|
-
checkoutFields: z.object({
|
|
444
|
-
subscriptionCheckbox: z.object({
|
|
445
|
-
visible: z.boolean().describe(
|
|
443
|
+
checkoutFields: /* @__PURE__ */ z.object({
|
|
444
|
+
subscriptionCheckbox: /* @__PURE__ */ z.object({
|
|
445
|
+
visible: /* @__PURE__ */ z.boolean().describe(
|
|
446
446
|
"Whether the checkbox is visible to the customer.\n\nDefault: `false`"
|
|
447
447
|
).optional().nullable(),
|
|
448
|
-
checkedByDefault: z.boolean().describe(
|
|
448
|
+
checkedByDefault: /* @__PURE__ */ z.boolean().describe(
|
|
449
449
|
"Whether the checkbox is checked by default.\n\nDefault: `false`"
|
|
450
450
|
).optional().nullable(),
|
|
451
|
-
splitByChannel: z.boolean().describe(
|
|
451
|
+
splitByChannel: /* @__PURE__ */ z.boolean().describe(
|
|
452
452
|
"Whether checkout shows two separate opt-in checkboxes for email and SMS\ninstead of a single combined checkbox. Only takes effect when `visible` is `true`.\nBoth 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\nDefault: `false`"
|
|
453
453
|
).optional().nullable()
|
|
454
454
|
}).describe(
|
|
455
455
|
"Subscription checkbox. <br><br>\n\nControls the marketing consent checkbox shown to the buyer at checkout. By default, a single\ncheckbox lets the buyer opt in to both email and SMS marketing at once. When\n`subscriptionCheckbox.splitByChannel` is `true`, checkout instead shows two separate\ncheckboxes - one for email, one for SMS - so the buyer can opt into each channel independently."
|
|
456
456
|
).optional(),
|
|
457
|
-
policyAgreementCheckbox: z.object({
|
|
458
|
-
visible: z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
|
|
459
|
-
checkedByDefault: z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
|
|
457
|
+
policyAgreementCheckbox: /* @__PURE__ */ z.object({
|
|
458
|
+
visible: /* @__PURE__ */ z.boolean().describe("Whether the checkbox is visible to the customer.").optional().nullable(),
|
|
459
|
+
checkedByDefault: /* @__PURE__ */ z.boolean().describe("Whether the checkbox is checked by default.").optional().nullable()
|
|
460
460
|
}).describe(
|
|
461
461
|
"Policy agreement checkbox. <br><br>\n\nDefaults:\n+ `visible`: `false`\n+ `checkedByDefault`: `false`"
|
|
462
462
|
).optional(),
|
|
463
|
-
giftCardRedeemEnabled: z.boolean().describe(
|
|
463
|
+
giftCardRedeemEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
464
464
|
"Whether the ability to redeem a gift card is enabled. <br><br>\n\nDefault: `false`"
|
|
465
465
|
).optional().nullable(),
|
|
466
|
-
mitEnabled: z.boolean().describe(
|
|
466
|
+
mitEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
467
467
|
"Whether to allow for MIT transactions. <br><br>\n\nDefault: `false`"
|
|
468
468
|
).optional().nullable(),
|
|
469
|
-
delayCaptureEnabled: z.boolean().describe(
|
|
469
|
+
delayCaptureEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
470
470
|
"Whether to allow for Auth & Capture transactions. <br><br>\n\nDefault: `false`"
|
|
471
471
|
).optional().nullable(),
|
|
472
|
-
captureBeforeExpiryEnabled: z.boolean().describe(
|
|
472
|
+
captureBeforeExpiryEnabled: /* @__PURE__ */ z.boolean().describe(
|
|
473
473
|
"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`."
|
|
474
474
|
).optional().nullable()
|
|
475
475
|
}).describe(
|
|
476
476
|
"Settings that apply to checkout fields and the checkout process."
|
|
477
477
|
).optional(),
|
|
478
|
-
checkoutBrand: z.object({
|
|
479
|
-
header: z.object({
|
|
480
|
-
text: z.string().describe(
|
|
478
|
+
checkoutBrand: /* @__PURE__ */ z.object({
|
|
479
|
+
header: /* @__PURE__ */ z.object({
|
|
480
|
+
text: /* @__PURE__ */ z.string().describe(
|
|
481
481
|
"Textual content to be included in the header (e.g. Business Name)"
|
|
482
482
|
).max(55).optional().nullable(),
|
|
483
|
-
textColor: z.string().describe("Text color hex code.").optional().nullable(),
|
|
484
|
-
logo: z.object({
|
|
485
|
-
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the logo.").optional()
|
|
483
|
+
textColor: /* @__PURE__ */ z.string().describe("Text color hex code.").optional().nullable(),
|
|
484
|
+
logo: /* @__PURE__ */ z.object({
|
|
485
|
+
size: /* @__PURE__ */ z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the logo.").optional()
|
|
486
486
|
}).describe(
|
|
487
487
|
"Specifications for when a logo is included in the header."
|
|
488
488
|
).optional(),
|
|
489
|
-
alignment: z.enum(["SIDE", "CENTER"]).describe(
|
|
489
|
+
alignment: /* @__PURE__ */ z.enum(["SIDE", "CENTER"]).describe(
|
|
490
490
|
"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."
|
|
491
491
|
).optional(),
|
|
492
|
-
displayCheckoutLabel: z.boolean().describe(
|
|
492
|
+
displayCheckoutLabel: /* @__PURE__ */ z.boolean().describe(
|
|
493
493
|
"Whether to display the 'Checkout' label within the header.\nDepending on the locale, the label may be translated."
|
|
494
494
|
).optional().nullable(),
|
|
495
|
-
continueShopping: z.object({
|
|
496
|
-
hidden: z.boolean().describe(
|
|
495
|
+
continueShopping: /* @__PURE__ */ z.object({
|
|
496
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
497
497
|
"Whether the continue shopping element is hidden."
|
|
498
498
|
).optional().nullable(),
|
|
499
|
-
displayType: z.enum(["TEXT", "ICON"]).describe("Display type for the continue shopping element.").optional()
|
|
499
|
+
displayType: /* @__PURE__ */ z.enum(["TEXT", "ICON"]).describe("Display type for the continue shopping element.").optional()
|
|
500
500
|
}).describe("Continue shopping specifications.").optional(),
|
|
501
|
-
backgroundFill: z.intersection(
|
|
502
|
-
z.object({}),
|
|
503
|
-
z.xor([
|
|
504
|
-
z.object({
|
|
505
|
-
color: z.never().optional(),
|
|
506
|
-
image: z.never().optional()
|
|
501
|
+
backgroundFill: /* @__PURE__ */ z.intersection(
|
|
502
|
+
/* @__PURE__ */ z.object({}),
|
|
503
|
+
/* @__PURE__ */ z.xor([
|
|
504
|
+
/* @__PURE__ */ z.object({
|
|
505
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
506
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
507
507
|
}),
|
|
508
|
-
z.object({
|
|
509
|
-
image: z.never().optional(),
|
|
510
|
-
color: z.string().describe("Background color hex code.")
|
|
508
|
+
/* @__PURE__ */ z.object({
|
|
509
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
510
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
511
511
|
}),
|
|
512
|
-
z.object({
|
|
513
|
-
color: z.never().optional(),
|
|
514
|
-
image: z.string().describe("Background image.")
|
|
512
|
+
/* @__PURE__ */ z.object({
|
|
513
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
514
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
515
515
|
})
|
|
516
516
|
])
|
|
517
517
|
).describe("Background fill specifications.").optional(),
|
|
518
|
-
dividerColor: z.string().describe(
|
|
518
|
+
dividerColor: /* @__PURE__ */ z.string().describe(
|
|
519
519
|
"Color hex code of the full-width divider rule below the header."
|
|
520
520
|
).optional().nullable()
|
|
521
521
|
}).describe("Checkout header.").optional(),
|
|
522
|
-
mainSection: z.object({
|
|
523
|
-
formBackgroundFill: z.intersection(
|
|
524
|
-
z.object({}),
|
|
525
|
-
z.xor([
|
|
526
|
-
z.object({
|
|
527
|
-
color: z.never().optional(),
|
|
528
|
-
image: z.never().optional()
|
|
522
|
+
mainSection: /* @__PURE__ */ z.object({
|
|
523
|
+
formBackgroundFill: /* @__PURE__ */ z.intersection(
|
|
524
|
+
/* @__PURE__ */ z.object({}),
|
|
525
|
+
/* @__PURE__ */ z.xor([
|
|
526
|
+
/* @__PURE__ */ z.object({
|
|
527
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
528
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
529
529
|
}),
|
|
530
|
-
z.object({
|
|
531
|
-
image: z.never().optional(),
|
|
532
|
-
color: z.string().describe("Background color hex code.")
|
|
530
|
+
/* @__PURE__ */ z.object({
|
|
531
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
532
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
533
533
|
}),
|
|
534
|
-
z.object({
|
|
535
|
-
color: z.never().optional(),
|
|
536
|
-
image: z.string().describe("Background image.")
|
|
534
|
+
/* @__PURE__ */ z.object({
|
|
535
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
536
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
537
537
|
})
|
|
538
538
|
])
|
|
539
539
|
).describe("Background fill of the checkout form.").optional(),
|
|
540
|
-
summaryBackgroundFill: z.intersection(
|
|
541
|
-
z.object({}),
|
|
542
|
-
z.xor([
|
|
543
|
-
z.object({
|
|
544
|
-
color: z.never().optional(),
|
|
545
|
-
image: z.never().optional()
|
|
540
|
+
summaryBackgroundFill: /* @__PURE__ */ z.intersection(
|
|
541
|
+
/* @__PURE__ */ z.object({}),
|
|
542
|
+
/* @__PURE__ */ z.xor([
|
|
543
|
+
/* @__PURE__ */ z.object({
|
|
544
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
545
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
546
546
|
}),
|
|
547
|
-
z.object({
|
|
548
|
-
image: z.never().optional(),
|
|
549
|
-
color: z.string().describe("Background color hex code.")
|
|
547
|
+
/* @__PURE__ */ z.object({
|
|
548
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
549
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
550
550
|
}),
|
|
551
|
-
z.object({
|
|
552
|
-
color: z.never().optional(),
|
|
553
|
-
image: z.string().describe("Background image.")
|
|
551
|
+
/* @__PURE__ */ z.object({
|
|
552
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
553
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
554
554
|
})
|
|
555
555
|
])
|
|
556
556
|
).describe("Background fill of the checkout summary.").optional(),
|
|
557
|
-
dividerColor: z.string().describe("Color hex code of the dividers.").optional().nullable(),
|
|
558
|
-
tintedBoxColor: z.string().describe(
|
|
557
|
+
dividerColor: /* @__PURE__ */ z.string().describe("Color hex code of the dividers.").optional().nullable(),
|
|
558
|
+
tintedBoxColor: /* @__PURE__ */ z.string().describe(
|
|
559
559
|
"Color hex code of the tinted boxes (e.g. show-summary box). Stored and applied solid (no opacity)."
|
|
560
560
|
).optional().nullable(),
|
|
561
|
-
expressButtonsCornerRadius: z.enum(["RECTANGLE", "PILL"]).describe(
|
|
561
|
+
expressButtonsCornerRadius: /* @__PURE__ */ z.enum(["RECTANGLE", "PILL"]).describe(
|
|
562
562
|
"Corner radius style applied to the express checkout buttons."
|
|
563
563
|
).optional(),
|
|
564
|
-
cornerRadius: z.number().int().describe(
|
|
564
|
+
cornerRadius: /* @__PURE__ */ z.number().int().describe(
|
|
565
565
|
"Corner radius applied everywhere except the express checkout buttons \u2014 line-item images and form-field inputs."
|
|
566
566
|
).min(0).max(100).optional().nullable()
|
|
567
567
|
}).describe("Main checkout area branding.").optional(),
|
|
568
|
-
footer: z.object({
|
|
569
|
-
backgroundFill: z.intersection(
|
|
570
|
-
z.object({}),
|
|
571
|
-
z.xor([
|
|
572
|
-
z.object({
|
|
573
|
-
color: z.never().optional(),
|
|
574
|
-
image: z.never().optional()
|
|
568
|
+
footer: /* @__PURE__ */ z.object({
|
|
569
|
+
backgroundFill: /* @__PURE__ */ z.intersection(
|
|
570
|
+
/* @__PURE__ */ z.object({}),
|
|
571
|
+
/* @__PURE__ */ z.xor([
|
|
572
|
+
/* @__PURE__ */ z.object({
|
|
573
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
574
|
+
image: /* @__PURE__ */ z.never().optional()
|
|
575
575
|
}),
|
|
576
|
-
z.object({
|
|
577
|
-
image: z.never().optional(),
|
|
578
|
-
color: z.string().describe("Background color hex code.")
|
|
576
|
+
/* @__PURE__ */ z.object({
|
|
577
|
+
image: /* @__PURE__ */ z.never().optional(),
|
|
578
|
+
color: /* @__PURE__ */ z.string().describe("Background color hex code.")
|
|
579
579
|
}),
|
|
580
|
-
z.object({
|
|
581
|
-
color: z.never().optional(),
|
|
582
|
-
image: z.string().describe("Background image.")
|
|
580
|
+
/* @__PURE__ */ z.object({
|
|
581
|
+
color: /* @__PURE__ */ z.never().optional(),
|
|
582
|
+
image: /* @__PURE__ */ z.string().describe("Background image.")
|
|
583
583
|
})
|
|
584
584
|
])
|
|
585
585
|
).describe("Background fill of the footer.").optional(),
|
|
586
|
-
dividerColor: z.string().describe(
|
|
586
|
+
dividerColor: /* @__PURE__ */ z.string().describe(
|
|
587
587
|
"Color hex code of the full-width divider rule above the footer."
|
|
588
588
|
).optional().nullable()
|
|
589
589
|
}).describe("Checkout footer branding.").optional(),
|
|
590
|
-
global: z.object({
|
|
591
|
-
selectionColor: z.string().describe(
|
|
590
|
+
global: /* @__PURE__ */ z.object({
|
|
591
|
+
selectionColor: /* @__PURE__ */ z.string().describe(
|
|
592
592
|
"Color hex code of selection controls (radios/checkboxes)."
|
|
593
593
|
).optional().nullable(),
|
|
594
|
-
placeOrderButtonColor: z.string().describe("Color hex code of the place order button.").optional().nullable(),
|
|
595
|
-
buttonColor: z.string().describe("Color hex code of the buttons.").optional().nullable()
|
|
594
|
+
placeOrderButtonColor: /* @__PURE__ */ z.string().describe("Color hex code of the place order button.").optional().nullable(),
|
|
595
|
+
buttonColor: /* @__PURE__ */ z.string().describe("Color hex code of the buttons.").optional().nullable()
|
|
596
596
|
}).describe("Global checkout branding.").optional()
|
|
597
597
|
}).describe("Checkout brand settings.").optional(),
|
|
598
|
-
_createdDate: z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
|
|
599
|
-
_updatedDate: z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
|
|
600
|
-
checkoutBillingFields: z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).describe("Billing information required to complete the checkout.").optional()
|
|
598
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the checkout settings were created.").optional().nullable(),
|
|
599
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the checkout settings were updated.").optional().nullable(),
|
|
600
|
+
checkoutBillingFields: /* @__PURE__ */ z.enum(["All_FIELDS", "MINIMUM_REQUIRED_FIELDS"]).describe("Billing information required to complete the checkout.").optional()
|
|
601
601
|
}).describe("Updated checkout settings.").optional()
|
|
602
602
|
});
|
|
603
603
|
export {
|