@wix/auto_sdk_ecom_order-payment-requests 1.0.59 → 1.0.61

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +52 -18
  2. package/build/cjs/index.js +164 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +269 -69
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +49 -37
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.js +125 -127
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.d.mts +52 -18
  11. package/build/es/index.mjs +158 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +269 -69
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +49 -37
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/es/schemas.mjs +125 -127
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +54 -20
  20. package/build/internal/cjs/index.js +164 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +278 -80
  23. package/build/internal/cjs/index.typings.js.map +1 -1
  24. package/build/internal/cjs/meta.d.ts +49 -37
  25. package/build/internal/cjs/meta.js.map +1 -1
  26. package/build/internal/cjs/schemas.js +125 -127
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.d.mts +54 -20
  29. package/build/internal/es/index.mjs +158 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +278 -80
  32. package/build/internal/es/index.typings.mjs.map +1 -1
  33. package/build/internal/es/meta.d.mts +49 -37
  34. package/build/internal/es/meta.mjs.map +1 -1
  35. package/build/internal/es/schemas.mjs +125 -127
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.schemas.ts"],"sourcesContent":["export * from './src/ecom-v1-order-payment-request-order-payment-requests.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateOrderPaymentRequestRequest = z.object({\n options: z\n .object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('App Def ID that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to an ID from an external system, indicating the original source of the order payment request.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Additional parameters to identify the source of the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n 'Amount to collect.\\n> **Note:** The amount can only be set once.'\n ),\n currency: z\n .string()\n .describe(\n 'Currency code. The value will always match the currency used in the order.'\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order id which is associated with this payment request'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe(\n 'Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.'\n )\n .min(1)\n .max(200),\n description: z\n .string()\n .describe(\n 'Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe('Time and date the order payment request expires.')\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n '[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('OrderPaymentRequest to be created.')\n .optional(),\n })\n .optional(),\n});\nexport const CreateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('App Def ID that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to an ID from an external system, indicating the original source of the order payment request.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Additional parameters to identify the source of the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).describe('status.').optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n 'Amount to collect.\\n> **Note:** The amount can only be set once.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. The value will always match the currency used in the order.'\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order id which is associated with this payment request'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe(\n 'Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.'\n )\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe('Time and date the order payment request expires.')\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n '[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const GetOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the OrderPaymentRequest to retrieve.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('App Def ID that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to an ID from an external system, indicating the original source of the order payment request.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Additional parameters to identify the source of the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).describe('status.').optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n 'Amount to collect.\\n> **Note:** The amount can only be set once.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. The value will always match the currency used in the order.'\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order id which is associated with this payment request'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe(\n 'Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.'\n )\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe('Time and date the order payment request expires.')\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n '[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const UpdateOrderPaymentRequestRequest = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('App Def ID that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to an ID from an external system, indicating the original source of the order payment request.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Additional parameters to identify the source of the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n 'Amount to collect.\\n> **Note:** The amount can only be set once.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. The value will always match the currency used in the order.'\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order id which is associated with this payment request'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe(\n 'Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.'\n )\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe('Time and date the order payment request expires.')\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n '[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('OrderPaymentRequest to be updated, may be partial.'),\n});\nexport const UpdateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('App Def ID that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to an ID from an external system, indicating the original source of the order payment request.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Additional parameters to identify the source of the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).describe('status.').optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n 'Amount to collect.\\n> **Note:** The amount can only be set once.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. The value will always match the currency used in the order.'\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order id which is associated with this payment request'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe(\n 'Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.'\n )\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe('Time and date the order payment request expires.')\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n '[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const DeleteOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('Id of the OrderPaymentRequest to delete.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteOrderPaymentRequestResponse = z.object({});\nexport const QueryOrderPaymentRequestsRequest = z.object({\n query: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter object in the following format:\\n`\"filter\" : {\\n\"fieldName1\": \"value1\",\\n\"fieldName2\":{\"$operator\":\"value2\"}\\n}`\\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'\n )\n .optional()\n .nullable(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .max(5)\n .optional(),\n }),\n z.xor([\n z.object({ cursorPaging: z.never().optional() }),\n z.object({\n cursorPaging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.'\n ),\n }),\n ])\n )\n .describe('WQL expression.'),\n});\nexport const QueryOrderPaymentRequestsResponse = z.object({\n orderPaymentRequests: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('App Def ID that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to an ID from an external system, indicating the original source of the order payment request.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Additional parameters to identify the source of the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe('status.')\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n 'Amount to collect.\\n> **Note:** The amount can only be set once.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. The value will always match the currency used in the order.'\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order id which is associated with this payment request'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe(\n 'Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.'\n )\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe('Time and date the order payment request expires.')\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n '[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n )\n .max(1000)\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata')\n .optional(),\n});\nexport const GetOrderPaymentRequestUrlRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('Order Payment Request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestUrlResponse = z.object({\n orderPaymentRequestUrl: z\n .string()\n .describe('Order Payment Request URL.')\n .min(1)\n .max(100)\n .optional(),\n});\nexport const UpdateExtendedFieldsRequest = z.object({\n _id: z.string().describe('ID of the entity to update.'),\n namespace: z\n .string()\n .describe(\n 'Identifier for the app whose extended fields are being updated.'\n ),\n options: z.object({\n namespaceData: z\n .record(z.string(), z.any())\n .describe(\n 'Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured.'\n ),\n }),\n});\nexport const UpdateExtendedFieldsResponse = z.object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('App Def ID that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to an ID from an external system, indicating the original source of the order payment request.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Additional parameters to identify the source of the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe('status.')\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n 'Amount to collect.\\n> **Note:** The amount can only be set once.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. The value will always match the currency used in the order.'\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order id which is associated with this payment request'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe(\n 'Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.'\n )\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe('Time and date the order payment request expires.')\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n '[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the OrderPaymentRequest was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Updated OrderPaymentRequest.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,mCAAqC,SAAO;AAAA,EACvD,SACG,SAAO;AAAA,IACN,qBACG,SAAO;AAAA,MACN,KACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO;AAAA,QACN,OACG,SAAO,EACP,SAAS,oDAAoD,EAC7D;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP;AAAA,UACC;A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I,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,OACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,IACZ,aACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,OAAK,EACL,SAAS,kDAAkD,EAC3D,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,SAAO;AAAA,MACN,YACG,SAAS,SAAO,GAAK,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAChD;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,oDAAoD,EAC7D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,yDAAyD,EAClE,SAAS,EACT,SAAS;AAAA,IACZ,OACG,SAAO,EACP,SAAS,uDAAuD,EAChE,SAAS;AAAA,IACZ,uBACG,QAAQ,OAAK,CAAC,QAAQ,CAAC,CAAC,EACxB,IAAI,CAAC,EACL,SAAS;AAAA,EACd,CAAC,EACA,SAAS,8BAA8B,EACvC,SAAS;AACd,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../schemas.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.schemas.ts"],"sourcesContent":["export * from './src/ecom-v1-order-payment-request-order-payment-requests.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateOrderPaymentRequestRequest = z.object({\n options: z\n .object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that created the order payment request.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n ),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200),\n description: z\n .string()\n .describe(\n 'Description displayed to the customer on the payment page.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for this order payment request.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the order payment request was last updated.'\n )\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Order payment request to create.')\n .optional(),\n })\n .optional(),\n});\nexport const CreateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\n 'Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided.'\n )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for this order payment request.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const GetOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to retrieve.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\n 'Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided.'\n )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for this order payment request.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const UpdateOrderPaymentRequestRequest = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for this order payment request.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Order payment request to update.'),\n});\nexport const UpdateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\n 'Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided.'\n )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for this order payment request.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const DeleteOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to delete.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteOrderPaymentRequestResponse = z.object({});\nexport const QueryOrderPaymentRequestsRequest = z.object({\n query: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter object in the following format:\\n`\"filter\" : {\\n\"fieldName1\": \"value1\",\\n\"fieldName2\":{\"$operator\":\"value2\"}\\n}`\\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'\n )\n .optional()\n .nullable(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .max(5)\n .optional(),\n }),\n z.xor([\n z.object({ cursorPaging: z.never().optional() }),\n z.object({\n cursorPaging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.'\n ),\n }),\n ])\n )\n .describe('WQL expression.'),\n});\nexport const QueryOrderPaymentRequestsResponse = z.object({\n orderPaymentRequests: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\n 'Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided.'\n )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description displayed to the customer on the payment page.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for this order payment request.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n )\n .max(1000)\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GetOrderPaymentRequestUrlRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestUrlResponse = z.object({\n orderPaymentRequestUrl: z\n .string()\n .describe('Payment page URL for the order payment request.')\n .min(1)\n .max(100)\n .optional(),\n});\nexport const UpdateExtendedFieldsRequest = z.object({\n _id: z.string().describe('ID of the entity to update.'),\n namespace: z\n .string()\n .describe(\n 'Identifier for the app whose extended fields are being updated.'\n ),\n options: z.object({\n namespaceData: z\n .record(z.string(), z.any())\n .describe(\n 'Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured.'\n ),\n }),\n});\nexport const UpdateExtendedFieldsResponse = z.object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n 'Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\n 'Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided.'\n )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for this order payment request.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Updated order payment request.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,mCAAqC,SAAO;AAAA,EACvD,SACG,SAAO;AAAA,IACN,qBACG,SAAO;AAAA,MACN,KACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO;AAAA,QACN,OACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,QAAU,OAAK,CAAC,UAAU,QAAQ,SAAS,CAAC,EAAE,SAAS;AAAA,MACvD,SACG,SAAO,EACP,SAAS,WAAW,EACpB;AAAA,QACC;AAAA,QACA;AAAA,MACF;AAAA,MACF,aACG,SAAO,EACP,SAAS,eAAe,EACxB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO;AAAA,QACN,QAAU,SAAO,EAAE,SAAS,SAAS,EAAE,SAAS;AAAA,QAChD,iBACG,SAAO,EACP,SAAS,wCAAwC,EACjD,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF;AAAA,MACF,UACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,uBACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,G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IACZ,uBACG,QAAQ,OAAK,CAAC,QAAQ,CAAC,CAAC,EACxB,IAAI,CAAC,EACL,SAAS;AAAA,EACd,CAAC,EACA,SAAS,gCAAgC,EACzC,SAAS;AACd,CAAC;","names":[]}
@@ -1,12 +1,16 @@
1
- import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { CreateOrderPaymentRequestOptions, OrderPaymentRequest, CreateOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, OrderPaymentRequestsQueryBuilder, OrderPaymentRequestQuery, typedQueryOrderPaymentRequests } from './index.typings.mjs';
3
- export { AccountInfo, ActionEvent, ActionLink, ActionLinks, CommonQueryWithEntityContext, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteOrderPaymentRequestRequest, DeleteOrderPaymentRequestResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse, GetOrderPaymentRequestURLRequest, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, OrderPaymentRequestExpired, OrderPaymentRequestPaid, OrderPaymentRequestQuerySpec, OrderPaymentRequestVoided, OrderPaymentRequestsQueryResult, PaymentMethod, PaymentMethodWithLiterals, Price, QueryOrderPaymentRequestsRequest, QueryOrderPaymentRequestsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Source, Status, StatusWithLiterals, SubscriptionInfo, UpdateExtendedFieldsRequest, UpdateOrderPaymentRequestRequest, UpdateOrderPaymentRequestResponse, VoidOrderPaymentRequestApplicationErrors, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { CreateOrderPaymentRequestOptions, OrderPaymentRequest, CreateOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, OrderPaymentRequestQuery, typedQueryOrderPaymentRequests } from './index.typings.mjs';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionLink, ActionLinks, BaseEventMetadata, CommonQueryWithEntityContext, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteOrderPaymentRequestRequest, DeleteOrderPaymentRequestResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse, GetOrderPaymentRequestURLRequest, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, OrderPaymentRequestExpired, OrderPaymentRequestPaid, OrderPaymentRequestQuerySpec, OrderPaymentRequestVoided, OrderPaymentRequestsQueryResult, PaymentMethod, PaymentMethodWithLiterals, Price, QueryOrderPaymentRequestsRequest, QueryOrderPaymentRequestsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Source, Status, StatusWithLiterals, SubscriptionInfo, UpdateExtendedFieldsRequest, UpdateOrderPaymentRequestRequest, UpdateOrderPaymentRequestResponse, VoidOrderPaymentRequestApplicationErrors, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
4
4
 
5
5
  declare function createOrderPaymentRequest$1(httpClient: HttpClient): CreateOrderPaymentRequestSignature;
6
6
  interface CreateOrderPaymentRequestSignature {
7
7
  /**
8
- * Creates a order payment request.
9
- * @returns The created OrderPaymentRequest.
8
+ * Creates an order payment request.
9
+ *
10
+ * The response includes the payment page URL, which you can share with the customer. To retrieve the URL later, call [Get Order Payment Request URL](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-payment-requests/get-order-payment-request-url).
11
+ *
12
+ * Creation fails with `ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND` if the site doesn't have a Payment Request Page added and published.
13
+ * @returns Created order payment request.
10
14
  */
11
15
  (options?: NonNullablePaths<CreateOrderPaymentRequestOptions, `orderPaymentRequest.amount` | `orderPaymentRequest.orderId` | `orderPaymentRequest.title`, 3>): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
12
16
  __applicationErrorsType?: CreateOrderPaymentRequestApplicationErrors;
@@ -15,9 +19,9 @@ interface CreateOrderPaymentRequestSignature {
15
19
  declare function getOrderPaymentRequest$1(httpClient: HttpClient): GetOrderPaymentRequestSignature;
16
20
  interface GetOrderPaymentRequestSignature {
17
21
  /**
18
- * Retrieves a order payment request.
19
- * @param - ID of the OrderPaymentRequest to retrieve.
20
- * @returns The requested OrderPaymentRequest.
22
+ * Retrieves an order payment request.
23
+ * @param - ID of the order payment request to retrieve.
24
+ * @returns Retrieved order payment request.
21
25
  */
22
26
  (orderPaymentRequestId: string): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
23
27
  __applicationErrorsType?: GetOrderPaymentRequestApplicationErrors;
@@ -26,11 +30,11 @@ interface GetOrderPaymentRequestSignature {
26
30
  declare function updateOrderPaymentRequest$1(httpClient: HttpClient): UpdateOrderPaymentRequestSignature;
27
31
  interface UpdateOrderPaymentRequestSignature {
28
32
  /**
29
- * Updates a order payment request.
33
+ * Updates an order payment request.
30
34
  *
31
- * Please note that only `UNPAID` payment requests can be updated.
35
+ * Only `UNPAID` order payment requests can be updated. The `amount` can't be changed after the order payment request is created.
32
36
  * @param - Order payment request ID.
33
- * @returns Updated OrderPaymentRequest.
37
+ * @returns Updated order payment request.
34
38
  */
35
39
  (_id: string, orderPaymentRequest: UpdateOrderPaymentRequest): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
36
40
  __applicationErrorsType?: UpdateOrderPaymentRequestApplicationErrors;
@@ -39,10 +43,10 @@ interface UpdateOrderPaymentRequestSignature {
39
43
  declare function deleteOrderPaymentRequest$1(httpClient: HttpClient): DeleteOrderPaymentRequestSignature;
40
44
  interface DeleteOrderPaymentRequestSignature {
41
45
  /**
42
- * Deletes a order payment request.
46
+ * Deletes an order payment request.
43
47
  *
44
- * Please note that only `UNPAID` and `VOIDED` payment requests can be deleted.
45
- * @param - Id of the OrderPaymentRequest to delete.
48
+ * You can delete an order payment request in any status except `PAID`. Attempting to delete a `PAID` order payment request fails with `CANNOT_DELETE_PAID_ORDER_PAYMENT_REQUEST`.
49
+ * @param - ID of the order payment request to delete.
46
50
  */
47
51
  (orderPaymentRequestId: string): Promise<void & {
48
52
  __applicationErrorsType?: DeleteOrderPaymentRequestApplicationErrors;
@@ -51,8 +55,8 @@ interface DeleteOrderPaymentRequestSignature {
51
55
  declare function getOrderPaymentRequestUrl$1(httpClient: HttpClient): GetOrderPaymentRequestUrlSignature;
52
56
  interface GetOrderPaymentRequestUrlSignature {
53
57
  /**
54
- * Retrieves the order payment request page URL of a specified order payment request.
55
- * @param - Order Payment Request ID.
58
+ * Retrieves the payment page URL for an order payment request.
59
+ * @param - ID of the order payment request.
56
60
  */
57
61
  (orderPaymentRequestId: string): Promise<NonNullablePaths<GetOrderPaymentRequestURLResponse, `orderPaymentRequestUrl`, 2> & {
58
62
  __applicationErrorsType?: GetOrderPaymentRequestUrlApplicationErrors;
@@ -61,12 +65,18 @@ interface GetOrderPaymentRequestUrlSignature {
61
65
  declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
62
66
  interface UpdateExtendedFieldsSignature {
63
67
  /**
64
- * Updates extended fields of a order payment request
68
+ * Updates the extended fields of an order payment request.
65
69
  * @param - ID of the entity to update.
66
70
  * @param - Identifier for the app whose extended fields are being updated.
67
71
  */
68
72
  (_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `orderPaymentRequest.source.externalId` | `orderPaymentRequest.status` | `orderPaymentRequest.orderId` | `orderPaymentRequest.amount.amount` | `orderPaymentRequest.amount.formattedAmount` | `orderPaymentRequest.currency` | `orderPaymentRequest.title` | `orderPaymentRequest.blockedPaymentMethods`, 4>>;
69
73
  }
74
+ declare const onOrderPaymentRequestCreated$1: EventDefinition<OrderPaymentRequestCreatedEnvelope, "wix.ecom.v1.order_payment_request_created">;
75
+ declare const onOrderPaymentRequestDeleted$1: EventDefinition<OrderPaymentRequestDeletedEnvelope, "wix.ecom.v1.order_payment_request_deleted">;
76
+ declare const onOrderPaymentRequestExpired$1: EventDefinition<OrderPaymentRequestExpiredEnvelope, "wix.ecom.v1.order_payment_request_expired">;
77
+ declare const onOrderPaymentRequestPaid$1: EventDefinition<OrderPaymentRequestPaidEnvelope, "wix.ecom.v1.order_payment_request_paid">;
78
+ declare const onOrderPaymentRequestUpdated$1: EventDefinition<OrderPaymentRequestUpdatedEnvelope, "wix.ecom.v1.order_payment_request_updated">;
79
+ declare const onOrderPaymentRequestVoided$1: EventDefinition<OrderPaymentRequestVoidedEnvelope, "wix.ecom.v1.order_payment_request_voided">;
70
80
 
71
81
  declare function customQueryOrderPaymentRequests(httpClient: HttpClient): {
72
82
  (): OrderPaymentRequestsQueryBuilder;
@@ -79,5 +89,29 @@ declare const deleteOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof d
79
89
  declare const getOrderPaymentRequestUrl: MaybeContext<BuildRESTFunction<typeof getOrderPaymentRequestUrl$1> & typeof getOrderPaymentRequestUrl$1>;
80
90
  declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
81
91
  declare const queryOrderPaymentRequests: MaybeContext<BuildRESTFunction<typeof customQueryOrderPaymentRequests> & typeof customQueryOrderPaymentRequests>;
92
+ /**
93
+ * Triggered when an order payment request is created.
94
+ */
95
+ declare const onOrderPaymentRequestCreated: BuildEventDefinition<typeof onOrderPaymentRequestCreated$1> & typeof onOrderPaymentRequestCreated$1;
96
+ /**
97
+ * Triggered when an order payment request is deleted.
98
+ */
99
+ declare const onOrderPaymentRequestDeleted: BuildEventDefinition<typeof onOrderPaymentRequestDeleted$1> & typeof onOrderPaymentRequestDeleted$1;
100
+ /**
101
+ * Triggered when an order payment request's `status` changes to `EXPIRED`.
102
+ */
103
+ declare const onOrderPaymentRequestExpired: BuildEventDefinition<typeof onOrderPaymentRequestExpired$1> & typeof onOrderPaymentRequestExpired$1;
104
+ /**
105
+ * Triggered when an order payment request's `status` changes to `PAID`.
106
+ */
107
+ declare const onOrderPaymentRequestPaid: BuildEventDefinition<typeof onOrderPaymentRequestPaid$1> & typeof onOrderPaymentRequestPaid$1;
108
+ /**
109
+ * Triggered when an order payment request is updated.
110
+ */
111
+ declare const onOrderPaymentRequestUpdated: BuildEventDefinition<typeof onOrderPaymentRequestUpdated$1> & typeof onOrderPaymentRequestUpdated$1;
112
+ /**
113
+ * Triggered when an order payment request's `status` changes to `VOIDED`.
114
+ */
115
+ declare const onOrderPaymentRequestVoided: BuildEventDefinition<typeof onOrderPaymentRequestVoided$1> & typeof onOrderPaymentRequestVoided$1;
82
116
 
83
- export { CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestQuery, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest };
117
+ export { CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestQuery, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest };
@@ -1,3 +1,10 @@
1
+ // src/ecom-v1-order-payment-request-order-payment-requests.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTImageToSDKImage as transformRESTImageToSDKImage2 } from "@wix/sdk-runtime/transformations/image";
4
+ import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
6
+ import { EventDefinition } from "@wix/sdk-types";
7
+
1
8
  // src/ecom-v1-order-payment-request-order-payment-requests.universal.ts
2
9
  import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
10
  import { queryBuilder } from "@wix/sdk-runtime/query-builder";
@@ -708,9 +715,136 @@ function voidOrderPaymentRequest3(httpClient) {
708
715
  { httpClient }
709
716
  );
710
717
  }
718
+ var onOrderPaymentRequestCreated = EventDefinition(
719
+ "wix.ecom.v1.order_payment_request_created",
720
+ true,
721
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
722
+ transformPaths3(event, [
723
+ {
724
+ transformFn: transformRESTTimestampToSDKTimestamp2,
725
+ paths: [
726
+ { path: "entity.expirationDate" },
727
+ { path: "entity.createdDate" },
728
+ { path: "entity.updatedDate" },
729
+ { path: "metadata.eventTime" }
730
+ ]
731
+ },
732
+ {
733
+ transformFn: transformRESTImageToSDKImage2,
734
+ paths: [{ path: "entity.image" }]
735
+ }
736
+ ])
737
+ )
738
+ )();
739
+ var onOrderPaymentRequestDeleted = EventDefinition(
740
+ "wix.ecom.v1.order_payment_request_deleted",
741
+ true,
742
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
743
+ transformPaths3(event, [
744
+ {
745
+ transformFn: transformRESTTimestampToSDKTimestamp2,
746
+ paths: [
747
+ { path: "entity.expirationDate" },
748
+ { path: "entity.createdDate" },
749
+ { path: "entity.updatedDate" },
750
+ { path: "metadata.eventTime" }
751
+ ]
752
+ },
753
+ {
754
+ transformFn: transformRESTImageToSDKImage2,
755
+ paths: [{ path: "entity.image" }]
756
+ }
757
+ ])
758
+ )
759
+ )();
760
+ var onOrderPaymentRequestExpired = EventDefinition(
761
+ "wix.ecom.v1.order_payment_request_expired",
762
+ true,
763
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
764
+ transformPaths3(event, [
765
+ {
766
+ transformFn: transformRESTTimestampToSDKTimestamp2,
767
+ paths: [
768
+ { path: "data.orderPaymentRequest.expirationDate" },
769
+ { path: "data.orderPaymentRequest.createdDate" },
770
+ { path: "data.orderPaymentRequest.updatedDate" },
771
+ { path: "metadata.eventTime" }
772
+ ]
773
+ },
774
+ {
775
+ transformFn: transformRESTImageToSDKImage2,
776
+ paths: [{ path: "data.orderPaymentRequest.image" }]
777
+ }
778
+ ])
779
+ )
780
+ )();
781
+ var onOrderPaymentRequestPaid = EventDefinition(
782
+ "wix.ecom.v1.order_payment_request_paid",
783
+ true,
784
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
785
+ transformPaths3(event, [
786
+ {
787
+ transformFn: transformRESTTimestampToSDKTimestamp2,
788
+ paths: [
789
+ { path: "data.orderPaymentRequest.expirationDate" },
790
+ { path: "data.orderPaymentRequest.createdDate" },
791
+ { path: "data.orderPaymentRequest.updatedDate" },
792
+ { path: "metadata.eventTime" }
793
+ ]
794
+ },
795
+ {
796
+ transformFn: transformRESTImageToSDKImage2,
797
+ paths: [{ path: "data.orderPaymentRequest.image" }]
798
+ }
799
+ ])
800
+ )
801
+ )();
802
+ var onOrderPaymentRequestUpdated = EventDefinition(
803
+ "wix.ecom.v1.order_payment_request_updated",
804
+ true,
805
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
806
+ transformPaths3(event, [
807
+ {
808
+ transformFn: transformRESTTimestampToSDKTimestamp2,
809
+ paths: [
810
+ { path: "entity.expirationDate" },
811
+ { path: "entity.createdDate" },
812
+ { path: "entity.updatedDate" },
813
+ { path: "metadata.eventTime" }
814
+ ]
815
+ },
816
+ {
817
+ transformFn: transformRESTImageToSDKImage2,
818
+ paths: [{ path: "entity.image" }]
819
+ }
820
+ ])
821
+ )
822
+ )();
823
+ var onOrderPaymentRequestVoided = EventDefinition(
824
+ "wix.ecom.v1.order_payment_request_voided",
825
+ true,
826
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
827
+ transformPaths3(event, [
828
+ {
829
+ transformFn: transformRESTTimestampToSDKTimestamp2,
830
+ paths: [
831
+ { path: "data.orderPaymentRequest.expirationDate" },
832
+ { path: "data.orderPaymentRequest.createdDate" },
833
+ { path: "data.orderPaymentRequest.updatedDate" },
834
+ { path: "metadata.eventTime" }
835
+ ]
836
+ },
837
+ {
838
+ transformFn: transformRESTImageToSDKImage2,
839
+ paths: [{ path: "data.orderPaymentRequest.image" }]
840
+ }
841
+ ])
842
+ )
843
+ )();
711
844
 
712
845
  // src/ecom-v1-order-payment-request-order-payment-requests.context.ts
713
846
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
847
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
714
848
  import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
715
849
  function customQueryOrderPaymentRequests(httpClient) {
716
850
  const router = createQueryOverloadRouter({
@@ -731,6 +865,24 @@ var getOrderPaymentRequestUrl4 = /* @__PURE__ */ createRESTModule(getOrderPaymen
731
865
  var updateExtendedFields4 = /* @__PURE__ */ createRESTModule(updateExtendedFields3);
732
866
  var voidOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(voidOrderPaymentRequest3);
733
867
  var queryOrderPaymentRequests4 = /* @__PURE__ */ createRESTModule(customQueryOrderPaymentRequests);
868
+ var onOrderPaymentRequestCreated2 = createEventModule(
869
+ onOrderPaymentRequestCreated
870
+ );
871
+ var onOrderPaymentRequestDeleted2 = createEventModule(
872
+ onOrderPaymentRequestDeleted
873
+ );
874
+ var onOrderPaymentRequestExpired2 = createEventModule(
875
+ onOrderPaymentRequestExpired
876
+ );
877
+ var onOrderPaymentRequestPaid2 = createEventModule(
878
+ onOrderPaymentRequestPaid
879
+ );
880
+ var onOrderPaymentRequestUpdated2 = createEventModule(
881
+ onOrderPaymentRequestUpdated
882
+ );
883
+ var onOrderPaymentRequestVoided2 = createEventModule(
884
+ onOrderPaymentRequestVoided
885
+ );
734
886
  export {
735
887
  PaymentMethod,
736
888
  SortOrder,
@@ -740,6 +892,12 @@ export {
740
892
  deleteOrderPaymentRequest4 as deleteOrderPaymentRequest,
741
893
  getOrderPaymentRequest4 as getOrderPaymentRequest,
742
894
  getOrderPaymentRequestUrl4 as getOrderPaymentRequestUrl,
895
+ onOrderPaymentRequestCreated2 as onOrderPaymentRequestCreated,
896
+ onOrderPaymentRequestDeleted2 as onOrderPaymentRequestDeleted,
897
+ onOrderPaymentRequestExpired2 as onOrderPaymentRequestExpired,
898
+ onOrderPaymentRequestPaid2 as onOrderPaymentRequestPaid,
899
+ onOrderPaymentRequestUpdated2 as onOrderPaymentRequestUpdated,
900
+ onOrderPaymentRequestVoided2 as onOrderPaymentRequestVoided,
743
901
  queryOrderPaymentRequests4 as queryOrderPaymentRequests,
744
902
  updateExtendedFields4 as updateExtendedFields,
745
903
  updateOrderPaymentRequest4 as updateOrderPaymentRequest,