@wix/auto_sdk_ecom_order-payment-requests 1.0.59 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +38 -8
- package/build/cjs/index.js +164 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +191 -12
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +22 -12
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +38 -8
- package/build/es/index.mjs +158 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +191 -12
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +22 -12
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +40 -10
- package/build/internal/cjs/index.js +164 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +193 -14
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +22 -12
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +40 -10
- package/build/internal/es/index.mjs +158 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +193 -14
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +22 -12
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/schemas.js.map
CHANGED
|
@@ -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;AAAA,QACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MAC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,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('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. Set when the order payment request is created and can't be changed afterward.\"\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\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 '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\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 '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. 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 '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\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 '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(\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 '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(\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 '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;AA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EACT,SAAS;AAAA,IACZ,QACG,SAAO;AAAA,MACN,QAAU,SAAO,EAAE,SAAS,SAAS,EAAE,SAAS;AAAA,MAChD,iBACG,SAAO,EACP,SAAS,wCAAwC,EACjD,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,uBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,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":[]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
@@ -26,9 +26,9 @@ interface GetOrderPaymentRequestSignature {
|
|
|
26
26
|
declare function updateOrderPaymentRequest$1(httpClient: HttpClient): UpdateOrderPaymentRequestSignature;
|
|
27
27
|
interface UpdateOrderPaymentRequestSignature {
|
|
28
28
|
/**
|
|
29
|
-
* Updates
|
|
29
|
+
* Updates an order payment request.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* Only `UNPAID` order payment requests can be updated. The `amount` can't be changed after the order payment request is created.
|
|
32
32
|
* @param - Order payment request ID.
|
|
33
33
|
* @returns Updated OrderPaymentRequest.
|
|
34
34
|
*/
|
|
@@ -39,9 +39,9 @@ interface UpdateOrderPaymentRequestSignature {
|
|
|
39
39
|
declare function deleteOrderPaymentRequest$1(httpClient: HttpClient): DeleteOrderPaymentRequestSignature;
|
|
40
40
|
interface DeleteOrderPaymentRequestSignature {
|
|
41
41
|
/**
|
|
42
|
-
* Deletes
|
|
42
|
+
* Deletes an order payment request.
|
|
43
43
|
*
|
|
44
|
-
*
|
|
44
|
+
* 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`.
|
|
45
45
|
* @param - Id of the OrderPaymentRequest to delete.
|
|
46
46
|
*/
|
|
47
47
|
(orderPaymentRequestId: string): Promise<void & {
|
|
@@ -67,6 +67,12 @@ interface UpdateExtendedFieldsSignature {
|
|
|
67
67
|
*/
|
|
68
68
|
(_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
69
|
}
|
|
70
|
+
declare const onOrderPaymentRequestCreated$1: EventDefinition<OrderPaymentRequestCreatedEnvelope, "wix.ecom.v1.order_payment_request_created">;
|
|
71
|
+
declare const onOrderPaymentRequestDeleted$1: EventDefinition<OrderPaymentRequestDeletedEnvelope, "wix.ecom.v1.order_payment_request_deleted">;
|
|
72
|
+
declare const onOrderPaymentRequestExpired$1: EventDefinition<OrderPaymentRequestExpiredEnvelope, "wix.ecom.v1.order_payment_request_expired">;
|
|
73
|
+
declare const onOrderPaymentRequestPaid$1: EventDefinition<OrderPaymentRequestPaidEnvelope, "wix.ecom.v1.order_payment_request_paid">;
|
|
74
|
+
declare const onOrderPaymentRequestUpdated$1: EventDefinition<OrderPaymentRequestUpdatedEnvelope, "wix.ecom.v1.order_payment_request_updated">;
|
|
75
|
+
declare const onOrderPaymentRequestVoided$1: EventDefinition<OrderPaymentRequestVoidedEnvelope, "wix.ecom.v1.order_payment_request_voided">;
|
|
70
76
|
|
|
71
77
|
declare function customQueryOrderPaymentRequests(httpClient: HttpClient): {
|
|
72
78
|
(): OrderPaymentRequestsQueryBuilder;
|
|
@@ -79,5 +85,29 @@ declare const deleteOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof d
|
|
|
79
85
|
declare const getOrderPaymentRequestUrl: MaybeContext<BuildRESTFunction<typeof getOrderPaymentRequestUrl$1> & typeof getOrderPaymentRequestUrl$1>;
|
|
80
86
|
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
81
87
|
declare const queryOrderPaymentRequests: MaybeContext<BuildRESTFunction<typeof customQueryOrderPaymentRequests> & typeof customQueryOrderPaymentRequests>;
|
|
88
|
+
/**
|
|
89
|
+
* Triggered when an order payment request is created.
|
|
90
|
+
*/
|
|
91
|
+
declare const onOrderPaymentRequestCreated: BuildEventDefinition<typeof onOrderPaymentRequestCreated$1> & typeof onOrderPaymentRequestCreated$1;
|
|
92
|
+
/**
|
|
93
|
+
* Triggered when an order payment request is deleted.
|
|
94
|
+
*/
|
|
95
|
+
declare const onOrderPaymentRequestDeleted: BuildEventDefinition<typeof onOrderPaymentRequestDeleted$1> & typeof onOrderPaymentRequestDeleted$1;
|
|
96
|
+
/**
|
|
97
|
+
* Triggered when an order payment request status is updated to `"EXPIRED"`.
|
|
98
|
+
*/
|
|
99
|
+
declare const onOrderPaymentRequestExpired: BuildEventDefinition<typeof onOrderPaymentRequestExpired$1> & typeof onOrderPaymentRequestExpired$1;
|
|
100
|
+
/**
|
|
101
|
+
* Triggered when an order payment request status is updated to `"PAID"`.
|
|
102
|
+
*/
|
|
103
|
+
declare const onOrderPaymentRequestPaid: BuildEventDefinition<typeof onOrderPaymentRequestPaid$1> & typeof onOrderPaymentRequestPaid$1;
|
|
104
|
+
/**
|
|
105
|
+
* Triggered when an order payment request is updated.
|
|
106
|
+
*/
|
|
107
|
+
declare const onOrderPaymentRequestUpdated: BuildEventDefinition<typeof onOrderPaymentRequestUpdated$1> & typeof onOrderPaymentRequestUpdated$1;
|
|
108
|
+
/**
|
|
109
|
+
* Triggered when an order payment request status is updated to `"VOIDED"`.
|
|
110
|
+
*/
|
|
111
|
+
declare const onOrderPaymentRequestVoided: BuildEventDefinition<typeof onOrderPaymentRequestVoided$1> & typeof onOrderPaymentRequestVoided$1;
|
|
82
112
|
|
|
83
|
-
export { CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestQuery, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest };
|
|
113
|
+
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 };
|
package/build/es/index.mjs
CHANGED
|
@@ -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,
|