@wix/auto_sdk_ecom_order-payment-requests 1.0.61 → 1.0.63
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 +16 -3
- package/build/cjs/index.js +159 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +139 -1
- package/build/cjs/index.typings.js +141 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +113 -2
- package/build/cjs/meta.js +104 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +5 -1
- package/build/cjs/schemas.js +13 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +16 -3
- package/build/es/index.mjs +157 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +139 -1
- package/build/es/index.typings.mjs +139 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +113 -2
- package/build/es/meta.mjs +102 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +5 -1
- package/build/es/schemas.mjs +10 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +48 -5
- package/build/internal/cjs/index.js +159 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +172 -2
- package/build/internal/cjs/index.typings.js +141 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +113 -2
- package/build/internal/cjs/meta.js +104 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +5 -1
- package/build/internal/cjs/schemas.js +13 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +48 -5
- package/build/internal/es/index.mjs +157 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +172 -2
- package/build/internal/es/index.typings.mjs +139 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +113 -2
- package/build/internal/es/meta.mjs +102 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +5 -1
- package/build/internal/es/schemas.mjs +10 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -43,7 +43,9 @@ __export(schemas_exports, {
|
|
|
43
43
|
UpdateExtendedFieldsRequest: () => UpdateExtendedFieldsRequest,
|
|
44
44
|
UpdateExtendedFieldsResponse: () => UpdateExtendedFieldsResponse,
|
|
45
45
|
UpdateOrderPaymentRequestRequest: () => UpdateOrderPaymentRequestRequest,
|
|
46
|
-
UpdateOrderPaymentRequestResponse: () => UpdateOrderPaymentRequestResponse
|
|
46
|
+
UpdateOrderPaymentRequestResponse: () => UpdateOrderPaymentRequestResponse,
|
|
47
|
+
VoidOrderPaymentRequestRequest: () => VoidOrderPaymentRequestRequest,
|
|
48
|
+
VoidOrderPaymentRequestResponse: () => VoidOrderPaymentRequestResponse
|
|
47
49
|
});
|
|
48
50
|
module.exports = __toCommonJS(schemas_exports);
|
|
49
51
|
|
|
@@ -511,6 +513,13 @@ var UpdateExtendedFieldsResponse = z.object({
|
|
|
511
513
|
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
512
514
|
}).describe("Updated order payment request.").optional()
|
|
513
515
|
});
|
|
516
|
+
var VoidOrderPaymentRequestRequest = z.object({
|
|
517
|
+
orderPaymentRequestId: z.string().describe("ID of the order payment request to void.").regex(
|
|
518
|
+
/^[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}$/,
|
|
519
|
+
"Must be a valid GUID"
|
|
520
|
+
)
|
|
521
|
+
});
|
|
522
|
+
var VoidOrderPaymentRequestResponse = z.object({});
|
|
514
523
|
// Annotate the CommonJS export names for ESM import in node:
|
|
515
524
|
0 && (module.exports = {
|
|
516
525
|
CreateOrderPaymentRequestRequest,
|
|
@@ -526,6 +535,8 @@ var UpdateExtendedFieldsResponse = z.object({
|
|
|
526
535
|
UpdateExtendedFieldsRequest,
|
|
527
536
|
UpdateExtendedFieldsResponse,
|
|
528
537
|
UpdateOrderPaymentRequestRequest,
|
|
529
|
-
UpdateOrderPaymentRequestResponse
|
|
538
|
+
UpdateOrderPaymentRequestResponse,
|
|
539
|
+
VoidOrderPaymentRequestRequest,
|
|
540
|
+
VoidOrderPaymentRequestResponse
|
|
530
541
|
});
|
|
531
542
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -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(\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,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,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,SAAS,sDAAsD,EAC/D,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,IACZ,aACG,SAAO,EACP,SAAS,4DAA4D,EACrE,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,OAAK,EACL;AAAA,MACC;AAAA,IACF,EACC,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,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,2DAA2D,EACpE,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,gCAAgC,EACzC,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});\nexport const VoidOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to void.')\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 VoidOrderPaymentRequestResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;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,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A,MACC;AAAA,IACF,EACC,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,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,2DAA2D,EACpE,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,gCAAgC,EACzC,SAAS;AACd,CAAC;AACM,IAAM,iCAAmC,SAAO;AAAA,EACrD,uBACG,SAAO,EACP,SAAS,0CAA0C,EACnD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,kCAAoC,SAAO,CAAC,CAAC;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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, VoidOrderPaymentRequestApplicationErrors, 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, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
|
|
2
|
+
import { CreateOrderPaymentRequestOptions, OrderPaymentRequest, CreateOrderPaymentRequestApplicationErrors, BulkCreateOrderPaymentRequestsOptions, BulkCreateOrderPaymentRequestsResponse, GetOrderPaymentRequestApplicationErrors, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, VoidOrderPaymentRequestApplicationErrors, ChargeOrderPaymentRequestOptions, ChargeOrderPaymentRequestResponse, ChargeOrderPaymentRequestApplicationErrors, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, OrderPaymentRequestQuery, typedQueryOrderPaymentRequests } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionLink, ActionLinks, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateOrderPaymentRequestsRequest, BulkOrderPaymentRequestItem, BulkOrderPaymentRequestResult, ChargeOrderPaymentRequestRequest, CommonQueryWithEntityContext, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteOrderPaymentRequestRequest, DeleteOrderPaymentRequestResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse, GetOrderPaymentRequestURLRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, OrderPaymentRequestExpired, OrderPaymentRequestPaid, OrderPaymentRequestQuerySpec, OrderPaymentRequestVoided, OrderPaymentRequestsQueryResult, PaymentMethod, PaymentMethodWithLiterals, Price, QueryOrderPaymentRequestsRequest, QueryOrderPaymentRequestsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Source, Status, StatusWithLiterals, SubscriptionInfo, UpdateExtendedFieldsRequest, UpdateOrderPaymentRequestRequest, UpdateOrderPaymentRequestResponse, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createOrderPaymentRequest$1(httpClient: HttpClient): CreateOrderPaymentRequestSignature;
|
|
6
6
|
interface CreateOrderPaymentRequestSignature {
|
|
@@ -16,6 +16,24 @@ interface CreateOrderPaymentRequestSignature {
|
|
|
16
16
|
__applicationErrorsType?: CreateOrderPaymentRequestApplicationErrors;
|
|
17
17
|
}>;
|
|
18
18
|
}
|
|
19
|
+
/** @internal */
|
|
20
|
+
declare function bulkCreateOrderPaymentRequests$1(httpClient: HttpClient): BulkCreateOrderPaymentRequestsSignature;
|
|
21
|
+
interface BulkCreateOrderPaymentRequestsSignature {
|
|
22
|
+
/**
|
|
23
|
+
* Creates multiple order payment requests in a single request. Works synchronously.
|
|
24
|
+
*
|
|
25
|
+
* The response contains an item-level result for every requested order payment request. Items are processed independently, so some may succeed while others fail.
|
|
26
|
+
*
|
|
27
|
+
* Per-item failures are returned in `results[].itemMetadata.error`. Possible application error codes are:
|
|
28
|
+
* - `ORDER_NOT_FOUND`: The referenced order wasn't found.
|
|
29
|
+
* - `PARTIAL_PAYMENT_NOT_SUPPORTED_FOR_SUBSCRIPTION`: The requested amount doesn't equal the subscription order total.
|
|
30
|
+
* - `INVALID_ORDER_STATUS_FOR_SUBSCRIPTION`: The subscription order isn't in `INITIALIZED` status.
|
|
31
|
+
* - `SITE_NOT_PUBLISHED`: The site isn't published.
|
|
32
|
+
* - `ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND`: The Payment Request Page isn't available on the site.
|
|
33
|
+
* @param - Order payment requests to create.
|
|
34
|
+
*/
|
|
35
|
+
(orderPaymentRequests: NonNullablePaths<OrderPaymentRequest, `amount` | `orderId` | `source.externalId` | `title`, 3>[], options?: BulkCreateOrderPaymentRequestsOptions): Promise<NonNullablePaths<BulkCreateOrderPaymentRequestsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.orderPaymentRequest.status` | `results.${number}.item.orderPaymentRequest.orderId` | `results.${number}.item.orderPaymentRequest.currency` | `results.${number}.item.orderPaymentRequest.title` | `results.${number}.item.orderPaymentRequestUrl` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
36
|
+
}
|
|
19
37
|
declare function getOrderPaymentRequest$1(httpClient: HttpClient): GetOrderPaymentRequestSignature;
|
|
20
38
|
interface GetOrderPaymentRequestSignature {
|
|
21
39
|
/**
|
|
@@ -71,7 +89,6 @@ interface UpdateExtendedFieldsSignature {
|
|
|
71
89
|
*/
|
|
72
90
|
(_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>>;
|
|
73
91
|
}
|
|
74
|
-
/** @internal */
|
|
75
92
|
declare function voidOrderPaymentRequest$1(httpClient: HttpClient): VoidOrderPaymentRequestSignature;
|
|
76
93
|
interface VoidOrderPaymentRequestSignature {
|
|
77
94
|
/**
|
|
@@ -84,6 +101,29 @@ interface VoidOrderPaymentRequestSignature {
|
|
|
84
101
|
__applicationErrorsType?: VoidOrderPaymentRequestApplicationErrors;
|
|
85
102
|
}>;
|
|
86
103
|
}
|
|
104
|
+
/** @internal */
|
|
105
|
+
declare function chargeOrderPaymentRequest$1(httpClient: HttpClient): ChargeOrderPaymentRequestSignature;
|
|
106
|
+
interface ChargeOrderPaymentRequestSignature {
|
|
107
|
+
/**
|
|
108
|
+
* Charges an order payment request.
|
|
109
|
+
*
|
|
110
|
+
* Collects the order payment request's `amount` from the payment method the customer entered in the Wix Cashier payments widget on your page. Before calling this method, call `paymentsApi.initializePayment()` on the `paymentsApi` object provided by the Wix Cashier payments client SDK to collect the customer's payment details, then pass the token it returns as `paymentToken`.
|
|
111
|
+
*
|
|
112
|
+
* A successful response doesn't mean the payment was collected:
|
|
113
|
+
* - If `paymentResponseToken` is returned, the customer must complete an additional step, such as 3D Secure verification or an off-site redirect. Pass the token to `paymentsApi.continuePayment()` to complete the payment.
|
|
114
|
+
* - If `paymentResponseToken` isn't returned, no further step is needed. The payment was either collected or declined by the payment provider.
|
|
115
|
+
*
|
|
116
|
+
* Either way, the order payment request's `status` is the authoritative outcome. It changes to `PAID` asynchronously, after the payment provider settles the transaction, which can happen after this method returns. To be notified, listen to the [Order Payment Request Paid](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-payment-requests/order-payment-request-paid) webhook, or poll [Get Order Payment Request](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-payment-requests/get-order-payment-request).
|
|
117
|
+
*
|
|
118
|
+
* Charging requires a client-side Wix Cashier payments session, so a backend-only integration can't obtain a `paymentToken` or complete a payment that needs an additional step.
|
|
119
|
+
*
|
|
120
|
+
* At most one charge attempt is processed per order payment request, so retrying is safe. While an attempt is still in progress, further calls fail with `PAYMENT_IN_PROGRESS`. Once the payment is collected, further calls fail with `CANNOT_CHARGE_PAID_ORDER_PAYMENT_REQUEST`. The customer isn't charged twice for the same order payment request.
|
|
121
|
+
* @param - ID of the order payment request to charge.
|
|
122
|
+
*/
|
|
123
|
+
(orderPaymentRequestId: string, options?: ChargeOrderPaymentRequestOptions): Promise<ChargeOrderPaymentRequestResponse & {
|
|
124
|
+
__applicationErrorsType?: ChargeOrderPaymentRequestApplicationErrors;
|
|
125
|
+
}>;
|
|
126
|
+
}
|
|
87
127
|
declare const onOrderPaymentRequestCreated$1: EventDefinition<OrderPaymentRequestCreatedEnvelope, "wix.ecom.v1.order_payment_request_created">;
|
|
88
128
|
declare const onOrderPaymentRequestDeleted$1: EventDefinition<OrderPaymentRequestDeletedEnvelope, "wix.ecom.v1.order_payment_request_deleted">;
|
|
89
129
|
declare const onOrderPaymentRequestExpired$1: EventDefinition<OrderPaymentRequestExpiredEnvelope, "wix.ecom.v1.order_payment_request_expired">;
|
|
@@ -96,13 +136,16 @@ declare function customQueryOrderPaymentRequests(httpClient: HttpClient): {
|
|
|
96
136
|
(query: OrderPaymentRequestQuery): ReturnType<typeof typedQueryOrderPaymentRequests>;
|
|
97
137
|
};
|
|
98
138
|
declare const createOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof createOrderPaymentRequest$1> & typeof createOrderPaymentRequest$1>;
|
|
139
|
+
/** @internal */
|
|
140
|
+
declare const bulkCreateOrderPaymentRequests: MaybeContext<BuildRESTFunction<typeof bulkCreateOrderPaymentRequests$1> & typeof bulkCreateOrderPaymentRequests$1>;
|
|
99
141
|
declare const getOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof getOrderPaymentRequest$1> & typeof getOrderPaymentRequest$1>;
|
|
100
142
|
declare const updateOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof updateOrderPaymentRequest$1> & typeof updateOrderPaymentRequest$1>;
|
|
101
143
|
declare const deleteOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof deleteOrderPaymentRequest$1> & typeof deleteOrderPaymentRequest$1>;
|
|
102
144
|
declare const getOrderPaymentRequestUrl: MaybeContext<BuildRESTFunction<typeof getOrderPaymentRequestUrl$1> & typeof getOrderPaymentRequestUrl$1>;
|
|
103
145
|
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
104
|
-
/** @internal */
|
|
105
146
|
declare const voidOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof voidOrderPaymentRequest$1> & typeof voidOrderPaymentRequest$1>;
|
|
147
|
+
/** @internal */
|
|
148
|
+
declare const chargeOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof chargeOrderPaymentRequest$1> & typeof chargeOrderPaymentRequest$1>;
|
|
106
149
|
declare const queryOrderPaymentRequests: MaybeContext<BuildRESTFunction<typeof customQueryOrderPaymentRequests> & typeof customQueryOrderPaymentRequests>;
|
|
107
150
|
/**
|
|
108
151
|
* Triggered when an order payment request is created.
|
|
@@ -129,4 +172,4 @@ declare const onOrderPaymentRequestUpdated: BuildEventDefinition<typeof onOrderP
|
|
|
129
172
|
*/
|
|
130
173
|
declare const onOrderPaymentRequestVoided: BuildEventDefinition<typeof onOrderPaymentRequestVoided$1> & typeof onOrderPaymentRequestVoided$1;
|
|
131
174
|
|
|
132
|
-
export { CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestQuery, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, VoidOrderPaymentRequestApplicationErrors, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
|
|
175
|
+
export { BulkCreateOrderPaymentRequestsOptions, BulkCreateOrderPaymentRequestsResponse, ChargeOrderPaymentRequestApplicationErrors, ChargeOrderPaymentRequestOptions, ChargeOrderPaymentRequestResponse, CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestQuery, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, VoidOrderPaymentRequestApplicationErrors, bulkCreateOrderPaymentRequests, chargeOrderPaymentRequest, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
|
|
@@ -101,6 +101,49 @@ function createOrderPaymentRequest(payload) {
|
|
|
101
101
|
}
|
|
102
102
|
return __createOrderPaymentRequest;
|
|
103
103
|
}
|
|
104
|
+
function bulkCreateOrderPaymentRequests(payload) {
|
|
105
|
+
function __bulkCreateOrderPaymentRequests({ host }) {
|
|
106
|
+
const serializedData = transformPaths(payload, [
|
|
107
|
+
{
|
|
108
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
109
|
+
paths: [
|
|
110
|
+
{ path: "orderPaymentRequests.expirationDate" },
|
|
111
|
+
{ path: "orderPaymentRequests.createdDate" },
|
|
112
|
+
{ path: "orderPaymentRequests.updatedDate" }
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
]);
|
|
116
|
+
const metadata = {
|
|
117
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
118
|
+
method: "POST",
|
|
119
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.BulkCreateOrderPaymentRequests",
|
|
120
|
+
packageName: PACKAGE_NAME,
|
|
121
|
+
migrationOptions: {
|
|
122
|
+
optInTransformResponse: true
|
|
123
|
+
},
|
|
124
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
125
|
+
{
|
|
126
|
+
protoPath: "/v1/bulk/order-payment-requests/create",
|
|
127
|
+
data: serializedData,
|
|
128
|
+
host
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
data: serializedData,
|
|
132
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
133
|
+
{
|
|
134
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
135
|
+
paths: [
|
|
136
|
+
{ path: "results.item.orderPaymentRequest.expirationDate" },
|
|
137
|
+
{ path: "results.item.orderPaymentRequest.createdDate" },
|
|
138
|
+
{ path: "results.item.orderPaymentRequest.updatedDate" }
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
])
|
|
142
|
+
};
|
|
143
|
+
return metadata;
|
|
144
|
+
}
|
|
145
|
+
return __bulkCreateOrderPaymentRequests;
|
|
146
|
+
}
|
|
104
147
|
function getOrderPaymentRequest(payload) {
|
|
105
148
|
function __getOrderPaymentRequest({ host }) {
|
|
106
149
|
const metadata = {
|
|
@@ -304,6 +347,25 @@ function voidOrderPaymentRequest(payload) {
|
|
|
304
347
|
}
|
|
305
348
|
return __voidOrderPaymentRequest;
|
|
306
349
|
}
|
|
350
|
+
function chargeOrderPaymentRequest(payload) {
|
|
351
|
+
function __chargeOrderPaymentRequest({ host }) {
|
|
352
|
+
const metadata = {
|
|
353
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
354
|
+
method: "POST",
|
|
355
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.ChargeOrderPaymentRequest",
|
|
356
|
+
packageName: PACKAGE_NAME,
|
|
357
|
+
migrationOptions: {
|
|
358
|
+
optInTransformResponse: true
|
|
359
|
+
},
|
|
360
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
361
|
+
{ protoPath: "/v1/order-payment-requests/charge", data: payload, host }
|
|
362
|
+
),
|
|
363
|
+
data: payload
|
|
364
|
+
};
|
|
365
|
+
return metadata;
|
|
366
|
+
}
|
|
367
|
+
return __chargeOrderPaymentRequest;
|
|
368
|
+
}
|
|
307
369
|
|
|
308
370
|
// src/ecom-v1-order-payment-request-order-payment-requests.universal.ts
|
|
309
371
|
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
|
|
@@ -376,6 +438,52 @@ async function createOrderPaymentRequest2(options) {
|
|
|
376
438
|
throw transformedError;
|
|
377
439
|
}
|
|
378
440
|
}
|
|
441
|
+
async function bulkCreateOrderPaymentRequests2(orderPaymentRequests, options) {
|
|
442
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
443
|
+
const payload = transformPaths2(
|
|
444
|
+
renameKeysFromSDKRequestToRESTRequest({
|
|
445
|
+
orderPaymentRequests,
|
|
446
|
+
returnEntity: options?.returnEntity
|
|
447
|
+
}),
|
|
448
|
+
[
|
|
449
|
+
{
|
|
450
|
+
transformFn: transformSDKImageToRESTImage,
|
|
451
|
+
paths: [{ path: "orderPaymentRequests.image" }]
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
);
|
|
455
|
+
const reqOpts = bulkCreateOrderPaymentRequests(
|
|
456
|
+
payload
|
|
457
|
+
);
|
|
458
|
+
sideEffects?.onSiteCall?.();
|
|
459
|
+
try {
|
|
460
|
+
const result = await httpClient.request(reqOpts);
|
|
461
|
+
sideEffects?.onSuccess?.(result);
|
|
462
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
463
|
+
transformPaths2(result.data, [
|
|
464
|
+
{
|
|
465
|
+
transformFn: transformRESTImageToSDKImage,
|
|
466
|
+
paths: [{ path: "results.item.orderPaymentRequest.image" }]
|
|
467
|
+
}
|
|
468
|
+
])
|
|
469
|
+
);
|
|
470
|
+
} catch (err) {
|
|
471
|
+
const transformedError = sdkTransformError(
|
|
472
|
+
err,
|
|
473
|
+
{
|
|
474
|
+
spreadPathsToArguments: {},
|
|
475
|
+
explicitPathsToArguments: {
|
|
476
|
+
orderPaymentRequests: "$[0]",
|
|
477
|
+
returnEntity: "$[1].returnEntity"
|
|
478
|
+
},
|
|
479
|
+
singleArgumentUnchanged: false
|
|
480
|
+
},
|
|
481
|
+
["orderPaymentRequests", "options"]
|
|
482
|
+
);
|
|
483
|
+
sideEffects?.onError?.(err);
|
|
484
|
+
throw transformedError;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
379
487
|
async function getOrderPaymentRequest2(orderPaymentRequestId) {
|
|
380
488
|
const { httpClient, sideEffects } = arguments[1];
|
|
381
489
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -648,6 +756,35 @@ async function voidOrderPaymentRequest2(orderPaymentRequestId) {
|
|
|
648
756
|
throw transformedError;
|
|
649
757
|
}
|
|
650
758
|
}
|
|
759
|
+
async function chargeOrderPaymentRequest2(orderPaymentRequestId, options) {
|
|
760
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
761
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
762
|
+
orderPaymentRequestId,
|
|
763
|
+
paymentToken: options?.paymentToken
|
|
764
|
+
});
|
|
765
|
+
const reqOpts = chargeOrderPaymentRequest(payload);
|
|
766
|
+
sideEffects?.onSiteCall?.();
|
|
767
|
+
try {
|
|
768
|
+
const result = await httpClient.request(reqOpts);
|
|
769
|
+
sideEffects?.onSuccess?.(result);
|
|
770
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
771
|
+
} catch (err) {
|
|
772
|
+
const transformedError = sdkTransformError(
|
|
773
|
+
err,
|
|
774
|
+
{
|
|
775
|
+
spreadPathsToArguments: {},
|
|
776
|
+
explicitPathsToArguments: {
|
|
777
|
+
orderPaymentRequestId: "$[0]",
|
|
778
|
+
paymentToken: "$[1].paymentToken"
|
|
779
|
+
},
|
|
780
|
+
singleArgumentUnchanged: false
|
|
781
|
+
},
|
|
782
|
+
["orderPaymentRequestId", "options"]
|
|
783
|
+
);
|
|
784
|
+
sideEffects?.onError?.(err);
|
|
785
|
+
throw transformedError;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
651
788
|
|
|
652
789
|
// src/ecom-v1-order-payment-request-order-payment-requests.public.ts
|
|
653
790
|
function createOrderPaymentRequest3(httpClient) {
|
|
@@ -657,6 +794,14 @@ function createOrderPaymentRequest3(httpClient) {
|
|
|
657
794
|
{ httpClient }
|
|
658
795
|
);
|
|
659
796
|
}
|
|
797
|
+
function bulkCreateOrderPaymentRequests3(httpClient) {
|
|
798
|
+
return (orderPaymentRequests, options) => bulkCreateOrderPaymentRequests2(
|
|
799
|
+
orderPaymentRequests,
|
|
800
|
+
options,
|
|
801
|
+
// @ts-ignore
|
|
802
|
+
{ httpClient }
|
|
803
|
+
);
|
|
804
|
+
}
|
|
660
805
|
function getOrderPaymentRequest3(httpClient) {
|
|
661
806
|
return (orderPaymentRequestId) => getOrderPaymentRequest2(
|
|
662
807
|
orderPaymentRequestId,
|
|
@@ -715,6 +860,14 @@ function voidOrderPaymentRequest3(httpClient) {
|
|
|
715
860
|
{ httpClient }
|
|
716
861
|
);
|
|
717
862
|
}
|
|
863
|
+
function chargeOrderPaymentRequest3(httpClient) {
|
|
864
|
+
return (orderPaymentRequestId, options) => chargeOrderPaymentRequest2(
|
|
865
|
+
orderPaymentRequestId,
|
|
866
|
+
options,
|
|
867
|
+
// @ts-ignore
|
|
868
|
+
{ httpClient }
|
|
869
|
+
);
|
|
870
|
+
}
|
|
718
871
|
var onOrderPaymentRequestCreated = EventDefinition(
|
|
719
872
|
"wix.ecom.v1.order_payment_request_created",
|
|
720
873
|
true,
|
|
@@ -858,12 +1011,14 @@ function customQueryOrderPaymentRequests(httpClient) {
|
|
|
858
1011
|
return overloadedQuery;
|
|
859
1012
|
}
|
|
860
1013
|
var createOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(createOrderPaymentRequest3);
|
|
1014
|
+
var bulkCreateOrderPaymentRequests4 = /* @__PURE__ */ createRESTModule(bulkCreateOrderPaymentRequests3);
|
|
861
1015
|
var getOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(getOrderPaymentRequest3);
|
|
862
1016
|
var updateOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(updateOrderPaymentRequest3);
|
|
863
1017
|
var deleteOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(deleteOrderPaymentRequest3);
|
|
864
1018
|
var getOrderPaymentRequestUrl4 = /* @__PURE__ */ createRESTModule(getOrderPaymentRequestUrl3);
|
|
865
1019
|
var updateExtendedFields4 = /* @__PURE__ */ createRESTModule(updateExtendedFields3);
|
|
866
1020
|
var voidOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(voidOrderPaymentRequest3);
|
|
1021
|
+
var chargeOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(chargeOrderPaymentRequest3);
|
|
867
1022
|
var queryOrderPaymentRequests4 = /* @__PURE__ */ createRESTModule(customQueryOrderPaymentRequests);
|
|
868
1023
|
var onOrderPaymentRequestCreated2 = createEventModule(
|
|
869
1024
|
onOrderPaymentRequestCreated
|
|
@@ -888,6 +1043,8 @@ export {
|
|
|
888
1043
|
SortOrder,
|
|
889
1044
|
Status,
|
|
890
1045
|
WebhookIdentityType,
|
|
1046
|
+
bulkCreateOrderPaymentRequests4 as bulkCreateOrderPaymentRequests,
|
|
1047
|
+
chargeOrderPaymentRequest4 as chargeOrderPaymentRequest,
|
|
891
1048
|
createOrderPaymentRequest4 as createOrderPaymentRequest,
|
|
892
1049
|
deleteOrderPaymentRequest4 as deleteOrderPaymentRequest,
|
|
893
1050
|
getOrderPaymentRequest4 as getOrderPaymentRequest,
|