xendit-fn 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -1403,9 +1403,18 @@ const PaymentRequestStatusSchema = zod.z.union([
1403
1403
  zod.z.literal("CANCELED")
1404
1404
  ]);
1405
1405
  // Channel Code (simplified - can be expanded)
1406
- zod.z.string();
1406
+ zod.z.union([
1407
+ zod.z.literal("GCASH"),
1408
+ zod.z.literal("GRABPAY"),
1409
+ zod.z.literal("PAYMAYA"),
1410
+ zod.z.literal("SHOPEEPAY")
1411
+ ]);
1407
1412
  // Channel Properties
1408
- const ChannelPropertiesSchema = zod.z.record(zod.z.unknown());
1413
+ const ChannelPropertiesSchema = zod.z.object({
1414
+ failure_return_url: zod.z.string().url().min(8).max(2000),
1415
+ success_return_url: zod.z.string().url().min(8).max(2000),
1416
+ enable_otp: zod.z.boolean().optional()
1417
+ });
1409
1418
  // Payment Method
1410
1419
  const PaymentMethodSchema = zod.z.object({
1411
1420
  type: zod.z.string(),