@wix/auto_sdk_payments_payments 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/build/cjs/index.d.ts +54 -0
  2. package/build/cjs/index.js +523 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +34 -0
  5. package/build/cjs/index.typings.js +401 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1424 -0
  8. package/build/cjs/meta.js +359 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/payments-platform-v1-payment-payments.universal-DeCl2FPc.d.ts +1650 -0
  11. package/build/cjs/schemas.d.ts +500 -0
  12. package/build/cjs/schemas.js +810 -0
  13. package/build/cjs/schemas.js.map +1 -0
  14. package/build/es/index.d.mts +54 -0
  15. package/build/es/index.mjs +480 -0
  16. package/build/es/index.mjs.map +1 -0
  17. package/build/es/index.typings.d.mts +34 -0
  18. package/build/es/index.typings.mjs +360 -0
  19. package/build/es/index.typings.mjs.map +1 -0
  20. package/build/es/meta.d.mts +1424 -0
  21. package/build/es/meta.mjs +316 -0
  22. package/build/es/meta.mjs.map +1 -0
  23. package/build/es/package.json +3 -0
  24. package/build/es/payments-platform-v1-payment-payments.universal-DeCl2FPc.d.mts +1650 -0
  25. package/build/es/schemas.d.mts +500 -0
  26. package/build/es/schemas.mjs +770 -0
  27. package/build/es/schemas.mjs.map +1 -0
  28. package/build/internal/cjs/index.d.ts +54 -0
  29. package/build/internal/cjs/index.js +523 -0
  30. package/build/internal/cjs/index.js.map +1 -0
  31. package/build/internal/cjs/index.typings.d.ts +34 -0
  32. package/build/internal/cjs/index.typings.js +401 -0
  33. package/build/internal/cjs/index.typings.js.map +1 -0
  34. package/build/internal/cjs/meta.d.ts +1521 -0
  35. package/build/internal/cjs/meta.js +359 -0
  36. package/build/internal/cjs/meta.js.map +1 -0
  37. package/build/internal/cjs/payments-platform-v1-payment-payments.universal-C5s3nmb-.d.ts +1705 -0
  38. package/build/internal/cjs/schemas.d.ts +500 -0
  39. package/build/internal/cjs/schemas.js +810 -0
  40. package/build/internal/cjs/schemas.js.map +1 -0
  41. package/build/internal/es/index.d.mts +54 -0
  42. package/build/internal/es/index.mjs +480 -0
  43. package/build/internal/es/index.mjs.map +1 -0
  44. package/build/internal/es/index.typings.d.mts +34 -0
  45. package/build/internal/es/index.typings.mjs +360 -0
  46. package/build/internal/es/index.typings.mjs.map +1 -0
  47. package/build/internal/es/meta.d.mts +1521 -0
  48. package/build/internal/es/meta.mjs +316 -0
  49. package/build/internal/es/meta.mjs.map +1 -0
  50. package/build/internal/es/payments-platform-v1-payment-payments.universal-C5s3nmb-.d.mts +1705 -0
  51. package/build/internal/es/schemas.d.mts +500 -0
  52. package/build/internal/es/schemas.mjs +770 -0
  53. package/build/internal/es/schemas.mjs.map +1 -0
  54. package/meta/package.json +3 -0
  55. package/package.json +61 -0
  56. package/schemas/package.json +3 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../schemas.ts","../../src/payments-platform-v1-payment-payments.schemas.ts"],"sourcesContent":["export * from './src/payments-platform-v1-payment-payments.schemas.js';\n","import * as z from 'zod';\n\nexport const GetPaymentRequest = /*#__PURE__*/ z.object({\n paymentId: z\n .string()\n .describe('Payment ID. This is the source charge ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetPaymentResponse = /*#__PURE__*/ z.object({\n _id: z\n .string()\n .describe('Payment ID. Identical to the charge 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 _createdDate: z\n .date()\n .describe('Date and time the payment was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the payment was last updated.')\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe('ID of the Wix app that initiated the checkout.')\n .min(1)\n .max(255)\n .optional()\n .nullable(),\n refundable: z\n .boolean()\n .describe(\n 'Whether a refund can currently be created for the payment, based on the\\ncharge state, payment method, and provider configuration. A `true` value\\ncan still result in a failed refund attempt due to permissions, account\\nbalance, or provider restrictions enforced at refund creation time.'\n )\n .optional()\n .nullable(),\n charge: z\n .object({\n _id: z\n .string()\n .describe('Charge 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 _createdDate: z\n .date()\n .describe('Date and time the charge was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the charge was last updated.')\n .optional()\n .nullable(),\n accountConnectionId: z\n .string()\n .describe(\"ID of the merchant's provider account connection.\")\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 paymentIntentId: z\n .string()\n .describe('ID of the PaymentIntent that initiated the charge.')\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 status: z\n .enum([\n 'INITIATED',\n 'ACTION_REQUIRED',\n 'PENDING',\n 'AUTHORIZED',\n 'CAPTURED',\n 'VOIDED',\n 'FAILED',\n ])\n .describe(\n 'Status of the charge.\\nSee the [Charges API](https://dev.wix.com/docs/api-reference/business-management/payments/charges/introduction) for more information.'\n )\n .optional(),\n statusDetails: z\n .object({\n code: z\n .string()\n .describe(\n 'Standardized 4-character reason code indicating why the charge is in its current status.\\nSee [reason codes](https://dev.wix.com/docs/api-reference/business-management/payments/payment-service-provider-service-plugin/reason-codes) for more information.'\n )\n .min(4)\n .max(4)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Human-readable description of the status code.')\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n providerStatus: z\n .string()\n .describe(\n 'Status of the charge as reported by the payment provider.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n providerStatusReasons: z\n .array(\n z.object({\n type: z\n .string()\n .describe(\n 'Type of reason code from the provider.\\nFor example, `issuer_decline_code`, `card_error`, or `request_error`.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n code: z\n .string()\n .describe('Provider-specific reason code.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe(\n 'Human-readable description of the provider reason.'\n )\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe('Additional details about the current charge status.')\n .optional(),\n amount: z\n .string()\n .describe(\n \"Total charge amount in the currency's main units.\\nFor example, `12.95` for $12.95 USD.\"\n )\n .optional()\n .nullable(),\n currencyCode: z\n .string()\n .describe('Currency of the charge.')\n .optional()\n .nullable(),\n applicationFee: z\n .string()\n .describe(\n \"Platform fee amount in the currency's main units.\\nFor example, `1.50` for a $1.50 platform fee.\\nUsed in scenarios where the platform charges a fee for processing the transaction.\"\n )\n .optional()\n .nullable(),\n orderLineItems: z\n .array(\n z.object({\n sku: z\n .string()\n .describe('Stock Keeping Unit identifier for the item.')\n .min(1)\n .max(255)\n .optional()\n .nullable(),\n name: z\n .string()\n .describe('Display name of the item.')\n .min(1)\n .max(200)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Number of units of this item being purchased.')\n .min(1)\n .optional()\n .nullable(),\n unitPrice: z\n .string()\n .describe(\n 'Price per unit before taxes and discounts are applied.'\n )\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Detailed description of the item.')\n .min(1)\n .max(1024)\n .optional()\n .nullable(),\n tangible: z\n .boolean()\n .describe(\n 'Whether the item is a physical product that requires shipping.'\n )\n .optional()\n .nullable(),\n discount: z\n .string()\n .describe(\n 'Total discount amount applied to this line item for the specified quantity.'\n )\n .optional()\n .nullable(),\n tax: z\n .string()\n .describe(\n 'Total tax amount for this line item for the specified quantity.'\n )\n .optional()\n .nullable(),\n })\n )\n .max(100)\n .optional(),\n amountBreakdown: z\n .object({\n itemsTotal: z\n .string()\n .describe(\n 'Total amount of all items before taxes and discounts.\\nEquals the sum of unitPrice * quantity amounts from all order line items.'\n )\n .optional()\n .nullable(),\n taxTotal: z\n .string()\n .describe(\n 'Total tax amount for the entire order.\\nEquals the sum of tax amounts from all order line items when individual item taxes are specified.'\n )\n .optional()\n .nullable(),\n discountTotal: z\n .string()\n .describe(\n 'Total discount amount for the entire order.\\nEquals the sum of all item discounts when individual item discounts are specified.'\n )\n .optional()\n .nullable(),\n shipping: z\n .object({\n amount: z\n .string()\n .describe('Shipping cost amount.')\n .optional()\n .nullable(),\n discount: z\n .string()\n .describe('Shipping discount amount.')\n .optional()\n .nullable(),\n })\n .describe('Shipping breakdown details.')\n .optional(),\n })\n .describe(\n 'Detailed breakdown of amounts that contribute to the total charge amount.\\nIncludes shipping costs, taxes, and discounts applied to the order.'\n )\n .optional(),\n statementDescriptor: z\n .string()\n .describe(\n \"Text that appears on the customer's payment statement for this charge.\\nHelps customers identify the transaction.\"\n )\n .max(20)\n .optional()\n .nullable(),\n billingInfo: z\n .object({\n contactDetails: z\n .object({\n firstName: z\n .string()\n .describe(\"Contact's first name.\")\n .optional()\n .nullable(),\n lastName: z\n .string()\n .describe(\"Contact's last name.\")\n .optional()\n .nullable(),\n phone: z\n .string()\n .describe(\"Contact's phone number.\")\n .optional()\n .nullable(),\n company: z\n .string()\n .describe(\"Contact's company name.\")\n .optional()\n .nullable(),\n email: z\n .string()\n .describe('Email associated with the address.')\n .email()\n .optional()\n .nullable(),\n vatId: z\n .object({\n _id: z.string().describe(\"Customer's tax ID.\").optional(),\n type: z\n .enum(['UNSPECIFIED', 'CPF', 'CNPJ'])\n .describe(\n 'Tax type.\\n\\nSupported values:\\n+ `CPF`: for individual tax payers\\n+ `CNPJ`: for corporations'\n )\n .optional(),\n })\n .describe('Tax info. Currently usable only in Brazil.')\n .optional(),\n })\n .describe(\n 'Contact details including name, email, and phone number.'\n )\n .optional(),\n address: z\n .object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine1: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n .describe('Physical address information.')\n .optional(),\n })\n .describe(\n \"Customer's billing address and contact information.\\nUsed for payment processing, fraud prevention, and compliance requirements.\"\n )\n .optional(),\n shippingInfo: z\n .object({\n contactDetails: z\n .object({\n firstName: z\n .string()\n .describe(\"Contact's first name.\")\n .optional()\n .nullable(),\n lastName: z\n .string()\n .describe(\"Contact's last name.\")\n .optional()\n .nullable(),\n phone: z\n .string()\n .describe(\"Contact's phone number.\")\n .optional()\n .nullable(),\n company: z\n .string()\n .describe(\"Contact's company name.\")\n .optional()\n .nullable(),\n email: z\n .string()\n .describe('Email associated with the address.')\n .email()\n .optional()\n .nullable(),\n vatId: z\n .object({\n _id: z.string().describe(\"Customer's tax ID.\").optional(),\n type: z\n .enum(['UNSPECIFIED', 'CPF', 'CNPJ'])\n .describe(\n 'Tax type.\\n\\nSupported values:\\n+ `CPF`: for individual tax payers\\n+ `CNPJ`: for corporations'\n )\n .optional(),\n })\n .describe('Tax info. Currently usable only in Brazil.')\n .optional(),\n })\n .describe(\n 'Contact details including name, email, and phone number.'\n )\n .optional(),\n address: z\n .object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine1: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n .describe('Physical address information.')\n .optional(),\n })\n .describe(\n \"Customer's shipping address and contact information.\\nUsed for order fulfillment and risk assessment.\"\n )\n .optional(),\n paymentMethod: z\n .object({\n paymentMethodTypeId: z\n .string()\n .describe('ID of the payment method type.')\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 paymentBrandId: z\n .string()\n .describe(\n 'ID of the specific payment method brand used (e.g., Visa, Mastercard in case of card payment or Venmo for PayPal payments).'\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 .optional()\n .nullable(),\n card: z\n .object({\n lastFourDigits: z\n .string()\n .describe('Last 4 digits of the card number.')\n .min(4)\n .max(4)\n .optional()\n .nullable(),\n bin: z\n .string()\n .describe(\n 'Bank Identification Number - the first 4-8 digits of the card number.'\n )\n .min(4)\n .max(8)\n .optional()\n .nullable(),\n expirationMonth: z\n .number()\n .int()\n .describe('Month when the card expires (1-12).')\n .min(1)\n .max(12)\n .optional()\n .nullable(),\n expirationYear: z\n .number()\n .int()\n .describe('Full year when the card expires.')\n .min(2000)\n .max(2099)\n .optional()\n .nullable(),\n cardholderName: z\n .string()\n .describe('Full name of the cardholder as printed on the card.')\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n .describe('Information about the card used for payment.')\n .optional(),\n account: z\n .object({\n email: z\n .string()\n .describe('Email address associated with the payment account.')\n .email()\n .optional()\n .nullable(),\n issuingBank: z\n .string()\n .describe('Name of the bank that issued the payment method.')\n .max(1024)\n .optional()\n .nullable(),\n })\n .describe('Information about the account used for payment.')\n .optional(),\n })\n .describe(\n 'Enriched payment method information from the payment provider.\\nIncludes processed details like card brand, last 4 digits, account information and other information that may vary based on payment method used.'\n )\n .optional(),\n flowDetails: z\n .object({\n moto: z\n .boolean()\n .describe(\n 'Whether this is a Mail Order/Telephone Order (MOTO) transaction.'\n )\n .optional()\n .nullable(),\n installmentCount: z\n .number()\n .int()\n .describe('Number of installments for this payment.')\n .min(1)\n .optional()\n .nullable(),\n })\n .describe('Configuration for the payment processing flow.')\n .optional(),\n buyer: z\n .object({\n contactId: z\n .string()\n .describe(\n \"ID of the buyer's contact record in the contacts system.\"\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 .optional()\n .nullable(),\n memberId: z\n .string()\n .describe(\n \"ID of the buyer's site membership if they are a registered member.\"\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 .optional()\n .nullable(),\n languageCode: z\n .string()\n .describe(\n \"Buyer's preferred language in IETF BCP 47 format.\\nFor example, `en-US` for U.S. English.\"\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Information about the customer making the payment.\\nLinks to contact records, site membership, and user accounts for personalization and compliance.'\n )\n .optional(),\n providerId: z\n .string()\n .describe('ID of the payment provider that processed this charge.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n providerChargeId: z\n .string()\n .describe(\"Charge ID as it appears in the payment provider's system.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalOrderId: z\n .string()\n .describe(\n 'Order identifier from the external system that initiated this charge.\\nPassed through to the payment provider for reporting and allowing correlation between payment and order.'\n )\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Charge details for the payment, including amount, currency, status,\\npayment method, and buyer information.'\n )\n .optional(),\n refunds: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Refund 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 _createdDate: z\n .date()\n .describe('Date and time the refund was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the refund was last updated.')\n .optional()\n .nullable(),\n amount: z\n .string()\n .describe(\n 'Amount being returned to the buyer in the refund currency\\'s main units (such as dollars or euros).\\nFor example, `\"12.95\"`.'\n )\n .optional()\n .nullable(),\n full: z\n .boolean()\n .describe(\n 'Whether the refund is for the entire amount of the charge.'\n )\n .optional()\n .nullable(),\n status: z\n .enum(['PENDING', 'SUCCEEDED', 'FAILED', 'REVERSED'])\n .describe(\n 'Status of the refund.\\n\\nLearn more about the [refund lifecycle](https://dev.wix.com/docs/api-reference/business-management/payments/refunds/refund-lifecycle).'\n )\n .optional(),\n providerRefundId: z\n .string()\n .describe(\"Payment service provider's ID for the refund.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n reason: z\n .string()\n .describe('Reason this refund was issued.')\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n statusInfo: z\n .object({\n code: z\n .string()\n .describe(\n 'Reason code with detailed information about the refund status.\\nSee the full list of [reason codes](https://dev.wix.com/docs/api-reference/business-management/payments/payment-service-provider-service-plugin/reason-codes#refund-declined).'\n )\n .min(1)\n .max(10)\n .optional(),\n description: z\n .string()\n .describe('Description of the status.')\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Details about the refund status.\\nUsed to provide additional information about why a refund was given its status.'\n )\n .optional(),\n acquirerReferenceNumber: z\n .string()\n .describe(\n 'Unique number assigned to a refund. This number is shared across all parties involved in processing the refund. It allows the merchant to track the refund with their bank.'\n )\n .min(1)\n .max(30)\n .optional()\n .nullable(),\n note: z\n .string()\n .describe('Note providing additional information about this refund.')\n .min(1)\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .max(50)\n .optional(),\n disputes: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Dispute 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 stage: z\n .enum(['CHARGEBACK', 'INQUIRY'])\n .describe('Stage of the dispute process.')\n .optional(),\n reason: z\n .enum([\n 'FRAUD_CARD_PRESENT',\n 'FRAUD_CARD_ABSENT',\n 'DUPLICATE_PROCESSING',\n 'SERVICES_NOT_PROVIDED',\n 'CANCELED_RECURRING',\n 'NOT_AS_DESCRIBED',\n 'COUNTERFEIT',\n 'MISREPRESENTATION',\n 'CANCELED',\n 'OTHER',\n ])\n .describe('Reason why the customer initiated the dispute.')\n .optional(),\n amount: z\n .string()\n .describe(\n 'Disputed amount in the currency\\'s main units. For example, `\"12.95\"` for $12.95.'\n )\n .optional()\n .nullable(),\n status: z\n .enum([\n 'WAITING_MERCHANT',\n 'UNDER_REVIEW',\n 'WAITING_BUYER',\n 'WON',\n 'LOST',\n ])\n .describe(\n 'Current status of the dispute. This indicates what action is required and who needs to take it.'\n )\n .optional(),\n sellerProtection: z\n .enum(['NOT_ELIGIBLE', 'ELIGIBLE', 'EXTENDED'])\n .describe(\n 'Level of seller protection coverage for this dispute.\\n\\nSeller protection is set by the payment provider. For example, PayPal offers a [seller protection program](https://www.paypal.com/ua/legalhub/paypal/seller-protection).'\n )\n .optional(),\n channel: z\n .enum(['INTERNAL', 'EXTERNAL'])\n .describe('Channel through which the dispute is being processed.')\n .optional(),\n dueDate: z\n .date()\n .describe(\n 'The latest date and time until which the dispute can remain in its current status.\\n\\nIf this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.'\n )\n .optional()\n .nullable(),\n providerDisputeId: z\n .string()\n .describe(\n 'Unique identifier assigned by the payment service provider for this dispute.'\n )\n .min(1)\n .max(64)\n .optional(),\n networkReasonCode: z\n .string()\n .describe(\n 'Network reason code provided by the card network or issuing bank that initiated the dispute.'\n )\n .min(1)\n .max(64)\n .optional()\n .nullable(),\n defendable: z\n .boolean()\n .describe('Whether the dispute can be defended with evidence.')\n .optional()\n .nullable(),\n autoDefended: z\n .boolean()\n .describe(\n 'Whether the dispute was automatically defended by the payment processor.'\n )\n .optional()\n .nullable(),\n defendedDate: z\n .date()\n .describe('Date and time at which the dispute was defended.')\n .optional()\n .nullable(),\n acceptedDate: z\n .date()\n .describe('Date and time at which the dispute was accepted.')\n .optional()\n .nullable(),\n actions: z\n .array(\n z.object({\n type: z\n .enum(['ACCEPT', 'DEFEND'])\n .describe('Type of action that can be performed.')\n .optional(),\n dueDate: z\n .date()\n .describe(\n 'Latest date and time by which this action must be performed.'\n )\n .optional()\n .nullable(),\n })\n )\n .max(20)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the dispute was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the dispute was updated.')\n .optional()\n .nullable(),\n })\n )\n .max(20)\n .optional(),\n notificationOfFraud: z\n .object({\n reason: z\n .enum([\n 'CARD_NEVER_RECEIVED',\n 'FRAUDULENT_CARD_APPLICATION',\n 'MADE_WITH_COUNTERFEIT_CARD',\n 'MADE_WITH_LOST_CARD',\n 'MADE_WITH_STOLEN_CARD',\n 'MISCELLANEOUS',\n 'UNAUTHORIZED_USE_OF_CARD',\n 'FRAUD',\n 'ACCOUNT_TAKEOVER_FRAUD',\n 'CARD_NOT_PRESENT_FRAUD',\n 'MULTIPLE_IMPRINT_FRAUD',\n 'BUST_OUT_COLLUSIVE_MERCHANT',\n 'FRAUDULENT_USE_OF_ACCOUNT_NUMBER',\n 'INCORRECT_PROCESSING',\n 'MERCHANT_MISREPRESENTATION',\n 'ACQUIRER_REPORTED_COUNTERFEIT',\n ])\n .describe(\n 'Standardized fraud reason, mapped from the raw reason reported by the upstream payment provider.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the notification of fraud was created.')\n .optional()\n .nullable(),\n })\n .describe(\n 'Notification of fraud associated with this payment, if any.\\n\\nA charge has at most one notification of fraud.'\n )\n .optional(),\n});\nexport const SearchPaymentsRequest = /*#__PURE__*/ z.object({\n search: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter object.\\n\\nFor supported payment filters, see @Supported Filters and Search Fields.\\nLearn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).'\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(10)\n .optional(),\n search: z\n .object({\n mode: z.enum(['OR', 'AND']).optional(),\n expression: z\n .string()\n .describe('Search term or expression.')\n .max(100)\n .optional()\n .nullable(),\n fields: z.array(z.string()).max(20).optional(),\n fuzzy: z\n .boolean()\n .describe(\n 'Whether to use automatic fuzzy search that allows typos.'\n )\n .optional(),\n })\n .describe('Free text to match against searchable payment fields.')\n .optional(),\n timeZone: z\n .string()\n .describe(\n 'UTC offset or IANA time zone. Valid values are\\nISO 8601 UTC offsets, such as +02:00 or -06:00,\\nand IANA time zone IDs, such as Europe/Rome.\\n\\nAffects all date filters. You can override this behavior for a specific\\nfilter by specifying a timestamp that includes a time zone, such as\\n`\"2023-12-20T10:52:34.795Z\"`.'\n )\n .max(50)\n .optional()\n .nullable(),\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(\n 'Maximum number of items to return in the results. Defaults to 50 if not provided.'\n )\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 paging options.\\n\\nUse the cursor from `pagingMetadata.cursors` in the previous\\nresponse to retrieve another page.\\nLearn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).'\n ),\n }),\n ])\n )\n .describe(\n 'Search options.\\n\\nFor supported full-text, filter, and sort fields, see @Supported Filters and Search Fields.'\n ),\n});\nexport const SearchPaymentsResponse = /*#__PURE__*/ z.object({\n payments: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Payment ID. Identical to the charge 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 _createdDate: z\n .date()\n .describe('Date and time the payment was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the payment was last updated.')\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe('ID of the Wix app that initiated the checkout.')\n .min(1)\n .max(255)\n .optional()\n .nullable(),\n refundable: z\n .boolean()\n .describe(\n 'Whether a refund can currently be created for the payment, based on the\\ncharge state, payment method, and provider configuration. A `true` value\\ncan still result in a failed refund attempt due to permissions, account\\nbalance, or provider restrictions enforced at refund creation time.'\n )\n .optional()\n .nullable(),\n charge: z\n .object({\n _id: z\n .string()\n .describe('Charge 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 _createdDate: z\n .date()\n .describe('Date and time the charge was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the charge was last updated.')\n .optional()\n .nullable(),\n accountConnectionId: z\n .string()\n .describe(\"ID of the merchant's provider account connection.\")\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 paymentIntentId: z\n .string()\n .describe('ID of the PaymentIntent that initiated the charge.')\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 status: z\n .enum([\n 'INITIATED',\n 'ACTION_REQUIRED',\n 'PENDING',\n 'AUTHORIZED',\n 'CAPTURED',\n 'VOIDED',\n 'FAILED',\n ])\n .describe(\n 'Status of the charge.\\nSee the [Charges API](https://dev.wix.com/docs/api-reference/business-management/payments/charges/introduction) for more information.'\n )\n .optional(),\n statusDetails: z\n .object({\n code: z\n .string()\n .describe(\n 'Standardized 4-character reason code indicating why the charge is in its current status.\\nSee [reason codes](https://dev.wix.com/docs/api-reference/business-management/payments/payment-service-provider-service-plugin/reason-codes) for more information.'\n )\n .min(4)\n .max(4)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Human-readable description of the status code.')\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n providerStatus: z\n .string()\n .describe(\n 'Status of the charge as reported by the payment provider.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n providerStatusReasons: z\n .array(\n z.object({\n type: z\n .string()\n .describe(\n 'Type of reason code from the provider.\\nFor example, `issuer_decline_code`, `card_error`, or `request_error`.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n code: z\n .string()\n .describe('Provider-specific reason code.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe(\n 'Human-readable description of the provider reason.'\n )\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe('Additional details about the current charge status.')\n .optional(),\n amount: z\n .string()\n .describe(\n \"Total charge amount in the currency's main units.\\nFor example, `12.95` for $12.95 USD.\"\n )\n .optional()\n .nullable(),\n currencyCode: z\n .string()\n .describe('Currency of the charge.')\n .optional()\n .nullable(),\n applicationFee: z\n .string()\n .describe(\n \"Platform fee amount in the currency's main units.\\nFor example, `1.50` for a $1.50 platform fee.\\nUsed in scenarios where the platform charges a fee for processing the transaction.\"\n )\n .optional()\n .nullable(),\n orderLineItems: z\n .array(\n z.object({\n sku: z\n .string()\n .describe('Stock Keeping Unit identifier for the item.')\n .min(1)\n .max(255)\n .optional()\n .nullable(),\n name: z\n .string()\n .describe('Display name of the item.')\n .min(1)\n .max(200)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Number of units of this item being purchased.')\n .min(1)\n .optional()\n .nullable(),\n unitPrice: z\n .string()\n .describe(\n 'Price per unit before taxes and discounts are applied.'\n )\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Detailed description of the item.')\n .min(1)\n .max(1024)\n .optional()\n .nullable(),\n tangible: z\n .boolean()\n .describe(\n 'Whether the item is a physical product that requires shipping.'\n )\n .optional()\n .nullable(),\n discount: z\n .string()\n .describe(\n 'Total discount amount applied to this line item for the specified quantity.'\n )\n .optional()\n .nullable(),\n tax: z\n .string()\n .describe(\n 'Total tax amount for this line item for the specified quantity.'\n )\n .optional()\n .nullable(),\n })\n )\n .max(100)\n .optional(),\n amountBreakdown: z\n .object({\n itemsTotal: z\n .string()\n .describe(\n 'Total amount of all items before taxes and discounts.\\nEquals the sum of unitPrice * quantity amounts from all order line items.'\n )\n .optional()\n .nullable(),\n taxTotal: z\n .string()\n .describe(\n 'Total tax amount for the entire order.\\nEquals the sum of tax amounts from all order line items when individual item taxes are specified.'\n )\n .optional()\n .nullable(),\n discountTotal: z\n .string()\n .describe(\n 'Total discount amount for the entire order.\\nEquals the sum of all item discounts when individual item discounts are specified.'\n )\n .optional()\n .nullable(),\n shipping: z\n .object({\n amount: z\n .string()\n .describe('Shipping cost amount.')\n .optional()\n .nullable(),\n discount: z\n .string()\n .describe('Shipping discount amount.')\n .optional()\n .nullable(),\n })\n .describe('Shipping breakdown details.')\n .optional(),\n })\n .describe(\n 'Detailed breakdown of amounts that contribute to the total charge amount.\\nIncludes shipping costs, taxes, and discounts applied to the order.'\n )\n .optional(),\n statementDescriptor: z\n .string()\n .describe(\n \"Text that appears on the customer's payment statement for this charge.\\nHelps customers identify the transaction.\"\n )\n .max(20)\n .optional()\n .nullable(),\n billingInfo: z\n .object({\n contactDetails: z\n .object({\n firstName: z\n .string()\n .describe(\"Contact's first name.\")\n .optional()\n .nullable(),\n lastName: z\n .string()\n .describe(\"Contact's last name.\")\n .optional()\n .nullable(),\n phone: z\n .string()\n .describe(\"Contact's phone number.\")\n .optional()\n .nullable(),\n company: z\n .string()\n .describe(\"Contact's company name.\")\n .optional()\n .nullable(),\n email: z\n .string()\n .describe('Email associated with the address.')\n .email()\n .optional()\n .nullable(),\n vatId: z\n .object({\n _id: z\n .string()\n .describe(\"Customer's tax ID.\")\n .optional(),\n type: z\n .enum(['UNSPECIFIED', 'CPF', 'CNPJ'])\n .describe(\n 'Tax type.\\n\\nSupported values:\\n+ `CPF`: for individual tax payers\\n+ `CNPJ`: for corporations'\n )\n .optional(),\n })\n .describe('Tax info. Currently usable only in Brazil.')\n .optional(),\n })\n .describe(\n 'Contact details including name, email, and phone number.'\n )\n .optional(),\n address: z\n .object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine1: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n .describe('Physical address information.')\n .optional(),\n })\n .describe(\n \"Customer's billing address and contact information.\\nUsed for payment processing, fraud prevention, and compliance requirements.\"\n )\n .optional(),\n shippingInfo: z\n .object({\n contactDetails: z\n .object({\n firstName: z\n .string()\n .describe(\"Contact's first name.\")\n .optional()\n .nullable(),\n lastName: z\n .string()\n .describe(\"Contact's last name.\")\n .optional()\n .nullable(),\n phone: z\n .string()\n .describe(\"Contact's phone number.\")\n .optional()\n .nullable(),\n company: z\n .string()\n .describe(\"Contact's company name.\")\n .optional()\n .nullable(),\n email: z\n .string()\n .describe('Email associated with the address.')\n .email()\n .optional()\n .nullable(),\n vatId: z\n .object({\n _id: z\n .string()\n .describe(\"Customer's tax ID.\")\n .optional(),\n type: z\n .enum(['UNSPECIFIED', 'CPF', 'CNPJ'])\n .describe(\n 'Tax type.\\n\\nSupported values:\\n+ `CPF`: for individual tax payers\\n+ `CNPJ`: for corporations'\n )\n .optional(),\n })\n .describe('Tax info. Currently usable only in Brazil.')\n .optional(),\n })\n .describe(\n 'Contact details including name, email, and phone number.'\n )\n .optional(),\n address: z\n .object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine1: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n .describe('Physical address information.')\n .optional(),\n })\n .describe(\n \"Customer's shipping address and contact information.\\nUsed for order fulfillment and risk assessment.\"\n )\n .optional(),\n paymentMethod: z\n .object({\n paymentMethodTypeId: z\n .string()\n .describe('ID of the payment method type.')\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 paymentBrandId: z\n .string()\n .describe(\n 'ID of the specific payment method brand used (e.g., Visa, Mastercard in case of card payment or Venmo for PayPal payments).'\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 .optional()\n .nullable(),\n card: z\n .object({\n lastFourDigits: z\n .string()\n .describe('Last 4 digits of the card number.')\n .min(4)\n .max(4)\n .optional()\n .nullable(),\n bin: z\n .string()\n .describe(\n 'Bank Identification Number - the first 4-8 digits of the card number.'\n )\n .min(4)\n .max(8)\n .optional()\n .nullable(),\n expirationMonth: z\n .number()\n .int()\n .describe('Month when the card expires (1-12).')\n .min(1)\n .max(12)\n .optional()\n .nullable(),\n expirationYear: z\n .number()\n .int()\n .describe('Full year when the card expires.')\n .min(2000)\n .max(2099)\n .optional()\n .nullable(),\n cardholderName: z\n .string()\n .describe(\n 'Full name of the cardholder as printed on the card.'\n )\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n .describe('Information about the card used for payment.')\n .optional(),\n account: z\n .object({\n email: z\n .string()\n .describe(\n 'Email address associated with the payment account.'\n )\n .email()\n .optional()\n .nullable(),\n issuingBank: z\n .string()\n .describe(\n 'Name of the bank that issued the payment method.'\n )\n .max(1024)\n .optional()\n .nullable(),\n })\n .describe('Information about the account used for payment.')\n .optional(),\n })\n .describe(\n 'Enriched payment method information from the payment provider.\\nIncludes processed details like card brand, last 4 digits, account information and other information that may vary based on payment method used.'\n )\n .optional(),\n flowDetails: z\n .object({\n moto: z\n .boolean()\n .describe(\n 'Whether this is a Mail Order/Telephone Order (MOTO) transaction.'\n )\n .optional()\n .nullable(),\n installmentCount: z\n .number()\n .int()\n .describe('Number of installments for this payment.')\n .min(1)\n .optional()\n .nullable(),\n })\n .describe('Configuration for the payment processing flow.')\n .optional(),\n buyer: z\n .object({\n contactId: z\n .string()\n .describe(\n \"ID of the buyer's contact record in the contacts system.\"\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 .optional()\n .nullable(),\n memberId: z\n .string()\n .describe(\n \"ID of the buyer's site membership if they are a registered member.\"\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 .optional()\n .nullable(),\n languageCode: z\n .string()\n .describe(\n \"Buyer's preferred language in IETF BCP 47 format.\\nFor example, `en-US` for U.S. English.\"\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Information about the customer making the payment.\\nLinks to contact records, site membership, and user accounts for personalization and compliance.'\n )\n .optional(),\n providerId: z\n .string()\n .describe(\n 'ID of the payment provider that processed this charge.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n providerChargeId: z\n .string()\n .describe(\n \"Charge ID as it appears in the payment provider's system.\"\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalOrderId: z\n .string()\n .describe(\n 'Order identifier from the external system that initiated this charge.\\nPassed through to the payment provider for reporting and allowing correlation between payment and order.'\n )\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Charge details for the payment, including amount, currency, status,\\npayment method, and buyer information.'\n )\n .optional(),\n refunds: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Refund 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 _createdDate: z\n .date()\n .describe('Date and time the refund was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the refund was last updated.')\n .optional()\n .nullable(),\n amount: z\n .string()\n .describe(\n 'Amount being returned to the buyer in the refund currency\\'s main units (such as dollars or euros).\\nFor example, `\"12.95\"`.'\n )\n .optional()\n .nullable(),\n full: z\n .boolean()\n .describe(\n 'Whether the refund is for the entire amount of the charge.'\n )\n .optional()\n .nullable(),\n status: z\n .enum(['PENDING', 'SUCCEEDED', 'FAILED', 'REVERSED'])\n .describe(\n 'Status of the refund.\\n\\nLearn more about the [refund lifecycle](https://dev.wix.com/docs/api-reference/business-management/payments/refunds/refund-lifecycle).'\n )\n .optional(),\n providerRefundId: z\n .string()\n .describe(\"Payment service provider's ID for the refund.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n reason: z\n .string()\n .describe('Reason this refund was issued.')\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n statusInfo: z\n .object({\n code: z\n .string()\n .describe(\n 'Reason code with detailed information about the refund status.\\nSee the full list of [reason codes](https://dev.wix.com/docs/api-reference/business-management/payments/payment-service-provider-service-plugin/reason-codes#refund-declined).'\n )\n .min(1)\n .max(10)\n .optional(),\n description: z\n .string()\n .describe('Description of the status.')\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Details about the refund status.\\nUsed to provide additional information about why a refund was given its status.'\n )\n .optional(),\n acquirerReferenceNumber: z\n .string()\n .describe(\n 'Unique number assigned to a refund. This number is shared across all parties involved in processing the refund. It allows the merchant to track the refund with their bank.'\n )\n .min(1)\n .max(30)\n .optional()\n .nullable(),\n note: z\n .string()\n .describe(\n 'Note providing additional information about this refund.'\n )\n .min(1)\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .max(50)\n .optional(),\n disputes: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Dispute 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 stage: z\n .enum(['CHARGEBACK', 'INQUIRY'])\n .describe('Stage of the dispute process.')\n .optional(),\n reason: z\n .enum([\n 'FRAUD_CARD_PRESENT',\n 'FRAUD_CARD_ABSENT',\n 'DUPLICATE_PROCESSING',\n 'SERVICES_NOT_PROVIDED',\n 'CANCELED_RECURRING',\n 'NOT_AS_DESCRIBED',\n 'COUNTERFEIT',\n 'MISREPRESENTATION',\n 'CANCELED',\n 'OTHER',\n ])\n .describe('Reason why the customer initiated the dispute.')\n .optional(),\n amount: z\n .string()\n .describe(\n 'Disputed amount in the currency\\'s main units. For example, `\"12.95\"` for $12.95.'\n )\n .optional()\n .nullable(),\n status: z\n .enum([\n 'WAITING_MERCHANT',\n 'UNDER_REVIEW',\n 'WAITING_BUYER',\n 'WON',\n 'LOST',\n ])\n .describe(\n 'Current status of the dispute. This indicates what action is required and who needs to take it.'\n )\n .optional(),\n sellerProtection: z\n .enum(['NOT_ELIGIBLE', 'ELIGIBLE', 'EXTENDED'])\n .describe(\n 'Level of seller protection coverage for this dispute.\\n\\nSeller protection is set by the payment provider. For example, PayPal offers a [seller protection program](https://www.paypal.com/ua/legalhub/paypal/seller-protection).'\n )\n .optional(),\n channel: z\n .enum(['INTERNAL', 'EXTERNAL'])\n .describe(\n 'Channel through which the dispute is being processed.'\n )\n .optional(),\n dueDate: z\n .date()\n .describe(\n 'The latest date and time until which the dispute can remain in its current status.\\n\\nIf this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.'\n )\n .optional()\n .nullable(),\n providerDisputeId: z\n .string()\n .describe(\n 'Unique identifier assigned by the payment service provider for this dispute.'\n )\n .min(1)\n .max(64)\n .optional(),\n networkReasonCode: z\n .string()\n .describe(\n 'Network reason code provided by the card network or issuing bank that initiated the dispute.'\n )\n .min(1)\n .max(64)\n .optional()\n .nullable(),\n defendable: z\n .boolean()\n .describe('Whether the dispute can be defended with evidence.')\n .optional()\n .nullable(),\n autoDefended: z\n .boolean()\n .describe(\n 'Whether the dispute was automatically defended by the payment processor.'\n )\n .optional()\n .nullable(),\n defendedDate: z\n .date()\n .describe('Date and time at which the dispute was defended.')\n .optional()\n .nullable(),\n acceptedDate: z\n .date()\n .describe('Date and time at which the dispute was accepted.')\n .optional()\n .nullable(),\n actions: z\n .array(\n z.object({\n type: z\n .enum(['ACCEPT', 'DEFEND'])\n .describe('Type of action that can be performed.')\n .optional(),\n dueDate: z\n .date()\n .describe(\n 'Latest date and time by which this action must be performed.'\n )\n .optional()\n .nullable(),\n })\n )\n .max(20)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the dispute was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the dispute was updated.')\n .optional()\n .nullable(),\n })\n )\n .max(20)\n .optional(),\n notificationOfFraud: z\n .object({\n reason: z\n .enum([\n 'CARD_NEVER_RECEIVED',\n 'FRAUDULENT_CARD_APPLICATION',\n 'MADE_WITH_COUNTERFEIT_CARD',\n 'MADE_WITH_LOST_CARD',\n 'MADE_WITH_STOLEN_CARD',\n 'MISCELLANEOUS',\n 'UNAUTHORIZED_USE_OF_CARD',\n 'FRAUD',\n 'ACCOUNT_TAKEOVER_FRAUD',\n 'CARD_NOT_PRESENT_FRAUD',\n 'MULTIPLE_IMPRINT_FRAUD',\n 'BUST_OUT_COLLUSIVE_MERCHANT',\n 'FRAUDULENT_USE_OF_ACCOUNT_NUMBER',\n 'INCORRECT_PROCESSING',\n 'MERCHANT_MISREPRESENTATION',\n 'ACQUIRER_REPORTED_COUNTERFEIT',\n ])\n .describe(\n 'Standardized fraud reason, mapped from the raw reason reported by the upstream payment provider.'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the notification of fraud was created.')\n .optional()\n .nullable(),\n })\n .describe(\n 'Notification of fraud associated with this payment, if any.\\n\\nA charge has at most one notification of fraud.'\n )\n .optional(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in current page.')\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('Cursor paging metadata for the current page.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;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AAK,EACL,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,gBACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,2CAA2C,EACpD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,8CAA8C,EACvD,SAAS;AACd,CAAC;","names":[]}
@@ -0,0 +1,54 @@
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { P as Payment, a as PaymentSearch, S as SearchPaymentsResponse, b as PaymentCreatedEnvelope, c as PaymentUpdatedEnvelope } from './payments-platform-v1-payment-payments.universal-DeCl2FPc.mjs';
3
+ export { t as Account, a1 as AccountInfo, av as AccountInfoMetadata, Z as ActionEvent, o as Address, r as AddressLocation, p as AddressStreetOneOf, ac as AggregationData, ar as AggregationResults, as as AggregationResultsResultOneOf, ao as AggregationResultsScalarResult, A as AggregationType, aM as AggregationTypeWithLiterals, w as AmountBreakdown, at as BaseEventMetadata, B as Buyer, s as Card, C as Charge, aN as CommonSearchWithEntityContext, x as ContactInfo, a9 as CursorPaging, aa as CursorPagingMetadata, a5 as CursorSearch, a6 as CursorSearchPagingMethodOneOf, ab as Cursors, al as DateHistogramResult, ap as DateHistogramResults, H as Dispute, I as DisputeAction, i as DisputeActionType, aG as DisputeActionTypeWithLiterals, h as DisputeChannel, aF as DisputeChannelWithLiterals, e as DisputeReason, aC as DisputeReasonWithLiterals, D as DisputeStage, aB as DisputeStageWithLiterals, f as DisputeStatus, aD as DisputeStatusWithLiterals, L as DomainEvent, Q as DomainEventBodyOneOf, T as EntityCreatedEvent, Y as EntityDeletedEvent, X as EntityUpdatedEvent, au as EventMetadata, z as FlowDetails, F as FullAddressContactDetails, a2 as GetPaymentRequest, a3 as GetPaymentResponse, $ as IdentificationData, a0 as IdentificationDataIdOneOf, _ as MessageEnvelope, M as Mode, aK as ModeWithLiterals, ai as NestedResultValue, aj as NestedResultValueResultOneOf, aq as NestedResults, N as NotificationOfFraud, O as OrderLineItem, y as PaymentMethod, aw as PaymentSearchSpec, u as ProviderStatusReason, ae as RangeAggregationResult, ag as RangeResult, an as RangeResults, j as Reason, aH as ReasonWithLiterals, E as Refund, R as RefundStatus, aA as RefundStatusWithLiterals, U as RestoreInfo, ak as Results, ah as ScalarResult, l as ScalarType, aL as ScalarTypeWithLiterals, a8 as SearchDetails, a4 as SearchPaymentsRequest, g as SellerProtection, aE as SellerProtectionWithLiterals, m as Shipping, k as SortOrder, aJ as SortOrderWithLiterals, a7 as Sorting, d as Status, v as StatusDetails, G as StatusInfo, az as StatusWithLiterals, q as StreetAddress, J as SyncPaymentRequest, K as SyncPaymentResponse, ad as ValueAggregationResult, af as ValueResult, am as ValueResults, n as VatId, V as VatType, ay as VatTypeWithLiterals, W as WebhookIdentityType, aI as WebhookIdentityTypeWithLiterals, ax as utils } from './payments-platform-v1-payment-payments.universal-DeCl2FPc.mjs';
4
+
5
+ declare function getPayment$1(httpClient: HttpClient): GetPaymentSignature;
6
+ interface GetPaymentSignature {
7
+ /**
8
+ * Retrieves a payment by ID.
9
+ *
10
+ * The payment ID is identical to the source charge ID, so the same value can
11
+ * be used to look up the underlying charge.
12
+ * @param - Payment ID. This is the source charge ID.
13
+ * @returns Retrieved payment.
14
+ */
15
+ (paymentId: string): Promise<NonNullablePaths<Payment, `charge.status` | `charge.statusDetails.providerStatusReasons` | `charge.orderLineItems` | `charge.billingInfo.contactDetails.vatId._id` | `charge.billingInfo.contactDetails.vatId.type` | `charge.billingInfo.address.streetAddress.number` | `charge.billingInfo.address.streetAddress.name` | `refunds` | `refunds.${number}.status` | `refunds.${number}.statusInfo.code` | `disputes` | `disputes.${number}._id` | `disputes.${number}.stage` | `disputes.${number}.reason` | `disputes.${number}.status` | `disputes.${number}.sellerProtection` | `disputes.${number}.channel` | `disputes.${number}.providerDisputeId` | `notificationOfFraud.reason`, 6>>;
16
+ }
17
+ declare function searchPayments$1(httpClient: HttpClient): SearchPaymentsSignature;
18
+ interface SearchPaymentsSignature {
19
+ /**
20
+ * Retrieves payments matching the provided full-text search, structured
21
+ * filters, or correlated nested matching.
22
+ *
23
+ * Use Search Payments to find payments by buyer name, buyer or shipping
24
+ * email, or order item name, or to require multiple conditions to match the
25
+ * same refund or dispute item rather than the payment as a whole.
26
+ *
27
+ * Payments are updated asynchronously. After a charge, refund, dispute, or
28
+ * notification of fraud changes, the payment reflects the change within a
29
+ * few seconds.
30
+ *
31
+ * For supported full-text, filter, and sort fields, see
32
+ * @param - Search options.
33
+ *
34
+ * For supported full-text, filter, and sort fields, see
35
+ * @returns Response containing a page of payments that match the search and the
36
+ * pagination metadata for the current page.
37
+ */
38
+ (search: PaymentSearch): Promise<NonNullablePaths<SearchPaymentsResponse, `payments` | `payments.${number}.charge.status` | `payments.${number}.notificationOfFraud.reason`, 5>>;
39
+ }
40
+ declare const onPaymentCreated$1: EventDefinition<PaymentCreatedEnvelope, "wix.payments.platform.v1.payment_created">;
41
+ declare const onPaymentUpdated$1: EventDefinition<PaymentUpdatedEnvelope, "wix.payments.platform.v1.payment_updated">;
42
+
43
+ declare const getPayment: MaybeContext<BuildRESTFunction<typeof getPayment$1> & typeof getPayment$1>;
44
+ declare const searchPayments: MaybeContext<BuildRESTFunction<typeof searchPayments$1> & typeof searchPayments$1>;
45
+ /**
46
+ * Triggered when a payment is created.
47
+ */
48
+ declare const onPaymentCreated: BuildEventDefinition<typeof onPaymentCreated$1> & typeof onPaymentCreated$1;
49
+ /**
50
+ * Triggered when a payment is updated.
51
+ */
52
+ declare const onPaymentUpdated: BuildEventDefinition<typeof onPaymentUpdated$1> & typeof onPaymentUpdated$1;
53
+
54
+ export { Payment, PaymentCreatedEnvelope, PaymentSearch, PaymentUpdatedEnvelope, SearchPaymentsResponse, getPayment, onPaymentCreated, onPaymentUpdated, searchPayments };