@wix/auto_sdk_payments_payouts 1.0.2 → 1.0.4

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 (49) hide show
  1. package/build/cjs/index.d.ts +10 -1
  2. package/build/cjs/index.js +8 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +49 -9
  5. package/build/cjs/index.typings.js +8 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +26 -5
  8. package/build/cjs/meta.js +8 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +4 -0
  11. package/build/cjs/schemas.js +16 -4
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +10 -1
  14. package/build/es/index.mjs +8 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +49 -9
  17. package/build/es/index.typings.mjs +8 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +26 -5
  20. package/build/es/meta.mjs +8 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +4 -0
  23. package/build/es/schemas.mjs +16 -4
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +10 -1
  26. package/build/internal/cjs/index.js +8 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +49 -9
  29. package/build/internal/cjs/index.typings.js +8 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +26 -5
  32. package/build/internal/cjs/meta.js +8 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +4 -0
  35. package/build/internal/cjs/schemas.js +16 -4
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +10 -1
  38. package/build/internal/es/index.mjs +8 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +49 -9
  41. package/build/internal/es/index.typings.mjs +8 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +26 -5
  44. package/build/internal/es/meta.mjs +8 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +4 -0
  47. package/build/internal/es/schemas.mjs +16 -4
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/payments-payouts-v4-payout-payouts.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListPayoutsRequest = z.object({\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account whose payouts to list. Retrieve account\\nIDs from the Accounts API.'\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 options: z\n .object({\n accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile to filter by.\\n\\nWhen omitted, payouts across all profiles of the account are returned.\\nRetrieve profile IDs from the Accounts API.'\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 createdBefore: z\n .date()\n .describe('Returns only payouts created before this date and time.')\n .optional()\n .nullable(),\n createdAfter: z\n .date()\n .describe('Returns only payouts created after this date and time.')\n .optional()\n .nullable(),\n sort: z\n .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 .describe(\n 'Sort order for the result list.\\n\\nSupported `fieldName` values: `created_date` (snake_case, not auto-converted). At most 1 sort field is allowed.'\n )\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Number of items to load.')\n .min(0)\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Number of items to skip in the current sort order.')\n .min(0)\n .optional()\n .nullable(),\n })\n .describe('Offset-based paging.')\n .optional(),\n })\n .optional(),\n});\nexport const ListPayoutsResponse = z.object({\n payouts: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. Retrieve account IDs\\nfrom the Accounts API.'\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 accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile that owns the payout.\\n\\nA Wix Payments account has 1 or more profiles. Each profile has its own\\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\\nprofile IDs from the Accounts API.'\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 _createdDate: z\n .date()\n .describe(\n \"Date and time the payout was created.\\n\\nThe payout is created before the underlying transfer is initiated at the\\nbank. Once initiated, the funds typically reach the merchant's bank account\\nwithin 3 to 5 business days, depending on the receiving bank.\"\n )\n .optional()\n .nullable(),\n amount: z\n .object({\n value: z\n .string()\n .describe(\n 'Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. Must be valid ISO 4217 currency code (e.g., USD).'\n )\n .optional(),\n formattedValue: z\n .string()\n .describe(\n 'Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional()\n .nullable(),\n })\n .describe(\"Amount of the transfer to the merchant's bank account.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'SENT', 'FAILED'])\n .describe(\n \"Lifecycle status of the payout.\\n\\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\\nthe receiving bank rejected the transfer.\\n\\nA `SENT` status doesn't guarantee that the funds were delivered to the\\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\\npayout in `SENT` can later transition to `FAILED` if the receiving bank\\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\\ndetails.\"\n )\n .optional(),\n estimatedArrivalDateV2: z\n .string()\n .describe(\n \"Estimated date for when the funds should arrive at the merchant's bank\\naccount, in `YYYY-MM-DD` format.\\n\\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\\ndepends on the receiving bank's processing and may be later.\"\n )\n .optional()\n .nullable(),\n failureReason: z\n .object({\n code: z\n .enum([\n 'GENERIC_PAYOUT_FAILURE',\n 'ACCOUNT_CLOSED',\n 'ACCOUNT_FROZEN',\n 'BANK_ACCOUNT_RESTRICTED',\n 'BANK_OWNERSHIP_CHANGED',\n 'COULD_NOT_PROCESS',\n 'DEBIT_NOT_AUTHORIZED',\n 'INCORRECT_ACCOUNT_HOLDER_NAME',\n 'INVALID_ACCOUNT_DETAILS_CITY',\n 'INVALID_ACCOUNT_NUMBER',\n 'INVALID_CURRENCY',\n 'INVALID_ROUTING_NUMBER',\n 'INVALID_SORT_CODE',\n 'NO_ACCOUNT',\n 'TECHNICAL_ERROR',\n ])\n .describe('Why the bank rail rejected the transfer.')\n .optional(),\n })\n .describe(\n 'Reason the bank rail rejected the transfer.\\n\\nReturned only when `status` is `FAILED`.'\n )\n .optional(),\n bankTransferReference: z\n .string()\n .describe(\n \"Reference returned by the bank rail once the transfer is initiated. For\\nexample, an ACH trace number or a SEPA reference. Use this value to\\nreconcile against the merchant's bank statement.\\n\\nEmpty until the bank rail returns a reference.\"\n )\n .max(500)\n .optional()\n .nullable(),\n cashAdvanceIncluded: z\n .boolean()\n .describe(\n \"Whether the payout `amount` includes funds from a Wix Capital cash advance\\ntaken out by the merchant. If `false`, the amount comes only from the\\nmerchant's sales proceeds.\"\n )\n .optional(),\n })\n )\n .optional(),\n metadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: z\n .number()\n .int()\n .describe('Total number of items that match the query.')\n .optional()\n .nullable(),\n tooManyToCount: z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GetPayoutRequest = z.object({\n payoutId: z\n .string()\n .describe('ID of the payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. The payout must\\nbelong to this account. Retrieve account IDs from the Accounts API.'\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});\nexport const GetPayoutResponse = z.object({\n _id: z\n .string()\n .describe('Payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. Retrieve account IDs\\nfrom the Accounts API.'\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 accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile that owns the payout.\\n\\nA Wix Payments account has 1 or more profiles. Each profile has its own\\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\\nprofile IDs from the Accounts API.'\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 _createdDate: z\n .date()\n .describe(\n \"Date and time the payout was created.\\n\\nThe payout is created before the underlying transfer is initiated at the\\nbank. Once initiated, the funds typically reach the merchant's bank account\\nwithin 3 to 5 business days, depending on the receiving bank.\"\n )\n .optional()\n .nullable(),\n amount: z\n .object({\n value: z\n .string()\n .describe(\n 'Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. Must be valid ISO 4217 currency code (e.g., USD).'\n )\n .optional(),\n formattedValue: z\n .string()\n .describe(\n 'Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional()\n .nullable(),\n })\n .describe(\"Amount of the transfer to the merchant's bank account.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'SENT', 'FAILED'])\n .describe(\n \"Lifecycle status of the payout.\\n\\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\\nthe receiving bank rejected the transfer.\\n\\nA `SENT` status doesn't guarantee that the funds were delivered to the\\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\\npayout in `SENT` can later transition to `FAILED` if the receiving bank\\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\\ndetails.\"\n )\n .optional(),\n estimatedArrivalDateV2: z\n .string()\n .describe(\n \"Estimated date for when the funds should arrive at the merchant's bank\\naccount, in `YYYY-MM-DD` format.\\n\\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\\ndepends on the receiving bank's processing and may be later.\"\n )\n .optional()\n .nullable(),\n failureReason: z\n .object({\n code: z\n .enum([\n 'GENERIC_PAYOUT_FAILURE',\n 'ACCOUNT_CLOSED',\n 'ACCOUNT_FROZEN',\n 'BANK_ACCOUNT_RESTRICTED',\n 'BANK_OWNERSHIP_CHANGED',\n 'COULD_NOT_PROCESS',\n 'DEBIT_NOT_AUTHORIZED',\n 'INCORRECT_ACCOUNT_HOLDER_NAME',\n 'INVALID_ACCOUNT_DETAILS_CITY',\n 'INVALID_ACCOUNT_NUMBER',\n 'INVALID_CURRENCY',\n 'INVALID_ROUTING_NUMBER',\n 'INVALID_SORT_CODE',\n 'NO_ACCOUNT',\n 'TECHNICAL_ERROR',\n ])\n .describe('Why the bank rail rejected the transfer.')\n .optional(),\n })\n .describe(\n 'Reason the bank rail rejected the transfer.\\n\\nReturned only when `status` is `FAILED`.'\n )\n .optional(),\n bankTransferReference: z\n .string()\n .describe(\n \"Reference returned by the bank rail once the transfer is initiated. For\\nexample, an ACH trace number or a SEPA reference. Use this value to\\nreconcile against the merchant's bank statement.\\n\\nEmpty until the bank rail returns a reference.\"\n )\n .max(500)\n .optional()\n .nullable(),\n cashAdvanceIncluded: z\n .boolean()\n .describe(\n \"Whether the payout `amount` includes funds from a Wix Capital cash advance\\ntaken out by the merchant. If `false`, the amount comes only from the\\nmerchant's sales proceeds.\"\n )\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,WACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,kBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC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F,EACC,SAAS;AAAA,EACZ,uBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,EACZ,qBACG,UAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AACd,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/payments-payouts-v4-payout-payouts.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListPayoutsRequest = z.object({\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account whose payouts to list. Retrieve account\\nIDs from the Accounts API.'\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 options: z\n .object({\n accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile to filter by.\\n\\nWhen omitted, payouts across all profiles of the account are returned.\\nRetrieve profile IDs from the Accounts API.'\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 createdBefore: z\n .date()\n .describe(\n 'Returns only payouts created before this date and time. The date and time\\nitself is excluded.'\n )\n .optional()\n .nullable(),\n createdAfter: z\n .date()\n .describe(\n 'Returns only payouts created on or after this date and time. The date and\\ntime itself is included.'\n )\n .optional()\n .nullable(),\n sort: z\n .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 origin: z\n .object({\n latitude: z\n .number()\n .describe('Address latitude.')\n .optional()\n .nullable(),\n longitude: z\n .number()\n .describe('Address longitude.')\n .optional()\n .nullable(),\n })\n .describe(\n 'Origin point for geo-distance sorting on a GEO field\\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first).'\n )\n .optional(),\n })\n .describe(\n 'Sort order for the result list.\\n\\nSupported `fieldName` values: `created_date` (snake_case, not auto-converted). At most 1 sort field is allowed.'\n )\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Number of items to load.')\n .min(0)\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Number of items to skip in the current sort order.')\n .min(0)\n .optional()\n .nullable(),\n })\n .describe(\n 'Offset-based paging. `limit` supports values from `1` to `20`.\\n\\nDefault: `limit` is `20`, `offset` is `0`.'\n )\n .optional(),\n })\n .optional(),\n});\nexport const ListPayoutsResponse = z.object({\n payouts: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. Retrieve account IDs\\nfrom the Accounts API.'\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 accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile that owns the payout.\\n\\nA Wix Payments account has 1 or more profiles. Each profile has its own\\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\\nprofile IDs from the Accounts API.'\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 _createdDate: z\n .date()\n .describe(\n \"Date and time the payout was created.\\n\\nThe payout is created before the underlying transfer is initiated at the\\nbank. Once initiated, the funds typically reach the merchant's bank account\\nwithin 3 to 5 business days, depending on the receiving bank.\"\n )\n .optional()\n .nullable(),\n amount: z\n .object({\n value: z\n .string()\n .describe(\n 'Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. Must be valid ISO 4217 currency code (e.g., USD).'\n )\n .optional(),\n formattedValue: z\n .string()\n .describe(\n 'Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional()\n .nullable(),\n })\n .describe(\"Amount of the transfer to the merchant's bank account.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'SENT', 'FAILED'])\n .describe(\n \"Lifecycle status of the payout.\\n\\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\\nthe receiving bank rejected the transfer.\\n\\nA `SENT` status doesn't guarantee that the funds were delivered to the\\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\\npayout in `SENT` can later transition to `FAILED` if the receiving bank\\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\\ndetails.\"\n )\n .optional(),\n estimatedArrivalDateV2: z\n .string()\n .describe(\n \"Estimated date for when the funds should arrive at the merchant's bank\\naccount, in `YYYY-MM-DD` format.\\n\\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\\ndepends on the receiving bank's processing and may be later.\"\n )\n .optional()\n .nullable(),\n failureReason: z\n .object({\n code: z\n .enum([\n 'GENERIC_PAYOUT_FAILURE',\n 'ACCOUNT_CLOSED',\n 'ACCOUNT_FROZEN',\n 'BANK_ACCOUNT_RESTRICTED',\n 'BANK_OWNERSHIP_CHANGED',\n 'COULD_NOT_PROCESS',\n 'DEBIT_NOT_AUTHORIZED',\n 'INCORRECT_ACCOUNT_HOLDER_NAME',\n 'INVALID_ACCOUNT_DETAILS_CITY',\n 'INVALID_ACCOUNT_NUMBER',\n 'INVALID_CURRENCY',\n 'INVALID_ROUTING_NUMBER',\n 'INVALID_SORT_CODE',\n 'NO_ACCOUNT',\n 'TECHNICAL_ERROR',\n ])\n .describe('Why the bank rail rejected the transfer.')\n .optional(),\n })\n .describe(\n 'Reason the bank rail rejected the transfer.\\n\\nReturned only when `status` is `FAILED`.'\n )\n .optional(),\n bankTransferReference: z\n .string()\n .describe(\n \"Reference returned by the bank rail once the transfer is initiated. For\\nexample, an ACH trace number or a SEPA reference. Use this value to\\nreconcile against the merchant's bank statement.\\n\\nEmpty until the bank rail returns a reference.\"\n )\n .max(500)\n .optional()\n .nullable(),\n cashAdvanceIncluded: z\n .boolean()\n .describe(\n \"Whether the payout `amount` includes funds from a Wix Capital cash advance\\ntaken out by the merchant. If `false`, the amount comes only from the\\nmerchant's sales proceeds.\"\n )\n .optional(),\n })\n )\n .optional(),\n metadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: z\n .number()\n .int()\n .describe('Total number of items that match the query.')\n .optional()\n .nullable(),\n tooManyToCount: z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GetPayoutRequest = z.object({\n payoutId: z\n .string()\n .describe('ID of the payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. The payout must\\nbelong to this account. Retrieve account IDs from the Accounts API.'\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});\nexport const GetPayoutResponse = z.object({\n _id: z\n .string()\n .describe('Payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. Retrieve account IDs\\nfrom the Accounts API.'\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 accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile that owns the payout.\\n\\nA Wix Payments account has 1 or more profiles. Each profile has its own\\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\\nprofile IDs from the Accounts API.'\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 _createdDate: z\n .date()\n .describe(\n \"Date and time the payout was created.\\n\\nThe payout is created before the underlying transfer is initiated at the\\nbank. Once initiated, the funds typically reach the merchant's bank account\\nwithin 3 to 5 business days, depending on the receiving bank.\"\n )\n .optional()\n .nullable(),\n amount: z\n .object({\n value: z\n .string()\n .describe(\n 'Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. Must be valid ISO 4217 currency code (e.g., USD).'\n )\n .optional(),\n formattedValue: z\n .string()\n .describe(\n 'Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional()\n .nullable(),\n })\n .describe(\"Amount of the transfer to the merchant's bank account.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'SENT', 'FAILED'])\n .describe(\n \"Lifecycle status of the payout.\\n\\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\\nthe receiving bank rejected the transfer.\\n\\nA `SENT` status doesn't guarantee that the funds were delivered to the\\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\\npayout in `SENT` can later transition to `FAILED` if the receiving bank\\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\\ndetails.\"\n )\n .optional(),\n estimatedArrivalDateV2: z\n .string()\n .describe(\n \"Estimated date for when the funds should arrive at the merchant's bank\\naccount, in `YYYY-MM-DD` format.\\n\\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\\ndepends on the receiving bank's processing and may be later.\"\n )\n .optional()\n .nullable(),\n failureReason: z\n .object({\n code: z\n .enum([\n 'GENERIC_PAYOUT_FAILURE',\n 'ACCOUNT_CLOSED',\n 'ACCOUNT_FROZEN',\n 'BANK_ACCOUNT_RESTRICTED',\n 'BANK_OWNERSHIP_CHANGED',\n 'COULD_NOT_PROCESS',\n 'DEBIT_NOT_AUTHORIZED',\n 'INCORRECT_ACCOUNT_HOLDER_NAME',\n 'INVALID_ACCOUNT_DETAILS_CITY',\n 'INVALID_ACCOUNT_NUMBER',\n 'INVALID_CURRENCY',\n 'INVALID_ROUTING_NUMBER',\n 'INVALID_SORT_CODE',\n 'NO_ACCOUNT',\n 'TECHNICAL_ERROR',\n ])\n .describe('Why the bank rail rejected the transfer.')\n .optional(),\n })\n .describe(\n 'Reason the bank rail rejected the transfer.\\n\\nReturned only when `status` is `FAILED`.'\n )\n .optional(),\n bankTransferReference: z\n .string()\n .describe(\n \"Reference returned by the bank rail once the transfer is initiated. For\\nexample, an ACH trace number or a SEPA reference. Use this value to\\nreconcile against the merchant's bank statement.\\n\\nEmpty until the bank rail returns a reference.\"\n )\n .max(500)\n .optional()\n .nullable(),\n cashAdvanceIncluded: z\n .boolean()\n .describe(\n \"Whether the payout `amount` includes funds from a Wix Capital cash advance\\ntaken out by the merchant. If `false`, the amount comes only from the\\nmerchant's sales proceeds.\"\n )\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,WACG,SAAO,EACP;AAAA,IACC;A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,EACC,SAAS;AAAA,EACZ,wBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,eACG,SAAO;AAAA,IACN,MACG,OAAK;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC,EACA,SAAS,0CAA0C,EACnD,SAAS;AAAA,EACd,CAAC,EACA;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,uBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,EACZ,qBACG,UAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AACd,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_payments_payouts",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -57,5 +57,5 @@
57
57
  "fqdn": "wix.payments.payouts.v4.payout"
58
58
  }
59
59
  },
60
- "falconPackageHash": "1bcc7975db9a3bff76a5033722938df634a8e60181125f493de12d64"
60
+ "falconPackageHash": "890b2a9ebbf1afcf196f5dc0cdff00c072ec866976fab1141fe621fd"
61
61
  }