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