@wix/auto_sdk_payments_balance-records 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 (52) hide show
  1. package/build/cjs/index.d.ts +48 -0
  2. package/build/cjs/index.js +495 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1081 -0
  5. package/build/cjs/index.typings.js +472 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1021 -0
  8. package/build/cjs/meta.js +444 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +334 -0
  11. package/build/cjs/schemas.js +643 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +48 -0
  14. package/build/es/index.mjs +462 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +1081 -0
  17. package/build/es/index.typings.mjs +439 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +1021 -0
  20. package/build/es/meta.mjs +408 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +334 -0
  24. package/build/es/schemas.mjs +603 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +48 -0
  27. package/build/internal/cjs/index.js +495 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +1081 -0
  30. package/build/internal/cjs/index.typings.js +472 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +1021 -0
  33. package/build/internal/cjs/meta.js +444 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +334 -0
  36. package/build/internal/cjs/schemas.js +643 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +48 -0
  39. package/build/internal/es/index.mjs +462 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +1081 -0
  42. package/build/internal/es/index.typings.mjs +439 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +1021 -0
  45. package/build/internal/es/meta.mjs +408 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +334 -0
  48. package/build/internal/es/schemas.mjs +603 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../schemas.ts","../../src/payments-balances-v5-balance-record-balance-records.schemas.ts"],"sourcesContent":["export * from './src/payments-balances-v5-balance-record-balance-records.schemas.js';\n","import * as z from 'zod';\n\nexport const GetBalanceRecordRequest = z.object({\n balanceRecordId: z\n .string()\n .describe('Balance record 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the balance record. The record must belong 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 GetBalanceRecordResponse = z.object({\n _id: z\n .string()\n .describe(\n 'Balance record ID.\\n\\nNot returned for virtual records produced by `ESTIMATED_RESERVE_HOLD` or\\n`ESTIMATED_RESERVE_RELEASE` tags.'\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 accountId: z\n .string()\n .describe('ID of the Wix Payments account this balance record belongs to.')\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 this balance record belongs to.'\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 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(\n 'Gross amount of the balance record, including fees.\\n\\nPositive for credits to the account, negative for deductions.'\n )\n .optional(),\n fee: 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('Fee that Wix Payments collected on this balance record.')\n .optional(),\n net: 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('Net amount of the balance record after subtracting `fee`.')\n .optional(),\n recordType: z\n .enum([\n 'UNKNOWN',\n 'CREDIT',\n 'REFUND',\n 'CHARGEBACK',\n 'REFUND_REVERSAL',\n 'CHARGEBACK_REVERSAL',\n 'RESERVE_HOLD',\n 'RESERVE_RELEASE',\n 'TOPUP',\n 'CREDIT_FAILED',\n 'CHARGEBACK_FEE',\n 'CHARGEBACK_FEE_REVERSAL',\n 'CAPITAL_CASH_ADVANCE',\n 'CAPITAL_AUTOMATIC_REMITTANCE',\n 'CAPITAL_ADJUSTMENT',\n ])\n .describe(\n 'Type of the balance record. Describes what kind of money movement this record represents.'\n )\n .optional(),\n recordStatus: z\n .enum([\n 'UNKNOWN',\n 'PENDING_CREDIT',\n 'CREDITED',\n 'RESERVED',\n 'PENDING_DEBIT',\n 'DEBITED',\n 'PAID_OUT',\n 'DEDUCTED_FROM_PAYOUT',\n 'PAYOUT_REVERSED',\n ])\n .describe(\n \"Current effect of this record on the account balance.\\n\\nThe value depends on the record's `recordType`, whether it has a `payoutInfo` or\\n`bookTransferInfo`, and its `payoutAvailabilityDate`. This field is returned on\\nresponses only and can't be passed as a filter on list or query requests. To filter by\\neffect on the balance, use `tags` instead.\"\n )\n .optional(),\n appliedDate: z\n .date()\n .describe(\n 'Date and time the balance record was applied to the account balance.\\n\\nNot returned for virtual records.'\n )\n .optional()\n .nullable(),\n payoutAvailabilityDate: z\n .string()\n .describe(\n 'Date the balance record becomes available for payout, in `YYYY-MM-DD` format.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the balance record was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the balance record was last updated.')\n .optional()\n .nullable(),\n paymentInfo: z\n .object({\n transactionId: z\n .string()\n .describe(\n 'ID of the Wix Payments transaction that produced this balance record.'\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('Date and time the underlying payment was created.')\n .optional()\n .nullable(),\n externalTransactionId: z\n .string()\n .describe(\n \"External transaction ID supplied by the merchant's order system, if any.\"\n )\n .max(100)\n .optional()\n .nullable(),\n externalOrderId: z\n .string()\n .describe(\n \"External order ID supplied by the merchant's order system, if any.\"\n )\n .max(100)\n .optional()\n .nullable(),\n externalDisplayOrderId: z\n .string()\n .describe(\n 'Display-friendly external order ID, suitable for showing in a UI.'\n )\n .max(100)\n .optional()\n .nullable(),\n externalOrderLink: z\n .string()\n .describe(\n \"Link to the order in the merchant's external order management system.\"\n )\n .max(1000)\n .optional()\n .nullable(),\n customerName: z\n .string()\n .describe(\"Customer's name as captured by the payment flow.\")\n .max(1000)\n .optional()\n .nullable(),\n cardHolderName: z\n .string()\n .describe(\"Cardholder's name as captured at payment time.\")\n .max(1000)\n .optional()\n .nullable(),\n paymentMethodType: z\n .enum([\n 'UNKNOWN',\n 'CARD',\n 'CARD_READER',\n 'ACH',\n 'APPLE_PAY',\n 'BOLETO',\n 'GIROPAY',\n 'IDEAL',\n 'PIX',\n 'SEPA',\n 'SOFORT',\n 'PAY_PAL',\n 'TAP_TO_PAY',\n 'GOOGLE_PAY',\n 'AFFIRM',\n 'AFTERPAY',\n 'KLARNA',\n 'RAZORPAY',\n 'ALIPAY',\n 'BANCONTACT',\n 'US_BANK_ACCOUNT',\n 'BANKFUL_CRYPTO',\n 'BANKFUL',\n 'TWINT',\n ])\n .describe(\n 'Payment method used for the underlying transaction.\\n\\nDeprecated. Use `paymentMethodTypeId` instead.'\n )\n .optional(),\n })\n .describe(\n 'Information about the payment that produced this balance record.\\n\\nReturned for records related to a payment, refund, or chargeback.'\n )\n .optional(),\n payoutInfo: z\n .object({\n payoutId: z\n .string()\n .describe('ID of the payout that this balance record belongs to.')\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\\nReturned only for payouts that have already occurred, not those that are scheduled.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Information about the payout that includes this balance record.\\n\\nReturned only after the record has been included in a payout. The presence of\\n`payoutInfo` (versus `bookTransferInfo`) distinguishes a regular payout from an Instant\\nAccess book transfer.'\n )\n .optional(),\n reserveInfo: z\n .object({\n hold: z\n .object({\n payoutId: z\n .string()\n .describe('ID of the payout that this balance record belongs to.')\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\\nReturned only for payouts that have already occurred, not those that are scheduled.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Payout details for the hold portion of the reserve, where funds are removed from the available balance.'\n )\n .optional(),\n release: z\n .object({\n payoutId: z\n .string()\n .describe('ID of the payout that this balance record belongs to.')\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\\nReturned only for payouts that have already occurred, not those that are scheduled.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Payout details for the release portion of the reserve, where funds are returned to the available balance.'\n )\n .optional(),\n reserveHistoryItems: z\n .array(\n z.object({\n releaseDate: z\n .string()\n .describe(\n 'Date the reserve was scheduled to be released, in `YYYY-MM-DD` format.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the reserve was created.')\n .optional()\n .nullable(),\n })\n )\n .max(100)\n .optional(),\n reserveType: z\n .enum(['ONE_TIME', 'ROLLING'])\n .describe('Reserve type that determines how the reserve was created.')\n .optional(),\n })\n .describe(\n 'Reserve details for this balance record.\\n\\nReturned for records with `recordType` `RESERVE_HOLD` or `RESERVE_RELEASE`.'\n )\n .optional(),\n bookTransferInfo: z\n .object({\n bookTransferId: z\n .string()\n .describe('ID of the book transfer that funded this balance record.')\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 transactionReference: z\n .string()\n .describe('External reference for the book transfer transaction.')\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the funds became instantly available through the book transfer.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n \"Book transfer details for this balance record.\\n\\nReturned for records funded through a Wix Checking book transfer (Instant Access) rather\\nthan a payout. Funds backed by a book transfer are immediately available in the\\nmerchant's Wix Checking account.\"\n )\n .optional(),\n});\nexport const QueryBalanceRecordsRequest = z.object({\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the balance records. 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 options: z\n .object({\n query: z\n .object({\n filter: z\n .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 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 )\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('Paging options to limit and skip the number of items.')\n .optional(),\n fields: z.array(z.string()).optional(),\n fieldsets: z.array(z.string()).optional(),\n })\n .describe(\n \"Query object that supports filtering, sorting, and paging.\\n\\nFilter and sort field names must be **snake_case**. They're read from the `filter`\\nobject and aren't auto-converted. Supported filter fields: `account_profile_id`,\\n`tags`, `payout_id`, `transaction_id`, `types`, and the date ranges\\n`transaction_creation_date`, `paid`, and `created_date`. Any other field returns\\n`unknown parameter <field>`. Supported `sort[i].fieldName` values: `applied_date`,\\n`payment_info.created_date`, `created_date`. At most 1 sort field is allowed.\"\n )\n .optional(),\n includeSummary: z\n .boolean()\n .describe(\n 'Whether to include the aggregated `summary` in the response.\\n\\nWhen `true`, totals are computed across the records that matched the query (not across\\nthe whole account) and returned in `summary`.\\n\\nDefault: `false`'\n )\n .optional(),\n excludeTotal: z\n .boolean()\n .describe(\n 'Whether to omit the total record count from `metadata.total`.\\n\\nOmitting the total can improve performance on large result sets.\\n\\nDefault: `false`'\n )\n .optional(),\n })\n .optional(),\n});\nexport const QueryBalanceRecordsResponse = z.object({\n records: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'Balance record ID.\\n\\nNot returned for virtual records produced by `ESTIMATED_RESERVE_HOLD` or\\n`ESTIMATED_RESERVE_RELEASE` tags.'\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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account this balance record belongs to.'\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 this balance record belongs to.'\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 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(\n 'Gross amount of the balance record, including fees.\\n\\nPositive for credits to the account, negative for deductions.'\n )\n .optional(),\n fee: 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('Fee that Wix Payments collected on this balance record.')\n .optional(),\n net: 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('Net amount of the balance record after subtracting `fee`.')\n .optional(),\n recordType: z\n .enum([\n 'UNKNOWN',\n 'CREDIT',\n 'REFUND',\n 'CHARGEBACK',\n 'REFUND_REVERSAL',\n 'CHARGEBACK_REVERSAL',\n 'RESERVE_HOLD',\n 'RESERVE_RELEASE',\n 'TOPUP',\n 'CREDIT_FAILED',\n 'CHARGEBACK_FEE',\n 'CHARGEBACK_FEE_REVERSAL',\n 'CAPITAL_CASH_ADVANCE',\n 'CAPITAL_AUTOMATIC_REMITTANCE',\n 'CAPITAL_ADJUSTMENT',\n ])\n .describe(\n 'Type of the balance record. Describes what kind of money movement this record represents.'\n )\n .optional(),\n recordStatus: z\n .enum([\n 'UNKNOWN',\n 'PENDING_CREDIT',\n 'CREDITED',\n 'RESERVED',\n 'PENDING_DEBIT',\n 'DEBITED',\n 'PAID_OUT',\n 'DEDUCTED_FROM_PAYOUT',\n 'PAYOUT_REVERSED',\n ])\n .describe(\n \"Current effect of this record on the account balance.\\n\\nThe value depends on the record's `recordType`, whether it has a `payoutInfo` or\\n`bookTransferInfo`, and its `payoutAvailabilityDate`. This field is returned on\\nresponses only and can't be passed as a filter on list or query requests. To filter by\\neffect on the balance, use `tags` instead.\"\n )\n .optional(),\n appliedDate: z\n .date()\n .describe(\n 'Date and time the balance record was applied to the account balance.\\n\\nNot returned for virtual records.'\n )\n .optional()\n .nullable(),\n payoutAvailabilityDate: z\n .string()\n .describe(\n 'Date the balance record becomes available for payout, in `YYYY-MM-DD` format.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the balance record was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the balance record was last updated.')\n .optional()\n .nullable(),\n paymentInfo: z\n .object({\n transactionId: z\n .string()\n .describe(\n 'ID of the Wix Payments transaction that produced this balance record.'\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('Date and time the underlying payment was created.')\n .optional()\n .nullable(),\n externalTransactionId: z\n .string()\n .describe(\n \"External transaction ID supplied by the merchant's order system, if any.\"\n )\n .max(100)\n .optional()\n .nullable(),\n externalOrderId: z\n .string()\n .describe(\n \"External order ID supplied by the merchant's order system, if any.\"\n )\n .max(100)\n .optional()\n .nullable(),\n externalDisplayOrderId: z\n .string()\n .describe(\n 'Display-friendly external order ID, suitable for showing in a UI.'\n )\n .max(100)\n .optional()\n .nullable(),\n externalOrderLink: z\n .string()\n .describe(\n \"Link to the order in the merchant's external order management system.\"\n )\n .max(1000)\n .optional()\n .nullable(),\n customerName: z\n .string()\n .describe(\"Customer's name as captured by the payment flow.\")\n .max(1000)\n .optional()\n .nullable(),\n cardHolderName: z\n .string()\n .describe(\"Cardholder's name as captured at payment time.\")\n .max(1000)\n .optional()\n .nullable(),\n paymentMethodType: z\n .enum([\n 'UNKNOWN',\n 'CARD',\n 'CARD_READER',\n 'ACH',\n 'APPLE_PAY',\n 'BOLETO',\n 'GIROPAY',\n 'IDEAL',\n 'PIX',\n 'SEPA',\n 'SOFORT',\n 'PAY_PAL',\n 'TAP_TO_PAY',\n 'GOOGLE_PAY',\n 'AFFIRM',\n 'AFTERPAY',\n 'KLARNA',\n 'RAZORPAY',\n 'ALIPAY',\n 'BANCONTACT',\n 'US_BANK_ACCOUNT',\n 'BANKFUL_CRYPTO',\n 'BANKFUL',\n 'TWINT',\n ])\n .describe(\n 'Payment method used for the underlying transaction.\\n\\nDeprecated. Use `paymentMethodTypeId` instead.'\n )\n .optional(),\n })\n .describe(\n 'Information about the payment that produced this balance record.\\n\\nReturned for records related to a payment, refund, or chargeback.'\n )\n .optional(),\n payoutInfo: z\n .object({\n payoutId: z\n .string()\n .describe('ID of the payout that this balance record belongs to.')\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\\nReturned only for payouts that have already occurred, not those that are scheduled.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Information about the payout that includes this balance record.\\n\\nReturned only after the record has been included in a payout. The presence of\\n`payoutInfo` (versus `bookTransferInfo`) distinguishes a regular payout from an Instant\\nAccess book transfer.'\n )\n .optional(),\n reserveInfo: z\n .object({\n hold: z\n .object({\n payoutId: z\n .string()\n .describe(\n 'ID of the payout that this balance record belongs to.'\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\\nReturned only for payouts that have already occurred, not those that are scheduled.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Payout details for the hold portion of the reserve, where funds are removed from the available balance.'\n )\n .optional(),\n release: z\n .object({\n payoutId: z\n .string()\n .describe(\n 'ID of the payout that this balance record belongs to.'\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\\nReturned only for payouts that have already occurred, not those that are scheduled.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Payout details for the release portion of the reserve, where funds are returned to the available balance.'\n )\n .optional(),\n reserveHistoryItems: z\n .array(\n z.object({\n releaseDate: z\n .string()\n .describe(\n 'Date the reserve was scheduled to be released, in `YYYY-MM-DD` format.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the reserve was created.')\n .optional()\n .nullable(),\n })\n )\n .max(100)\n .optional(),\n reserveType: z\n .enum(['ONE_TIME', 'ROLLING'])\n .describe(\n 'Reserve type that determines how the reserve was created.'\n )\n .optional(),\n })\n .describe(\n 'Reserve details for this balance record.\\n\\nReturned for records with `recordType` `RESERVE_HOLD` or `RESERVE_RELEASE`.'\n )\n .optional(),\n bookTransferInfo: z\n .object({\n bookTransferId: z\n .string()\n .describe(\n 'ID of the book transfer that funded this balance record.'\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 transactionReference: z\n .string()\n .describe('External reference for the book transfer transaction.')\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the funds became instantly available through the book transfer.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n \"Book transfer details for this balance record.\\n\\nReturned for records funded through a Wix Checking book transfer (Instant Access) rather\\nthan a payout. Funds backed by a book transfer are immediately available in the\\nmerchant's Wix Checking account.\"\n )\n .optional(),\n })\n )\n .max(1000)\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 for the response.')\n .optional(),\n summary: z\n .object({\n total: 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('Net total across all matched records.')\n .optional(),\n totalAmount: 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('Gross total across all matched records, before fees.')\n .optional(),\n totalFees: 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('Total fees across all matched records.')\n .optional(),\n totalNet: 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(\n 'Total net amount across all matched records, equivalent to `total`.'\n )\n .optional(),\n items: z\n .array(\n z.object({\n summaryType: z\n .enum([\n 'UNKNOWN',\n 'CREDITS',\n 'REFUNDS',\n 'CHARGEBACKS',\n 'RESERVE_HOLDS',\n 'RESERVE_RELEASES',\n 'FUNDS_ADDED',\n 'FUNDS_TRANSFERRED',\n 'CAPITAL',\n ])\n .describe(\n 'Category of records aggregated by this item.\\n\\nDeprecated. Use `summaryItemType` instead.'\n )\n .optional(),\n summaryItemType: z\n .enum([\n 'UNKNOWN',\n 'CREDITS',\n 'REFUNDS',\n 'CHARGEBACKS',\n 'RESERVE_HOLDS',\n 'RESERVE_RELEASES',\n 'FUNDS_ADDED',\n 'FUNDS_TRANSFERRED',\n 'CAPITAL',\n ])\n .describe('Category of records aggregated by this item.')\n .optional(),\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('Gross amount for this category, before fees.')\n .optional(),\n fees: 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('Total fees for this category.')\n .optional(),\n net: 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('Net amount for this category, after fees.')\n .optional(),\n })\n )\n .max(100)\n .optional(),\n })\n .describe(\n 'Aggregated summary across the records that matched the query.\\n\\nReturned only when `includeSummary` is `true`.'\n )\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,0BAA4B,SAAO;AAAA,EAC9C,iBACG,SAAO,EACP,SAAS,oBAAoB,EAC7B;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,WACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,2BAA6B,SAAO;AAAA,EAC/C,KACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,WACG,SAAO,EACP,SAAS,gEAAgE,EACzE;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AAAA,EACZ,kBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AAAA,EACZ,QACG,SAA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C,EACA;AAAA,IACC;AAAA,EACF,EACC,SAAS;AACd,CAAC;","names":[]}
@@ -0,0 +1,48 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { BalanceRecord, QueryBalanceRecordsOptions, QueryBalanceRecordsResponse } from './index.typings.mjs';
3
+ export { AddressLocation, BalanceRecordStatus, BalanceRecordStatusWithLiterals, BalanceRecordTag, BalanceRecordTagWithLiterals, BalanceRecordType, BalanceRecordTypeWithLiterals, BalanceRecordsSummary, BalanceRecordsSummaryItem, BalanceRecordsSummaryItemType, BalanceRecordsSummaryItemTypeWithLiterals, BalanceSummary, BlockedBalance, BlockedProfileBalance, BookTransferInfo, ExplicitReserve, FundsOnHoldBalance, FundsOnHoldProfileBalance, GetBalanceRecordRequest, GetBalanceRecordResponse, GetBalanceSummaryRequest, GetBalanceSummaryResponse, ListBalanceRecordsRequest, ListBalanceRecordsResponse, ModalData, Money, NegativeBalance, NegativeProfileBalance, Paging, PagingMetadata, PaymentInfo, PaymentMethodType, PaymentMethodTypeWithLiterals, PayoutInfo, PayoutsBeingVerifiedBalance, PayoutsBeingVerifiedProfileBalance, PayoutsUnderMinimumAmountBalance, PayoutsUnderMinimumAmountProfileBalance, Period, PeriodUnit, PeriodUnitWithLiterals, ProcessingBalance, ProcessingProfileBalance, Query, QueryBalanceRecordsRequest, ReserveBalance, ReserveBalanceMotivationOneOf, ReserveHistoryItem, ReserveInfo, ReservePolicy, ReserveProfileBalance, ReserveType, ReserveTypeWithLiterals, ScheduledBalance, ScheduledProfileBalance, SortOrder, SortOrderWithLiterals, Sorting } from './index.typings.mjs';
4
+
5
+ declare function getBalanceRecord$1(httpClient: HttpClient): GetBalanceRecordSignature;
6
+ interface GetBalanceRecordSignature {
7
+ /**
8
+ * Retrieves a single balance record by ID for the specified account.
9
+ *
10
+ * Returns an error if the record doesn't exist or doesn't belong to the specified account.
11
+ * @param - Balance record ID.
12
+ * @param - ID of the Wix Payments account that owns the balance record. The record must belong to this account. Retrieve account IDs from the Accounts API.
13
+ * @returns Retrieved balance record.
14
+ */
15
+ (balanceRecordId: string, accountId: string): Promise<NonNullablePaths<BalanceRecord, `accountId` | `accountProfileId` | `amount.value` | `amount.currency` | `recordType` | `recordStatus` | `paymentInfo.transactionId` | `paymentInfo.paymentMethodType` | `payoutInfo.payoutId` | `reserveInfo.reserveHistoryItems` | `reserveInfo.reserveType` | `bookTransferInfo.bookTransferId` | `bookTransferInfo.transactionReference`, 3>>;
16
+ }
17
+ declare function queryBalanceRecords$1(httpClient: HttpClient): QueryBalanceRecordsSignature;
18
+ interface QueryBalanceRecordsSignature {
19
+ /**
20
+ * Retrieves a list of up to 1000 balance records, given the provided paging, filtering, and sorting.
21
+ *
22
+ * Query Balance Records runs with these defaults, which you can override:
23
+ *
24
+ * - `query.sort[0].fieldName` is `applied_date` in `ASC` order
25
+ * - `query.paging.limit` is `20`
26
+ * - `query.paging.offset` is `0` (and `offset` is required when `paging` is set)
27
+ *
28
+ * Filter and sort field names inside `query` must be **snake_case**. They're read from
29
+ * the `query.filter` object and aren't auto-converted. Supported filter fields:
30
+ * `account_profile_id`, `tags`, `payout_id`, `transaction_id`, `types`, and the date
31
+ * ranges `transaction_creation_date`, `paid`, and `created_date`. Any other field returns
32
+ * `unknown parameter <field>`. Supported `sort[i].fieldName` values: `applied_date`,
33
+ * `payment_info.created_date`, `created_date`. At most 1 sort field is allowed.
34
+ *
35
+ * To list every balance record in a payout, filter by `payout_id`.
36
+ *
37
+ * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),
38
+ * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),
39
+ * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).
40
+ * @param - ID of the Wix Payments account that owns the balance records. Retrieve account IDs from the Accounts API.
41
+ */
42
+ (accountId: string, options?: QueryBalanceRecordsOptions): Promise<NonNullablePaths<QueryBalanceRecordsResponse, `records` | `records.${number}.accountId` | `records.${number}.accountProfileId` | `records.${number}.amount.value` | `records.${number}.amount.currency` | `records.${number}.recordType` | `records.${number}.recordStatus` | `records.${number}.paymentInfo.transactionId` | `records.${number}.paymentInfo.paymentMethodType` | `records.${number}.payoutInfo.payoutId` | `records.${number}.reserveInfo.reserveType` | `records.${number}.bookTransferInfo.bookTransferId` | `records.${number}.bookTransferInfo.transactionReference` | `summary.total.value` | `summary.total.currency` | `summary.items` | `summary.items.${number}.summaryType` | `summary.items.${number}.summaryItemType`, 5>>;
43
+ }
44
+
45
+ declare const getBalanceRecord: MaybeContext<BuildRESTFunction<typeof getBalanceRecord$1> & typeof getBalanceRecord$1>;
46
+ declare const queryBalanceRecords: MaybeContext<BuildRESTFunction<typeof queryBalanceRecords$1> & typeof queryBalanceRecords$1>;
47
+
48
+ export { BalanceRecord, QueryBalanceRecordsOptions, QueryBalanceRecordsResponse, getBalanceRecord, queryBalanceRecords };
@@ -0,0 +1,462 @@
1
+ // src/payments-balances-v5-balance-record-balance-records.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import {
4
+ renameKeysFromSDKRequestToRESTRequest,
5
+ renameKeysFromRESTResponseToSDKResponse
6
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
7
+
8
+ // src/payments-balances-v5-balance-record-balance-records.http.ts
9
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
10
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
11
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
12
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
13
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
14
+ function resolveWixPaymentsV5BalancesBalanceRecordsServiceUrl(opts) {
15
+ const domainToMappings = {
16
+ "cronulla-jobs._base_domain_": [
17
+ {
18
+ srcPath: "/wix-payments/wixpay-balance-service/internal-api/jobs",
19
+ destPath: "/internal-api/jobs"
20
+ }
21
+ ],
22
+ "bo._base_domain_": [
23
+ {
24
+ srcPath: "/_api/wixpay-balance-service/v4/bo-balance-summary",
25
+ destPath: "/v4/bo-balance-summary"
26
+ },
27
+ {
28
+ srcPath: "/_api/transaction-service/v4/bo-balance-summary",
29
+ destPath: "/v4/bo-balance-summary"
30
+ },
31
+ {
32
+ srcPath: "/_api/wixpay-balance-service/v5/balance-records",
33
+ destPath: "/v5/balance-records"
34
+ },
35
+ {
36
+ srcPath: "/_api/wixpay-balance-service/v5/balance-summary",
37
+ destPath: "/v5/balance-summary"
38
+ },
39
+ {
40
+ srcPath: "/_api/transaction-service/v5/balance-records",
41
+ destPath: "/v5/balance-records"
42
+ },
43
+ {
44
+ srcPath: "/_api/transaction-service/v5/balance-summary",
45
+ destPath: "/v5/balance-summary"
46
+ },
47
+ {
48
+ srcPath: "/_api/wixpay-balance-service/v1/bo-balance-reserve-transactions",
49
+ destPath: "/v1/bo-balance-reserve-transactions"
50
+ },
51
+ {
52
+ srcPath: "/_api/wixpay-balance-service/v1/bulk/bo-balance-reserve-transactions/update",
53
+ destPath: "/v1/bulk/bo-balance-reserve-transactions/update"
54
+ },
55
+ {
56
+ srcPath: "/_api/wixpay-balance-service/v1/bulk/bo-balance-reserve-transactions/release",
57
+ destPath: "/v1/bulk/bo-balance-reserve-transactions/release"
58
+ }
59
+ ],
60
+ "wixbo.ai": [
61
+ {
62
+ srcPath: "/_api/wixpay-balance-service/v4/bo-balance-summary",
63
+ destPath: "/v4/bo-balance-summary"
64
+ },
65
+ {
66
+ srcPath: "/_api/transaction-service/v4/bo-balance-summary",
67
+ destPath: "/v4/bo-balance-summary"
68
+ },
69
+ {
70
+ srcPath: "/_api/wixpay-balance-service/v5/balance-records",
71
+ destPath: "/v5/balance-records"
72
+ },
73
+ {
74
+ srcPath: "/_api/wixpay-balance-service/v5/balance-summary",
75
+ destPath: "/v5/balance-summary"
76
+ },
77
+ {
78
+ srcPath: "/_api/transaction-service/v5/balance-records",
79
+ destPath: "/v5/balance-records"
80
+ },
81
+ {
82
+ srcPath: "/_api/transaction-service/v5/balance-summary",
83
+ destPath: "/v5/balance-summary"
84
+ },
85
+ {
86
+ srcPath: "/_api/wixpay-balance-service/v1/bo-balance-reserve-transactions",
87
+ destPath: "/v1/bo-balance-reserve-transactions"
88
+ },
89
+ {
90
+ srcPath: "/_api/wixpay-balance-service/v1/bulk/bo-balance-reserve-transactions/update",
91
+ destPath: "/v1/bulk/bo-balance-reserve-transactions/update"
92
+ },
93
+ {
94
+ srcPath: "/_api/wixpay-balance-service/v1/bulk/bo-balance-reserve-transactions/release",
95
+ destPath: "/v1/bulk/bo-balance-reserve-transactions/release"
96
+ }
97
+ ],
98
+ "wix-bo.com": [
99
+ {
100
+ srcPath: "/_api/wixpay-balance-service/v4/bo-balance-summary",
101
+ destPath: "/v4/bo-balance-summary"
102
+ },
103
+ {
104
+ srcPath: "/_api/transaction-service/v4/bo-balance-summary",
105
+ destPath: "/v4/bo-balance-summary"
106
+ },
107
+ {
108
+ srcPath: "/_api/wixpay-balance-service/v5/balance-records",
109
+ destPath: "/v5/balance-records"
110
+ },
111
+ {
112
+ srcPath: "/_api/wixpay-balance-service/v5/balance-summary",
113
+ destPath: "/v5/balance-summary"
114
+ },
115
+ {
116
+ srcPath: "/_api/transaction-service/v5/balance-records",
117
+ destPath: "/v5/balance-records"
118
+ },
119
+ {
120
+ srcPath: "/_api/transaction-service/v5/balance-summary",
121
+ destPath: "/v5/balance-summary"
122
+ },
123
+ {
124
+ srcPath: "/_api/wixpay-balance-service/v1/bo-balance-reserve-transactions",
125
+ destPath: "/v1/bo-balance-reserve-transactions"
126
+ },
127
+ {
128
+ srcPath: "/_api/wixpay-balance-service/v1/bulk/bo-balance-reserve-transactions/update",
129
+ destPath: "/v1/bulk/bo-balance-reserve-transactions/update"
130
+ },
131
+ {
132
+ srcPath: "/_api/wixpay-balance-service/v1/bulk/bo-balance-reserve-transactions/release",
133
+ destPath: "/v1/bulk/bo-balance-reserve-transactions/release"
134
+ }
135
+ ],
136
+ "manage._base_domain_": [
137
+ {
138
+ srcPath: "/_api/wixpay-balance-service/v5/balance-records",
139
+ destPath: "/v5/balance-records"
140
+ },
141
+ {
142
+ srcPath: "/_api/wixpay-balance-service/v5/balance-summary",
143
+ destPath: "/v5/balance-summary"
144
+ },
145
+ {
146
+ srcPath: "/_api/transaction-service/v5/balance-summary",
147
+ destPath: "/v5/balance-summary"
148
+ },
149
+ {
150
+ srcPath: "/_api/transaction-service/v5/balance-records",
151
+ destPath: "/v5/balance-records"
152
+ }
153
+ ],
154
+ "www._base_domain_": [
155
+ {
156
+ srcPath: "/wix-payments/balance-callbacks/paypal",
157
+ destPath: "/callbacks/paypal"
158
+ }
159
+ ],
160
+ "manage.base44.com": [
161
+ {
162
+ srcPath: "/_api/wixpay-balance-service",
163
+ destPath: ""
164
+ }
165
+ ],
166
+ "payments.base44.com": [
167
+ {
168
+ srcPath: "/_api/wixpay-balance-service",
169
+ destPath: ""
170
+ }
171
+ ],
172
+ "www.wixapis.com": [
173
+ {
174
+ srcPath: "/wixpay-balances/v5/balance-records",
175
+ destPath: "/v5/balance-records"
176
+ }
177
+ ]
178
+ };
179
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
180
+ }
181
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_balance-records";
182
+ function getBalanceRecord(payload) {
183
+ function __getBalanceRecord({ host }) {
184
+ const metadata = {
185
+ entityFqdn: "wix.payments.balances.v5.balance_record",
186
+ method: "GET",
187
+ methodFqn: "wix.payments.v5.balances.BalanceRecordsService.GetBalanceRecord",
188
+ packageName: PACKAGE_NAME,
189
+ migrationOptions: {
190
+ optInTransformResponse: true
191
+ },
192
+ url: resolveWixPaymentsV5BalancesBalanceRecordsServiceUrl({
193
+ protoPath: "/v5/balance-records/{balanceRecordId}",
194
+ data: payload,
195
+ host
196
+ }),
197
+ params: toURLSearchParams(payload),
198
+ transformResponse: (payload2) => transformPaths(payload2, [
199
+ {
200
+ transformFn: transformRESTTimestampToSDKTimestamp,
201
+ paths: [
202
+ { path: "record.appliedDate" },
203
+ { path: "record.createdDate" },
204
+ { path: "record.updatedDate" },
205
+ { path: "record.paymentInfo.createdDate" },
206
+ { path: "record.payoutInfo.createdDate" },
207
+ { path: "record.reserveInfo.hold.createdDate" },
208
+ { path: "record.reserveInfo.release.createdDate" },
209
+ { path: "record.reserveInfo.reserveHistoryItems.createdDate" },
210
+ { path: "record.bookTransferInfo.createdDate" }
211
+ ]
212
+ }
213
+ ])
214
+ };
215
+ return metadata;
216
+ }
217
+ return __getBalanceRecord;
218
+ }
219
+ function queryBalanceRecords(payload) {
220
+ function __queryBalanceRecords({ host }) {
221
+ const serializedData = transformPaths(payload, [
222
+ {
223
+ transformFn: transformSDKFloatToRESTFloat,
224
+ paths: [
225
+ { path: "query.sort.origin.latitude" },
226
+ { path: "query.sort.origin.longitude" }
227
+ ]
228
+ }
229
+ ]);
230
+ const metadata = {
231
+ entityFqdn: "wix.payments.balances.v5.balance_record",
232
+ method: "POST",
233
+ methodFqn: "wix.payments.v5.balances.BalanceRecordsService.QueryBalanceRecords",
234
+ packageName: PACKAGE_NAME,
235
+ migrationOptions: {
236
+ optInTransformResponse: true
237
+ },
238
+ url: resolveWixPaymentsV5BalancesBalanceRecordsServiceUrl({
239
+ protoPath: "/v5/balance-records/query",
240
+ data: serializedData,
241
+ host
242
+ }),
243
+ data: serializedData,
244
+ transformResponse: (payload2) => transformPaths(payload2, [
245
+ {
246
+ transformFn: transformRESTTimestampToSDKTimestamp,
247
+ paths: [
248
+ { path: "records.appliedDate" },
249
+ { path: "records.createdDate" },
250
+ { path: "records.updatedDate" },
251
+ { path: "records.paymentInfo.createdDate" },
252
+ { path: "records.payoutInfo.createdDate" },
253
+ { path: "records.reserveInfo.hold.createdDate" },
254
+ { path: "records.reserveInfo.release.createdDate" },
255
+ { path: "records.reserveInfo.reserveHistoryItems.createdDate" },
256
+ { path: "records.bookTransferInfo.createdDate" }
257
+ ]
258
+ }
259
+ ])
260
+ };
261
+ return metadata;
262
+ }
263
+ return __queryBalanceRecords;
264
+ }
265
+
266
+ // src/payments-balances-v5-balance-record-balance-records.universal.ts
267
+ var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => {
268
+ PaymentMethodType2["UNKNOWN"] = "UNKNOWN";
269
+ PaymentMethodType2["CARD"] = "CARD";
270
+ PaymentMethodType2["CARD_READER"] = "CARD_READER";
271
+ PaymentMethodType2["ACH"] = "ACH";
272
+ PaymentMethodType2["APPLE_PAY"] = "APPLE_PAY";
273
+ PaymentMethodType2["BOLETO"] = "BOLETO";
274
+ PaymentMethodType2["GIROPAY"] = "GIROPAY";
275
+ PaymentMethodType2["IDEAL"] = "IDEAL";
276
+ PaymentMethodType2["PIX"] = "PIX";
277
+ PaymentMethodType2["SEPA"] = "SEPA";
278
+ PaymentMethodType2["SOFORT"] = "SOFORT";
279
+ PaymentMethodType2["PAY_PAL"] = "PAY_PAL";
280
+ PaymentMethodType2["TAP_TO_PAY"] = "TAP_TO_PAY";
281
+ PaymentMethodType2["GOOGLE_PAY"] = "GOOGLE_PAY";
282
+ PaymentMethodType2["AFFIRM"] = "AFFIRM";
283
+ PaymentMethodType2["AFTERPAY"] = "AFTERPAY";
284
+ PaymentMethodType2["KLARNA"] = "KLARNA";
285
+ PaymentMethodType2["RAZORPAY"] = "RAZORPAY";
286
+ PaymentMethodType2["ALIPAY"] = "ALIPAY";
287
+ PaymentMethodType2["BANCONTACT"] = "BANCONTACT";
288
+ PaymentMethodType2["US_BANK_ACCOUNT"] = "US_BANK_ACCOUNT";
289
+ PaymentMethodType2["BANKFUL_CRYPTO"] = "BANKFUL_CRYPTO";
290
+ PaymentMethodType2["BANKFUL"] = "BANKFUL";
291
+ PaymentMethodType2["TWINT"] = "TWINT";
292
+ return PaymentMethodType2;
293
+ })(PaymentMethodType || {});
294
+ var ReserveType = /* @__PURE__ */ ((ReserveType2) => {
295
+ ReserveType2["ONE_TIME"] = "ONE_TIME";
296
+ ReserveType2["ROLLING"] = "ROLLING";
297
+ return ReserveType2;
298
+ })(ReserveType || {});
299
+ var BalanceRecordType = /* @__PURE__ */ ((BalanceRecordType2) => {
300
+ BalanceRecordType2["UNKNOWN"] = "UNKNOWN";
301
+ BalanceRecordType2["CREDIT"] = "CREDIT";
302
+ BalanceRecordType2["REFUND"] = "REFUND";
303
+ BalanceRecordType2["CHARGEBACK"] = "CHARGEBACK";
304
+ BalanceRecordType2["REFUND_REVERSAL"] = "REFUND_REVERSAL";
305
+ BalanceRecordType2["CHARGEBACK_REVERSAL"] = "CHARGEBACK_REVERSAL";
306
+ BalanceRecordType2["RESERVE_HOLD"] = "RESERVE_HOLD";
307
+ BalanceRecordType2["RESERVE_RELEASE"] = "RESERVE_RELEASE";
308
+ BalanceRecordType2["TOPUP"] = "TOPUP";
309
+ BalanceRecordType2["CREDIT_FAILED"] = "CREDIT_FAILED";
310
+ BalanceRecordType2["CHARGEBACK_FEE"] = "CHARGEBACK_FEE";
311
+ BalanceRecordType2["CHARGEBACK_FEE_REVERSAL"] = "CHARGEBACK_FEE_REVERSAL";
312
+ BalanceRecordType2["CAPITAL_CASH_ADVANCE"] = "CAPITAL_CASH_ADVANCE";
313
+ BalanceRecordType2["CAPITAL_AUTOMATIC_REMITTANCE"] = "CAPITAL_AUTOMATIC_REMITTANCE";
314
+ BalanceRecordType2["CAPITAL_ADJUSTMENT"] = "CAPITAL_ADJUSTMENT";
315
+ return BalanceRecordType2;
316
+ })(BalanceRecordType || {});
317
+ var BalanceRecordStatus = /* @__PURE__ */ ((BalanceRecordStatus2) => {
318
+ BalanceRecordStatus2["UNKNOWN"] = "UNKNOWN";
319
+ BalanceRecordStatus2["PENDING_CREDIT"] = "PENDING_CREDIT";
320
+ BalanceRecordStatus2["CREDITED"] = "CREDITED";
321
+ BalanceRecordStatus2["RESERVED"] = "RESERVED";
322
+ BalanceRecordStatus2["PENDING_DEBIT"] = "PENDING_DEBIT";
323
+ BalanceRecordStatus2["DEBITED"] = "DEBITED";
324
+ BalanceRecordStatus2["PAID_OUT"] = "PAID_OUT";
325
+ BalanceRecordStatus2["DEDUCTED_FROM_PAYOUT"] = "DEDUCTED_FROM_PAYOUT";
326
+ BalanceRecordStatus2["PAYOUT_REVERSED"] = "PAYOUT_REVERSED";
327
+ return BalanceRecordStatus2;
328
+ })(BalanceRecordStatus || {});
329
+ var BalanceRecordTag = /* @__PURE__ */ ((BalanceRecordTag2) => {
330
+ BalanceRecordTag2["UNKNOWN"] = "UNKNOWN";
331
+ BalanceRecordTag2["AVAILABLE"] = "AVAILABLE";
332
+ BalanceRecordTag2["PENDING"] = "PENDING";
333
+ BalanceRecordTag2["RESERVE"] = "RESERVE";
334
+ BalanceRecordTag2["ESTIMATED_RESERVE_HOLD"] = "ESTIMATED_RESERVE_HOLD";
335
+ BalanceRecordTag2["ESTIMATED_RESERVE_RELEASE"] = "ESTIMATED_RESERVE_RELEASE";
336
+ BalanceRecordTag2["RESERVE_RELEASED"] = "RESERVE_RELEASED";
337
+ BalanceRecordTag2["PENDING_TOPUP"] = "PENDING_TOPUP";
338
+ BalanceRecordTag2["PAID_OUT"] = "PAID_OUT";
339
+ BalanceRecordTag2["NOT_PAID_OUT"] = "NOT_PAID_OUT";
340
+ return BalanceRecordTag2;
341
+ })(BalanceRecordTag || {});
342
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
343
+ SortOrder2["ASC"] = "ASC";
344
+ SortOrder2["DESC"] = "DESC";
345
+ return SortOrder2;
346
+ })(SortOrder || {});
347
+ var BalanceRecordsSummaryItemType = /* @__PURE__ */ ((BalanceRecordsSummaryItemType2) => {
348
+ BalanceRecordsSummaryItemType2["UNKNOWN"] = "UNKNOWN";
349
+ BalanceRecordsSummaryItemType2["CREDITS"] = "CREDITS";
350
+ BalanceRecordsSummaryItemType2["REFUNDS"] = "REFUNDS";
351
+ BalanceRecordsSummaryItemType2["CHARGEBACKS"] = "CHARGEBACKS";
352
+ BalanceRecordsSummaryItemType2["RESERVE_HOLDS"] = "RESERVE_HOLDS";
353
+ BalanceRecordsSummaryItemType2["RESERVE_RELEASES"] = "RESERVE_RELEASES";
354
+ BalanceRecordsSummaryItemType2["FUNDS_ADDED"] = "FUNDS_ADDED";
355
+ BalanceRecordsSummaryItemType2["FUNDS_TRANSFERRED"] = "FUNDS_TRANSFERRED";
356
+ BalanceRecordsSummaryItemType2["CAPITAL"] = "CAPITAL";
357
+ return BalanceRecordsSummaryItemType2;
358
+ })(BalanceRecordsSummaryItemType || {});
359
+ var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
360
+ PeriodUnit2["UNKNOWN"] = "UNKNOWN";
361
+ PeriodUnit2["DAY"] = "DAY";
362
+ PeriodUnit2["BUSINESS_DAY"] = "BUSINESS_DAY";
363
+ return PeriodUnit2;
364
+ })(PeriodUnit || {});
365
+ async function getBalanceRecord2(balanceRecordId, accountId) {
366
+ const { httpClient, sideEffects } = arguments[2];
367
+ const payload = renameKeysFromSDKRequestToRESTRequest({
368
+ balanceRecordId,
369
+ accountId
370
+ });
371
+ const reqOpts = getBalanceRecord(payload);
372
+ sideEffects?.onSiteCall?.();
373
+ try {
374
+ const result = await httpClient.request(reqOpts);
375
+ sideEffects?.onSuccess?.(result);
376
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.record;
377
+ } catch (err) {
378
+ const transformedError = sdkTransformError(
379
+ err,
380
+ {
381
+ spreadPathsToArguments: {},
382
+ explicitPathsToArguments: {
383
+ balanceRecordId: "$[0]",
384
+ accountId: "$[1]"
385
+ },
386
+ singleArgumentUnchanged: false
387
+ },
388
+ ["balanceRecordId", "accountId"]
389
+ );
390
+ sideEffects?.onError?.(err);
391
+ throw transformedError;
392
+ }
393
+ }
394
+ async function queryBalanceRecords2(accountId, options) {
395
+ const { httpClient, sideEffects } = arguments[2];
396
+ const payload = renameKeysFromSDKRequestToRESTRequest({
397
+ accountId,
398
+ query: options?.query,
399
+ includeSummary: options?.includeSummary,
400
+ excludeTotal: options?.excludeTotal
401
+ });
402
+ const reqOpts = queryBalanceRecords(payload);
403
+ sideEffects?.onSiteCall?.();
404
+ try {
405
+ const result = await httpClient.request(reqOpts);
406
+ sideEffects?.onSuccess?.(result);
407
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
408
+ } catch (err) {
409
+ const transformedError = sdkTransformError(
410
+ err,
411
+ {
412
+ spreadPathsToArguments: {},
413
+ explicitPathsToArguments: {
414
+ accountId: "$[0]",
415
+ query: "$[1].query",
416
+ includeSummary: "$[1].includeSummary",
417
+ excludeTotal: "$[1].excludeTotal"
418
+ },
419
+ singleArgumentUnchanged: false
420
+ },
421
+ ["accountId", "options"]
422
+ );
423
+ sideEffects?.onError?.(err);
424
+ throw transformedError;
425
+ }
426
+ }
427
+
428
+ // src/payments-balances-v5-balance-record-balance-records.public.ts
429
+ function getBalanceRecord3(httpClient) {
430
+ return (balanceRecordId, accountId) => getBalanceRecord2(
431
+ balanceRecordId,
432
+ accountId,
433
+ // @ts-ignore
434
+ { httpClient }
435
+ );
436
+ }
437
+ function queryBalanceRecords3(httpClient) {
438
+ return (accountId, options) => queryBalanceRecords2(
439
+ accountId,
440
+ options,
441
+ // @ts-ignore
442
+ { httpClient }
443
+ );
444
+ }
445
+
446
+ // src/payments-balances-v5-balance-record-balance-records.context.ts
447
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
448
+ var getBalanceRecord4 = /* @__PURE__ */ createRESTModule(getBalanceRecord3);
449
+ var queryBalanceRecords4 = /* @__PURE__ */ createRESTModule(queryBalanceRecords3);
450
+ export {
451
+ BalanceRecordStatus,
452
+ BalanceRecordTag,
453
+ BalanceRecordType,
454
+ BalanceRecordsSummaryItemType,
455
+ PaymentMethodType,
456
+ PeriodUnit,
457
+ ReserveType,
458
+ SortOrder,
459
+ getBalanceRecord4 as getBalanceRecord,
460
+ queryBalanceRecords4 as queryBalanceRecords
461
+ };
462
+ //# sourceMappingURL=index.mjs.map