@wix/auto_sdk_ecom_order-transactions 1.0.105 → 1.0.106

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.
@@ -46,54 +46,54 @@ module.exports = __toCommonJS(schemas_exports);
46
46
  // src/ecom-v1-order-transactions-order-transactions.schemas.ts
47
47
  var z = __toESM(require("zod"));
48
48
  var ListTransactionsForSingleOrderRequest = /* @__PURE__ */ z.object({
49
- orderId: z.string().describe("Order ID.").min(1).max(100)
49
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").min(1).max(100)
50
50
  });
51
51
  var ListTransactionsForSingleOrderResponse = /* @__PURE__ */ z.object({
52
- orderTransactions: z.object({
53
- orderId: z.string().describe("Order ID.").regex(
52
+ orderTransactions: /* @__PURE__ */ z.object({
53
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
54
54
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
55
55
  "Must be a valid GUID"
56
56
  ).optional(),
57
- payments: z.array(
58
- z.intersection(
59
- z.object({
60
- _id: z.string().describe("Payment ID.").regex(
57
+ payments: /* @__PURE__ */ z.array(
58
+ /* @__PURE__ */ z.intersection(
59
+ /* @__PURE__ */ z.object({
60
+ _id: /* @__PURE__ */ z.string().describe("Payment ID.").regex(
61
61
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
62
62
  "Must be a valid GUID"
63
63
  ).optional().nullable(),
64
- _createdDate: z.date().describe(
64
+ _createdDate: /* @__PURE__ */ z.date().describe(
65
65
  "Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
66
66
  ).optional().nullable(),
67
- _updatedDate: z.date().describe(
67
+ _updatedDate: /* @__PURE__ */ z.date().describe(
68
68
  "Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
69
69
  ).optional().nullable(),
70
- amount: z.object({
71
- amount: z.string().describe("Amount.").optional(),
72
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
70
+ amount: /* @__PURE__ */ z.object({
71
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
72
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
73
73
  }).describe("Payment amount.").optional(),
74
- refundDisabled: z.boolean().describe(
74
+ refundDisabled: /* @__PURE__ */ z.boolean().describe(
75
75
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
76
76
  ).optional(),
77
- supportReceiptGeneration: z.boolean().describe(
77
+ supportReceiptGeneration: /* @__PURE__ */ z.boolean().describe(
78
78
  "Whether receipt generation is allowed for this payment.\n+ `true`: This payment supports receipt generation.\n+ `false`: This payment doesn't support receipt generation, or a receipt was already generated."
79
79
  ).optional(),
80
- cashRounding: z.object({
81
- unroundedAmount: z.object({
82
- amount: z.string().describe("Amount.").optional(),
83
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
80
+ cashRounding: /* @__PURE__ */ z.object({
81
+ unroundedAmount: /* @__PURE__ */ z.object({
82
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
83
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
84
84
  }).describe(
85
85
  "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
86
86
  ).optional(),
87
- roundingAdjustment: z.object({
88
- amount: z.string().describe("Amount, can be negative or positive.").optional(),
89
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
87
+ roundingAdjustment: /* @__PURE__ */ z.object({
88
+ amount: /* @__PURE__ */ z.string().describe("Amount, can be negative or positive.").optional(),
89
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
90
90
  }).describe(
91
91
  "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
92
92
  ).optional()
93
93
  }).describe(
94
94
  "Details about cash rounding applied to this payment, when relevant."
95
95
  ).optional(),
96
- status: z.enum([
96
+ status: /* @__PURE__ */ z.enum([
97
97
  "APPROVED",
98
98
  "PENDING",
99
99
  "PENDING_MERCHANT",
@@ -106,38 +106,38 @@ var ListTransactionsForSingleOrderResponse = /* @__PURE__ */ z.object({
106
106
  ]).describe(
107
107
  "Overall payment status.\n\nGift card and membership payments support only `APPROVED`, `PENDING`, `CANCELED`, `DECLINED`, and `VOIDED`. The remaining values apply to regular payments."
108
108
  ).optional(),
109
- chargeCorrelationId: z.string().describe(
109
+ chargeCorrelationId: /* @__PURE__ */ z.string().describe(
110
110
  "ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request."
111
111
  ).regex(
112
112
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
113
113
  "Must be a valid GUID"
114
114
  ).optional().nullable()
115
115
  }),
116
- z.xor([
117
- z.object({
118
- regularPaymentDetails: z.never().optional(),
119
- giftcardPaymentDetails: z.never().optional(),
120
- membershipPaymentDetails: z.never().optional()
116
+ /* @__PURE__ */ z.xor([
117
+ /* @__PURE__ */ z.object({
118
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
119
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
120
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional()
121
121
  }),
122
- z.object({
123
- giftcardPaymentDetails: z.never().optional(),
124
- membershipPaymentDetails: z.never().optional(),
125
- regularPaymentDetails: z.intersection(
126
- z.object({
127
- paymentOrderId: z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
128
- gatewayTransactionId: z.string().describe(
122
+ /* @__PURE__ */ z.object({
123
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
124
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
125
+ regularPaymentDetails: /* @__PURE__ */ z.intersection(
126
+ /* @__PURE__ */ z.object({
127
+ paymentOrderId: /* @__PURE__ */ z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
128
+ gatewayTransactionId: /* @__PURE__ */ z.string().describe(
129
129
  "Payment gateway's transaction ID.\nThis field is only returned when the value of `offline_payment` is `false`."
130
130
  ).max(100).optional().nullable(),
131
- paymentMethod: z.string().describe(
131
+ paymentMethod: /* @__PURE__ */ z.string().describe(
132
132
  "Payment method.\nDeprecated. Use `paymentMethodName.buyerLanguageName` instead.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
133
133
  ).max(150).optional().nullable(),
134
- providerTransactionId: z.string().describe(
134
+ providerTransactionId: /* @__PURE__ */ z.string().describe(
135
135
  "Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments."
136
136
  ).max(100).optional().nullable(),
137
- offlinePayment: z.boolean().describe(
137
+ offlinePayment: /* @__PURE__ */ z.boolean().describe(
138
138
  "Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager."
139
139
  ).optional(),
140
- status: z.enum([
140
+ status: /* @__PURE__ */ z.enum([
141
141
  "UNDEFINED",
142
142
  "APPROVED",
143
143
  "PENDING",
@@ -149,116 +149,116 @@ var ListTransactionsForSingleOrderResponse = /* @__PURE__ */ z.object({
149
149
  "AUTHORIZED",
150
150
  "VOIDED"
151
151
  ]).describe("Payment status.").optional(),
152
- savedPaymentMethod: z.boolean().describe(
152
+ savedPaymentMethod: /* @__PURE__ */ z.boolean().describe(
153
153
  "Whether there is a payment agreement that allows for future charges."
154
154
  ).optional(),
155
- authorizationDetails: z.object({
156
- delayedCapture: z.boolean().describe(
155
+ authorizationDetails: /* @__PURE__ */ z.object({
156
+ delayedCapture: /* @__PURE__ */ z.boolean().describe(
157
157
  "Whether the authorized payment is of a delayed capture."
158
158
  ).optional(),
159
- authorizedDate: z.date().describe(
159
+ authorizedDate: /* @__PURE__ */ z.date().describe(
160
160
  "Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
161
161
  ).optional().nullable(),
162
- captures: z.array(
163
- z.object({
164
- _id: z.string().describe("Capture ID.").regex(
162
+ captures: /* @__PURE__ */ z.array(
163
+ /* @__PURE__ */ z.object({
164
+ _id: /* @__PURE__ */ z.string().describe("Capture ID.").regex(
165
165
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
166
166
  "Must be a valid GUID"
167
167
  ).optional().nullable(),
168
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
169
- amount: z.object({
170
- amount: z.string().describe("Amount.").optional(),
171
- formattedAmount: z.string().describe(
168
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
169
+ amount: /* @__PURE__ */ z.object({
170
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
171
+ formattedAmount: /* @__PURE__ */ z.string().describe(
172
172
  "Amount formatted with currency symbol."
173
173
  ).optional()
174
174
  }).describe("Amount of this capture").optional(),
175
- _createdDate: z.date().describe(
175
+ _createdDate: /* @__PURE__ */ z.date().describe(
176
176
  "Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
177
177
  ).optional().nullable(),
178
- failureDetails: z.object({
179
- failureCode: z.string().max(100).optional()
178
+ failureDetails: /* @__PURE__ */ z.object({
179
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
180
180
  }).describe(
181
181
  "In case of status is FAILED may contain failure details"
182
182
  ).optional()
183
183
  })
184
184
  ).max(1).optional(),
185
- void: z.object({
186
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
187
- voidedDate: z.date().describe(
185
+ void: /* @__PURE__ */ z.object({
186
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
187
+ voidedDate: /* @__PURE__ */ z.date().describe(
188
188
  "Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
189
189
  ).optional().nullable(),
190
- failureDetails: z.object({
191
- failureCode: z.string().max(100).optional()
190
+ failureDetails: /* @__PURE__ */ z.object({
191
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
192
192
  }).describe(
193
193
  "In case of status is FAILED may contain failure details"
194
194
  ).optional(),
195
- reason: z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
195
+ reason: /* @__PURE__ */ z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
196
196
  }).describe("Void associated with payment").optional(),
197
- scheduledAction: z.object({
198
- actionType: z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
199
- executionDate: z.date().describe("The date and time of the action.").optional().nullable()
197
+ scheduledAction: /* @__PURE__ */ z.object({
198
+ actionType: /* @__PURE__ */ z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
199
+ executionDate: /* @__PURE__ */ z.date().describe("The date and time of the action.").optional().nullable()
200
200
  }).describe("Scheduled action for this transaction").optional()
201
201
  }).describe("Authorization details.").optional(),
202
- chargebacks: z.array(
203
- z.object({
204
- _id: z.string().describe("Chargeback ID.").regex(
202
+ chargebacks: /* @__PURE__ */ z.array(
203
+ /* @__PURE__ */ z.object({
204
+ _id: /* @__PURE__ */ z.string().describe("Chargeback ID.").regex(
205
205
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
206
206
  "Must be a valid GUID"
207
207
  ).optional(),
208
- _createdDate: z.date().describe(
208
+ _createdDate: /* @__PURE__ */ z.date().describe(
209
209
  "Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
210
210
  ).optional().nullable(),
211
- _updatedDate: z.date().describe(
211
+ _updatedDate: /* @__PURE__ */ z.date().describe(
212
212
  "Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
213
213
  ).optional().nullable(),
214
- amount: z.object({
215
- amount: z.string().describe("Amount.").optional(),
216
- formattedAmount: z.string().describe(
214
+ amount: /* @__PURE__ */ z.object({
215
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
216
+ formattedAmount: /* @__PURE__ */ z.string().describe(
217
217
  "Amount formatted with currency symbol."
218
218
  ).optional()
219
219
  }).describe("Amount.").optional(),
220
- reversalAmount: z.object({
221
- amount: z.string().describe("Amount.").optional(),
222
- formattedAmount: z.string().describe(
220
+ reversalAmount: /* @__PURE__ */ z.object({
221
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
222
+ formattedAmount: /* @__PURE__ */ z.string().describe(
223
223
  "Amount formatted with currency symbol."
224
224
  ).optional()
225
225
  }).describe(
226
226
  "Reversal amount. Present only when status is REVERSED."
227
227
  ).optional(),
228
- status: z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
229
- externalId: z.string().describe("External chargeback ID.").regex(
228
+ status: /* @__PURE__ */ z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
229
+ externalId: /* @__PURE__ */ z.string().describe("External chargeback ID.").regex(
230
230
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
231
231
  "Must be a valid GUID"
232
232
  ).optional().nullable()
233
233
  })
234
234
  ).max(6).optional(),
235
- platformFee: z.object({
236
- amount: z.string().describe("Amount.").optional(),
237
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
235
+ platformFee: /* @__PURE__ */ z.object({
236
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
237
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
238
238
  }).describe(
239
239
  "Platform fee amount associated with this payment."
240
240
  ).optional(),
241
- paymentMethodName: z.object({
242
- buyerLanguageName: z.string().describe(
241
+ paymentMethodName: /* @__PURE__ */ z.object({
242
+ buyerLanguageName: /* @__PURE__ */ z.string().describe(
243
243
  "Translated payment method name in buyer language."
244
244
  ).max(150).optional().nullable(),
245
- siteLanguageName: z.string().describe(
245
+ siteLanguageName: /* @__PURE__ */ z.string().describe(
246
246
  "Translated payment method name in site owner language."
247
247
  ).max(150).optional().nullable(),
248
- userDefinedName: z.intersection(
249
- z.object({}),
250
- z.xor([
251
- z.object({
252
- predefined: z.never().optional(),
253
- custom: z.never().optional()
248
+ userDefinedName: /* @__PURE__ */ z.intersection(
249
+ /* @__PURE__ */ z.object({}),
250
+ /* @__PURE__ */ z.xor([
251
+ /* @__PURE__ */ z.object({
252
+ predefined: /* @__PURE__ */ z.never().optional(),
253
+ custom: /* @__PURE__ */ z.never().optional()
254
254
  }),
255
- z.object({
256
- custom: z.never().optional(),
257
- predefined: z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
255
+ /* @__PURE__ */ z.object({
256
+ custom: /* @__PURE__ */ z.never().optional(),
257
+ predefined: /* @__PURE__ */ z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
258
258
  }),
259
- z.object({
260
- predefined: z.never().optional(),
261
- custom: z.string().describe(
259
+ /* @__PURE__ */ z.object({
260
+ predefined: /* @__PURE__ */ z.never().optional(),
261
+ custom: /* @__PURE__ */ z.string().describe(
262
262
  'Custom payment method name provided by user.\n\nFor example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.'
263
263
  ).min(1).max(150)
264
264
  })
@@ -270,70 +270,72 @@ var ListTransactionsForSingleOrderResponse = /* @__PURE__ */ z.object({
270
270
  "Payment method with buyer and optional owner translations.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
271
271
  ).optional()
272
272
  }),
273
- z.xor([
274
- z.object({ creditCardDetails: z.never().optional() }),
275
- z.object({
276
- creditCardDetails: z.object({
277
- lastFourDigits: z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
278
- brand: z.string().describe("Card issuer's brand.").max(100).optional().nullable()
273
+ /* @__PURE__ */ z.xor([
274
+ /* @__PURE__ */ z.object({
275
+ creditCardDetails: /* @__PURE__ */ z.never().optional()
276
+ }),
277
+ /* @__PURE__ */ z.object({
278
+ creditCardDetails: /* @__PURE__ */ z.object({
279
+ lastFourDigits: /* @__PURE__ */ z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
280
+ brand: /* @__PURE__ */ z.string().describe("Card issuer's brand.").max(100).optional().nullable()
279
281
  }).describe("Credit card details.")
280
282
  })
281
283
  ])
282
284
  ).describe("Regular payment details.")
283
285
  }),
284
- z.object({
285
- regularPaymentDetails: z.never().optional(),
286
- membershipPaymentDetails: z.never().optional(),
287
- giftcardPaymentDetails: z.object({
288
- giftCardPaymentId: z.string().describe("Gift card payment ID.").max(100).optional(),
289
- appId: z.string().describe("ID of the app that created the gift card.").regex(
286
+ /* @__PURE__ */ z.object({
287
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
288
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
289
+ giftcardPaymentDetails: /* @__PURE__ */ z.object({
290
+ giftCardPaymentId: /* @__PURE__ */ z.string().describe("Gift card payment ID.").max(100).optional(),
291
+ appId: /* @__PURE__ */ z.string().describe("ID of the app that created the gift card.").regex(
290
292
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
291
293
  "Must be a valid GUID"
292
294
  ).optional(),
293
- voided: z.boolean().describe("Whether the gift card is voided.").optional(),
294
- obfuscatedCode: z.string().describe(
295
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the gift card is voided.").optional(),
296
+ obfuscatedCode: /* @__PURE__ */ z.string().describe(
295
297
  "Gift card code with all but the last four characters masked. For example, `************QXY1`."
296
298
  ).max(30).optional().nullable()
297
299
  }).describe("Gift card payment details.")
298
300
  }),
299
- z.object({
300
- regularPaymentDetails: z.never().optional(),
301
- giftcardPaymentDetails: z.never().optional(),
302
- membershipPaymentDetails: z.object({
303
- membershipId: z.string().describe("Membership ID.").max(200).optional(),
304
- lineItemId: z.string().describe(
301
+ /* @__PURE__ */ z.object({
302
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
303
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
304
+ membershipPaymentDetails: /* @__PURE__ */ z.object({
305
+ membershipId: /* @__PURE__ */ z.string().describe("Membership ID.").max(200).optional(),
306
+ lineItemId: /* @__PURE__ */ z.string().describe(
305
307
  "ID of the line item this membership applies to."
306
308
  ).min(1).max(100).optional(),
307
- status: z.enum([
309
+ status: /* @__PURE__ */ z.enum([
308
310
  "CHARGED",
309
311
  "CHARGE_FAILED",
310
312
  "CHARGE_PENDING",
311
313
  "VOIDED"
312
314
  ]).describe("Payment status.").optional(),
313
- name: z.object({
314
- original: z.string().describe("Membership name.").max(100).optional(),
315
- translated: z.string().describe(
315
+ name: /* @__PURE__ */ z.object({
316
+ original: /* @__PURE__ */ z.string().describe("Membership name.").max(100).optional(),
317
+ translated: /* @__PURE__ */ z.string().describe(
316
318
  "Translated membership name. Defaults to `original` when not provided."
317
319
  ).max(100).optional().nullable()
318
320
  }).describe("Membership name.").optional(),
319
- externalTransactionId: z.string().describe(
321
+ externalTransactionId: /* @__PURE__ */ z.string().describe(
320
322
  "The transaction ID in the membership system. Can be used to void the transaction."
321
323
  ).min(1).max(100).optional().nullable(),
322
- voided: z.boolean().describe("Whether the membership is voided.").optional(),
323
- providerAppId: z.string().describe(
324
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the membership is voided.").optional(),
325
+ providerAppId: /* @__PURE__ */ z.string().describe(
324
326
  "ID of the application providing this payment option."
325
327
  ).regex(
326
328
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
327
329
  "Must be a valid GUID"
328
330
  ).optional(),
329
- futureMembership: z.object({
330
- lineItemId: z.string().describe(
331
+ futureMembership: /* @__PURE__ */ z.object({
332
+ lineItemId: /* @__PURE__ */ z.string().describe(
331
333
  "ID of the plan line item in the order from which the membership will be created."
332
334
  ).regex(
333
335
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
334
336
  "Must be a valid GUID"
335
337
  ).optional(),
336
- benefitId: z.string().describe(
338
+ benefitId: /* @__PURE__ */ z.string().describe(
337
339
  "ID of the benefit the future membership will grant."
338
340
  ).max(200).optional()
339
341
  }).describe(
@@ -344,132 +346,132 @@ var ListTransactionsForSingleOrderResponse = /* @__PURE__ */ z.object({
344
346
  ])
345
347
  )
346
348
  ).max(100).optional(),
347
- refunds: z.array(
348
- z.object({
349
- _id: z.string().describe("Refund ID.").regex(
349
+ refunds: /* @__PURE__ */ z.array(
350
+ /* @__PURE__ */ z.object({
351
+ _id: /* @__PURE__ */ z.string().describe("Refund ID.").regex(
350
352
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
351
353
  "Must be a valid GUID"
352
354
  ).optional(),
353
- transactions: z.array(
354
- z.object({
355
- paymentId: z.string().describe("ID of the payment associated with this refund.").regex(
355
+ transactions: /* @__PURE__ */ z.array(
356
+ /* @__PURE__ */ z.object({
357
+ paymentId: /* @__PURE__ */ z.string().describe("ID of the payment associated with this refund.").regex(
356
358
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
357
359
  "Must be a valid GUID"
358
360
  ).optional(),
359
- amount: z.object({
360
- amount: z.string().describe("Amount.").optional(),
361
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
361
+ amount: /* @__PURE__ */ z.object({
362
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
363
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
362
364
  }).describe("Refund amount.").optional(),
363
- refundStatus: z.enum([
365
+ refundStatus: /* @__PURE__ */ z.enum([
364
366
  "PENDING",
365
367
  "SUCCEEDED",
366
368
  "FAILED",
367
369
  "SCHEDULED",
368
370
  "STARTED"
369
371
  ]).describe("Refund status.").optional(),
370
- refundStatusInfo: z.object({
371
- paymentGatewayReasonCode: z.string().describe(
372
+ refundStatusInfo: /* @__PURE__ */ z.object({
373
+ paymentGatewayReasonCode: /* @__PURE__ */ z.string().describe(
372
374
  "Reason code for the refund's current status.\n\nLearn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes)."
373
375
  ).min(1).max(10).optional().nullable(),
374
- description: z.string().describe(
376
+ description: /* @__PURE__ */ z.string().describe(
375
377
  "Free text explanation of current refund status."
376
378
  ).min(1).max(1e3).optional().nullable()
377
379
  }).describe("Optional details of current refund status.").optional(),
378
- gatewayRefundId: z.string().describe(
380
+ gatewayRefundId: /* @__PURE__ */ z.string().describe(
379
381
  "Payment gateway's refund ID.\nThis field is only returned when the value of `external_refund` is `false`."
380
382
  ).regex(
381
383
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
382
384
  "Must be a valid GUID"
383
385
  ).optional().nullable(),
384
- providerRefundId: z.string().describe(
386
+ providerRefundId: /* @__PURE__ */ z.string().describe(
385
387
  "ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds."
386
388
  ).optional().nullable(),
387
- externalRefund: z.boolean().describe(
389
+ externalRefund: /* @__PURE__ */ z.boolean().describe(
388
390
  "Whether refund was made externally and manually on the payment provider's side."
389
391
  ).optional()
390
392
  })
391
393
  ).min(0).max(50).optional(),
392
- details: z.object({
393
- items: z.array(
394
- z.object({
395
- lineItemId: z.string().describe("Line item ID the refunded line item.").regex(
394
+ details: /* @__PURE__ */ z.object({
395
+ items: /* @__PURE__ */ z.array(
396
+ /* @__PURE__ */ z.object({
397
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID the refunded line item.").regex(
396
398
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
397
399
  "Must be a valid GUID"
398
400
  ).optional(),
399
- quantity: z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
401
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
400
402
  })
401
403
  ).min(0).max(300).optional(),
402
- shippingIncluded: z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
403
- reason: z.string().describe(
404
+ shippingIncluded: /* @__PURE__ */ z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
405
+ reason: /* @__PURE__ */ z.string().describe(
404
406
  "Reason for the refund, provided by customer (optional)."
405
407
  ).max(200).optional().nullable(),
406
- lineItems: z.array(
407
- z.object({
408
- lineItemId: z.string().describe("Line item ID.").regex(
408
+ lineItems: /* @__PURE__ */ z.array(
409
+ /* @__PURE__ */ z.object({
410
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
409
411
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
410
412
  "Must be a valid GUID"
411
413
  ).optional(),
412
- quantity: z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
414
+ quantity: /* @__PURE__ */ z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
413
415
  })
414
416
  ).min(0).max(300).optional(),
415
- additionalFees: z.array(
416
- z.object({
417
- additionalFeeId: z.string().describe("Additional fee ID.").regex(
417
+ additionalFees: /* @__PURE__ */ z.array(
418
+ /* @__PURE__ */ z.object({
419
+ additionalFeeId: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
418
420
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
419
421
  "Must be a valid GUID"
420
422
  ).optional(),
421
- amount: z.object({
422
- amount: z.string().describe("Amount.").optional(),
423
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
423
+ amount: /* @__PURE__ */ z.object({
424
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
425
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
424
426
  }).describe("Refund amount.").optional()
425
427
  })
426
428
  ).min(0).max(100).optional(),
427
- shipping: z.object({
428
- amount: z.object({
429
- amount: z.string().describe("Amount.").optional(),
430
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
429
+ shipping: /* @__PURE__ */ z.object({
430
+ amount: /* @__PURE__ */ z.object({
431
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
432
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
431
433
  }).describe("Refund amount.").optional()
432
434
  }).describe("Shipping amount that was refunded.").optional()
433
435
  }).describe("Refund business details.").optional(),
434
- _createdDate: z.date().describe(
436
+ _createdDate: /* @__PURE__ */ z.date().describe(
435
437
  "Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
436
438
  ).optional().nullable(),
437
- summary: z.object({
438
- requestedRefund: z.object({
439
- amount: z.string().describe("Amount.").optional(),
440
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
439
+ summary: /* @__PURE__ */ z.object({
440
+ requestedRefund: /* @__PURE__ */ z.object({
441
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
442
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
441
443
  }).describe("Total amount requested for refund.").optional(),
442
- pendingRefund: z.object({
443
- amount: z.string().describe("Amount.").optional(),
444
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
444
+ pendingRefund: /* @__PURE__ */ z.object({
445
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
446
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
445
447
  }).describe(
446
448
  "Pending refund amount - the portion of `requestedRefund` that is still pending."
447
449
  ).optional(),
448
- refunded: z.object({
449
- amount: z.string().describe("Amount.").optional(),
450
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
450
+ refunded: /* @__PURE__ */ z.object({
451
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
452
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
451
453
  }).describe(
452
454
  "Refunded amount - the portion of `requestedRefund` that refunded successfully."
453
455
  ).optional(),
454
- failedRefundAmount: z.object({
455
- amount: z.string().describe("Amount.").optional(),
456
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
456
+ failedRefundAmount: /* @__PURE__ */ z.object({
457
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
458
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
457
459
  }).describe(
458
460
  "Failed refund amount - the portion of `requestedRefund` that failed."
459
461
  ).optional(),
460
- pending: z.boolean().describe(
462
+ pending: /* @__PURE__ */ z.boolean().describe(
461
463
  'Whether at least one refund transaction is still in `"PENDING"` status.'
462
464
  ).optional(),
463
- breakdown: z.object({
464
- lineItems: z.array(
465
- z.object({
466
- lineItemId: z.string().describe("ID of the refunded line item.").regex(
465
+ breakdown: /* @__PURE__ */ z.object({
466
+ lineItems: /* @__PURE__ */ z.array(
467
+ /* @__PURE__ */ z.object({
468
+ lineItemId: /* @__PURE__ */ z.string().describe("ID of the refunded line item.").regex(
467
469
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
468
470
  "Must be a valid GUID"
469
471
  ).optional(),
470
- totalRefundedAmount: z.object({
471
- amount: z.string().describe("Amount.").optional(),
472
- formattedAmount: z.string().describe(
472
+ totalRefundedAmount: /* @__PURE__ */ z.object({
473
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
474
+ formattedAmount: /* @__PURE__ */ z.string().describe(
473
475
  "Amount formatted with currency symbol."
474
476
  ).optional()
475
477
  }).describe(
@@ -481,7 +483,7 @@ var ListTransactionsForSingleOrderResponse = /* @__PURE__ */ z.object({
481
483
  "Breakdown of refunded items. Available only after refund is complete."
482
484
  ).optional()
483
485
  }).describe("Aggregated refund summary.").optional(),
484
- requestingServiceAppId: z.string().describe("ID of the app that initiated this refund.").regex(
486
+ requestingServiceAppId: /* @__PURE__ */ z.string().describe("ID of the app that initiated this refund.").regex(
485
487
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
486
488
  "Must be a valid GUID"
487
489
  ).optional().nullable()
@@ -490,56 +492,56 @@ var ListTransactionsForSingleOrderResponse = /* @__PURE__ */ z.object({
490
492
  }).describe("Order ID and its associated transactions.").optional()
491
493
  });
492
494
  var ListTransactionsForMultipleOrdersRequest = /* @__PURE__ */ z.object({
493
- orderIds: z.array(z.string()).min(1).max(100)
495
+ orderIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(100)
494
496
  });
495
497
  var ListTransactionsForMultipleOrdersResponse = /* @__PURE__ */ z.object(
496
498
  {
497
- orderTransactions: z.array(
498
- z.object({
499
- orderId: z.string().describe("Order ID.").regex(
499
+ orderTransactions: /* @__PURE__ */ z.array(
500
+ /* @__PURE__ */ z.object({
501
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
500
502
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
501
503
  "Must be a valid GUID"
502
504
  ).optional(),
503
- payments: z.array(
504
- z.intersection(
505
- z.object({
506
- _id: z.string().describe("Payment ID.").regex(
505
+ payments: /* @__PURE__ */ z.array(
506
+ /* @__PURE__ */ z.intersection(
507
+ /* @__PURE__ */ z.object({
508
+ _id: /* @__PURE__ */ z.string().describe("Payment ID.").regex(
507
509
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
508
510
  "Must be a valid GUID"
509
511
  ).optional().nullable(),
510
- _createdDate: z.date().describe(
512
+ _createdDate: /* @__PURE__ */ z.date().describe(
511
513
  "Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
512
514
  ).optional().nullable(),
513
- _updatedDate: z.date().describe(
515
+ _updatedDate: /* @__PURE__ */ z.date().describe(
514
516
  "Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
515
517
  ).optional().nullable(),
516
- amount: z.object({
517
- amount: z.string().describe("Amount.").optional(),
518
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
518
+ amount: /* @__PURE__ */ z.object({
519
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
520
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
519
521
  }).describe("Payment amount.").optional(),
520
- refundDisabled: z.boolean().describe(
522
+ refundDisabled: /* @__PURE__ */ z.boolean().describe(
521
523
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
522
524
  ).optional(),
523
- supportReceiptGeneration: z.boolean().describe(
525
+ supportReceiptGeneration: /* @__PURE__ */ z.boolean().describe(
524
526
  "Whether receipt generation is allowed for this payment.\n+ `true`: This payment supports receipt generation.\n+ `false`: This payment doesn't support receipt generation, or a receipt was already generated."
525
527
  ).optional(),
526
- cashRounding: z.object({
527
- unroundedAmount: z.object({
528
- amount: z.string().describe("Amount.").optional(),
529
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
528
+ cashRounding: /* @__PURE__ */ z.object({
529
+ unroundedAmount: /* @__PURE__ */ z.object({
530
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
531
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
530
532
  }).describe(
531
533
  "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
532
534
  ).optional(),
533
- roundingAdjustment: z.object({
534
- amount: z.string().describe("Amount, can be negative or positive.").optional(),
535
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
535
+ roundingAdjustment: /* @__PURE__ */ z.object({
536
+ amount: /* @__PURE__ */ z.string().describe("Amount, can be negative or positive.").optional(),
537
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
536
538
  }).describe(
537
539
  "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
538
540
  ).optional()
539
541
  }).describe(
540
542
  "Details about cash rounding applied to this payment, when relevant."
541
543
  ).optional(),
542
- status: z.enum([
544
+ status: /* @__PURE__ */ z.enum([
543
545
  "APPROVED",
544
546
  "PENDING",
545
547
  "PENDING_MERCHANT",
@@ -552,38 +554,38 @@ var ListTransactionsForMultipleOrdersResponse = /* @__PURE__ */ z.object(
552
554
  ]).describe(
553
555
  "Overall payment status.\n\nGift card and membership payments support only `APPROVED`, `PENDING`, `CANCELED`, `DECLINED`, and `VOIDED`. The remaining values apply to regular payments."
554
556
  ).optional(),
555
- chargeCorrelationId: z.string().describe(
557
+ chargeCorrelationId: /* @__PURE__ */ z.string().describe(
556
558
  "ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request."
557
559
  ).regex(
558
560
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
559
561
  "Must be a valid GUID"
560
562
  ).optional().nullable()
561
563
  }),
562
- z.xor([
563
- z.object({
564
- regularPaymentDetails: z.never().optional(),
565
- giftcardPaymentDetails: z.never().optional(),
566
- membershipPaymentDetails: z.never().optional()
564
+ /* @__PURE__ */ z.xor([
565
+ /* @__PURE__ */ z.object({
566
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
567
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
568
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional()
567
569
  }),
568
- z.object({
569
- giftcardPaymentDetails: z.never().optional(),
570
- membershipPaymentDetails: z.never().optional(),
571
- regularPaymentDetails: z.intersection(
572
- z.object({
573
- paymentOrderId: z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
574
- gatewayTransactionId: z.string().describe(
570
+ /* @__PURE__ */ z.object({
571
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
572
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
573
+ regularPaymentDetails: /* @__PURE__ */ z.intersection(
574
+ /* @__PURE__ */ z.object({
575
+ paymentOrderId: /* @__PURE__ */ z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
576
+ gatewayTransactionId: /* @__PURE__ */ z.string().describe(
575
577
  "Payment gateway's transaction ID.\nThis field is only returned when the value of `offline_payment` is `false`."
576
578
  ).max(100).optional().nullable(),
577
- paymentMethod: z.string().describe(
579
+ paymentMethod: /* @__PURE__ */ z.string().describe(
578
580
  "Payment method.\nDeprecated. Use `paymentMethodName.buyerLanguageName` instead.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
579
581
  ).max(150).optional().nullable(),
580
- providerTransactionId: z.string().describe(
582
+ providerTransactionId: /* @__PURE__ */ z.string().describe(
581
583
  "Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments."
582
584
  ).max(100).optional().nullable(),
583
- offlinePayment: z.boolean().describe(
585
+ offlinePayment: /* @__PURE__ */ z.boolean().describe(
584
586
  "Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager."
585
587
  ).optional(),
586
- status: z.enum([
588
+ status: /* @__PURE__ */ z.enum([
587
589
  "UNDEFINED",
588
590
  "APPROVED",
589
591
  "PENDING",
@@ -595,126 +597,126 @@ var ListTransactionsForMultipleOrdersResponse = /* @__PURE__ */ z.object(
595
597
  "AUTHORIZED",
596
598
  "VOIDED"
597
599
  ]).describe("Payment status.").optional(),
598
- savedPaymentMethod: z.boolean().describe(
600
+ savedPaymentMethod: /* @__PURE__ */ z.boolean().describe(
599
601
  "Whether there is a payment agreement that allows for future charges."
600
602
  ).optional(),
601
- authorizationDetails: z.object({
602
- delayedCapture: z.boolean().describe(
603
+ authorizationDetails: /* @__PURE__ */ z.object({
604
+ delayedCapture: /* @__PURE__ */ z.boolean().describe(
603
605
  "Whether the authorized payment is of a delayed capture."
604
606
  ).optional(),
605
- authorizedDate: z.date().describe(
607
+ authorizedDate: /* @__PURE__ */ z.date().describe(
606
608
  "Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
607
609
  ).optional().nullable(),
608
- captures: z.array(
609
- z.object({
610
- _id: z.string().describe("Capture ID.").regex(
610
+ captures: /* @__PURE__ */ z.array(
611
+ /* @__PURE__ */ z.object({
612
+ _id: /* @__PURE__ */ z.string().describe("Capture ID.").regex(
611
613
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
612
614
  "Must be a valid GUID"
613
615
  ).optional().nullable(),
614
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
615
- amount: z.object({
616
- amount: z.string().describe("Amount.").optional(),
617
- formattedAmount: z.string().describe(
616
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
617
+ amount: /* @__PURE__ */ z.object({
618
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
619
+ formattedAmount: /* @__PURE__ */ z.string().describe(
618
620
  "Amount formatted with currency symbol."
619
621
  ).optional()
620
622
  }).describe("Amount of this capture").optional(),
621
- _createdDate: z.date().describe(
623
+ _createdDate: /* @__PURE__ */ z.date().describe(
622
624
  "Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
623
625
  ).optional().nullable(),
624
- failureDetails: z.object({
625
- failureCode: z.string().max(100).optional()
626
+ failureDetails: /* @__PURE__ */ z.object({
627
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
626
628
  }).describe(
627
629
  "In case of status is FAILED may contain failure details"
628
630
  ).optional()
629
631
  })
630
632
  ).max(1).optional(),
631
- void: z.object({
632
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
633
- voidedDate: z.date().describe(
633
+ void: /* @__PURE__ */ z.object({
634
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
635
+ voidedDate: /* @__PURE__ */ z.date().describe(
634
636
  "Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
635
637
  ).optional().nullable(),
636
- failureDetails: z.object({
637
- failureCode: z.string().max(100).optional()
638
+ failureDetails: /* @__PURE__ */ z.object({
639
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
638
640
  }).describe(
639
641
  "In case of status is FAILED may contain failure details"
640
642
  ).optional(),
641
- reason: z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
643
+ reason: /* @__PURE__ */ z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
642
644
  }).describe("Void associated with payment").optional(),
643
- scheduledAction: z.object({
644
- actionType: z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
645
- executionDate: z.date().describe(
645
+ scheduledAction: /* @__PURE__ */ z.object({
646
+ actionType: /* @__PURE__ */ z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
647
+ executionDate: /* @__PURE__ */ z.date().describe(
646
648
  "The date and time of the action."
647
649
  ).optional().nullable()
648
650
  }).describe(
649
651
  "Scheduled action for this transaction"
650
652
  ).optional()
651
653
  }).describe("Authorization details.").optional(),
652
- chargebacks: z.array(
653
- z.object({
654
- _id: z.string().describe("Chargeback ID.").regex(
654
+ chargebacks: /* @__PURE__ */ z.array(
655
+ /* @__PURE__ */ z.object({
656
+ _id: /* @__PURE__ */ z.string().describe("Chargeback ID.").regex(
655
657
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
656
658
  "Must be a valid GUID"
657
659
  ).optional(),
658
- _createdDate: z.date().describe(
660
+ _createdDate: /* @__PURE__ */ z.date().describe(
659
661
  "Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
660
662
  ).optional().nullable(),
661
- _updatedDate: z.date().describe(
663
+ _updatedDate: /* @__PURE__ */ z.date().describe(
662
664
  "Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
663
665
  ).optional().nullable(),
664
- amount: z.object({
665
- amount: z.string().describe("Amount.").optional(),
666
- formattedAmount: z.string().describe(
666
+ amount: /* @__PURE__ */ z.object({
667
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
668
+ formattedAmount: /* @__PURE__ */ z.string().describe(
667
669
  "Amount formatted with currency symbol."
668
670
  ).optional()
669
671
  }).describe("Amount.").optional(),
670
- reversalAmount: z.object({
671
- amount: z.string().describe("Amount.").optional(),
672
- formattedAmount: z.string().describe(
672
+ reversalAmount: /* @__PURE__ */ z.object({
673
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
674
+ formattedAmount: /* @__PURE__ */ z.string().describe(
673
675
  "Amount formatted with currency symbol."
674
676
  ).optional()
675
677
  }).describe(
676
678
  "Reversal amount. Present only when status is REVERSED."
677
679
  ).optional(),
678
- status: z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
679
- externalId: z.string().describe("External chargeback ID.").regex(
680
+ status: /* @__PURE__ */ z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
681
+ externalId: /* @__PURE__ */ z.string().describe("External chargeback ID.").regex(
680
682
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
681
683
  "Must be a valid GUID"
682
684
  ).optional().nullable()
683
685
  })
684
686
  ).max(6).optional(),
685
- platformFee: z.object({
686
- amount: z.string().describe("Amount.").optional(),
687
- formattedAmount: z.string().describe(
687
+ platformFee: /* @__PURE__ */ z.object({
688
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
689
+ formattedAmount: /* @__PURE__ */ z.string().describe(
688
690
  "Amount formatted with currency symbol."
689
691
  ).optional()
690
692
  }).describe(
691
693
  "Platform fee amount associated with this payment."
692
694
  ).optional(),
693
- paymentMethodName: z.object({
694
- buyerLanguageName: z.string().describe(
695
+ paymentMethodName: /* @__PURE__ */ z.object({
696
+ buyerLanguageName: /* @__PURE__ */ z.string().describe(
695
697
  "Translated payment method name in buyer language."
696
698
  ).max(150).optional().nullable(),
697
- siteLanguageName: z.string().describe(
699
+ siteLanguageName: /* @__PURE__ */ z.string().describe(
698
700
  "Translated payment method name in site owner language."
699
701
  ).max(150).optional().nullable(),
700
- userDefinedName: z.intersection(
701
- z.object({}),
702
- z.xor([
703
- z.object({
704
- predefined: z.never().optional(),
705
- custom: z.never().optional()
702
+ userDefinedName: /* @__PURE__ */ z.intersection(
703
+ /* @__PURE__ */ z.object({}),
704
+ /* @__PURE__ */ z.xor([
705
+ /* @__PURE__ */ z.object({
706
+ predefined: /* @__PURE__ */ z.never().optional(),
707
+ custom: /* @__PURE__ */ z.never().optional()
706
708
  }),
707
- z.object({
708
- custom: z.never().optional(),
709
- predefined: z.enum([
709
+ /* @__PURE__ */ z.object({
710
+ custom: /* @__PURE__ */ z.never().optional(),
711
+ predefined: /* @__PURE__ */ z.enum([
710
712
  "CASH",
711
713
  "BANK_TRANSFER",
712
714
  "CHECK"
713
715
  ]).describe("Predefined payment method.")
714
716
  }),
715
- z.object({
716
- predefined: z.never().optional(),
717
- custom: z.string().describe(
717
+ /* @__PURE__ */ z.object({
718
+ predefined: /* @__PURE__ */ z.never().optional(),
719
+ custom: /* @__PURE__ */ z.string().describe(
718
720
  'Custom payment method name provided by user.\n\nFor example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.'
719
721
  ).min(1).max(150)
720
722
  })
@@ -726,72 +728,74 @@ var ListTransactionsForMultipleOrdersResponse = /* @__PURE__ */ z.object(
726
728
  "Payment method with buyer and optional owner translations.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
727
729
  ).optional()
728
730
  }),
729
- z.xor([
730
- z.object({ creditCardDetails: z.never().optional() }),
731
- z.object({
732
- creditCardDetails: z.object({
733
- lastFourDigits: z.string().describe(
731
+ /* @__PURE__ */ z.xor([
732
+ /* @__PURE__ */ z.object({
733
+ creditCardDetails: /* @__PURE__ */ z.never().optional()
734
+ }),
735
+ /* @__PURE__ */ z.object({
736
+ creditCardDetails: /* @__PURE__ */ z.object({
737
+ lastFourDigits: /* @__PURE__ */ z.string().describe(
734
738
  "The last 4 digits of the card number."
735
739
  ).max(4).optional().nullable(),
736
- brand: z.string().describe("Card issuer's brand.").max(100).optional().nullable()
740
+ brand: /* @__PURE__ */ z.string().describe("Card issuer's brand.").max(100).optional().nullable()
737
741
  }).describe("Credit card details.")
738
742
  })
739
743
  ])
740
744
  ).describe("Regular payment details.")
741
745
  }),
742
- z.object({
743
- regularPaymentDetails: z.never().optional(),
744
- membershipPaymentDetails: z.never().optional(),
745
- giftcardPaymentDetails: z.object({
746
- giftCardPaymentId: z.string().describe("Gift card payment ID.").max(100).optional(),
747
- appId: z.string().describe("ID of the app that created the gift card.").regex(
746
+ /* @__PURE__ */ z.object({
747
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
748
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
749
+ giftcardPaymentDetails: /* @__PURE__ */ z.object({
750
+ giftCardPaymentId: /* @__PURE__ */ z.string().describe("Gift card payment ID.").max(100).optional(),
751
+ appId: /* @__PURE__ */ z.string().describe("ID of the app that created the gift card.").regex(
748
752
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
749
753
  "Must be a valid GUID"
750
754
  ).optional(),
751
- voided: z.boolean().describe("Whether the gift card is voided.").optional(),
752
- obfuscatedCode: z.string().describe(
755
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the gift card is voided.").optional(),
756
+ obfuscatedCode: /* @__PURE__ */ z.string().describe(
753
757
  "Gift card code with all but the last four characters masked. For example, `************QXY1`."
754
758
  ).max(30).optional().nullable()
755
759
  }).describe("Gift card payment details.")
756
760
  }),
757
- z.object({
758
- regularPaymentDetails: z.never().optional(),
759
- giftcardPaymentDetails: z.never().optional(),
760
- membershipPaymentDetails: z.object({
761
- membershipId: z.string().describe("Membership ID.").max(200).optional(),
762
- lineItemId: z.string().describe(
761
+ /* @__PURE__ */ z.object({
762
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
763
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
764
+ membershipPaymentDetails: /* @__PURE__ */ z.object({
765
+ membershipId: /* @__PURE__ */ z.string().describe("Membership ID.").max(200).optional(),
766
+ lineItemId: /* @__PURE__ */ z.string().describe(
763
767
  "ID of the line item this membership applies to."
764
768
  ).min(1).max(100).optional(),
765
- status: z.enum([
769
+ status: /* @__PURE__ */ z.enum([
766
770
  "CHARGED",
767
771
  "CHARGE_FAILED",
768
772
  "CHARGE_PENDING",
769
773
  "VOIDED"
770
774
  ]).describe("Payment status.").optional(),
771
- name: z.object({
772
- original: z.string().describe("Membership name.").max(100).optional(),
773
- translated: z.string().describe(
775
+ name: /* @__PURE__ */ z.object({
776
+ original: /* @__PURE__ */ z.string().describe("Membership name.").max(100).optional(),
777
+ translated: /* @__PURE__ */ z.string().describe(
774
778
  "Translated membership name. Defaults to `original` when not provided."
775
779
  ).max(100).optional().nullable()
776
780
  }).describe("Membership name.").optional(),
777
- externalTransactionId: z.string().describe(
781
+ externalTransactionId: /* @__PURE__ */ z.string().describe(
778
782
  "The transaction ID in the membership system. Can be used to void the transaction."
779
783
  ).min(1).max(100).optional().nullable(),
780
- voided: z.boolean().describe("Whether the membership is voided.").optional(),
781
- providerAppId: z.string().describe(
784
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the membership is voided.").optional(),
785
+ providerAppId: /* @__PURE__ */ z.string().describe(
782
786
  "ID of the application providing this payment option."
783
787
  ).regex(
784
788
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
785
789
  "Must be a valid GUID"
786
790
  ).optional(),
787
- futureMembership: z.object({
788
- lineItemId: z.string().describe(
791
+ futureMembership: /* @__PURE__ */ z.object({
792
+ lineItemId: /* @__PURE__ */ z.string().describe(
789
793
  "ID of the plan line item in the order from which the membership will be created."
790
794
  ).regex(
791
795
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
792
796
  "Must be a valid GUID"
793
797
  ).optional(),
794
- benefitId: z.string().describe(
798
+ benefitId: /* @__PURE__ */ z.string().describe(
795
799
  "ID of the benefit the future membership will grant."
796
800
  ).max(200).optional()
797
801
  }).describe(
@@ -802,138 +806,138 @@ var ListTransactionsForMultipleOrdersResponse = /* @__PURE__ */ z.object(
802
806
  ])
803
807
  )
804
808
  ).max(100).optional(),
805
- refunds: z.array(
806
- z.object({
807
- _id: z.string().describe("Refund ID.").regex(
809
+ refunds: /* @__PURE__ */ z.array(
810
+ /* @__PURE__ */ z.object({
811
+ _id: /* @__PURE__ */ z.string().describe("Refund ID.").regex(
808
812
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
809
813
  "Must be a valid GUID"
810
814
  ).optional(),
811
- transactions: z.array(
812
- z.object({
813
- paymentId: z.string().describe(
815
+ transactions: /* @__PURE__ */ z.array(
816
+ /* @__PURE__ */ z.object({
817
+ paymentId: /* @__PURE__ */ z.string().describe(
814
818
  "ID of the payment associated with this refund."
815
819
  ).regex(
816
820
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
817
821
  "Must be a valid GUID"
818
822
  ).optional(),
819
- amount: z.object({
820
- amount: z.string().describe("Amount.").optional(),
821
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
823
+ amount: /* @__PURE__ */ z.object({
824
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
825
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
822
826
  }).describe("Refund amount.").optional(),
823
- refundStatus: z.enum([
827
+ refundStatus: /* @__PURE__ */ z.enum([
824
828
  "PENDING",
825
829
  "SUCCEEDED",
826
830
  "FAILED",
827
831
  "SCHEDULED",
828
832
  "STARTED"
829
833
  ]).describe("Refund status.").optional(),
830
- refundStatusInfo: z.object({
831
- paymentGatewayReasonCode: z.string().describe(
834
+ refundStatusInfo: /* @__PURE__ */ z.object({
835
+ paymentGatewayReasonCode: /* @__PURE__ */ z.string().describe(
832
836
  "Reason code for the refund's current status.\n\nLearn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes)."
833
837
  ).min(1).max(10).optional().nullable(),
834
- description: z.string().describe(
838
+ description: /* @__PURE__ */ z.string().describe(
835
839
  "Free text explanation of current refund status."
836
840
  ).min(1).max(1e3).optional().nullable()
837
841
  }).describe("Optional details of current refund status.").optional(),
838
- gatewayRefundId: z.string().describe(
842
+ gatewayRefundId: /* @__PURE__ */ z.string().describe(
839
843
  "Payment gateway's refund ID.\nThis field is only returned when the value of `external_refund` is `false`."
840
844
  ).regex(
841
845
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
842
846
  "Must be a valid GUID"
843
847
  ).optional().nullable(),
844
- providerRefundId: z.string().describe(
848
+ providerRefundId: /* @__PURE__ */ z.string().describe(
845
849
  "ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds."
846
850
  ).optional().nullable(),
847
- externalRefund: z.boolean().describe(
851
+ externalRefund: /* @__PURE__ */ z.boolean().describe(
848
852
  "Whether refund was made externally and manually on the payment provider's side."
849
853
  ).optional()
850
854
  })
851
855
  ).min(0).max(50).optional(),
852
- details: z.object({
853
- items: z.array(
854
- z.object({
855
- lineItemId: z.string().describe("Line item ID the refunded line item.").regex(
856
+ details: /* @__PURE__ */ z.object({
857
+ items: /* @__PURE__ */ z.array(
858
+ /* @__PURE__ */ z.object({
859
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID the refunded line item.").regex(
856
860
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
857
861
  "Must be a valid GUID"
858
862
  ).optional(),
859
- quantity: z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
863
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
860
864
  })
861
865
  ).min(0).max(300).optional(),
862
- shippingIncluded: z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
863
- reason: z.string().describe(
866
+ shippingIncluded: /* @__PURE__ */ z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
867
+ reason: /* @__PURE__ */ z.string().describe(
864
868
  "Reason for the refund, provided by customer (optional)."
865
869
  ).max(200).optional().nullable(),
866
- lineItems: z.array(
867
- z.object({
868
- lineItemId: z.string().describe("Line item ID.").regex(
870
+ lineItems: /* @__PURE__ */ z.array(
871
+ /* @__PURE__ */ z.object({
872
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
869
873
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
870
874
  "Must be a valid GUID"
871
875
  ).optional(),
872
- quantity: z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
876
+ quantity: /* @__PURE__ */ z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
873
877
  })
874
878
  ).min(0).max(300).optional(),
875
- additionalFees: z.array(
876
- z.object({
877
- additionalFeeId: z.string().describe("Additional fee ID.").regex(
879
+ additionalFees: /* @__PURE__ */ z.array(
880
+ /* @__PURE__ */ z.object({
881
+ additionalFeeId: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
878
882
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
879
883
  "Must be a valid GUID"
880
884
  ).optional(),
881
- amount: z.object({
882
- amount: z.string().describe("Amount.").optional(),
883
- formattedAmount: z.string().describe(
885
+ amount: /* @__PURE__ */ z.object({
886
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
887
+ formattedAmount: /* @__PURE__ */ z.string().describe(
884
888
  "Amount formatted with currency symbol."
885
889
  ).optional()
886
890
  }).describe("Refund amount.").optional()
887
891
  })
888
892
  ).min(0).max(100).optional(),
889
- shipping: z.object({
890
- amount: z.object({
891
- amount: z.string().describe("Amount.").optional(),
892
- formattedAmount: z.string().describe(
893
+ shipping: /* @__PURE__ */ z.object({
894
+ amount: /* @__PURE__ */ z.object({
895
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
896
+ formattedAmount: /* @__PURE__ */ z.string().describe(
893
897
  "Amount formatted with currency symbol."
894
898
  ).optional()
895
899
  }).describe("Refund amount.").optional()
896
900
  }).describe("Shipping amount that was refunded.").optional()
897
901
  }).describe("Refund business details.").optional(),
898
- _createdDate: z.date().describe(
902
+ _createdDate: /* @__PURE__ */ z.date().describe(
899
903
  "Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
900
904
  ).optional().nullable(),
901
- summary: z.object({
902
- requestedRefund: z.object({
903
- amount: z.string().describe("Amount.").optional(),
904
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
905
+ summary: /* @__PURE__ */ z.object({
906
+ requestedRefund: /* @__PURE__ */ z.object({
907
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
908
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
905
909
  }).describe("Total amount requested for refund.").optional(),
906
- pendingRefund: z.object({
907
- amount: z.string().describe("Amount.").optional(),
908
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
910
+ pendingRefund: /* @__PURE__ */ z.object({
911
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
912
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
909
913
  }).describe(
910
914
  "Pending refund amount - the portion of `requestedRefund` that is still pending."
911
915
  ).optional(),
912
- refunded: z.object({
913
- amount: z.string().describe("Amount.").optional(),
914
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
916
+ refunded: /* @__PURE__ */ z.object({
917
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
918
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
915
919
  }).describe(
916
920
  "Refunded amount - the portion of `requestedRefund` that refunded successfully."
917
921
  ).optional(),
918
- failedRefundAmount: z.object({
919
- amount: z.string().describe("Amount.").optional(),
920
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
922
+ failedRefundAmount: /* @__PURE__ */ z.object({
923
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
924
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
921
925
  }).describe(
922
926
  "Failed refund amount - the portion of `requestedRefund` that failed."
923
927
  ).optional(),
924
- pending: z.boolean().describe(
928
+ pending: /* @__PURE__ */ z.boolean().describe(
925
929
  'Whether at least one refund transaction is still in `"PENDING"` status.'
926
930
  ).optional(),
927
- breakdown: z.object({
928
- lineItems: z.array(
929
- z.object({
930
- lineItemId: z.string().describe("ID of the refunded line item.").regex(
931
+ breakdown: /* @__PURE__ */ z.object({
932
+ lineItems: /* @__PURE__ */ z.array(
933
+ /* @__PURE__ */ z.object({
934
+ lineItemId: /* @__PURE__ */ z.string().describe("ID of the refunded line item.").regex(
931
935
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
932
936
  "Must be a valid GUID"
933
937
  ).optional(),
934
- totalRefundedAmount: z.object({
935
- amount: z.string().describe("Amount.").optional(),
936
- formattedAmount: z.string().describe(
938
+ totalRefundedAmount: /* @__PURE__ */ z.object({
939
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
940
+ formattedAmount: /* @__PURE__ */ z.string().describe(
937
941
  "Amount formatted with currency symbol."
938
942
  ).optional()
939
943
  }).describe(
@@ -945,7 +949,7 @@ var ListTransactionsForMultipleOrdersResponse = /* @__PURE__ */ z.object(
945
949
  "Breakdown of refunded items. Available only after refund is complete."
946
950
  ).optional()
947
951
  }).describe("Aggregated refund summary.").optional(),
948
- requestingServiceAppId: z.string().describe("ID of the app that initiated this refund.").regex(
952
+ requestingServiceAppId: /* @__PURE__ */ z.string().describe("ID of the app that initiated this refund.").regex(
949
953
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
950
954
  "Must be a valid GUID"
951
955
  ).optional().nullable()
@@ -956,50 +960,50 @@ var ListTransactionsForMultipleOrdersResponse = /* @__PURE__ */ z.object(
956
960
  }
957
961
  );
958
962
  var AddPaymentsRequest = /* @__PURE__ */ z.object({
959
- orderId: z.string().describe("Order ID.").regex(
963
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
960
964
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
961
965
  "Must be a valid GUID"
962
966
  ),
963
- payments: z.array(
964
- z.intersection(
965
- z.object({
966
- _id: z.string().describe("Payment ID.").regex(
967
+ payments: /* @__PURE__ */ z.array(
968
+ /* @__PURE__ */ z.intersection(
969
+ /* @__PURE__ */ z.object({
970
+ _id: /* @__PURE__ */ z.string().describe("Payment ID.").regex(
967
971
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
968
972
  "Must be a valid GUID"
969
973
  ).optional().nullable(),
970
- _createdDate: z.date().describe(
974
+ _createdDate: /* @__PURE__ */ z.date().describe(
971
975
  "Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
972
976
  ).optional().nullable(),
973
- _updatedDate: z.date().describe(
977
+ _updatedDate: /* @__PURE__ */ z.date().describe(
974
978
  "Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
975
979
  ).optional().nullable(),
976
- amount: z.object({
977
- amount: z.string().describe("Amount.").optional(),
978
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
980
+ amount: /* @__PURE__ */ z.object({
981
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
982
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
979
983
  }).describe("Payment amount."),
980
- refundDisabled: z.boolean().describe(
984
+ refundDisabled: /* @__PURE__ */ z.boolean().describe(
981
985
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
982
986
  ).optional(),
983
- supportReceiptGeneration: z.boolean().describe(
987
+ supportReceiptGeneration: /* @__PURE__ */ z.boolean().describe(
984
988
  "Whether receipt generation is allowed for this payment.\n+ `true`: This payment supports receipt generation.\n+ `false`: This payment doesn't support receipt generation, or a receipt was already generated."
985
989
  ).optional(),
986
- cashRounding: z.object({
987
- unroundedAmount: z.object({
988
- amount: z.string().describe("Amount.").optional(),
989
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
990
+ cashRounding: /* @__PURE__ */ z.object({
991
+ unroundedAmount: /* @__PURE__ */ z.object({
992
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
993
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
990
994
  }).describe(
991
995
  "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
992
996
  ).optional(),
993
- roundingAdjustment: z.object({
994
- amount: z.string().describe("Amount, can be negative or positive.").optional(),
995
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
997
+ roundingAdjustment: /* @__PURE__ */ z.object({
998
+ amount: /* @__PURE__ */ z.string().describe("Amount, can be negative or positive.").optional(),
999
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
996
1000
  }).describe(
997
1001
  "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
998
1002
  ).optional()
999
1003
  }).describe(
1000
1004
  "Details about cash rounding applied to this payment, when relevant."
1001
1005
  ).optional(),
1002
- status: z.enum([
1006
+ status: /* @__PURE__ */ z.enum([
1003
1007
  "APPROVED",
1004
1008
  "PENDING",
1005
1009
  "PENDING_MERCHANT",
@@ -1010,33 +1014,33 @@ var AddPaymentsRequest = /* @__PURE__ */ z.object({
1010
1014
  "AUTHORIZED",
1011
1015
  "VOIDED"
1012
1016
  ]).optional(),
1013
- chargeCorrelationId: z.string().describe(
1017
+ chargeCorrelationId: /* @__PURE__ */ z.string().describe(
1014
1018
  "ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request."
1015
1019
  ).regex(
1016
1020
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1017
1021
  "Must be a valid GUID"
1018
1022
  ).optional().nullable()
1019
1023
  }),
1020
- z.xor([
1021
- z.object({
1022
- giftcardPaymentDetails: z.never().optional(),
1023
- membershipPaymentDetails: z.never().optional(),
1024
- regularPaymentDetails: z.intersection(
1025
- z.object({
1026
- paymentOrderId: z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
1027
- gatewayTransactionId: z.string().describe(
1024
+ /* @__PURE__ */ z.xor([
1025
+ /* @__PURE__ */ z.object({
1026
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1027
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
1028
+ regularPaymentDetails: /* @__PURE__ */ z.intersection(
1029
+ /* @__PURE__ */ z.object({
1030
+ paymentOrderId: /* @__PURE__ */ z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
1031
+ gatewayTransactionId: /* @__PURE__ */ z.string().describe(
1028
1032
  "Payment gateway's transaction ID.\nThis field is only returned when the value of `offline_payment` is `false`."
1029
1033
  ).max(100).optional().nullable(),
1030
- paymentMethod: z.string().describe(
1034
+ paymentMethod: /* @__PURE__ */ z.string().describe(
1031
1035
  "Payment method.\nDeprecated. Use `paymentMethodName.buyerLanguageName` instead.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
1032
1036
  ).max(150).optional().nullable(),
1033
- providerTransactionId: z.string().describe(
1037
+ providerTransactionId: /* @__PURE__ */ z.string().describe(
1034
1038
  "Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments."
1035
1039
  ).max(100).optional().nullable(),
1036
- offlinePayment: z.boolean().describe(
1040
+ offlinePayment: /* @__PURE__ */ z.boolean().describe(
1037
1041
  "Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager."
1038
1042
  ).optional(),
1039
- status: z.enum([
1043
+ status: /* @__PURE__ */ z.enum([
1040
1044
  "UNDEFINED",
1041
1045
  "APPROVED",
1042
1046
  "PENDING",
@@ -1048,116 +1052,116 @@ var AddPaymentsRequest = /* @__PURE__ */ z.object({
1048
1052
  "AUTHORIZED",
1049
1053
  "VOIDED"
1050
1054
  ]).optional(),
1051
- savedPaymentMethod: z.boolean().describe(
1055
+ savedPaymentMethod: /* @__PURE__ */ z.boolean().describe(
1052
1056
  "Whether there is a payment agreement that allows for future charges."
1053
1057
  ).optional(),
1054
- authorizationDetails: z.object({
1055
- delayedCapture: z.boolean().describe(
1058
+ authorizationDetails: /* @__PURE__ */ z.object({
1059
+ delayedCapture: /* @__PURE__ */ z.boolean().describe(
1056
1060
  "Whether the authorized payment is of a delayed capture."
1057
1061
  ).optional(),
1058
- authorizedDate: z.date().describe(
1062
+ authorizedDate: /* @__PURE__ */ z.date().describe(
1059
1063
  "Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1060
1064
  ).optional().nullable(),
1061
- captures: z.array(
1062
- z.object({
1063
- _id: z.string().describe("Capture ID.").regex(
1065
+ captures: /* @__PURE__ */ z.array(
1066
+ /* @__PURE__ */ z.object({
1067
+ _id: /* @__PURE__ */ z.string().describe("Capture ID.").regex(
1064
1068
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1065
1069
  "Must be a valid GUID"
1066
1070
  ).optional().nullable(),
1067
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).optional(),
1068
- amount: z.object({
1069
- amount: z.string().describe("Amount.").optional(),
1070
- formattedAmount: z.string().describe(
1071
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).optional(),
1072
+ amount: /* @__PURE__ */ z.object({
1073
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1074
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1071
1075
  "Amount formatted with currency symbol."
1072
1076
  ).optional()
1073
1077
  }).describe("Amount of this capture").optional(),
1074
- _createdDate: z.date().describe(
1078
+ _createdDate: /* @__PURE__ */ z.date().describe(
1075
1079
  "Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1076
1080
  ).optional().nullable(),
1077
- failureDetails: z.object({
1078
- failureCode: z.string().max(100).optional()
1081
+ failureDetails: /* @__PURE__ */ z.object({
1082
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
1079
1083
  }).describe(
1080
1084
  "In case of status is FAILED may contain failure details"
1081
1085
  ).optional()
1082
1086
  })
1083
1087
  ).max(1).optional(),
1084
- void: z.object({
1085
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).optional(),
1086
- voidedDate: z.date().describe(
1088
+ void: /* @__PURE__ */ z.object({
1089
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).optional(),
1090
+ voidedDate: /* @__PURE__ */ z.date().describe(
1087
1091
  "Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1088
1092
  ).optional().nullable(),
1089
- failureDetails: z.object({
1090
- failureCode: z.string().max(100).optional()
1093
+ failureDetails: /* @__PURE__ */ z.object({
1094
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
1091
1095
  }).describe(
1092
1096
  "In case of status is FAILED may contain failure details"
1093
1097
  ).optional(),
1094
- reason: z.enum(["MANUAL", "SCHEDULED"]).optional()
1098
+ reason: /* @__PURE__ */ z.enum(["MANUAL", "SCHEDULED"]).optional()
1095
1099
  }).describe("Void associated with payment").optional(),
1096
- scheduledAction: z.object({
1097
- actionType: z.enum(["VOID", "CAPTURE"]).optional(),
1098
- executionDate: z.date().describe("The date and time of the action.").optional().nullable()
1100
+ scheduledAction: /* @__PURE__ */ z.object({
1101
+ actionType: /* @__PURE__ */ z.enum(["VOID", "CAPTURE"]).optional(),
1102
+ executionDate: /* @__PURE__ */ z.date().describe("The date and time of the action.").optional().nullable()
1099
1103
  }).describe("Scheduled action for this transaction").optional()
1100
1104
  }).describe("Authorization details.").optional(),
1101
- chargebacks: z.array(
1102
- z.object({
1103
- _id: z.string().describe("Chargeback ID.").regex(
1105
+ chargebacks: /* @__PURE__ */ z.array(
1106
+ /* @__PURE__ */ z.object({
1107
+ _id: /* @__PURE__ */ z.string().describe("Chargeback ID.").regex(
1104
1108
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1105
1109
  "Must be a valid GUID"
1106
1110
  ).optional(),
1107
- _createdDate: z.date().describe(
1111
+ _createdDate: /* @__PURE__ */ z.date().describe(
1108
1112
  "Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1109
1113
  ).optional().nullable(),
1110
- _updatedDate: z.date().describe(
1114
+ _updatedDate: /* @__PURE__ */ z.date().describe(
1111
1115
  "Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1112
1116
  ).optional().nullable(),
1113
- amount: z.object({
1114
- amount: z.string().describe("Amount.").optional(),
1115
- formattedAmount: z.string().describe(
1117
+ amount: /* @__PURE__ */ z.object({
1118
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1119
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1116
1120
  "Amount formatted with currency symbol."
1117
1121
  ).optional()
1118
1122
  }).describe("Amount.").optional(),
1119
- reversalAmount: z.object({
1120
- amount: z.string().describe("Amount.").optional(),
1121
- formattedAmount: z.string().describe(
1123
+ reversalAmount: /* @__PURE__ */ z.object({
1124
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1125
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1122
1126
  "Amount formatted with currency symbol."
1123
1127
  ).optional()
1124
1128
  }).describe(
1125
1129
  "Reversal amount. Present only when status is REVERSED."
1126
1130
  ).optional(),
1127
- status: z.enum(["APPROVED", "REVERSED"]).optional(),
1128
- externalId: z.string().describe("External chargeback ID.").regex(
1131
+ status: /* @__PURE__ */ z.enum(["APPROVED", "REVERSED"]).optional(),
1132
+ externalId: /* @__PURE__ */ z.string().describe("External chargeback ID.").regex(
1129
1133
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1130
1134
  "Must be a valid GUID"
1131
1135
  ).optional().nullable()
1132
1136
  })
1133
1137
  ).max(6).optional(),
1134
- platformFee: z.object({
1135
- amount: z.string().describe("Amount.").optional(),
1136
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1138
+ platformFee: /* @__PURE__ */ z.object({
1139
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1140
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1137
1141
  }).describe(
1138
1142
  "Platform fee amount associated with this payment."
1139
1143
  ).optional(),
1140
- paymentMethodName: z.object({
1141
- buyerLanguageName: z.string().describe(
1144
+ paymentMethodName: /* @__PURE__ */ z.object({
1145
+ buyerLanguageName: /* @__PURE__ */ z.string().describe(
1142
1146
  "Translated payment method name in buyer language."
1143
1147
  ).max(150).optional().nullable(),
1144
- siteLanguageName: z.string().describe(
1148
+ siteLanguageName: /* @__PURE__ */ z.string().describe(
1145
1149
  "Translated payment method name in site owner language."
1146
1150
  ).max(150).optional().nullable(),
1147
- userDefinedName: z.intersection(
1148
- z.object({}),
1149
- z.xor([
1150
- z.object({
1151
- predefined: z.never().optional(),
1152
- custom: z.never().optional()
1151
+ userDefinedName: /* @__PURE__ */ z.intersection(
1152
+ /* @__PURE__ */ z.object({}),
1153
+ /* @__PURE__ */ z.xor([
1154
+ /* @__PURE__ */ z.object({
1155
+ predefined: /* @__PURE__ */ z.never().optional(),
1156
+ custom: /* @__PURE__ */ z.never().optional()
1153
1157
  }),
1154
- z.object({
1155
- custom: z.never().optional(),
1156
- predefined: z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
1158
+ /* @__PURE__ */ z.object({
1159
+ custom: /* @__PURE__ */ z.never().optional(),
1160
+ predefined: /* @__PURE__ */ z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
1157
1161
  }),
1158
- z.object({
1159
- predefined: z.never().optional(),
1160
- custom: z.string().describe(
1162
+ /* @__PURE__ */ z.object({
1163
+ predefined: /* @__PURE__ */ z.never().optional(),
1164
+ custom: /* @__PURE__ */ z.string().describe(
1161
1165
  'Custom payment method name provided by user.\n\nFor example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.'
1162
1166
  ).min(1).max(150)
1163
1167
  })
@@ -1169,68 +1173,70 @@ var AddPaymentsRequest = /* @__PURE__ */ z.object({
1169
1173
  "Payment method with buyer and optional owner translations.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
1170
1174
  ).optional()
1171
1175
  }),
1172
- z.xor([
1173
- z.object({ creditCardDetails: z.never().optional() }),
1174
- z.object({
1175
- creditCardDetails: z.object({
1176
- lastFourDigits: z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
1177
- brand: z.string().describe("Card issuer's brand.").max(100).optional().nullable()
1176
+ /* @__PURE__ */ z.xor([
1177
+ /* @__PURE__ */ z.object({
1178
+ creditCardDetails: /* @__PURE__ */ z.never().optional()
1179
+ }),
1180
+ /* @__PURE__ */ z.object({
1181
+ creditCardDetails: /* @__PURE__ */ z.object({
1182
+ lastFourDigits: /* @__PURE__ */ z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
1183
+ brand: /* @__PURE__ */ z.string().describe("Card issuer's brand.").max(100).optional().nullable()
1178
1184
  }).describe("Credit card details.")
1179
1185
  })
1180
1186
  ])
1181
1187
  ).describe("Regular payment details.")
1182
1188
  }),
1183
- z.object({
1184
- regularPaymentDetails: z.never().optional(),
1185
- membershipPaymentDetails: z.never().optional(),
1186
- giftcardPaymentDetails: z.object({
1187
- giftCardPaymentId: z.string().describe("Gift card payment ID.").max(100).optional(),
1188
- appId: z.string().describe("ID of the app that created the gift card.").regex(
1189
+ /* @__PURE__ */ z.object({
1190
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1191
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
1192
+ giftcardPaymentDetails: /* @__PURE__ */ z.object({
1193
+ giftCardPaymentId: /* @__PURE__ */ z.string().describe("Gift card payment ID.").max(100).optional(),
1194
+ appId: /* @__PURE__ */ z.string().describe("ID of the app that created the gift card.").regex(
1189
1195
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1190
1196
  "Must be a valid GUID"
1191
1197
  ).optional(),
1192
- voided: z.boolean().describe("Whether the gift card is voided.").optional(),
1193
- obfuscatedCode: z.string().describe(
1198
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the gift card is voided.").optional(),
1199
+ obfuscatedCode: /* @__PURE__ */ z.string().describe(
1194
1200
  "Gift card code with all but the last four characters masked. For example, `************QXY1`."
1195
1201
  ).max(30).optional().nullable()
1196
1202
  }).describe("Gift card payment details.")
1197
1203
  }),
1198
- z.object({
1199
- regularPaymentDetails: z.never().optional(),
1200
- giftcardPaymentDetails: z.never().optional(),
1201
- membershipPaymentDetails: z.object({
1202
- membershipId: z.string().describe("Membership ID.").max(200).optional(),
1203
- lineItemId: z.string().describe("ID of the line item this membership applies to.").min(1).max(100).optional(),
1204
- status: z.enum([
1204
+ /* @__PURE__ */ z.object({
1205
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1206
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1207
+ membershipPaymentDetails: /* @__PURE__ */ z.object({
1208
+ membershipId: /* @__PURE__ */ z.string().describe("Membership ID.").max(200).optional(),
1209
+ lineItemId: /* @__PURE__ */ z.string().describe("ID of the line item this membership applies to.").min(1).max(100).optional(),
1210
+ status: /* @__PURE__ */ z.enum([
1205
1211
  "CHARGED",
1206
1212
  "CHARGE_FAILED",
1207
1213
  "CHARGE_PENDING",
1208
1214
  "VOIDED"
1209
1215
  ]).optional(),
1210
- name: z.object({
1211
- original: z.string().describe("Membership name.").max(100).optional(),
1212
- translated: z.string().describe(
1216
+ name: /* @__PURE__ */ z.object({
1217
+ original: /* @__PURE__ */ z.string().describe("Membership name.").max(100).optional(),
1218
+ translated: /* @__PURE__ */ z.string().describe(
1213
1219
  "Translated membership name. Defaults to `original` when not provided."
1214
1220
  ).max(100).optional().nullable()
1215
1221
  }).describe("Membership name.").optional(),
1216
- externalTransactionId: z.string().describe(
1222
+ externalTransactionId: /* @__PURE__ */ z.string().describe(
1217
1223
  "The transaction ID in the membership system. Can be used to void the transaction."
1218
1224
  ).min(1).max(100).optional().nullable(),
1219
- voided: z.boolean().describe("Whether the membership is voided.").optional(),
1220
- providerAppId: z.string().describe(
1225
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the membership is voided.").optional(),
1226
+ providerAppId: /* @__PURE__ */ z.string().describe(
1221
1227
  "ID of the application providing this payment option."
1222
1228
  ).regex(
1223
1229
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1224
1230
  "Must be a valid GUID"
1225
1231
  ).optional(),
1226
- futureMembership: z.object({
1227
- lineItemId: z.string().describe(
1232
+ futureMembership: /* @__PURE__ */ z.object({
1233
+ lineItemId: /* @__PURE__ */ z.string().describe(
1228
1234
  "ID of the plan line item in the order from which the membership will be created."
1229
1235
  ).regex(
1230
1236
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1231
1237
  "Must be a valid GUID"
1232
1238
  ).optional(),
1233
- benefitId: z.string().describe(
1239
+ benefitId: /* @__PURE__ */ z.string().describe(
1234
1240
  "ID of the benefit the future membership will grant."
1235
1241
  ).max(200).optional()
1236
1242
  }).describe(
@@ -1243,51 +1249,51 @@ var AddPaymentsRequest = /* @__PURE__ */ z.object({
1243
1249
  ).min(1).max(50)
1244
1250
  });
1245
1251
  var AddPaymentsResponse = /* @__PURE__ */ z.object({
1246
- orderTransactions: z.object({
1247
- orderId: z.string().describe("Order ID.").regex(
1252
+ orderTransactions: /* @__PURE__ */ z.object({
1253
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
1248
1254
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1249
1255
  "Must be a valid GUID"
1250
1256
  ).optional(),
1251
- payments: z.array(
1252
- z.intersection(
1253
- z.object({
1254
- _id: z.string().describe("Payment ID.").regex(
1257
+ payments: /* @__PURE__ */ z.array(
1258
+ /* @__PURE__ */ z.intersection(
1259
+ /* @__PURE__ */ z.object({
1260
+ _id: /* @__PURE__ */ z.string().describe("Payment ID.").regex(
1255
1261
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1256
1262
  "Must be a valid GUID"
1257
1263
  ).optional().nullable(),
1258
- _createdDate: z.date().describe(
1264
+ _createdDate: /* @__PURE__ */ z.date().describe(
1259
1265
  "Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1260
1266
  ).optional().nullable(),
1261
- _updatedDate: z.date().describe(
1267
+ _updatedDate: /* @__PURE__ */ z.date().describe(
1262
1268
  "Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1263
1269
  ).optional().nullable(),
1264
- amount: z.object({
1265
- amount: z.string().describe("Amount.").optional(),
1266
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1270
+ amount: /* @__PURE__ */ z.object({
1271
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1272
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1267
1273
  }).describe("Payment amount.").optional(),
1268
- refundDisabled: z.boolean().describe(
1274
+ refundDisabled: /* @__PURE__ */ z.boolean().describe(
1269
1275
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
1270
1276
  ).optional(),
1271
- supportReceiptGeneration: z.boolean().describe(
1277
+ supportReceiptGeneration: /* @__PURE__ */ z.boolean().describe(
1272
1278
  "Whether receipt generation is allowed for this payment.\n+ `true`: This payment supports receipt generation.\n+ `false`: This payment doesn't support receipt generation, or a receipt was already generated."
1273
1279
  ).optional(),
1274
- cashRounding: z.object({
1275
- unroundedAmount: z.object({
1276
- amount: z.string().describe("Amount.").optional(),
1277
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1280
+ cashRounding: /* @__PURE__ */ z.object({
1281
+ unroundedAmount: /* @__PURE__ */ z.object({
1282
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1283
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1278
1284
  }).describe(
1279
1285
  "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
1280
1286
  ).optional(),
1281
- roundingAdjustment: z.object({
1282
- amount: z.string().describe("Amount, can be negative or positive.").optional(),
1283
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1287
+ roundingAdjustment: /* @__PURE__ */ z.object({
1288
+ amount: /* @__PURE__ */ z.string().describe("Amount, can be negative or positive.").optional(),
1289
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1284
1290
  }).describe(
1285
1291
  "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
1286
1292
  ).optional()
1287
1293
  }).describe(
1288
1294
  "Details about cash rounding applied to this payment, when relevant."
1289
1295
  ).optional(),
1290
- status: z.enum([
1296
+ status: /* @__PURE__ */ z.enum([
1291
1297
  "APPROVED",
1292
1298
  "PENDING",
1293
1299
  "PENDING_MERCHANT",
@@ -1300,38 +1306,38 @@ var AddPaymentsResponse = /* @__PURE__ */ z.object({
1300
1306
  ]).describe(
1301
1307
  "Overall payment status.\n\nGift card and membership payments support only `APPROVED`, `PENDING`, `CANCELED`, `DECLINED`, and `VOIDED`. The remaining values apply to regular payments."
1302
1308
  ).optional(),
1303
- chargeCorrelationId: z.string().describe(
1309
+ chargeCorrelationId: /* @__PURE__ */ z.string().describe(
1304
1310
  "ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request."
1305
1311
  ).regex(
1306
1312
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1307
1313
  "Must be a valid GUID"
1308
1314
  ).optional().nullable()
1309
1315
  }),
1310
- z.xor([
1311
- z.object({
1312
- regularPaymentDetails: z.never().optional(),
1313
- giftcardPaymentDetails: z.never().optional(),
1314
- membershipPaymentDetails: z.never().optional()
1316
+ /* @__PURE__ */ z.xor([
1317
+ /* @__PURE__ */ z.object({
1318
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1319
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1320
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional()
1315
1321
  }),
1316
- z.object({
1317
- giftcardPaymentDetails: z.never().optional(),
1318
- membershipPaymentDetails: z.never().optional(),
1319
- regularPaymentDetails: z.intersection(
1320
- z.object({
1321
- paymentOrderId: z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
1322
- gatewayTransactionId: z.string().describe(
1322
+ /* @__PURE__ */ z.object({
1323
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1324
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
1325
+ regularPaymentDetails: /* @__PURE__ */ z.intersection(
1326
+ /* @__PURE__ */ z.object({
1327
+ paymentOrderId: /* @__PURE__ */ z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
1328
+ gatewayTransactionId: /* @__PURE__ */ z.string().describe(
1323
1329
  "Payment gateway's transaction ID.\nThis field is only returned when the value of `offline_payment` is `false`."
1324
1330
  ).max(100).optional().nullable(),
1325
- paymentMethod: z.string().describe(
1331
+ paymentMethod: /* @__PURE__ */ z.string().describe(
1326
1332
  "Payment method.\nDeprecated. Use `paymentMethodName.buyerLanguageName` instead.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
1327
1333
  ).max(150).optional().nullable(),
1328
- providerTransactionId: z.string().describe(
1334
+ providerTransactionId: /* @__PURE__ */ z.string().describe(
1329
1335
  "Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments."
1330
1336
  ).max(100).optional().nullable(),
1331
- offlinePayment: z.boolean().describe(
1337
+ offlinePayment: /* @__PURE__ */ z.boolean().describe(
1332
1338
  "Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager."
1333
1339
  ).optional(),
1334
- status: z.enum([
1340
+ status: /* @__PURE__ */ z.enum([
1335
1341
  "UNDEFINED",
1336
1342
  "APPROVED",
1337
1343
  "PENDING",
@@ -1343,116 +1349,116 @@ var AddPaymentsResponse = /* @__PURE__ */ z.object({
1343
1349
  "AUTHORIZED",
1344
1350
  "VOIDED"
1345
1351
  ]).describe("Payment status.").optional(),
1346
- savedPaymentMethod: z.boolean().describe(
1352
+ savedPaymentMethod: /* @__PURE__ */ z.boolean().describe(
1347
1353
  "Whether there is a payment agreement that allows for future charges."
1348
1354
  ).optional(),
1349
- authorizationDetails: z.object({
1350
- delayedCapture: z.boolean().describe(
1355
+ authorizationDetails: /* @__PURE__ */ z.object({
1356
+ delayedCapture: /* @__PURE__ */ z.boolean().describe(
1351
1357
  "Whether the authorized payment is of a delayed capture."
1352
1358
  ).optional(),
1353
- authorizedDate: z.date().describe(
1359
+ authorizedDate: /* @__PURE__ */ z.date().describe(
1354
1360
  "Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1355
1361
  ).optional().nullable(),
1356
- captures: z.array(
1357
- z.object({
1358
- _id: z.string().describe("Capture ID.").regex(
1362
+ captures: /* @__PURE__ */ z.array(
1363
+ /* @__PURE__ */ z.object({
1364
+ _id: /* @__PURE__ */ z.string().describe("Capture ID.").regex(
1359
1365
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1360
1366
  "Must be a valid GUID"
1361
1367
  ).optional().nullable(),
1362
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
1363
- amount: z.object({
1364
- amount: z.string().describe("Amount.").optional(),
1365
- formattedAmount: z.string().describe(
1368
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
1369
+ amount: /* @__PURE__ */ z.object({
1370
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1371
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1366
1372
  "Amount formatted with currency symbol."
1367
1373
  ).optional()
1368
1374
  }).describe("Amount of this capture").optional(),
1369
- _createdDate: z.date().describe(
1375
+ _createdDate: /* @__PURE__ */ z.date().describe(
1370
1376
  "Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1371
1377
  ).optional().nullable(),
1372
- failureDetails: z.object({
1373
- failureCode: z.string().max(100).optional()
1378
+ failureDetails: /* @__PURE__ */ z.object({
1379
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
1374
1380
  }).describe(
1375
1381
  "In case of status is FAILED may contain failure details"
1376
1382
  ).optional()
1377
1383
  })
1378
1384
  ).max(1).optional(),
1379
- void: z.object({
1380
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
1381
- voidedDate: z.date().describe(
1385
+ void: /* @__PURE__ */ z.object({
1386
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
1387
+ voidedDate: /* @__PURE__ */ z.date().describe(
1382
1388
  "Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1383
1389
  ).optional().nullable(),
1384
- failureDetails: z.object({
1385
- failureCode: z.string().max(100).optional()
1390
+ failureDetails: /* @__PURE__ */ z.object({
1391
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
1386
1392
  }).describe(
1387
1393
  "In case of status is FAILED may contain failure details"
1388
1394
  ).optional(),
1389
- reason: z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
1395
+ reason: /* @__PURE__ */ z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
1390
1396
  }).describe("Void associated with payment").optional(),
1391
- scheduledAction: z.object({
1392
- actionType: z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
1393
- executionDate: z.date().describe("The date and time of the action.").optional().nullable()
1397
+ scheduledAction: /* @__PURE__ */ z.object({
1398
+ actionType: /* @__PURE__ */ z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
1399
+ executionDate: /* @__PURE__ */ z.date().describe("The date and time of the action.").optional().nullable()
1394
1400
  }).describe("Scheduled action for this transaction").optional()
1395
1401
  }).describe("Authorization details.").optional(),
1396
- chargebacks: z.array(
1397
- z.object({
1398
- _id: z.string().describe("Chargeback ID.").regex(
1402
+ chargebacks: /* @__PURE__ */ z.array(
1403
+ /* @__PURE__ */ z.object({
1404
+ _id: /* @__PURE__ */ z.string().describe("Chargeback ID.").regex(
1399
1405
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1400
1406
  "Must be a valid GUID"
1401
1407
  ).optional(),
1402
- _createdDate: z.date().describe(
1408
+ _createdDate: /* @__PURE__ */ z.date().describe(
1403
1409
  "Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1404
1410
  ).optional().nullable(),
1405
- _updatedDate: z.date().describe(
1411
+ _updatedDate: /* @__PURE__ */ z.date().describe(
1406
1412
  "Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1407
1413
  ).optional().nullable(),
1408
- amount: z.object({
1409
- amount: z.string().describe("Amount.").optional(),
1410
- formattedAmount: z.string().describe(
1414
+ amount: /* @__PURE__ */ z.object({
1415
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1416
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1411
1417
  "Amount formatted with currency symbol."
1412
1418
  ).optional()
1413
1419
  }).describe("Amount.").optional(),
1414
- reversalAmount: z.object({
1415
- amount: z.string().describe("Amount.").optional(),
1416
- formattedAmount: z.string().describe(
1420
+ reversalAmount: /* @__PURE__ */ z.object({
1421
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1422
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1417
1423
  "Amount formatted with currency symbol."
1418
1424
  ).optional()
1419
1425
  }).describe(
1420
1426
  "Reversal amount. Present only when status is REVERSED."
1421
1427
  ).optional(),
1422
- status: z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
1423
- externalId: z.string().describe("External chargeback ID.").regex(
1428
+ status: /* @__PURE__ */ z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
1429
+ externalId: /* @__PURE__ */ z.string().describe("External chargeback ID.").regex(
1424
1430
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1425
1431
  "Must be a valid GUID"
1426
1432
  ).optional().nullable()
1427
1433
  })
1428
1434
  ).max(6).optional(),
1429
- platformFee: z.object({
1430
- amount: z.string().describe("Amount.").optional(),
1431
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1435
+ platformFee: /* @__PURE__ */ z.object({
1436
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1437
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1432
1438
  }).describe(
1433
1439
  "Platform fee amount associated with this payment."
1434
1440
  ).optional(),
1435
- paymentMethodName: z.object({
1436
- buyerLanguageName: z.string().describe(
1441
+ paymentMethodName: /* @__PURE__ */ z.object({
1442
+ buyerLanguageName: /* @__PURE__ */ z.string().describe(
1437
1443
  "Translated payment method name in buyer language."
1438
1444
  ).max(150).optional().nullable(),
1439
- siteLanguageName: z.string().describe(
1445
+ siteLanguageName: /* @__PURE__ */ z.string().describe(
1440
1446
  "Translated payment method name in site owner language."
1441
1447
  ).max(150).optional().nullable(),
1442
- userDefinedName: z.intersection(
1443
- z.object({}),
1444
- z.xor([
1445
- z.object({
1446
- predefined: z.never().optional(),
1447
- custom: z.never().optional()
1448
+ userDefinedName: /* @__PURE__ */ z.intersection(
1449
+ /* @__PURE__ */ z.object({}),
1450
+ /* @__PURE__ */ z.xor([
1451
+ /* @__PURE__ */ z.object({
1452
+ predefined: /* @__PURE__ */ z.never().optional(),
1453
+ custom: /* @__PURE__ */ z.never().optional()
1448
1454
  }),
1449
- z.object({
1450
- custom: z.never().optional(),
1451
- predefined: z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
1455
+ /* @__PURE__ */ z.object({
1456
+ custom: /* @__PURE__ */ z.never().optional(),
1457
+ predefined: /* @__PURE__ */ z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
1452
1458
  }),
1453
- z.object({
1454
- predefined: z.never().optional(),
1455
- custom: z.string().describe(
1459
+ /* @__PURE__ */ z.object({
1460
+ predefined: /* @__PURE__ */ z.never().optional(),
1461
+ custom: /* @__PURE__ */ z.string().describe(
1456
1462
  'Custom payment method name provided by user.\n\nFor example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.'
1457
1463
  ).min(1).max(150)
1458
1464
  })
@@ -1464,70 +1470,72 @@ var AddPaymentsResponse = /* @__PURE__ */ z.object({
1464
1470
  "Payment method with buyer and optional owner translations.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
1465
1471
  ).optional()
1466
1472
  }),
1467
- z.xor([
1468
- z.object({ creditCardDetails: z.never().optional() }),
1469
- z.object({
1470
- creditCardDetails: z.object({
1471
- lastFourDigits: z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
1472
- brand: z.string().describe("Card issuer's brand.").max(100).optional().nullable()
1473
+ /* @__PURE__ */ z.xor([
1474
+ /* @__PURE__ */ z.object({
1475
+ creditCardDetails: /* @__PURE__ */ z.never().optional()
1476
+ }),
1477
+ /* @__PURE__ */ z.object({
1478
+ creditCardDetails: /* @__PURE__ */ z.object({
1479
+ lastFourDigits: /* @__PURE__ */ z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
1480
+ brand: /* @__PURE__ */ z.string().describe("Card issuer's brand.").max(100).optional().nullable()
1473
1481
  }).describe("Credit card details.")
1474
1482
  })
1475
1483
  ])
1476
1484
  ).describe("Regular payment details.")
1477
1485
  }),
1478
- z.object({
1479
- regularPaymentDetails: z.never().optional(),
1480
- membershipPaymentDetails: z.never().optional(),
1481
- giftcardPaymentDetails: z.object({
1482
- giftCardPaymentId: z.string().describe("Gift card payment ID.").max(100).optional(),
1483
- appId: z.string().describe("ID of the app that created the gift card.").regex(
1486
+ /* @__PURE__ */ z.object({
1487
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1488
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
1489
+ giftcardPaymentDetails: /* @__PURE__ */ z.object({
1490
+ giftCardPaymentId: /* @__PURE__ */ z.string().describe("Gift card payment ID.").max(100).optional(),
1491
+ appId: /* @__PURE__ */ z.string().describe("ID of the app that created the gift card.").regex(
1484
1492
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1485
1493
  "Must be a valid GUID"
1486
1494
  ).optional(),
1487
- voided: z.boolean().describe("Whether the gift card is voided.").optional(),
1488
- obfuscatedCode: z.string().describe(
1495
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the gift card is voided.").optional(),
1496
+ obfuscatedCode: /* @__PURE__ */ z.string().describe(
1489
1497
  "Gift card code with all but the last four characters masked. For example, `************QXY1`."
1490
1498
  ).max(30).optional().nullable()
1491
1499
  }).describe("Gift card payment details.")
1492
1500
  }),
1493
- z.object({
1494
- regularPaymentDetails: z.never().optional(),
1495
- giftcardPaymentDetails: z.never().optional(),
1496
- membershipPaymentDetails: z.object({
1497
- membershipId: z.string().describe("Membership ID.").max(200).optional(),
1498
- lineItemId: z.string().describe(
1501
+ /* @__PURE__ */ z.object({
1502
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1503
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1504
+ membershipPaymentDetails: /* @__PURE__ */ z.object({
1505
+ membershipId: /* @__PURE__ */ z.string().describe("Membership ID.").max(200).optional(),
1506
+ lineItemId: /* @__PURE__ */ z.string().describe(
1499
1507
  "ID of the line item this membership applies to."
1500
1508
  ).min(1).max(100).optional(),
1501
- status: z.enum([
1509
+ status: /* @__PURE__ */ z.enum([
1502
1510
  "CHARGED",
1503
1511
  "CHARGE_FAILED",
1504
1512
  "CHARGE_PENDING",
1505
1513
  "VOIDED"
1506
1514
  ]).describe("Payment status.").optional(),
1507
- name: z.object({
1508
- original: z.string().describe("Membership name.").max(100).optional(),
1509
- translated: z.string().describe(
1515
+ name: /* @__PURE__ */ z.object({
1516
+ original: /* @__PURE__ */ z.string().describe("Membership name.").max(100).optional(),
1517
+ translated: /* @__PURE__ */ z.string().describe(
1510
1518
  "Translated membership name. Defaults to `original` when not provided."
1511
1519
  ).max(100).optional().nullable()
1512
1520
  }).describe("Membership name.").optional(),
1513
- externalTransactionId: z.string().describe(
1521
+ externalTransactionId: /* @__PURE__ */ z.string().describe(
1514
1522
  "The transaction ID in the membership system. Can be used to void the transaction."
1515
1523
  ).min(1).max(100).optional().nullable(),
1516
- voided: z.boolean().describe("Whether the membership is voided.").optional(),
1517
- providerAppId: z.string().describe(
1524
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the membership is voided.").optional(),
1525
+ providerAppId: /* @__PURE__ */ z.string().describe(
1518
1526
  "ID of the application providing this payment option."
1519
1527
  ).regex(
1520
1528
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1521
1529
  "Must be a valid GUID"
1522
1530
  ).optional(),
1523
- futureMembership: z.object({
1524
- lineItemId: z.string().describe(
1531
+ futureMembership: /* @__PURE__ */ z.object({
1532
+ lineItemId: /* @__PURE__ */ z.string().describe(
1525
1533
  "ID of the plan line item in the order from which the membership will be created."
1526
1534
  ).regex(
1527
1535
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1528
1536
  "Must be a valid GUID"
1529
1537
  ).optional(),
1530
- benefitId: z.string().describe(
1538
+ benefitId: /* @__PURE__ */ z.string().describe(
1531
1539
  "ID of the benefit the future membership will grant."
1532
1540
  ).max(200).optional()
1533
1541
  }).describe(
@@ -1538,132 +1546,132 @@ var AddPaymentsResponse = /* @__PURE__ */ z.object({
1538
1546
  ])
1539
1547
  )
1540
1548
  ).max(100).optional(),
1541
- refunds: z.array(
1542
- z.object({
1543
- _id: z.string().describe("Refund ID.").regex(
1549
+ refunds: /* @__PURE__ */ z.array(
1550
+ /* @__PURE__ */ z.object({
1551
+ _id: /* @__PURE__ */ z.string().describe("Refund ID.").regex(
1544
1552
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1545
1553
  "Must be a valid GUID"
1546
1554
  ).optional(),
1547
- transactions: z.array(
1548
- z.object({
1549
- paymentId: z.string().describe("ID of the payment associated with this refund.").regex(
1555
+ transactions: /* @__PURE__ */ z.array(
1556
+ /* @__PURE__ */ z.object({
1557
+ paymentId: /* @__PURE__ */ z.string().describe("ID of the payment associated with this refund.").regex(
1550
1558
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1551
1559
  "Must be a valid GUID"
1552
1560
  ).optional(),
1553
- amount: z.object({
1554
- amount: z.string().describe("Amount.").optional(),
1555
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1561
+ amount: /* @__PURE__ */ z.object({
1562
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1563
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1556
1564
  }).describe("Refund amount.").optional(),
1557
- refundStatus: z.enum([
1565
+ refundStatus: /* @__PURE__ */ z.enum([
1558
1566
  "PENDING",
1559
1567
  "SUCCEEDED",
1560
1568
  "FAILED",
1561
1569
  "SCHEDULED",
1562
1570
  "STARTED"
1563
1571
  ]).describe("Refund status.").optional(),
1564
- refundStatusInfo: z.object({
1565
- paymentGatewayReasonCode: z.string().describe(
1572
+ refundStatusInfo: /* @__PURE__ */ z.object({
1573
+ paymentGatewayReasonCode: /* @__PURE__ */ z.string().describe(
1566
1574
  "Reason code for the refund's current status.\n\nLearn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes)."
1567
1575
  ).min(1).max(10).optional().nullable(),
1568
- description: z.string().describe(
1576
+ description: /* @__PURE__ */ z.string().describe(
1569
1577
  "Free text explanation of current refund status."
1570
1578
  ).min(1).max(1e3).optional().nullable()
1571
1579
  }).describe("Optional details of current refund status.").optional(),
1572
- gatewayRefundId: z.string().describe(
1580
+ gatewayRefundId: /* @__PURE__ */ z.string().describe(
1573
1581
  "Payment gateway's refund ID.\nThis field is only returned when the value of `external_refund` is `false`."
1574
1582
  ).regex(
1575
1583
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1576
1584
  "Must be a valid GUID"
1577
1585
  ).optional().nullable(),
1578
- providerRefundId: z.string().describe(
1586
+ providerRefundId: /* @__PURE__ */ z.string().describe(
1579
1587
  "ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds."
1580
1588
  ).optional().nullable(),
1581
- externalRefund: z.boolean().describe(
1589
+ externalRefund: /* @__PURE__ */ z.boolean().describe(
1582
1590
  "Whether refund was made externally and manually on the payment provider's side."
1583
1591
  ).optional()
1584
1592
  })
1585
1593
  ).min(0).max(50).optional(),
1586
- details: z.object({
1587
- items: z.array(
1588
- z.object({
1589
- lineItemId: z.string().describe("Line item ID the refunded line item.").regex(
1594
+ details: /* @__PURE__ */ z.object({
1595
+ items: /* @__PURE__ */ z.array(
1596
+ /* @__PURE__ */ z.object({
1597
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID the refunded line item.").regex(
1590
1598
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1591
1599
  "Must be a valid GUID"
1592
1600
  ).optional(),
1593
- quantity: z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
1601
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
1594
1602
  })
1595
1603
  ).min(0).max(300).optional(),
1596
- shippingIncluded: z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
1597
- reason: z.string().describe(
1604
+ shippingIncluded: /* @__PURE__ */ z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
1605
+ reason: /* @__PURE__ */ z.string().describe(
1598
1606
  "Reason for the refund, provided by customer (optional)."
1599
1607
  ).max(200).optional().nullable(),
1600
- lineItems: z.array(
1601
- z.object({
1602
- lineItemId: z.string().describe("Line item ID.").regex(
1608
+ lineItems: /* @__PURE__ */ z.array(
1609
+ /* @__PURE__ */ z.object({
1610
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
1603
1611
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1604
1612
  "Must be a valid GUID"
1605
1613
  ).optional(),
1606
- quantity: z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
1614
+ quantity: /* @__PURE__ */ z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
1607
1615
  })
1608
1616
  ).min(0).max(300).optional(),
1609
- additionalFees: z.array(
1610
- z.object({
1611
- additionalFeeId: z.string().describe("Additional fee ID.").regex(
1617
+ additionalFees: /* @__PURE__ */ z.array(
1618
+ /* @__PURE__ */ z.object({
1619
+ additionalFeeId: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
1612
1620
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1613
1621
  "Must be a valid GUID"
1614
1622
  ).optional(),
1615
- amount: z.object({
1616
- amount: z.string().describe("Amount.").optional(),
1617
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1623
+ amount: /* @__PURE__ */ z.object({
1624
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1625
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1618
1626
  }).describe("Refund amount.").optional()
1619
1627
  })
1620
1628
  ).min(0).max(100).optional(),
1621
- shipping: z.object({
1622
- amount: z.object({
1623
- amount: z.string().describe("Amount.").optional(),
1624
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1629
+ shipping: /* @__PURE__ */ z.object({
1630
+ amount: /* @__PURE__ */ z.object({
1631
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1632
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1625
1633
  }).describe("Refund amount.").optional()
1626
1634
  }).describe("Shipping amount that was refunded.").optional()
1627
1635
  }).describe("Refund business details.").optional(),
1628
- _createdDate: z.date().describe(
1636
+ _createdDate: /* @__PURE__ */ z.date().describe(
1629
1637
  "Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1630
1638
  ).optional().nullable(),
1631
- summary: z.object({
1632
- requestedRefund: z.object({
1633
- amount: z.string().describe("Amount.").optional(),
1634
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1639
+ summary: /* @__PURE__ */ z.object({
1640
+ requestedRefund: /* @__PURE__ */ z.object({
1641
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1642
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1635
1643
  }).describe("Total amount requested for refund.").optional(),
1636
- pendingRefund: z.object({
1637
- amount: z.string().describe("Amount.").optional(),
1638
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1644
+ pendingRefund: /* @__PURE__ */ z.object({
1645
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1646
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1639
1647
  }).describe(
1640
1648
  "Pending refund amount - the portion of `requestedRefund` that is still pending."
1641
1649
  ).optional(),
1642
- refunded: z.object({
1643
- amount: z.string().describe("Amount.").optional(),
1644
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1650
+ refunded: /* @__PURE__ */ z.object({
1651
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1652
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1645
1653
  }).describe(
1646
1654
  "Refunded amount - the portion of `requestedRefund` that refunded successfully."
1647
1655
  ).optional(),
1648
- failedRefundAmount: z.object({
1649
- amount: z.string().describe("Amount.").optional(),
1650
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1656
+ failedRefundAmount: /* @__PURE__ */ z.object({
1657
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1658
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1651
1659
  }).describe(
1652
1660
  "Failed refund amount - the portion of `requestedRefund` that failed."
1653
1661
  ).optional(),
1654
- pending: z.boolean().describe(
1662
+ pending: /* @__PURE__ */ z.boolean().describe(
1655
1663
  'Whether at least one refund transaction is still in `"PENDING"` status.'
1656
1664
  ).optional(),
1657
- breakdown: z.object({
1658
- lineItems: z.array(
1659
- z.object({
1660
- lineItemId: z.string().describe("ID of the refunded line item.").regex(
1665
+ breakdown: /* @__PURE__ */ z.object({
1666
+ lineItems: /* @__PURE__ */ z.array(
1667
+ /* @__PURE__ */ z.object({
1668
+ lineItemId: /* @__PURE__ */ z.string().describe("ID of the refunded line item.").regex(
1661
1669
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1662
1670
  "Must be a valid GUID"
1663
1671
  ).optional(),
1664
- totalRefundedAmount: z.object({
1665
- amount: z.string().describe("Amount.").optional(),
1666
- formattedAmount: z.string().describe(
1672
+ totalRefundedAmount: /* @__PURE__ */ z.object({
1673
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1674
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1667
1675
  "Amount formatted with currency symbol."
1668
1676
  ).optional()
1669
1677
  }).describe(
@@ -1675,28 +1683,28 @@ var AddPaymentsResponse = /* @__PURE__ */ z.object({
1675
1683
  "Breakdown of refunded items. Available only after refund is complete."
1676
1684
  ).optional()
1677
1685
  }).describe("Aggregated refund summary.").optional(),
1678
- requestingServiceAppId: z.string().describe("ID of the app that initiated this refund.").regex(
1686
+ requestingServiceAppId: /* @__PURE__ */ z.string().describe("ID of the app that initiated this refund.").regex(
1679
1687
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1680
1688
  "Must be a valid GUID"
1681
1689
  ).optional().nullable()
1682
1690
  })
1683
1691
  ).max(300).optional()
1684
1692
  }).describe("Order ID and its associated transactions.").optional(),
1685
- paymentsIds: z.array(z.string()).optional()
1693
+ paymentsIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional()
1686
1694
  });
1687
1695
  var UpdatePaymentStatusRequest = /* @__PURE__ */ z.object({
1688
- identifiers: z.object({
1689
- paymentId: z.string().describe("Payment ID.").regex(
1696
+ identifiers: /* @__PURE__ */ z.object({
1697
+ paymentId: /* @__PURE__ */ z.string().describe("Payment ID.").regex(
1690
1698
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1691
1699
  "Must be a valid GUID"
1692
1700
  ),
1693
- orderId: z.string().describe("Order ID.").regex(
1701
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
1694
1702
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1695
1703
  "Must be a valid GUID"
1696
1704
  )
1697
1705
  }),
1698
- options: z.object({
1699
- status: z.enum([
1706
+ options: /* @__PURE__ */ z.object({
1707
+ status: /* @__PURE__ */ z.enum([
1700
1708
  "UNDEFINED",
1701
1709
  "APPROVED",
1702
1710
  "PENDING",
@@ -1711,51 +1719,51 @@ var UpdatePaymentStatusRequest = /* @__PURE__ */ z.object({
1711
1719
  }).optional()
1712
1720
  });
1713
1721
  var UpdatePaymentStatusResponse = /* @__PURE__ */ z.object({
1714
- orderTransactions: z.object({
1715
- orderId: z.string().describe("Order ID.").regex(
1722
+ orderTransactions: /* @__PURE__ */ z.object({
1723
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
1716
1724
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1717
1725
  "Must be a valid GUID"
1718
1726
  ).optional(),
1719
- payments: z.array(
1720
- z.intersection(
1721
- z.object({
1722
- _id: z.string().describe("Payment ID.").regex(
1727
+ payments: /* @__PURE__ */ z.array(
1728
+ /* @__PURE__ */ z.intersection(
1729
+ /* @__PURE__ */ z.object({
1730
+ _id: /* @__PURE__ */ z.string().describe("Payment ID.").regex(
1723
1731
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1724
1732
  "Must be a valid GUID"
1725
1733
  ).optional().nullable(),
1726
- _createdDate: z.date().describe(
1734
+ _createdDate: /* @__PURE__ */ z.date().describe(
1727
1735
  "Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1728
1736
  ).optional().nullable(),
1729
- _updatedDate: z.date().describe(
1737
+ _updatedDate: /* @__PURE__ */ z.date().describe(
1730
1738
  "Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1731
1739
  ).optional().nullable(),
1732
- amount: z.object({
1733
- amount: z.string().describe("Amount.").optional(),
1734
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1740
+ amount: /* @__PURE__ */ z.object({
1741
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1742
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1735
1743
  }).describe("Payment amount.").optional(),
1736
- refundDisabled: z.boolean().describe(
1744
+ refundDisabled: /* @__PURE__ */ z.boolean().describe(
1737
1745
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
1738
1746
  ).optional(),
1739
- supportReceiptGeneration: z.boolean().describe(
1747
+ supportReceiptGeneration: /* @__PURE__ */ z.boolean().describe(
1740
1748
  "Whether receipt generation is allowed for this payment.\n+ `true`: This payment supports receipt generation.\n+ `false`: This payment doesn't support receipt generation, or a receipt was already generated."
1741
1749
  ).optional(),
1742
- cashRounding: z.object({
1743
- unroundedAmount: z.object({
1744
- amount: z.string().describe("Amount.").optional(),
1745
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1750
+ cashRounding: /* @__PURE__ */ z.object({
1751
+ unroundedAmount: /* @__PURE__ */ z.object({
1752
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1753
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1746
1754
  }).describe(
1747
1755
  "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
1748
1756
  ).optional(),
1749
- roundingAdjustment: z.object({
1750
- amount: z.string().describe("Amount, can be negative or positive.").optional(),
1751
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1757
+ roundingAdjustment: /* @__PURE__ */ z.object({
1758
+ amount: /* @__PURE__ */ z.string().describe("Amount, can be negative or positive.").optional(),
1759
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1752
1760
  }).describe(
1753
1761
  "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
1754
1762
  ).optional()
1755
1763
  }).describe(
1756
1764
  "Details about cash rounding applied to this payment, when relevant."
1757
1765
  ).optional(),
1758
- status: z.enum([
1766
+ status: /* @__PURE__ */ z.enum([
1759
1767
  "APPROVED",
1760
1768
  "PENDING",
1761
1769
  "PENDING_MERCHANT",
@@ -1768,38 +1776,38 @@ var UpdatePaymentStatusResponse = /* @__PURE__ */ z.object({
1768
1776
  ]).describe(
1769
1777
  "Overall payment status.\n\nGift card and membership payments support only `APPROVED`, `PENDING`, `CANCELED`, `DECLINED`, and `VOIDED`. The remaining values apply to regular payments."
1770
1778
  ).optional(),
1771
- chargeCorrelationId: z.string().describe(
1779
+ chargeCorrelationId: /* @__PURE__ */ z.string().describe(
1772
1780
  "ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request."
1773
1781
  ).regex(
1774
1782
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1775
1783
  "Must be a valid GUID"
1776
1784
  ).optional().nullable()
1777
1785
  }),
1778
- z.xor([
1779
- z.object({
1780
- regularPaymentDetails: z.never().optional(),
1781
- giftcardPaymentDetails: z.never().optional(),
1782
- membershipPaymentDetails: z.never().optional()
1786
+ /* @__PURE__ */ z.xor([
1787
+ /* @__PURE__ */ z.object({
1788
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1789
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1790
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional()
1783
1791
  }),
1784
- z.object({
1785
- giftcardPaymentDetails: z.never().optional(),
1786
- membershipPaymentDetails: z.never().optional(),
1787
- regularPaymentDetails: z.intersection(
1788
- z.object({
1789
- paymentOrderId: z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
1790
- gatewayTransactionId: z.string().describe(
1792
+ /* @__PURE__ */ z.object({
1793
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1794
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
1795
+ regularPaymentDetails: /* @__PURE__ */ z.intersection(
1796
+ /* @__PURE__ */ z.object({
1797
+ paymentOrderId: /* @__PURE__ */ z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
1798
+ gatewayTransactionId: /* @__PURE__ */ z.string().describe(
1791
1799
  "Payment gateway's transaction ID.\nThis field is only returned when the value of `offline_payment` is `false`."
1792
1800
  ).max(100).optional().nullable(),
1793
- paymentMethod: z.string().describe(
1801
+ paymentMethod: /* @__PURE__ */ z.string().describe(
1794
1802
  "Payment method.\nDeprecated. Use `paymentMethodName.buyerLanguageName` instead.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
1795
1803
  ).max(150).optional().nullable(),
1796
- providerTransactionId: z.string().describe(
1804
+ providerTransactionId: /* @__PURE__ */ z.string().describe(
1797
1805
  "Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments."
1798
1806
  ).max(100).optional().nullable(),
1799
- offlinePayment: z.boolean().describe(
1807
+ offlinePayment: /* @__PURE__ */ z.boolean().describe(
1800
1808
  "Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager."
1801
1809
  ).optional(),
1802
- status: z.enum([
1810
+ status: /* @__PURE__ */ z.enum([
1803
1811
  "UNDEFINED",
1804
1812
  "APPROVED",
1805
1813
  "PENDING",
@@ -1811,116 +1819,116 @@ var UpdatePaymentStatusResponse = /* @__PURE__ */ z.object({
1811
1819
  "AUTHORIZED",
1812
1820
  "VOIDED"
1813
1821
  ]).describe("Payment status.").optional(),
1814
- savedPaymentMethod: z.boolean().describe(
1822
+ savedPaymentMethod: /* @__PURE__ */ z.boolean().describe(
1815
1823
  "Whether there is a payment agreement that allows for future charges."
1816
1824
  ).optional(),
1817
- authorizationDetails: z.object({
1818
- delayedCapture: z.boolean().describe(
1825
+ authorizationDetails: /* @__PURE__ */ z.object({
1826
+ delayedCapture: /* @__PURE__ */ z.boolean().describe(
1819
1827
  "Whether the authorized payment is of a delayed capture."
1820
1828
  ).optional(),
1821
- authorizedDate: z.date().describe(
1829
+ authorizedDate: /* @__PURE__ */ z.date().describe(
1822
1830
  "Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1823
1831
  ).optional().nullable(),
1824
- captures: z.array(
1825
- z.object({
1826
- _id: z.string().describe("Capture ID.").regex(
1832
+ captures: /* @__PURE__ */ z.array(
1833
+ /* @__PURE__ */ z.object({
1834
+ _id: /* @__PURE__ */ z.string().describe("Capture ID.").regex(
1827
1835
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1828
1836
  "Must be a valid GUID"
1829
1837
  ).optional().nullable(),
1830
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
1831
- amount: z.object({
1832
- amount: z.string().describe("Amount.").optional(),
1833
- formattedAmount: z.string().describe(
1838
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
1839
+ amount: /* @__PURE__ */ z.object({
1840
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1841
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1834
1842
  "Amount formatted with currency symbol."
1835
1843
  ).optional()
1836
1844
  }).describe("Amount of this capture").optional(),
1837
- _createdDate: z.date().describe(
1845
+ _createdDate: /* @__PURE__ */ z.date().describe(
1838
1846
  "Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1839
1847
  ).optional().nullable(),
1840
- failureDetails: z.object({
1841
- failureCode: z.string().max(100).optional()
1848
+ failureDetails: /* @__PURE__ */ z.object({
1849
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
1842
1850
  }).describe(
1843
1851
  "In case of status is FAILED may contain failure details"
1844
1852
  ).optional()
1845
1853
  })
1846
1854
  ).max(1).optional(),
1847
- void: z.object({
1848
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
1849
- voidedDate: z.date().describe(
1855
+ void: /* @__PURE__ */ z.object({
1856
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
1857
+ voidedDate: /* @__PURE__ */ z.date().describe(
1850
1858
  "Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1851
1859
  ).optional().nullable(),
1852
- failureDetails: z.object({
1853
- failureCode: z.string().max(100).optional()
1860
+ failureDetails: /* @__PURE__ */ z.object({
1861
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
1854
1862
  }).describe(
1855
1863
  "In case of status is FAILED may contain failure details"
1856
1864
  ).optional(),
1857
- reason: z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
1865
+ reason: /* @__PURE__ */ z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
1858
1866
  }).describe("Void associated with payment").optional(),
1859
- scheduledAction: z.object({
1860
- actionType: z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
1861
- executionDate: z.date().describe("The date and time of the action.").optional().nullable()
1867
+ scheduledAction: /* @__PURE__ */ z.object({
1868
+ actionType: /* @__PURE__ */ z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
1869
+ executionDate: /* @__PURE__ */ z.date().describe("The date and time of the action.").optional().nullable()
1862
1870
  }).describe("Scheduled action for this transaction").optional()
1863
1871
  }).describe("Authorization details.").optional(),
1864
- chargebacks: z.array(
1865
- z.object({
1866
- _id: z.string().describe("Chargeback ID.").regex(
1872
+ chargebacks: /* @__PURE__ */ z.array(
1873
+ /* @__PURE__ */ z.object({
1874
+ _id: /* @__PURE__ */ z.string().describe("Chargeback ID.").regex(
1867
1875
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1868
1876
  "Must be a valid GUID"
1869
1877
  ).optional(),
1870
- _createdDate: z.date().describe(
1878
+ _createdDate: /* @__PURE__ */ z.date().describe(
1871
1879
  "Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1872
1880
  ).optional().nullable(),
1873
- _updatedDate: z.date().describe(
1881
+ _updatedDate: /* @__PURE__ */ z.date().describe(
1874
1882
  "Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
1875
1883
  ).optional().nullable(),
1876
- amount: z.object({
1877
- amount: z.string().describe("Amount.").optional(),
1878
- formattedAmount: z.string().describe(
1884
+ amount: /* @__PURE__ */ z.object({
1885
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1886
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1879
1887
  "Amount formatted with currency symbol."
1880
1888
  ).optional()
1881
1889
  }).describe("Amount.").optional(),
1882
- reversalAmount: z.object({
1883
- amount: z.string().describe("Amount.").optional(),
1884
- formattedAmount: z.string().describe(
1890
+ reversalAmount: /* @__PURE__ */ z.object({
1891
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1892
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1885
1893
  "Amount formatted with currency symbol."
1886
1894
  ).optional()
1887
1895
  }).describe(
1888
1896
  "Reversal amount. Present only when status is REVERSED."
1889
1897
  ).optional(),
1890
- status: z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
1891
- externalId: z.string().describe("External chargeback ID.").regex(
1898
+ status: /* @__PURE__ */ z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
1899
+ externalId: /* @__PURE__ */ z.string().describe("External chargeback ID.").regex(
1892
1900
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1893
1901
  "Must be a valid GUID"
1894
1902
  ).optional().nullable()
1895
1903
  })
1896
1904
  ).max(6).optional(),
1897
- platformFee: z.object({
1898
- amount: z.string().describe("Amount.").optional(),
1899
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1905
+ platformFee: /* @__PURE__ */ z.object({
1906
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1907
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1900
1908
  }).describe(
1901
1909
  "Platform fee amount associated with this payment."
1902
1910
  ).optional(),
1903
- paymentMethodName: z.object({
1904
- buyerLanguageName: z.string().describe(
1911
+ paymentMethodName: /* @__PURE__ */ z.object({
1912
+ buyerLanguageName: /* @__PURE__ */ z.string().describe(
1905
1913
  "Translated payment method name in buyer language."
1906
1914
  ).max(150).optional().nullable(),
1907
- siteLanguageName: z.string().describe(
1915
+ siteLanguageName: /* @__PURE__ */ z.string().describe(
1908
1916
  "Translated payment method name in site owner language."
1909
1917
  ).max(150).optional().nullable(),
1910
- userDefinedName: z.intersection(
1911
- z.object({}),
1912
- z.xor([
1913
- z.object({
1914
- predefined: z.never().optional(),
1915
- custom: z.never().optional()
1918
+ userDefinedName: /* @__PURE__ */ z.intersection(
1919
+ /* @__PURE__ */ z.object({}),
1920
+ /* @__PURE__ */ z.xor([
1921
+ /* @__PURE__ */ z.object({
1922
+ predefined: /* @__PURE__ */ z.never().optional(),
1923
+ custom: /* @__PURE__ */ z.never().optional()
1916
1924
  }),
1917
- z.object({
1918
- custom: z.never().optional(),
1919
- predefined: z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
1925
+ /* @__PURE__ */ z.object({
1926
+ custom: /* @__PURE__ */ z.never().optional(),
1927
+ predefined: /* @__PURE__ */ z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
1920
1928
  }),
1921
- z.object({
1922
- predefined: z.never().optional(),
1923
- custom: z.string().describe(
1929
+ /* @__PURE__ */ z.object({
1930
+ predefined: /* @__PURE__ */ z.never().optional(),
1931
+ custom: /* @__PURE__ */ z.string().describe(
1924
1932
  'Custom payment method name provided by user.\n\nFor example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.'
1925
1933
  ).min(1).max(150)
1926
1934
  })
@@ -1932,70 +1940,72 @@ var UpdatePaymentStatusResponse = /* @__PURE__ */ z.object({
1932
1940
  "Payment method with buyer and optional owner translations.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
1933
1941
  ).optional()
1934
1942
  }),
1935
- z.xor([
1936
- z.object({ creditCardDetails: z.never().optional() }),
1937
- z.object({
1938
- creditCardDetails: z.object({
1939
- lastFourDigits: z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
1940
- brand: z.string().describe("Card issuer's brand.").max(100).optional().nullable()
1943
+ /* @__PURE__ */ z.xor([
1944
+ /* @__PURE__ */ z.object({
1945
+ creditCardDetails: /* @__PURE__ */ z.never().optional()
1946
+ }),
1947
+ /* @__PURE__ */ z.object({
1948
+ creditCardDetails: /* @__PURE__ */ z.object({
1949
+ lastFourDigits: /* @__PURE__ */ z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
1950
+ brand: /* @__PURE__ */ z.string().describe("Card issuer's brand.").max(100).optional().nullable()
1941
1951
  }).describe("Credit card details.")
1942
1952
  })
1943
1953
  ])
1944
1954
  ).describe("Regular payment details.")
1945
1955
  }),
1946
- z.object({
1947
- regularPaymentDetails: z.never().optional(),
1948
- membershipPaymentDetails: z.never().optional(),
1949
- giftcardPaymentDetails: z.object({
1950
- giftCardPaymentId: z.string().describe("Gift card payment ID.").max(100).optional(),
1951
- appId: z.string().describe("ID of the app that created the gift card.").regex(
1956
+ /* @__PURE__ */ z.object({
1957
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1958
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
1959
+ giftcardPaymentDetails: /* @__PURE__ */ z.object({
1960
+ giftCardPaymentId: /* @__PURE__ */ z.string().describe("Gift card payment ID.").max(100).optional(),
1961
+ appId: /* @__PURE__ */ z.string().describe("ID of the app that created the gift card.").regex(
1952
1962
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1953
1963
  "Must be a valid GUID"
1954
1964
  ).optional(),
1955
- voided: z.boolean().describe("Whether the gift card is voided.").optional(),
1956
- obfuscatedCode: z.string().describe(
1965
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the gift card is voided.").optional(),
1966
+ obfuscatedCode: /* @__PURE__ */ z.string().describe(
1957
1967
  "Gift card code with all but the last four characters masked. For example, `************QXY1`."
1958
1968
  ).max(30).optional().nullable()
1959
1969
  }).describe("Gift card payment details.")
1960
1970
  }),
1961
- z.object({
1962
- regularPaymentDetails: z.never().optional(),
1963
- giftcardPaymentDetails: z.never().optional(),
1964
- membershipPaymentDetails: z.object({
1965
- membershipId: z.string().describe("Membership ID.").max(200).optional(),
1966
- lineItemId: z.string().describe(
1971
+ /* @__PURE__ */ z.object({
1972
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
1973
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
1974
+ membershipPaymentDetails: /* @__PURE__ */ z.object({
1975
+ membershipId: /* @__PURE__ */ z.string().describe("Membership ID.").max(200).optional(),
1976
+ lineItemId: /* @__PURE__ */ z.string().describe(
1967
1977
  "ID of the line item this membership applies to."
1968
1978
  ).min(1).max(100).optional(),
1969
- status: z.enum([
1979
+ status: /* @__PURE__ */ z.enum([
1970
1980
  "CHARGED",
1971
1981
  "CHARGE_FAILED",
1972
1982
  "CHARGE_PENDING",
1973
1983
  "VOIDED"
1974
1984
  ]).describe("Payment status.").optional(),
1975
- name: z.object({
1976
- original: z.string().describe("Membership name.").max(100).optional(),
1977
- translated: z.string().describe(
1985
+ name: /* @__PURE__ */ z.object({
1986
+ original: /* @__PURE__ */ z.string().describe("Membership name.").max(100).optional(),
1987
+ translated: /* @__PURE__ */ z.string().describe(
1978
1988
  "Translated membership name. Defaults to `original` when not provided."
1979
1989
  ).max(100).optional().nullable()
1980
1990
  }).describe("Membership name.").optional(),
1981
- externalTransactionId: z.string().describe(
1991
+ externalTransactionId: /* @__PURE__ */ z.string().describe(
1982
1992
  "The transaction ID in the membership system. Can be used to void the transaction."
1983
1993
  ).min(1).max(100).optional().nullable(),
1984
- voided: z.boolean().describe("Whether the membership is voided.").optional(),
1985
- providerAppId: z.string().describe(
1994
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the membership is voided.").optional(),
1995
+ providerAppId: /* @__PURE__ */ z.string().describe(
1986
1996
  "ID of the application providing this payment option."
1987
1997
  ).regex(
1988
1998
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1989
1999
  "Must be a valid GUID"
1990
2000
  ).optional(),
1991
- futureMembership: z.object({
1992
- lineItemId: z.string().describe(
2001
+ futureMembership: /* @__PURE__ */ z.object({
2002
+ lineItemId: /* @__PURE__ */ z.string().describe(
1993
2003
  "ID of the plan line item in the order from which the membership will be created."
1994
2004
  ).regex(
1995
2005
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1996
2006
  "Must be a valid GUID"
1997
2007
  ).optional(),
1998
- benefitId: z.string().describe(
2008
+ benefitId: /* @__PURE__ */ z.string().describe(
1999
2009
  "ID of the benefit the future membership will grant."
2000
2010
  ).max(200).optional()
2001
2011
  }).describe(
@@ -2006,132 +2016,132 @@ var UpdatePaymentStatusResponse = /* @__PURE__ */ z.object({
2006
2016
  ])
2007
2017
  )
2008
2018
  ).max(100).optional(),
2009
- refunds: z.array(
2010
- z.object({
2011
- _id: z.string().describe("Refund ID.").regex(
2019
+ refunds: /* @__PURE__ */ z.array(
2020
+ /* @__PURE__ */ z.object({
2021
+ _id: /* @__PURE__ */ z.string().describe("Refund ID.").regex(
2012
2022
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2013
2023
  "Must be a valid GUID"
2014
2024
  ).optional(),
2015
- transactions: z.array(
2016
- z.object({
2017
- paymentId: z.string().describe("ID of the payment associated with this refund.").regex(
2025
+ transactions: /* @__PURE__ */ z.array(
2026
+ /* @__PURE__ */ z.object({
2027
+ paymentId: /* @__PURE__ */ z.string().describe("ID of the payment associated with this refund.").regex(
2018
2028
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2019
2029
  "Must be a valid GUID"
2020
2030
  ).optional(),
2021
- amount: z.object({
2022
- amount: z.string().describe("Amount.").optional(),
2023
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2031
+ amount: /* @__PURE__ */ z.object({
2032
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2033
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2024
2034
  }).describe("Refund amount.").optional(),
2025
- refundStatus: z.enum([
2035
+ refundStatus: /* @__PURE__ */ z.enum([
2026
2036
  "PENDING",
2027
2037
  "SUCCEEDED",
2028
2038
  "FAILED",
2029
2039
  "SCHEDULED",
2030
2040
  "STARTED"
2031
2041
  ]).describe("Refund status.").optional(),
2032
- refundStatusInfo: z.object({
2033
- paymentGatewayReasonCode: z.string().describe(
2042
+ refundStatusInfo: /* @__PURE__ */ z.object({
2043
+ paymentGatewayReasonCode: /* @__PURE__ */ z.string().describe(
2034
2044
  "Reason code for the refund's current status.\n\nLearn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes)."
2035
2045
  ).min(1).max(10).optional().nullable(),
2036
- description: z.string().describe(
2046
+ description: /* @__PURE__ */ z.string().describe(
2037
2047
  "Free text explanation of current refund status."
2038
2048
  ).min(1).max(1e3).optional().nullable()
2039
2049
  }).describe("Optional details of current refund status.").optional(),
2040
- gatewayRefundId: z.string().describe(
2050
+ gatewayRefundId: /* @__PURE__ */ z.string().describe(
2041
2051
  "Payment gateway's refund ID.\nThis field is only returned when the value of `external_refund` is `false`."
2042
2052
  ).regex(
2043
2053
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2044
2054
  "Must be a valid GUID"
2045
2055
  ).optional().nullable(),
2046
- providerRefundId: z.string().describe(
2056
+ providerRefundId: /* @__PURE__ */ z.string().describe(
2047
2057
  "ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds."
2048
2058
  ).optional().nullable(),
2049
- externalRefund: z.boolean().describe(
2059
+ externalRefund: /* @__PURE__ */ z.boolean().describe(
2050
2060
  "Whether refund was made externally and manually on the payment provider's side."
2051
2061
  ).optional()
2052
2062
  })
2053
2063
  ).min(0).max(50).optional(),
2054
- details: z.object({
2055
- items: z.array(
2056
- z.object({
2057
- lineItemId: z.string().describe("Line item ID the refunded line item.").regex(
2064
+ details: /* @__PURE__ */ z.object({
2065
+ items: /* @__PURE__ */ z.array(
2066
+ /* @__PURE__ */ z.object({
2067
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID the refunded line item.").regex(
2058
2068
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2059
2069
  "Must be a valid GUID"
2060
2070
  ).optional(),
2061
- quantity: z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
2071
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity refunded.").min(1).max(1e5).optional()
2062
2072
  })
2063
2073
  ).min(0).max(300).optional(),
2064
- shippingIncluded: z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
2065
- reason: z.string().describe(
2074
+ shippingIncluded: /* @__PURE__ */ z.boolean().describe("Whether the shipping fee was also refunded.").optional(),
2075
+ reason: /* @__PURE__ */ z.string().describe(
2066
2076
  "Reason for the refund, provided by customer (optional)."
2067
2077
  ).max(200).optional().nullable(),
2068
- lineItems: z.array(
2069
- z.object({
2070
- lineItemId: z.string().describe("Line item ID.").regex(
2078
+ lineItems: /* @__PURE__ */ z.array(
2079
+ /* @__PURE__ */ z.object({
2080
+ lineItemId: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
2071
2081
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2072
2082
  "Must be a valid GUID"
2073
2083
  ).optional(),
2074
- quantity: z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
2084
+ quantity: /* @__PURE__ */ z.number().int().describe("Refund quantity.").min(1).max(1e5).optional()
2075
2085
  })
2076
2086
  ).min(0).max(300).optional(),
2077
- additionalFees: z.array(
2078
- z.object({
2079
- additionalFeeId: z.string().describe("Additional fee ID.").regex(
2087
+ additionalFees: /* @__PURE__ */ z.array(
2088
+ /* @__PURE__ */ z.object({
2089
+ additionalFeeId: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
2080
2090
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2081
2091
  "Must be a valid GUID"
2082
2092
  ).optional(),
2083
- amount: z.object({
2084
- amount: z.string().describe("Amount.").optional(),
2085
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2093
+ amount: /* @__PURE__ */ z.object({
2094
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2095
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2086
2096
  }).describe("Refund amount.").optional()
2087
2097
  })
2088
2098
  ).min(0).max(100).optional(),
2089
- shipping: z.object({
2090
- amount: z.object({
2091
- amount: z.string().describe("Amount.").optional(),
2092
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2099
+ shipping: /* @__PURE__ */ z.object({
2100
+ amount: /* @__PURE__ */ z.object({
2101
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2102
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2093
2103
  }).describe("Refund amount.").optional()
2094
2104
  }).describe("Shipping amount that was refunded.").optional()
2095
2105
  }).describe("Refund business details.").optional(),
2096
- _createdDate: z.date().describe(
2106
+ _createdDate: /* @__PURE__ */ z.date().describe(
2097
2107
  "Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
2098
2108
  ).optional().nullable(),
2099
- summary: z.object({
2100
- requestedRefund: z.object({
2101
- amount: z.string().describe("Amount.").optional(),
2102
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2109
+ summary: /* @__PURE__ */ z.object({
2110
+ requestedRefund: /* @__PURE__ */ z.object({
2111
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2112
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2103
2113
  }).describe("Total amount requested for refund.").optional(),
2104
- pendingRefund: z.object({
2105
- amount: z.string().describe("Amount.").optional(),
2106
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2114
+ pendingRefund: /* @__PURE__ */ z.object({
2115
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2116
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2107
2117
  }).describe(
2108
2118
  "Pending refund amount - the portion of `requestedRefund` that is still pending."
2109
2119
  ).optional(),
2110
- refunded: z.object({
2111
- amount: z.string().describe("Amount.").optional(),
2112
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2120
+ refunded: /* @__PURE__ */ z.object({
2121
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2122
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2113
2123
  }).describe(
2114
2124
  "Refunded amount - the portion of `requestedRefund` that refunded successfully."
2115
2125
  ).optional(),
2116
- failedRefundAmount: z.object({
2117
- amount: z.string().describe("Amount.").optional(),
2118
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2126
+ failedRefundAmount: /* @__PURE__ */ z.object({
2127
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2128
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2119
2129
  }).describe(
2120
2130
  "Failed refund amount - the portion of `requestedRefund` that failed."
2121
2131
  ).optional(),
2122
- pending: z.boolean().describe(
2132
+ pending: /* @__PURE__ */ z.boolean().describe(
2123
2133
  'Whether at least one refund transaction is still in `"PENDING"` status.'
2124
2134
  ).optional(),
2125
- breakdown: z.object({
2126
- lineItems: z.array(
2127
- z.object({
2128
- lineItemId: z.string().describe("ID of the refunded line item.").regex(
2135
+ breakdown: /* @__PURE__ */ z.object({
2136
+ lineItems: /* @__PURE__ */ z.array(
2137
+ /* @__PURE__ */ z.object({
2138
+ lineItemId: /* @__PURE__ */ z.string().describe("ID of the refunded line item.").regex(
2129
2139
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2130
2140
  "Must be a valid GUID"
2131
2141
  ).optional(),
2132
- totalRefundedAmount: z.object({
2133
- amount: z.string().describe("Amount.").optional(),
2134
- formattedAmount: z.string().describe(
2142
+ totalRefundedAmount: /* @__PURE__ */ z.object({
2143
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2144
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2135
2145
  "Amount formatted with currency symbol."
2136
2146
  ).optional()
2137
2147
  }).describe(
@@ -2143,7 +2153,7 @@ var UpdatePaymentStatusResponse = /* @__PURE__ */ z.object({
2143
2153
  "Breakdown of refunded items. Available only after refund is complete."
2144
2154
  ).optional()
2145
2155
  }).describe("Aggregated refund summary.").optional(),
2146
- requestingServiceAppId: z.string().describe("ID of the app that initiated this refund.").regex(
2156
+ requestingServiceAppId: /* @__PURE__ */ z.string().describe("ID of the app that initiated this refund.").regex(
2147
2157
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2148
2158
  "Must be a valid GUID"
2149
2159
  ).optional().nullable()
@@ -2152,22 +2162,22 @@ var UpdatePaymentStatusResponse = /* @__PURE__ */ z.object({
2152
2162
  }).describe("Order ID and its associated transactions after update.").optional()
2153
2163
  });
2154
2164
  var BulkUpdatePaymentStatusesRequest = /* @__PURE__ */ z.object({
2155
- paymentAndOrderIds: z.array(
2156
- z.object({
2157
- orderId: z.string().describe("Order ID.").regex(
2165
+ paymentAndOrderIds: /* @__PURE__ */ z.array(
2166
+ /* @__PURE__ */ z.object({
2167
+ orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
2158
2168
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2159
2169
  "Must be a valid GUID"
2160
2170
  ).optional(),
2161
- paymentId: z.string().describe(
2171
+ paymentId: /* @__PURE__ */ z.string().describe(
2162
2172
  "Payment ID.\ntodo: remove comment once UI will use BulkMarkOrderAsPaid"
2163
2173
  ).optional()
2164
2174
  })
2165
2175
  ).min(1).max(300),
2166
- options: z.object({
2167
- returnFullEntity: z.boolean().describe(
2176
+ options: /* @__PURE__ */ z.object({
2177
+ returnFullEntity: /* @__PURE__ */ z.boolean().describe(
2168
2178
  "Whether to return the full payment entity (`results.item`) in the response."
2169
2179
  ).optional(),
2170
- status: z.enum([
2180
+ status: /* @__PURE__ */ z.enum([
2171
2181
  "UNDEFINED",
2172
2182
  "APPROVED",
2173
2183
  "PENDING",
@@ -2182,63 +2192,63 @@ var BulkUpdatePaymentStatusesRequest = /* @__PURE__ */ z.object({
2182
2192
  }).optional()
2183
2193
  });
2184
2194
  var BulkUpdatePaymentStatusesResponse = /* @__PURE__ */ z.object({
2185
- results: z.array(
2186
- z.object({
2187
- itemMetadata: z.object({
2188
- _id: z.string().describe(
2195
+ results: /* @__PURE__ */ z.array(
2196
+ /* @__PURE__ */ z.object({
2197
+ itemMetadata: /* @__PURE__ */ z.object({
2198
+ _id: /* @__PURE__ */ z.string().describe(
2189
2199
  "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
2190
2200
  ).optional().nullable(),
2191
- originalIndex: z.number().int().describe(
2201
+ originalIndex: /* @__PURE__ */ z.number().int().describe(
2192
2202
  "Index of the item within the request array. Allows for correlation between request and response items."
2193
2203
  ).optional(),
2194
- success: z.boolean().describe(
2204
+ success: /* @__PURE__ */ z.boolean().describe(
2195
2205
  "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
2196
2206
  ).optional(),
2197
- error: z.object({
2198
- code: z.string().describe("Error code.").optional(),
2199
- description: z.string().describe("Description of the error.").optional(),
2200
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
2207
+ error: /* @__PURE__ */ z.object({
2208
+ code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
2209
+ description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
2210
+ data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
2201
2211
  }).describe("Details about the error in case of failure.").optional()
2202
2212
  }).describe("Item metadata.").optional(),
2203
- item: z.intersection(
2204
- z.object({
2205
- _id: z.string().describe("Payment ID.").regex(
2213
+ item: /* @__PURE__ */ z.intersection(
2214
+ /* @__PURE__ */ z.object({
2215
+ _id: /* @__PURE__ */ z.string().describe("Payment ID.").regex(
2206
2216
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2207
2217
  "Must be a valid GUID"
2208
2218
  ).optional().nullable(),
2209
- _createdDate: z.date().describe(
2219
+ _createdDate: /* @__PURE__ */ z.date().describe(
2210
2220
  "Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
2211
2221
  ).optional().nullable(),
2212
- _updatedDate: z.date().describe(
2222
+ _updatedDate: /* @__PURE__ */ z.date().describe(
2213
2223
  "Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
2214
2224
  ).optional().nullable(),
2215
- amount: z.object({
2216
- amount: z.string().describe("Amount.").optional(),
2217
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2225
+ amount: /* @__PURE__ */ z.object({
2226
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2227
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2218
2228
  }).describe("Payment amount.").optional(),
2219
- refundDisabled: z.boolean().describe(
2229
+ refundDisabled: /* @__PURE__ */ z.boolean().describe(
2220
2230
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
2221
2231
  ).optional(),
2222
- supportReceiptGeneration: z.boolean().describe(
2232
+ supportReceiptGeneration: /* @__PURE__ */ z.boolean().describe(
2223
2233
  "Whether receipt generation is allowed for this payment.\n+ `true`: This payment supports receipt generation.\n+ `false`: This payment doesn't support receipt generation, or a receipt was already generated."
2224
2234
  ).optional(),
2225
- cashRounding: z.object({
2226
- unroundedAmount: z.object({
2227
- amount: z.string().describe("Amount.").optional(),
2228
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2235
+ cashRounding: /* @__PURE__ */ z.object({
2236
+ unroundedAmount: /* @__PURE__ */ z.object({
2237
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2238
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2229
2239
  }).describe(
2230
2240
  "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
2231
2241
  ).optional(),
2232
- roundingAdjustment: z.object({
2233
- amount: z.string().describe("Amount, can be negative or positive.").optional(),
2234
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2242
+ roundingAdjustment: /* @__PURE__ */ z.object({
2243
+ amount: /* @__PURE__ */ z.string().describe("Amount, can be negative or positive.").optional(),
2244
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2235
2245
  }).describe(
2236
2246
  "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
2237
2247
  ).optional()
2238
2248
  }).describe(
2239
2249
  "Details about cash rounding applied to this payment, when relevant."
2240
2250
  ).optional(),
2241
- status: z.enum([
2251
+ status: /* @__PURE__ */ z.enum([
2242
2252
  "APPROVED",
2243
2253
  "PENDING",
2244
2254
  "PENDING_MERCHANT",
@@ -2251,38 +2261,38 @@ var BulkUpdatePaymentStatusesResponse = /* @__PURE__ */ z.object({
2251
2261
  ]).describe(
2252
2262
  "Overall payment status.\n\nGift card and membership payments support only `APPROVED`, `PENDING`, `CANCELED`, `DECLINED`, and `VOIDED`. The remaining values apply to regular payments."
2253
2263
  ).optional(),
2254
- chargeCorrelationId: z.string().describe(
2264
+ chargeCorrelationId: /* @__PURE__ */ z.string().describe(
2255
2265
  "ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request."
2256
2266
  ).regex(
2257
2267
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2258
2268
  "Must be a valid GUID"
2259
2269
  ).optional().nullable()
2260
2270
  }),
2261
- z.xor([
2262
- z.object({
2263
- regularPaymentDetails: z.never().optional(),
2264
- giftcardPaymentDetails: z.never().optional(),
2265
- membershipPaymentDetails: z.never().optional()
2271
+ /* @__PURE__ */ z.xor([
2272
+ /* @__PURE__ */ z.object({
2273
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
2274
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
2275
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional()
2266
2276
  }),
2267
- z.object({
2268
- giftcardPaymentDetails: z.never().optional(),
2269
- membershipPaymentDetails: z.never().optional(),
2270
- regularPaymentDetails: z.intersection(
2271
- z.object({
2272
- paymentOrderId: z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
2273
- gatewayTransactionId: z.string().describe(
2277
+ /* @__PURE__ */ z.object({
2278
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
2279
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
2280
+ regularPaymentDetails: /* @__PURE__ */ z.intersection(
2281
+ /* @__PURE__ */ z.object({
2282
+ paymentOrderId: /* @__PURE__ */ z.string().describe("Wix Payments order ID.").max(100).optional().nullable(),
2283
+ gatewayTransactionId: /* @__PURE__ */ z.string().describe(
2274
2284
  "Payment gateway's transaction ID.\nThis field is only returned when the value of `offline_payment` is `false`."
2275
2285
  ).max(100).optional().nullable(),
2276
- paymentMethod: z.string().describe(
2286
+ paymentMethod: /* @__PURE__ */ z.string().describe(
2277
2287
  "Payment method.\nDeprecated. Use `paymentMethodName.buyerLanguageName` instead.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
2278
2288
  ).max(150).optional().nullable(),
2279
- providerTransactionId: z.string().describe(
2289
+ providerTransactionId: /* @__PURE__ */ z.string().describe(
2280
2290
  "Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments."
2281
2291
  ).max(100).optional().nullable(),
2282
- offlinePayment: z.boolean().describe(
2292
+ offlinePayment: /* @__PURE__ */ z.boolean().describe(
2283
2293
  "Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager."
2284
2294
  ).optional(),
2285
- status: z.enum([
2295
+ status: /* @__PURE__ */ z.enum([
2286
2296
  "UNDEFINED",
2287
2297
  "APPROVED",
2288
2298
  "PENDING",
@@ -2294,116 +2304,116 @@ var BulkUpdatePaymentStatusesResponse = /* @__PURE__ */ z.object({
2294
2304
  "AUTHORIZED",
2295
2305
  "VOIDED"
2296
2306
  ]).describe("Payment status.").optional(),
2297
- savedPaymentMethod: z.boolean().describe(
2307
+ savedPaymentMethod: /* @__PURE__ */ z.boolean().describe(
2298
2308
  "Whether there is a payment agreement that allows for future charges."
2299
2309
  ).optional(),
2300
- authorizationDetails: z.object({
2301
- delayedCapture: z.boolean().describe(
2310
+ authorizationDetails: /* @__PURE__ */ z.object({
2311
+ delayedCapture: /* @__PURE__ */ z.boolean().describe(
2302
2312
  "Whether the authorized payment is of a delayed capture."
2303
2313
  ).optional(),
2304
- authorizedDate: z.date().describe(
2314
+ authorizedDate: /* @__PURE__ */ z.date().describe(
2305
2315
  "Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
2306
2316
  ).optional().nullable(),
2307
- captures: z.array(
2308
- z.object({
2309
- _id: z.string().describe("Capture ID.").regex(
2317
+ captures: /* @__PURE__ */ z.array(
2318
+ /* @__PURE__ */ z.object({
2319
+ _id: /* @__PURE__ */ z.string().describe("Capture ID.").regex(
2310
2320
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2311
2321
  "Must be a valid GUID"
2312
2322
  ).optional().nullable(),
2313
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
2314
- amount: z.object({
2315
- amount: z.string().describe("Amount.").optional(),
2316
- formattedAmount: z.string().describe(
2323
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this capture action").optional(),
2324
+ amount: /* @__PURE__ */ z.object({
2325
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2326
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2317
2327
  "Amount formatted with currency symbol."
2318
2328
  ).optional()
2319
2329
  }).describe("Amount of this capture").optional(),
2320
- _createdDate: z.date().describe(
2330
+ _createdDate: /* @__PURE__ */ z.date().describe(
2321
2331
  "Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
2322
2332
  ).optional().nullable(),
2323
- failureDetails: z.object({
2324
- failureCode: z.string().max(100).optional()
2333
+ failureDetails: /* @__PURE__ */ z.object({
2334
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
2325
2335
  }).describe(
2326
2336
  "In case of status is FAILED may contain failure details"
2327
2337
  ).optional()
2328
2338
  })
2329
2339
  ).max(1).optional(),
2330
- void: z.object({
2331
- status: z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
2332
- voidedDate: z.date().describe(
2340
+ void: /* @__PURE__ */ z.object({
2341
+ status: /* @__PURE__ */ z.enum(["PENDING", "SUCCEEDED", "FAILED"]).describe("Status of this void action").optional(),
2342
+ voidedDate: /* @__PURE__ */ z.date().describe(
2333
2343
  "Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
2334
2344
  ).optional().nullable(),
2335
- failureDetails: z.object({
2336
- failureCode: z.string().max(100).optional()
2345
+ failureDetails: /* @__PURE__ */ z.object({
2346
+ failureCode: /* @__PURE__ */ z.string().max(100).optional()
2337
2347
  }).describe(
2338
2348
  "In case of status is FAILED may contain failure details"
2339
2349
  ).optional(),
2340
- reason: z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
2350
+ reason: /* @__PURE__ */ z.enum(["MANUAL", "SCHEDULED"]).describe("Reason of void action").optional()
2341
2351
  }).describe("Void associated with payment").optional(),
2342
- scheduledAction: z.object({
2343
- actionType: z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
2344
- executionDate: z.date().describe("The date and time of the action.").optional().nullable()
2352
+ scheduledAction: /* @__PURE__ */ z.object({
2353
+ actionType: /* @__PURE__ */ z.enum(["VOID", "CAPTURE"]).describe("Type of the action.").optional(),
2354
+ executionDate: /* @__PURE__ */ z.date().describe("The date and time of the action.").optional().nullable()
2345
2355
  }).describe("Scheduled action for this transaction").optional()
2346
2356
  }).describe("Authorization details.").optional(),
2347
- chargebacks: z.array(
2348
- z.object({
2349
- _id: z.string().describe("Chargeback ID.").regex(
2357
+ chargebacks: /* @__PURE__ */ z.array(
2358
+ /* @__PURE__ */ z.object({
2359
+ _id: /* @__PURE__ */ z.string().describe("Chargeback ID.").regex(
2350
2360
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2351
2361
  "Must be a valid GUID"
2352
2362
  ).optional(),
2353
- _createdDate: z.date().describe(
2363
+ _createdDate: /* @__PURE__ */ z.date().describe(
2354
2364
  "Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
2355
2365
  ).optional().nullable(),
2356
- _updatedDate: z.date().describe(
2366
+ _updatedDate: /* @__PURE__ */ z.date().describe(
2357
2367
  "Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided."
2358
2368
  ).optional().nullable(),
2359
- amount: z.object({
2360
- amount: z.string().describe("Amount.").optional(),
2361
- formattedAmount: z.string().describe(
2369
+ amount: /* @__PURE__ */ z.object({
2370
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2371
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2362
2372
  "Amount formatted with currency symbol."
2363
2373
  ).optional()
2364
2374
  }).describe("Amount.").optional(),
2365
- reversalAmount: z.object({
2366
- amount: z.string().describe("Amount.").optional(),
2367
- formattedAmount: z.string().describe(
2375
+ reversalAmount: /* @__PURE__ */ z.object({
2376
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2377
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2368
2378
  "Amount formatted with currency symbol."
2369
2379
  ).optional()
2370
2380
  }).describe(
2371
2381
  "Reversal amount. Present only when status is REVERSED."
2372
2382
  ).optional(),
2373
- status: z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
2374
- externalId: z.string().describe("External chargeback ID.").regex(
2383
+ status: /* @__PURE__ */ z.enum(["APPROVED", "REVERSED"]).describe('Status.\n\nDefault: `"APPROVED"`.').optional(),
2384
+ externalId: /* @__PURE__ */ z.string().describe("External chargeback ID.").regex(
2375
2385
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2376
2386
  "Must be a valid GUID"
2377
2387
  ).optional().nullable()
2378
2388
  })
2379
2389
  ).max(6).optional(),
2380
- platformFee: z.object({
2381
- amount: z.string().describe("Amount.").optional(),
2382
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2390
+ platformFee: /* @__PURE__ */ z.object({
2391
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2392
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2383
2393
  }).describe(
2384
2394
  "Platform fee amount associated with this payment."
2385
2395
  ).optional(),
2386
- paymentMethodName: z.object({
2387
- buyerLanguageName: z.string().describe(
2396
+ paymentMethodName: /* @__PURE__ */ z.object({
2397
+ buyerLanguageName: /* @__PURE__ */ z.string().describe(
2388
2398
  "Translated payment method name in buyer language."
2389
2399
  ).max(150).optional().nullable(),
2390
- siteLanguageName: z.string().describe(
2400
+ siteLanguageName: /* @__PURE__ */ z.string().describe(
2391
2401
  "Translated payment method name in site owner language."
2392
2402
  ).max(150).optional().nullable(),
2393
- userDefinedName: z.intersection(
2394
- z.object({}),
2395
- z.xor([
2396
- z.object({
2397
- predefined: z.never().optional(),
2398
- custom: z.never().optional()
2403
+ userDefinedName: /* @__PURE__ */ z.intersection(
2404
+ /* @__PURE__ */ z.object({}),
2405
+ /* @__PURE__ */ z.xor([
2406
+ /* @__PURE__ */ z.object({
2407
+ predefined: /* @__PURE__ */ z.never().optional(),
2408
+ custom: /* @__PURE__ */ z.never().optional()
2399
2409
  }),
2400
- z.object({
2401
- custom: z.never().optional(),
2402
- predefined: z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
2410
+ /* @__PURE__ */ z.object({
2411
+ custom: /* @__PURE__ */ z.never().optional(),
2412
+ predefined: /* @__PURE__ */ z.enum(["CASH", "BANK_TRANSFER", "CHECK"]).describe("Predefined payment method.")
2403
2413
  }),
2404
- z.object({
2405
- predefined: z.never().optional(),
2406
- custom: z.string().describe(
2414
+ /* @__PURE__ */ z.object({
2415
+ predefined: /* @__PURE__ */ z.never().optional(),
2416
+ custom: /* @__PURE__ */ z.string().describe(
2407
2417
  'Custom payment method name provided by user.\n\nFor example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.'
2408
2418
  ).min(1).max(150)
2409
2419
  })
@@ -2415,70 +2425,72 @@ var BulkUpdatePaymentStatusesResponse = /* @__PURE__ */ z.object({
2415
2425
  "Payment method with buyer and optional owner translations.\nNon-exhaustive list of supported values:\n+ `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`"
2416
2426
  ).optional()
2417
2427
  }),
2418
- z.xor([
2419
- z.object({ creditCardDetails: z.never().optional() }),
2420
- z.object({
2421
- creditCardDetails: z.object({
2422
- lastFourDigits: z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
2423
- brand: z.string().describe("Card issuer's brand.").max(100).optional().nullable()
2428
+ /* @__PURE__ */ z.xor([
2429
+ /* @__PURE__ */ z.object({
2430
+ creditCardDetails: /* @__PURE__ */ z.never().optional()
2431
+ }),
2432
+ /* @__PURE__ */ z.object({
2433
+ creditCardDetails: /* @__PURE__ */ z.object({
2434
+ lastFourDigits: /* @__PURE__ */ z.string().describe("The last 4 digits of the card number.").max(4).optional().nullable(),
2435
+ brand: /* @__PURE__ */ z.string().describe("Card issuer's brand.").max(100).optional().nullable()
2424
2436
  }).describe("Credit card details.")
2425
2437
  })
2426
2438
  ])
2427
2439
  ).describe("Regular payment details.")
2428
2440
  }),
2429
- z.object({
2430
- regularPaymentDetails: z.never().optional(),
2431
- membershipPaymentDetails: z.never().optional(),
2432
- giftcardPaymentDetails: z.object({
2433
- giftCardPaymentId: z.string().describe("Gift card payment ID.").max(100).optional(),
2434
- appId: z.string().describe("ID of the app that created the gift card.").regex(
2441
+ /* @__PURE__ */ z.object({
2442
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
2443
+ membershipPaymentDetails: /* @__PURE__ */ z.never().optional(),
2444
+ giftcardPaymentDetails: /* @__PURE__ */ z.object({
2445
+ giftCardPaymentId: /* @__PURE__ */ z.string().describe("Gift card payment ID.").max(100).optional(),
2446
+ appId: /* @__PURE__ */ z.string().describe("ID of the app that created the gift card.").regex(
2435
2447
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2436
2448
  "Must be a valid GUID"
2437
2449
  ).optional(),
2438
- voided: z.boolean().describe("Whether the gift card is voided.").optional(),
2439
- obfuscatedCode: z.string().describe(
2450
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the gift card is voided.").optional(),
2451
+ obfuscatedCode: /* @__PURE__ */ z.string().describe(
2440
2452
  "Gift card code with all but the last four characters masked. For example, `************QXY1`."
2441
2453
  ).max(30).optional().nullable()
2442
2454
  }).describe("Gift card payment details.")
2443
2455
  }),
2444
- z.object({
2445
- regularPaymentDetails: z.never().optional(),
2446
- giftcardPaymentDetails: z.never().optional(),
2447
- membershipPaymentDetails: z.object({
2448
- membershipId: z.string().describe("Membership ID.").max(200).optional(),
2449
- lineItemId: z.string().describe(
2456
+ /* @__PURE__ */ z.object({
2457
+ regularPaymentDetails: /* @__PURE__ */ z.never().optional(),
2458
+ giftcardPaymentDetails: /* @__PURE__ */ z.never().optional(),
2459
+ membershipPaymentDetails: /* @__PURE__ */ z.object({
2460
+ membershipId: /* @__PURE__ */ z.string().describe("Membership ID.").max(200).optional(),
2461
+ lineItemId: /* @__PURE__ */ z.string().describe(
2450
2462
  "ID of the line item this membership applies to."
2451
2463
  ).min(1).max(100).optional(),
2452
- status: z.enum([
2464
+ status: /* @__PURE__ */ z.enum([
2453
2465
  "CHARGED",
2454
2466
  "CHARGE_FAILED",
2455
2467
  "CHARGE_PENDING",
2456
2468
  "VOIDED"
2457
2469
  ]).describe("Payment status.").optional(),
2458
- name: z.object({
2459
- original: z.string().describe("Membership name.").max(100).optional(),
2460
- translated: z.string().describe(
2470
+ name: /* @__PURE__ */ z.object({
2471
+ original: /* @__PURE__ */ z.string().describe("Membership name.").max(100).optional(),
2472
+ translated: /* @__PURE__ */ z.string().describe(
2461
2473
  "Translated membership name. Defaults to `original` when not provided."
2462
2474
  ).max(100).optional().nullable()
2463
2475
  }).describe("Membership name.").optional(),
2464
- externalTransactionId: z.string().describe(
2476
+ externalTransactionId: /* @__PURE__ */ z.string().describe(
2465
2477
  "The transaction ID in the membership system. Can be used to void the transaction."
2466
2478
  ).min(1).max(100).optional().nullable(),
2467
- voided: z.boolean().describe("Whether the membership is voided.").optional(),
2468
- providerAppId: z.string().describe(
2479
+ voided: /* @__PURE__ */ z.boolean().describe("Whether the membership is voided.").optional(),
2480
+ providerAppId: /* @__PURE__ */ z.string().describe(
2469
2481
  "ID of the application providing this payment option."
2470
2482
  ).regex(
2471
2483
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2472
2484
  "Must be a valid GUID"
2473
2485
  ).optional(),
2474
- futureMembership: z.object({
2475
- lineItemId: z.string().describe(
2486
+ futureMembership: /* @__PURE__ */ z.object({
2487
+ lineItemId: /* @__PURE__ */ z.string().describe(
2476
2488
  "ID of the plan line item in the order from which the membership will be created."
2477
2489
  ).regex(
2478
2490
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2479
2491
  "Must be a valid GUID"
2480
2492
  ).optional(),
2481
- benefitId: z.string().describe(
2493
+ benefitId: /* @__PURE__ */ z.string().describe(
2482
2494
  "ID of the benefit the future membership will grant."
2483
2495
  ).max(200).optional()
2484
2496
  }).describe(
@@ -2492,10 +2504,10 @@ var BulkUpdatePaymentStatusesResponse = /* @__PURE__ */ z.object({
2492
2504
  ).optional()
2493
2505
  })
2494
2506
  ).optional(),
2495
- bulkActionMetadata: z.object({
2496
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
2497
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
2498
- undetailedFailures: z.number().int().describe(
2507
+ bulkActionMetadata: /* @__PURE__ */ z.object({
2508
+ totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
2509
+ totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
2510
+ undetailedFailures: /* @__PURE__ */ z.number().int().describe(
2499
2511
  "Number of failures without details because detailed failure threshold was exceeded."
2500
2512
  ).optional()
2501
2513
  }).describe("Bulk operation metadata.").optional()