{"version":3,"sources":["../../src/receipts-v1-receipts-settings-receipts-settings.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetReceiptsSettingsRequest = /*#__PURE__*/ z.object({});\nexport const GetReceiptsSettingsResponse = /*#__PURE__*/ z.object({\n  receiptsSettings: z\n    .object({\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments by 1 each time the receipt settings are updated. To prevent conflicting changes, the current revision must be passed when updating the receipt settings.'\n        )\n        .optional()\n        .nullable(),\n      _createdDate: z\n        .date()\n        .describe('Date and time the receipt settings were created.')\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe('Date and time the receipt settings were last updated.')\n        .optional()\n        .nullable(),\n      numbering: z\n        .object({\n          prefix: z\n            .string()\n            .describe(\n              'Receipt prefix that will be displayed before the receipt number.'\n            )\n            .min(1)\n            .max(10)\n            .optional()\n            .nullable(),\n          nextNumber: z\n            .number()\n            .int()\n            .describe(\n              'Next receipt number. Used during receipt creation to ensure unique and consecutive numbering.'\n            )\n            .min(1)\n            .max(1000000000)\n            .optional()\n            .nullable(),\n          suffix: z\n            .string()\n            .describe(\n              'Receipt suffix that will be displayed after the receipt number.'\n            )\n            .min(1)\n            .max(10)\n            .optional()\n            .nullable(),\n        })\n        .describe('Receipt numbering settings.')\n        .optional(),\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 the receipt settings.\\n\\nExtended fields must be configured in the app dashboard before they can be accessed with API calls.'\n        )\n        .optional(),\n    })\n    .describe('Receipts settings.')\n    .optional(),\n});\nexport const UpdateReceiptsSettingsRequest = /*#__PURE__*/ z.object({\n  receiptsSettings: z\n    .object({\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments by 1 each time the receipt settings are updated. To prevent conflicting changes, the current revision must be passed when updating the receipt settings.'\n        ),\n      _createdDate: z\n        .date()\n        .describe('Date and time the receipt settings were created.')\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe('Date and time the receipt settings were last updated.')\n        .optional()\n        .nullable(),\n      numbering: z\n        .object({\n          prefix: z\n            .string()\n            .describe(\n              'Receipt prefix that will be displayed before the receipt number.'\n            )\n            .min(1)\n            .max(10)\n            .optional()\n            .nullable(),\n          nextNumber: z\n            .number()\n            .int()\n            .describe(\n              'Next receipt number. Used during receipt creation to ensure unique and consecutive numbering.'\n            )\n            .min(1)\n            .max(1000000000)\n            .optional()\n            .nullable(),\n          suffix: z\n            .string()\n            .describe(\n              'Receipt suffix that will be displayed after the receipt number.'\n            )\n            .min(1)\n            .max(10)\n            .optional()\n            .nullable(),\n        })\n        .describe('Receipt numbering settings.'),\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 the receipt settings.\\n\\nExtended fields must be configured in the app dashboard before they can be accessed with API calls.'\n        )\n        .optional(),\n    })\n    .describe(\n      'Receipt settings to update. Partial update is supported, but if no receipt settings entity exists, the full entity must be specified.'\n    ),\n});\nexport const UpdateReceiptsSettingsResponse = /*#__PURE__*/ z.object({\n  revision: z\n    .string()\n    .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n    .describe(\n      'Revision number, which increments by 1 each time the receipt settings are updated. To prevent conflicting changes, the current revision must be passed when updating the receipt settings.'\n    )\n    .optional()\n    .nullable(),\n  _createdDate: z\n    .date()\n    .describe('Date and time the receipt settings were created.')\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe('Date and time the receipt settings were last updated.')\n    .optional()\n    .nullable(),\n  numbering: z\n    .object({\n      prefix: z\n        .string()\n        .describe(\n          'Receipt prefix that will be displayed before the receipt number.'\n        )\n        .min(1)\n        .max(10)\n        .optional()\n        .nullable(),\n      nextNumber: z\n        .number()\n        .int()\n        .describe(\n          'Next receipt number. Used during receipt creation to ensure unique and consecutive numbering.'\n        )\n        .min(1)\n        .max(1000000000)\n        .optional()\n        .nullable(),\n      suffix: z\n        .string()\n        .describe(\n          'Receipt suffix that will be displayed after the receipt number.'\n        )\n        .min(1)\n        .max(10)\n        .optional()\n        .nullable(),\n    })\n    .describe('Receipt numbering settings.')\n    .optional(),\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 the receipt settings.\\n\\nExtended fields must be configured in the app dashboard before they can be accessed with API calls.'\n    )\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,6BAA2C,gBAAE,SAAO,CAAC,CAAC;AAC5D,IAAM,8BAA4C,gBAAE,SAAO;AAAA,EAChE,kBACG,SAAO;AAAA,IACN,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,kDAAkD,EAC3D,SAAS,EACT,SAAS;AAAA,IACZ,cACG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