{"version":3,"sources":["../../src/paymentlinks-payments-v1-payment-link-payment-payment-link-payments.http.ts","../../src/paymentlinks-payments-v1-payment-link-payment-payment-link-payments.types.ts","../../src/paymentlinks-payments-v1-payment-link-payment-payment-link-payments.meta.ts"],"sourcesContent":["import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentlinksPaymentsV1PaymentLinkPaymentsUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/payment-link-payments',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/payment-links/v1/payment-link-payments',\n        destPath: '/v1/payment-link-payments',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/paymentlinks/payments/v1/payment-link-payments',\n        destPath: '/v1/payment-link-payments',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/paymentlinks/payments/v1/payment-link-payments',\n        destPath: '/v1/payment-link-payments',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_get-paid_payment-link-payments';\n\n/** Retrieves a list of up to 100 payment link payments given the specified paging, filtering, and sorting ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)). */\nexport function queryPaymentLinkPayments(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryPaymentLinkPayments({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.paymentlinks.payments.v1.payment_link_payment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.paymentlinks.payments.v1.PaymentLinkPayments.QueryPaymentLinkPayments',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentlinksPaymentsV1PaymentLinkPaymentsUrl({\n        protoPath: '/v1/payment-link-payments/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'paymentLinkPayments.createdDate' },\n              { path: 'paymentLinkPayments.transactionDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'paymentLinkPayments.regularPaymentLinkPayment.billingAddress.geocode.latitude',\n              },\n              {\n                path: 'paymentLinkPayments.regularPaymentLinkPayment.billingAddress.geocode.longitude',\n              },\n              {\n                path: 'paymentLinkPayments.giftCardPaymentLinkPayment.billingAddress.geocode.latitude',\n              },\n              {\n                path: 'paymentLinkPayments.giftCardPaymentLinkPayment.billingAddress.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryPaymentLinkPayments;\n}\n\n/** Retrieves a list of up to 100 payment links, given the specified filtering, search expression, sorting, and cursor paging ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)). */\nexport function searchPaymentLinkPayments(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __searchPaymentLinkPayments({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'search.aggregations.range.buckets.from' },\n          { path: 'search.aggregations.range.buckets.to' },\n          {\n            path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n          },\n          {\n            path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n          },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.paymentlinks.payments.v1.payment_link_payment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.paymentlinks.payments.v1.PaymentLinkPayments.SearchPaymentLinkPayments',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentlinksPaymentsV1PaymentLinkPaymentsUrl({\n        protoPath: '/v1/payment-link-payments/search',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'paymentLinkPayments.createdDate' },\n              { path: 'paymentLinkPayments.transactionDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'paymentLinkPayments.regularPaymentLinkPayment.billingAddress.geocode.latitude',\n              },\n              {\n                path: 'paymentLinkPayments.regularPaymentLinkPayment.billingAddress.geocode.longitude',\n              },\n              {\n                path: 'paymentLinkPayments.giftCardPaymentLinkPayment.billingAddress.geocode.latitude',\n              },\n              {\n                path: 'paymentLinkPayments.giftCardPaymentLinkPayment.billingAddress.geocode.longitude',\n              },\n              { path: 'aggregationData.results.ranges.results.from' },\n              { path: 'aggregationData.results.ranges.results.to' },\n              {\n                path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n              },\n              {\n                path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n              },\n              {\n                path: 'aggregationData.results.nested.results.results.*.range.from',\n              },\n              {\n                path: 'aggregationData.results.nested.results.results.*.range.to',\n              },\n              { path: 'aggregationData.results.scalar.value' },\n              {\n                path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n              },\n              {\n                path: 'aggregationData.results.nested.results.results.*.scalar.value',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __searchPaymentLinkPayments;\n}\n\n/** Issues a receipt for the specified payment link payment. */\nexport function issueReceipt(payload: object): RequestOptionsFactory<any> {\n  function __issueReceipt({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.paymentlinks.payments.v1.payment_link_payment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.paymentlinks.payments.v1.PaymentLinkPayments.IssueReceipt',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentlinksPaymentsV1PaymentLinkPaymentsUrl({\n        protoPath:\n          '/v1/payment-link-payments/{paymentLinkPaymentId}/issue-receipt',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __issueReceipt;\n}\n","/** A payment link payment contains details of a payment made using [payment links](https://support.wix.com/en/article/wix-pay-links-creating-and-managing-pay-links). */\nexport interface PaymentLinkPayment\n  extends PaymentLinkPaymentPaymentOneOf,\n    PaymentLinkPaymentEcomCheckoutTypeOneOf,\n    PaymentLinkPaymentCheckoutTypeOneOf {\n  /** Conventional payment, not including Wix eCommerce's gift cards. Includes payments made through Wix Payments, Stripe, and all [supported payment gateways](https://www.wix.com/payments/payment-gateways). */\n  regularPaymentLinkPayment?: RegularPaymentLinkPayment;\n  /** Wix eCommerce gift card payment details. */\n  giftCardPaymentLinkPayment?: GiftCardPaymentLinkPayment;\n  /**\n   * Standard checkout.\n   * @internal\n   * @deprecated\n   * @replacedBy checkout_type.ecom_checkout\n   * @targetRemovalDate 2026-01-01\n   */\n  standardCheckout?: StandardCheckout;\n  /**\n   * Lean checkout.\n   * @internal\n   * @deprecated\n   * @replacedBy checkout_type.ecom_order_checkout\n   * @targetRemovalDate 2026-01-01\n   */\n  leanCheckout?: LeanCheckout;\n  /** Wix eCommerce checkout. */\n  ecomCheckout?: EcomCheckout;\n  /** Wix eCommerce order checkout. */\n  ecomOrderCheckout?: EcomOrderCheckout;\n  /**\n   * Payment link payment ID. When a gift card is used, this is the gift card payment ID.\n   * Otherwise, this is the transaction ID associated with the relevant payment type.\n   * @format GUID\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the payment link payment is updated.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the payment was created.\n   * @readonly\n   * @immutable\n   */\n  createdDate?: Date | null;\n  /**\n   * Payment amount.\n   * @format DECIMAL_VALUE\n   * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n   */\n  amount?: string;\n  /**\n   * Payment link ID associated with the payment.\n   * @format GUID\n   */\n  paymentLinkId?: string;\n  /**\n   * Receipt ID associated with the payment, available in the Get Paid Receipts API.\n   * @format GUID\n   * @readonly\n   */\n  receiptId?: string | null;\n  /** Payment type. */\n  type?: PaymentLinkPaymentTypeWithLiterals;\n  /**\n   * Currency code in [ISO-4217 alphabetic](https://www.iso.org/iso-4217-currency-codes.html) format.\n   * @internal\n   * @format CURRENCY\n   * @readonly\n   * @deprecated\n   * @replacedBy currency\n   * @targetRemovalDate 2026-01-01\n   */\n  currencyCode?: string;\n  /**\n   * Currency code in [ISO-4217 alphabetic](https://www.iso.org/iso-4217-currency-codes.html) format.\n   * @format CURRENCY\n   * @readonly\n   */\n  currency?: string;\n  /** Date and time the payment transaction was created. */\n  transactionDate?: Date | null;\n  /**\n   * Custom field data for the payment link.\n   * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n   */\n  extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface PaymentLinkPaymentPaymentOneOf {\n  /** Conventional payment, not including Wix eCommerce's gift cards. Includes payments made through Wix Payments, Stripe, and all [supported payment gateways](https://www.wix.com/payments/payment-gateways). */\n  regularPaymentLinkPayment?: RegularPaymentLinkPayment;\n  /** Wix eCommerce gift card payment details. */\n  giftCardPaymentLinkPayment?: GiftCardPaymentLinkPayment;\n}\n\n/** @oneof */\nexport interface PaymentLinkPaymentEcomCheckoutTypeOneOf {\n  /**\n   * Standard checkout.\n   * @internal\n   * @deprecated\n   * @replacedBy checkout_type.ecom_checkout\n   * @targetRemovalDate 2026-01-01\n   */\n  standardCheckout?: StandardCheckout;\n  /**\n   * Lean checkout.\n   * @internal\n   * @deprecated\n   * @replacedBy checkout_type.ecom_order_checkout\n   * @targetRemovalDate 2026-01-01\n   */\n  leanCheckout?: LeanCheckout;\n}\n\n/** @oneof */\nexport interface PaymentLinkPaymentCheckoutTypeOneOf {\n  /** Wix eCommerce checkout. */\n  ecomCheckout?: EcomCheckout;\n  /** Wix eCommerce order checkout. */\n  ecomOrderCheckout?: EcomOrderCheckout;\n}\n\nexport enum PaymentLinkPaymentType {\n  /** Unknown payment type. */\n  UNKNOWN_PAYMENT_TYPE = 'UNKNOWN_PAYMENT_TYPE',\n  /** Conventional payment, not including Wix eCommerce's gift cards. Includes payments made through Wix Payments, Stripe, and all [supported payment gateways](https://www.wix.com/payments/payment-gateways). */\n  REGULAR = 'REGULAR',\n  /** Payment using a Wix eCommerce gift card. */\n  GIFT_CARD = 'GIFT_CARD',\n}\n\n/** @enumType */\nexport type PaymentLinkPaymentTypeWithLiterals =\n  | PaymentLinkPaymentType\n  | 'UNKNOWN_PAYMENT_TYPE'\n  | 'REGULAR'\n  | 'GIFT_CARD';\n\nexport interface RegularPaymentLinkPayment\n  extends RegularPaymentLinkPaymentPaymentMethodDataOneOf {\n  /** Credit card payment method data. */\n  creditCardPaymentMethodData?: CreditCardPaymentMethodData;\n  /** Wallet payment method data. */\n  walletPaymentMethodData?: WalletPaymentMethodData;\n  /**\n   * Payment method.\n   * @readonly\n   * @minLength 1\n   * @maxLength 100\n   */\n  paymentMethod?: string;\n  /**\n   * Payment service provider.\n   * @readonly\n   * @minLength 1\n   * @maxLength 100\n   */\n  paymentProvider?: string;\n  /**\n   * Buyer contact details.\n   * @readonly\n   */\n  contactDetails?: FullAddressContactDetails;\n  /**\n   * Buyer contact ID, if relevant.\n   * @format GUID\n   * @readonly\n   */\n  contactId?: string | null;\n  /**\n   * Buyer's billing address.\n   * @readonly\n   */\n  billingAddress?: Address;\n  /** Payment method type. */\n  method?: PaymentMethodWithLiterals;\n  /**\n   * Payment order.\n   * @readonly\n   */\n  order?: PaymentOrder;\n}\n\n/** @oneof */\nexport interface RegularPaymentLinkPaymentPaymentMethodDataOneOf {\n  /** Credit card payment method data. */\n  creditCardPaymentMethodData?: CreditCardPaymentMethodData;\n  /** Wallet payment method data. */\n  walletPaymentMethodData?: WalletPaymentMethodData;\n}\n\nexport interface FullAddressContactDetails {\n  /** Contact's first name. */\n  firstName?: string | null;\n  /** Contact's last name. */\n  lastName?: string | null;\n  /**\n   * Contact's full name.\n   * @internal\n   */\n  fullName?: string | null;\n  /**\n   * Contact's phone number.\n   * @format PHONE\n   */\n  phone?: string | null;\n  /** Contact's company name. */\n  company?: string | null;\n  /**\n   * Email associated with the address.\n   * @format EMAIL\n   */\n  email?: string | null;\n  /** Tax info. */\n  vatId?: VatId;\n}\n\nexport interface VatId {\n  /**\n   * Customer's tax ID.\n   * @maxLength 100\n   */\n  id?: string;\n  /**\n   * Tax type.\n   *\n   * Supported values:\n   * + `CPF`: for individual tax payers\n   * + `CNPJ`: for corporations\n   */\n  type?: VatTypeWithLiterals;\n}\n\n/** tax info types */\nexport enum VatType {\n  UNSPECIFIED = 'UNSPECIFIED',\n  /** CPF - for individual tax payers. */\n  CPF = 'CPF',\n  /** CNPJ - for corporations */\n  CNPJ = 'CNPJ',\n}\n\n/** @enumType */\nexport type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';\n\nexport interface Address extends AddressStreetOneOf {\n  /** Street name and number. */\n  streetAddress?: StreetAddress;\n  /** Main address line, usually street and number as free text. */\n  addressLine?: string | null;\n  /**\n   * Country code.\n   * @format COUNTRY\n   */\n  country?: string | null;\n  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */\n  subdivision?: string | null;\n  /** City name. */\n  city?: string | null;\n  /** Zip/postal code. */\n  postalCode?: string | null;\n  /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */\n  addressLine2?: string | null;\n  /**\n   * A string containing the full address of this location.\n   * @internal\n   */\n  formattedAddress?: string | null;\n  /**\n   * Free text to help find the address.\n   * @internal\n   */\n  hint?: string | null;\n  /**\n   * Coordinates of the physical address.\n   * @internal\n   */\n  geocode?: AddressLocation;\n  /**\n   * Country full name.\n   * @internal\n   */\n  countryFullname?: string | null;\n  /**\n   * Subdivision full name.\n   * @internal\n   */\n  subdivisionFullname?: string | null;\n  /**\n   * Multi-level subdivisions from top to bottom.\n   * @internal\n   * @maxSize 6\n   */\n  subdivisions?: Subdivision[];\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n  /** Street name and number. */\n  streetAddress?: StreetAddress;\n  /** Main address line, usually street and number as free text. */\n  addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n  /** Street number. */\n  number?: string;\n  /** Street name. */\n  name?: string;\n  /**\n   * Apartment number.\n   * @internal\n   */\n  apt?: string;\n  /**\n   * Optional address line 1.\n   * @internal\n   */\n  formattedAddressLine?: string | null;\n}\n\nexport interface AddressLocation {\n  /** Address latitude. */\n  latitude?: number | null;\n  /** Address longitude. */\n  longitude?: number | null;\n}\n\nexport interface Subdivision {\n  /** Short subdivision code. */\n  code?: string;\n  /** Subdivision full name. */\n  name?: string;\n  /**\n   * Subdivision level.\n   * @internal\n   */\n  type?: SubdivisionTypeWithLiterals;\n  /**\n   * Free text description of subdivision type.\n   * @internal\n   */\n  typeInfo?: string | null;\n}\n\nexport enum SubdivisionType {\n  UNKNOWN_SUBDIVISION_TYPE = 'UNKNOWN_SUBDIVISION_TYPE',\n  /** State */\n  ADMINISTRATIVE_AREA_LEVEL_1 = 'ADMINISTRATIVE_AREA_LEVEL_1',\n  /** County */\n  ADMINISTRATIVE_AREA_LEVEL_2 = 'ADMINISTRATIVE_AREA_LEVEL_2',\n  /** City/town */\n  ADMINISTRATIVE_AREA_LEVEL_3 = 'ADMINISTRATIVE_AREA_LEVEL_3',\n  /** Neighborhood/quarter */\n  ADMINISTRATIVE_AREA_LEVEL_4 = 'ADMINISTRATIVE_AREA_LEVEL_4',\n  /** Street/block */\n  ADMINISTRATIVE_AREA_LEVEL_5 = 'ADMINISTRATIVE_AREA_LEVEL_5',\n  /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */\n  COUNTRY = 'COUNTRY',\n}\n\n/** @enumType */\nexport type SubdivisionTypeWithLiterals =\n  | SubdivisionType\n  | 'UNKNOWN_SUBDIVISION_TYPE'\n  | 'ADMINISTRATIVE_AREA_LEVEL_1'\n  | 'ADMINISTRATIVE_AREA_LEVEL_2'\n  | 'ADMINISTRATIVE_AREA_LEVEL_3'\n  | 'ADMINISTRATIVE_AREA_LEVEL_4'\n  | 'ADMINISTRATIVE_AREA_LEVEL_5'\n  | 'COUNTRY';\n\n/** Payment method type identification. */\nexport enum PaymentMethod {\n  UNKNOWN_METHOD_DATA = 'UNKNOWN_METHOD_DATA',\n  /** Credit card. */\n  CREDIT_CARD = 'CREDIT_CARD',\n  /** Wallet. */\n  WALLET = 'WALLET',\n}\n\n/** @enumType */\nexport type PaymentMethodWithLiterals =\n  | PaymentMethod\n  | 'UNKNOWN_METHOD_DATA'\n  | 'CREDIT_CARD'\n  | 'WALLET';\n\nexport interface CreditCardPaymentMethodData {\n  /**\n   * Card network.\n   * @readonly\n   * @minLength 1\n   * @maxLength 100\n   */\n  network?: string;\n  /**\n   * Masked card number.\n   * @readonly\n   * @maxLength 100\n   */\n  maskedCreditCard?: string;\n  /**\n   * Card holder name.\n   * @readonly\n   * @maxLength 100\n   */\n  holderName?: string;\n}\n\nexport interface WalletPaymentMethodData {\n  /**\n   * Buyer account email.\n   * @format EMAIL\n   * @readonly\n   */\n  buyerAccountEmail?: string | null;\n}\n\nexport interface PaymentOrder extends PaymentOrderTypeDetailsOneOf {\n  /** Wix eCommerce order details. */\n  ecomOrder?: Ecom;\n  /** Wix Cashier order details. */\n  cashierOrder?: Cashier;\n  /** Payment order type. */\n  type?: OrderTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PaymentOrderTypeDetailsOneOf {\n  /** Wix eCommerce order details. */\n  ecomOrder?: Ecom;\n  /** Wix Cashier order details. */\n  cashierOrder?: Cashier;\n}\n\nexport enum OrderType {\n  UNKNOWN_ORDER_TYPE = 'UNKNOWN_ORDER_TYPE',\n  /** Wix eCommerce order type. */\n  ECOM = 'ECOM',\n  /** Wix Cashier order type. */\n  CASHIER = 'CASHIER',\n}\n\n/** @enumType */\nexport type OrderTypeWithLiterals =\n  | OrderType\n  | 'UNKNOWN_ORDER_TYPE'\n  | 'ECOM'\n  | 'CASHIER';\n\nexport interface Ecom {\n  /**\n   * Wix eCommerce order ID.\n   * @format GUID\n   * @readonly\n   */\n  ecomOrderId?: string;\n}\n\nexport interface Cashier {\n  /**\n   * Wix Cashier payment order ID.\n   * @format GUID\n   * @readonly\n   */\n  cashierOrderId?: string;\n}\n\nexport interface GiftCardPaymentLinkPayment {\n  /**\n   * Wix eCommerce order ID associated with the gift card payment.\n   * @format GUID\n   * @readonly\n   */\n  ecomOrderId?: string;\n  /**\n   * Buyer contact details.\n   * @readonly\n   */\n  contactDetails?: FullAddressContactDetails;\n  /**\n   * Buyer contact ID, if relevant.\n   * @format GUID\n   * @readonly\n   */\n  contactId?: string | null;\n  /**\n   * Buyer's billing address.\n   * @readonly\n   */\n  billingAddress?: Address;\n}\n\nexport interface StandardCheckout {\n  /**\n   * Wix eCommerce checkout ID.\n   * @format GUID\n   * @readonly\n   */\n  ecomCheckoutId?: string;\n}\n\nexport interface LeanCheckout {\n  /**\n   * Wix eCommerce order payment request ID.\n   * @format GUID\n   * @readonly\n   */\n  orderPaymentRequestId?: string;\n}\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entityAsJson?: string;\n  /**\n   * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n   * @internal\n   */\n  triggeredByUndelete?: boolean | null;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntityAsJson?: string;\n  /**\n   * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n   * wont populate it / have any reference to it in the API.\n   * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n   * the developer should send only the new (current) entity.\n   * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n   * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n   * @internal\n   * @deprecated\n   */\n  previousEntityAsJson?: string | null;\n  /**\n   * Map of fully qualified field paths to their previous values for fields that changed.\n   * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n   * @internal\n   */\n  modifiedFields?: Record<string, any>;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n  /**\n   * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n   * @internal\n   */\n  movedToTrash?: boolean | null;\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface EcomCheckout {\n  /**\n   * Wix eCommerce checkout ID.\n   * @format GUID\n   * @readonly\n   */\n  ecomCheckoutId?: string;\n}\n\nexport interface EcomOrderCheckout {\n  /**\n   * Wix eCommerce order payment request ID.\n   * @format GUID\n   * @readonly\n   */\n  orderPaymentRequestId?: string;\n}\n\nexport interface QueryPaymentLinkPaymentsRequest {\n  /** Query options. */\n  query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n  /**\n   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryPaymentLinkPaymentsResponse {\n  /** Retrieved payment link payments. */\n  paymentLinkPayments?: PaymentLinkPayment[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Cursor strings that point to the next page, previous page, or both. */\n  cursors?: Cursors;\n  /**\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  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor string pointing to the next page in the list of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to the previous page in the list of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\nexport interface SearchPaymentLinkPaymentsRequest {\n  /** Search options. */\n  search: CursorSearch;\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * List of sort objects.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   * @maxSize 10\n   */\n  sort?: Sorting[];\n  /**\n   * Logical groupings of data into facets, with summaries for each facet. For example, use aggregations to allow site visitors to narrow down their search results by selecting specific categories.\n   * @maxSize 10\n   */\n  aggregations?: Aggregation[];\n  /** Free text to match in searchable fields. */\n  search?: SearchDetails;\n  /**\n   * Time zone to adjust date-time-based filters and aggregations, in ISO 8601 (including offsets) or IANA time zone database (including time zone IDs) format.\n   * Applies to all relevant filters and aggregations, unless overridden by providing timestamps including time zone. For example, \"2023-12-20T10:52:34.795Z\".\n   * @maxLength 50\n   */\n  timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Aggregation extends AggregationKindOneOf {\n  /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */\n  value?: ValueAggregation;\n  /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */\n  range?: RangeAggregation;\n  /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n  scalar?: ScalarAggregation;\n  /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */\n  dateHistogram?: DateHistogramAggregation;\n  /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */\n  nested?: NestedAggregation;\n  /**\n   * Aggregation name, returned in `aggregations.results.name`.\n   * @maxLength 100\n   */\n  name?: string | null;\n  /** Type of aggregation to perform. Must align with the corresponding aggregation field. */\n  type?: AggregationTypeWithLiterals;\n  /**\n   * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n  /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */\n  value?: ValueAggregation;\n  /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */\n  range?: RangeAggregation;\n  /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n  scalar?: ScalarAggregation;\n  /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */\n  dateHistogram?: DateHistogramAggregation;\n  /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */\n  nested?: NestedAggregation;\n}\n\nexport interface RangeBucket {\n  /** Inclusive lower bound of the range. Required if `to` is not specified. */\n  from?: number | null;\n  /** Exclusive upper bound of the range. Required if `from` is not specified. */\n  to?: number | null;\n}\n\nexport enum SortType {\n  /** Number of matches in the results. */\n  COUNT = 'COUNT',\n  /** Alphabetically by the field value. */\n  VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n  /** Descending order. */\n  DESC = 'DESC',\n  /** Ascending order. */\n  ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n  /** Exclude missing values from the aggregation results. */\n  EXCLUDE = 'EXCLUDE',\n  /** Include missing values in the aggregation results. */\n  INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n  /**\n   * Specify a custom name for the bucket containing the missing values. Defaults are `\"N/A\"` for strings, `0` for integers, and `false` for booleans.\n   * @maxLength 20\n   */\n  addToBucket?: string;\n}\n\nexport enum ScalarType {\n  /** Total number of distinct values. */\n  COUNT_DISTINCT = 'COUNT_DISTINCT',\n  /** Minimum value. */\n  MIN = 'MIN',\n  /** Maximum value. */\n  MAX = 'MAX',\n  /**\n   * Sum of values.\n   * @internal\n   */\n  SUM = 'SUM',\n  /**\n   * Average of values.\n   * @internal\n   */\n  AVG = 'AVG',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n  | ScalarType\n  | 'COUNT_DISTINCT'\n  | 'MIN'\n  | 'MAX';\n\nexport interface ValueAggregation extends ValueAggregationOptionsOneOf {\n  /** Options for including missing values in results. */\n  includeOptions?: IncludeMissingValuesOptions;\n  /** Sort type. */\n  sortType?: SortTypeWithLiterals;\n  /** Sort direction. */\n  sortDirection?: SortDirectionWithLiterals;\n  /**\n   * Number of aggregation results to return.\n   * Min: `1`\n   * Max: `250`\n   * Default: `10`\n   */\n  limit?: number | null;\n  /**\n   * Whether to include or exclude missing values in the aggregation results.\n   * Default: `EXCLUDE`.\n   */\n  missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n  /** Options for including missing values in results. */\n  includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\n  /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */\n  VALUE = 'VALUE',\n  /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */\n  RANGE = 'RANGE',\n  /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n  SCALAR = 'SCALAR',\n  /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */\n  DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n  | NestedAggregationType\n  | 'VALUE'\n  | 'RANGE'\n  | 'SCALAR'\n  | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n  /**\n   * List of range buckets. During aggregation each entity is placed in the first bucket its value falls into, based on the provided range bounds.\n   * @maxSize 50\n   */\n  buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n  /** Operator type for the scalar aggregation. */\n  type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n  /** Interval for date histogram aggregation. */\n  interval?: IntervalWithLiterals;\n}\n\nexport enum Interval {\n  YEAR = 'YEAR',\n  MONTH = 'MONTH',\n  WEEK = 'WEEK',\n  DAY = 'DAY',\n  HOUR = 'HOUR',\n  MINUTE = 'MINUTE',\n  SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type IntervalWithLiterals =\n  | Interval\n  | 'YEAR'\n  | 'MONTH'\n  | 'WEEK'\n  | 'DAY'\n  | 'HOUR'\n  | 'MINUTE'\n  | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n  /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */\n  value?: ValueAggregation;\n  /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n  range?: RangeAggregation;\n  /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n  scalar?: ScalarAggregation;\n  /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n  dateHistogram?: DateHistogramAggregation;\n  /**\n   * Unique, caller-defined aggregation name, returned in `aggregations.results`.\n   * @maxLength 100\n   */\n  name?: string | null;\n  /** Type of aggregation to perform. The matching aggregation field must be passed. */\n  type?: NestedAggregationTypeWithLiterals;\n  /**\n   * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationItemKindOneOf {\n  /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */\n  value?: ValueAggregation;\n  /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n  range?: RangeAggregation;\n  /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n  scalar?: ScalarAggregation;\n  /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n  dateHistogram?: DateHistogramAggregation;\n}\n\nexport enum AggregationType {\n  /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */\n  VALUE = 'VALUE',\n  /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */\n  RANGE = 'RANGE',\n  /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n  SCALAR = 'SCALAR',\n  /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */\n  DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n  /** Flattened list of aggregations, where each aggregation is nested within previous one. */\n  NESTED = 'NESTED',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n  | AggregationType\n  | 'VALUE'\n  | 'RANGE'\n  | 'SCALAR'\n  | 'DATE_HISTOGRAM'\n  | 'NESTED';\n\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */\nexport interface NestedAggregation {\n  /**\n   * Flattened list of aggregations, where each next aggregation is nested within the previous one.\n   * @minSize 2\n   * @maxSize 3\n   */\n  nestedAggregations?: NestedAggregationItem[];\n}\n\nexport interface SearchDetails {\n  /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */\n  mode?: ModeWithLiterals;\n  /**\n   * Search term or expression.\n   * @maxLength 100\n   */\n  expression?: string | null;\n  /**\n   * Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, For example, `order.address.streetName`.\n   * @maxLength 200\n   * @maxSize 20\n   */\n  fields?: string[];\n  /** Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. */\n  fuzzy?: boolean;\n}\n\nexport enum Mode {\n  /** Any of the search terms must be present. */\n  OR = 'OR',\n  /** All search terms must be present. */\n  AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface SearchPaymentLinkPaymentsResponse {\n  /** Retrieved payment link payments. */\n  paymentLinkPayments?: PaymentLinkPayment[];\n  /** Paging metadata. */\n  pagingMetadata?: PagingMetadataV2;\n  /** Response aggregation data. */\n  aggregationData?: AggregationData;\n}\n\nexport interface PagingMetadataV2 {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n  cursors?: Cursors;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   * @internal\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface AggregationData {\n  /**\n   * List of the aggregated data results.\n   * @maxSize 10000\n   */\n  results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n  /**\n   * Value of the field.\n   * @maxLength 100\n   */\n  value?: string;\n  /** Number of entities with this value. */\n  count?: number;\n}\n\nexport interface RangeAggregationResult {\n  /** Inclusive lower bound of the range. */\n  from?: number | null;\n  /** Exclusive upper bound of the range. */\n  to?: number | null;\n  /** Total number of entities in this range. */\n  count?: number;\n}\n\nexport interface NestedAggregationResults\n  extends NestedAggregationResultsResultOneOf {\n  /** Value aggregation results. */\n  values?: ValueResults;\n  /** Range aggregation results. */\n  ranges?: RangeResults;\n  /** Scalar aggregation results. */\n  scalar?: AggregationResultsScalarResult;\n  /**\n   * Unique, caller-defined aggregation name, identifiable by the requested aggregation `name`.\n   * @maxLength 100\n   */\n  name?: string;\n  /** Aggregation type. */\n  type?: AggregationTypeWithLiterals;\n  /**\n   * Field which the data was aggregated by.\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n  /** Value aggregation results. */\n  values?: ValueResults;\n  /** Range aggregation results. */\n  ranges?: RangeResults;\n  /** Scalar aggregation results. */\n  scalar?: AggregationResultsScalarResult;\n}\n\nexport interface ValueResults {\n  /**\n   * List of value aggregations.\n   * @maxSize 250\n   */\n  results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n  /**\n   * List of ranges returned in same order as requested.\n   * @maxSize 50\n   */\n  results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n  /** Type of scalar aggregation. */\n  type?: ScalarTypeWithLiterals;\n  /** Value of the scalar aggregation. */\n  value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n  /**\n   * Value of the field.\n   * @maxLength 1000\n   */\n  value?: string;\n  /** Nested aggregations. */\n  nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n  /**\n   * Value of the field.\n   * @maxLength 1000\n   */\n  value?: string;\n  /** Number of entities with this value. */\n  count?: number | null;\n}\n\nexport interface RangeResult {\n  /** Inclusive lower bound of the range. */\n  from?: number | null;\n  /** Exclusive upper bound of the range. */\n  to?: number | null;\n  /** Number of entities in this range. */\n  count?: number | null;\n}\n\nexport interface ScalarResult {\n  /** Value of the scalar aggregation. */\n  value?: number;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n  /** Value aggregation result. */\n  value?: ValueResult;\n  /** Range aggregation result. */\n  range?: RangeResult;\n  /** Scalar aggregation result. */\n  scalar?: ScalarResult;\n  /** Date histogram aggregation result. */\n  dateHistogram?: ValueResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n  /** Value aggregation result. */\n  value?: ValueResult;\n  /** Range aggregation result. */\n  range?: RangeResult;\n  /** Scalar aggregation result. */\n  scalar?: ScalarResult;\n  /** Date histogram aggregation result. */\n  dateHistogram?: ValueResult;\n}\n\nexport interface Results {\n  /** List of nested aggregations. */\n  results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n  /**\n   * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n   * @maxLength 100\n   */\n  value?: string;\n  /** Number of entities in the bucket. */\n  count?: number;\n}\n\nexport interface GroupByValueResults {\n  /**\n   * List of value aggregations.\n   * @maxSize 1000\n   */\n  results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n  /**\n   * List of date histogram aggregations.\n   * @maxSize 200\n   */\n  results?: DateHistogramResult[];\n}\n\n/**\n * Results of `NESTED` aggregation type in a flattened form\n * aggregations in resulting array are keyed by requested aggregation `name`.\n */\nexport interface NestedResults {\n  /**\n   * List of nested aggregations.\n   * @maxSize 1000\n   */\n  results?: Results[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n  /** Value aggregation results. */\n  values?: ValueResults;\n  /** Range aggregation results. */\n  ranges?: RangeResults;\n  /** Scalar aggregation results. */\n  scalar?: AggregationResultsScalarResult;\n  /** Group by value aggregation results. */\n  groupedByValue?: GroupByValueResults;\n  /** Date histogram aggregation results. */\n  dateHistogram?: DateHistogramResults;\n  /** Nested aggregation results. */\n  nested?: NestedResults;\n  /**\n   * Aggregation name, returned in `aggregations.results.name`.\n   * @maxLength 100\n   */\n  name?: string;\n  /** Aggregation type. Must align with the corresponding aggregation field. */\n  type?: AggregationTypeWithLiterals;\n  /**\n   * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n  /** Value aggregation results. */\n  values?: ValueResults;\n  /** Range aggregation results. */\n  ranges?: RangeResults;\n  /** Scalar aggregation results. */\n  scalar?: AggregationResultsScalarResult;\n  /** Group by value aggregation results. */\n  groupedByValue?: GroupByValueResults;\n  /** Date histogram aggregation results. */\n  dateHistogram?: DateHistogramResults;\n  /** Nested aggregation results. */\n  nested?: NestedResults;\n}\n\nexport interface IssueReceiptRequest {\n  /**\n   * Payment link payment ID.\n   * @format GUID\n   */\n  paymentLinkPaymentId: string | null;\n}\n\nexport interface IssueReceiptResponse {\n  /**\n   * Issued receipt ID.\n   * @format GUID\n   */\n  receiptId?: string;\n}\n\nexport interface BulkUpsertPaymentLinkPaymentsRequest {\n  /** Payment link payments to be created or updated. */\n  paymentLinkPayments?: PaymentLinkPayment[];\n}\n\nexport interface BulkUpsertPaymentLinkPaymentsResponse {\n  /**\n   * IDs of the created payment link payments.\n   * @format GUID\n   * @readonly\n   */\n  insertedIds?: string[] | null;\n  /**\n   * IDs of the updated payment link payments.\n   * @format GUID\n   * @readonly\n   */\n  updatedIds?: string[] | null;\n  /**\n   * IDs of the payment link payments that failed to be created or updated.\n   * @format GUID\n   * @readonly\n   */\n  failedIds?: string[] | null;\n}\n\nexport interface Empty {}\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type IssueReceiptApplicationErrors =\n  | {\n      code?: 'RECEIPT_NOT_FOUND';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_PAYMENT_TYPE';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_PAYMENT_DETAILS';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_REGULAR_PAYMENT_LINK_PAYMENT_ORDER';\n      description?: string;\n      data?: Record<string, any>;\n    };\n","import * as ambassadorWixPaymentlinksPaymentsV1PaymentLinkPayment from './paymentlinks-payments-v1-payment-link-payment-payment-link-payments.http.js';\nimport * as ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentTypes from './paymentlinks-payments-v1-payment-link-payment-payment-link-payments.types.js';\nimport * as ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentUniversalTypes from './paymentlinks-payments-v1-payment-link-payment-payment-link-payments.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function queryPaymentLinkPayments(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentUniversalTypes.QueryPaymentLinkPaymentsRequest,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentTypes.QueryPaymentLinkPaymentsRequest,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentUniversalTypes.QueryPaymentLinkPaymentsResponse,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentTypes.QueryPaymentLinkPaymentsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixPaymentlinksPaymentsV1PaymentLinkPayment.queryPaymentLinkPayments(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/payment-link-payments/query',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function searchPaymentLinkPayments(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentUniversalTypes.SearchPaymentLinkPaymentsRequest,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentTypes.SearchPaymentLinkPaymentsRequest,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentUniversalTypes.SearchPaymentLinkPaymentsResponse,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentTypes.SearchPaymentLinkPaymentsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixPaymentlinksPaymentsV1PaymentLinkPayment.searchPaymentLinkPayments(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/payment-link-payments/search',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function issueReceipt(): __PublicMethodMetaInfo<\n  'POST',\n  { paymentLinkPaymentId: string },\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentUniversalTypes.IssueReceiptRequest,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentTypes.IssueReceiptRequest,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentUniversalTypes.IssueReceiptResponse,\n  ambassadorWixPaymentlinksPaymentsV1PaymentLinkPaymentTypes.IssueReceiptResponse\n> {\n  const payload = { paymentLinkPaymentId: ':paymentLinkPaymentId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixPaymentlinksPaymentsV1PaymentLinkPayment.issueReceipt(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/payment-link-payments/{paymentLinkPaymentId}/issue-receipt',\n    pathParams: { paymentLinkPaymentId: 'paymentLinkPaymentId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  PaymentLinkPayment as PaymentLinkPaymentOriginal,\n  PaymentLinkPaymentPaymentOneOf as PaymentLinkPaymentPaymentOneOfOriginal,\n  PaymentLinkPaymentEcomCheckoutTypeOneOf as PaymentLinkPaymentEcomCheckoutTypeOneOfOriginal,\n  PaymentLinkPaymentCheckoutTypeOneOf as PaymentLinkPaymentCheckoutTypeOneOfOriginal,\n  PaymentLinkPaymentType as PaymentLinkPaymentTypeOriginal,\n  PaymentLinkPaymentTypeWithLiterals as PaymentLinkPaymentTypeWithLiteralsOriginal,\n  RegularPaymentLinkPayment as RegularPaymentLinkPaymentOriginal,\n  RegularPaymentLinkPaymentPaymentMethodDataOneOf as RegularPaymentLinkPaymentPaymentMethodDataOneOfOriginal,\n  FullAddressContactDetails as FullAddressContactDetailsOriginal,\n  VatId as VatIdOriginal,\n  VatType as VatTypeOriginal,\n  VatTypeWithLiterals as VatTypeWithLiteralsOriginal,\n  Address as AddressOriginal,\n  AddressStreetOneOf as AddressStreetOneOfOriginal,\n  StreetAddress as StreetAddressOriginal,\n  AddressLocation as AddressLocationOriginal,\n  Subdivision as SubdivisionOriginal,\n  SubdivisionType as SubdivisionTypeOriginal,\n  SubdivisionTypeWithLiterals as SubdivisionTypeWithLiteralsOriginal,\n  PaymentMethod as PaymentMethodOriginal,\n  PaymentMethodWithLiterals as PaymentMethodWithLiteralsOriginal,\n  CreditCardPaymentMethodData as CreditCardPaymentMethodDataOriginal,\n  WalletPaymentMethodData as WalletPaymentMethodDataOriginal,\n  PaymentOrder as PaymentOrderOriginal,\n  PaymentOrderTypeDetailsOneOf as PaymentOrderTypeDetailsOneOfOriginal,\n  OrderType as OrderTypeOriginal,\n  OrderTypeWithLiterals as OrderTypeWithLiteralsOriginal,\n  Ecom as EcomOriginal,\n  Cashier as CashierOriginal,\n  GiftCardPaymentLinkPayment as GiftCardPaymentLinkPaymentOriginal,\n  StandardCheckout as StandardCheckoutOriginal,\n  LeanCheckout as LeanCheckoutOriginal,\n  ExtendedFields as ExtendedFieldsOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  EcomCheckout as EcomCheckoutOriginal,\n  EcomOrderCheckout as EcomOrderCheckoutOriginal,\n  QueryPaymentLinkPaymentsRequest as QueryPaymentLinkPaymentsRequestOriginal,\n  CursorQuery as CursorQueryOriginal,\n  CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryPaymentLinkPaymentsResponse as QueryPaymentLinkPaymentsResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  SearchPaymentLinkPaymentsRequest as SearchPaymentLinkPaymentsRequestOriginal,\n  CursorSearch as CursorSearchOriginal,\n  CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOfOriginal,\n  Aggregation as AggregationOriginal,\n  AggregationKindOneOf as AggregationKindOneOfOriginal,\n  RangeBucket as RangeBucketOriginal,\n  SortType as SortTypeOriginal,\n  SortTypeWithLiterals as SortTypeWithLiteralsOriginal,\n  SortDirection as SortDirectionOriginal,\n  SortDirectionWithLiterals as SortDirectionWithLiteralsOriginal,\n  MissingValues as MissingValuesOriginal,\n  MissingValuesWithLiterals as MissingValuesWithLiteralsOriginal,\n  IncludeMissingValuesOptions as IncludeMissingValuesOptionsOriginal,\n  ScalarType as ScalarTypeOriginal,\n  ScalarTypeWithLiterals as ScalarTypeWithLiteralsOriginal,\n  ValueAggregation as ValueAggregationOriginal,\n  ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOfOriginal,\n  NestedAggregationType as NestedAggregationTypeOriginal,\n  NestedAggregationTypeWithLiterals as NestedAggregationTypeWithLiteralsOriginal,\n  RangeAggregation as RangeAggregationOriginal,\n  ScalarAggregation as ScalarAggregationOriginal,\n  DateHistogramAggregation as DateHistogramAggregationOriginal,\n  Interval as IntervalOriginal,\n  IntervalWithLiterals as IntervalWithLiteralsOriginal,\n  NestedAggregationItem as NestedAggregationItemOriginal,\n  NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOfOriginal,\n  AggregationType as AggregationTypeOriginal,\n  AggregationTypeWithLiterals as AggregationTypeWithLiteralsOriginal,\n  NestedAggregation as NestedAggregationOriginal,\n  SearchDetails as SearchDetailsOriginal,\n  Mode as ModeOriginal,\n  ModeWithLiterals as ModeWithLiteralsOriginal,\n  SearchPaymentLinkPaymentsResponse as SearchPaymentLinkPaymentsResponseOriginal,\n  PagingMetadataV2 as PagingMetadataV2Original,\n  AggregationData as AggregationDataOriginal,\n  ValueAggregationResult as ValueAggregationResultOriginal,\n  RangeAggregationResult as RangeAggregationResultOriginal,\n  NestedAggregationResults as NestedAggregationResultsOriginal,\n  NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOfOriginal,\n  ValueResults as ValueResultsOriginal,\n  RangeResults as RangeResultsOriginal,\n  AggregationResultsScalarResult as AggregationResultsScalarResultOriginal,\n  NestedValueAggregationResult as NestedValueAggregationResultOriginal,\n  ValueResult as ValueResultOriginal,\n  RangeResult as RangeResultOriginal,\n  ScalarResult as ScalarResultOriginal,\n  NestedResultValue as NestedResultValueOriginal,\n  NestedResultValueResultOneOf as NestedResultValueResultOneOfOriginal,\n  Results as ResultsOriginal,\n  DateHistogramResult as DateHistogramResultOriginal,\n  GroupByValueResults as GroupByValueResultsOriginal,\n  DateHistogramResults as DateHistogramResultsOriginal,\n  NestedResults as NestedResultsOriginal,\n  AggregationResults as AggregationResultsOriginal,\n  AggregationResultsResultOneOf as AggregationResultsResultOneOfOriginal,\n  IssueReceiptRequest as IssueReceiptRequestOriginal,\n  IssueReceiptResponse as IssueReceiptResponseOriginal,\n  BulkUpsertPaymentLinkPaymentsRequest as BulkUpsertPaymentLinkPaymentsRequestOriginal,\n  BulkUpsertPaymentLinkPaymentsResponse as BulkUpsertPaymentLinkPaymentsResponseOriginal,\n  Empty as EmptyOriginal,\n  AccountInfo as AccountInfoOriginal,\n  IssueReceiptApplicationErrors as IssueReceiptApplicationErrorsOriginal,\n} from './paymentlinks-payments-v1-payment-link-payment-payment-link-payments.types.js';\n"],"mappings":";AAAA,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,uDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACj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Y,EAAE,sBAAsB,uBAAuB;AAAA,IAC3D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","PaymentLinkPaymentType","VatType","SubdivisionType","PaymentMethod","OrderType","WebhookIdentityType","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","queryPaymentLinkPayments","searchPaymentLinkPayments","issueReceipt"]}