{"version":3,"sources":["../../src/payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.ts","../../src/payments-payins-configurations-v1-payins-configuration-payins-configurations.http.ts","../../src/payments-payins-configurations-v1-payins-configuration-payins-configurations.public.ts","../../src/payments-payins-configurations-v1-payins-configuration-payins-configurations.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n  HttpClient,\n  HttpResponse,\n  NonNullablePaths,\n  QuerySpec,\n  Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration from './payments-payins-configurations-v1-payins-configuration-payins-configurations.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/** PayinsConfiguration */\nexport interface PayinsConfiguration {\n  /**\n   * id\n   * @format GUID\n   * @readonly\n   * @immutable\n   */\n  _id?: string | null;\n  /**\n   * app_id\n   * @format GUID\n   * @immutable\n   */\n  appId?: string | null;\n  /**\n   * rules\n   * @maxSize 1000\n   */\n  rules?: PayinsRule[];\n  /**\n   * revision\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date when PayinsConfiguration was created\n   * @readonly\n   * @immutable\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date when PayinsConfiguration was updated\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /** Data Extensions */\n  extendedFields?: ExtendedFields;\n  /** Tags */\n  tags?: Tags;\n}\n\nexport interface PayinsRule {\n  /**\n   * payment_method_type_id\n   * @format GUID\n   */\n  paymentMethodTypeId?: string;\n  /**\n   * account_connection_id\n   * @format GUID\n   */\n  accountConnectionId?: string;\n  /** merchant_selection */\n  merchantSelection?: MerchantSelection;\n}\n\nexport interface MerchantSelection {\n  /** payins_enabled */\n  payinsEnabled?: boolean;\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 Tags {\n  /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n  privateTags?: TagList;\n  /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n  tags?: TagList;\n}\n\nexport interface TagList {\n  /**\n   * List of tag IDs\n   * @maxSize 100\n   * @maxLength 5\n   */\n  tagIds?: string[];\n}\n\nexport interface CreatePayinsConfigurationRequest {\n  /** PayinsConfiguration to be created. */\n  payinsConfiguration: PayinsConfiguration;\n}\n\nexport interface CreatePayinsConfigurationResponse {\n  /** The created PayinsConfiguration. */\n  payinsConfiguration?: PayinsConfiguration;\n}\n\nexport interface GetPayinsConfigurationRequest {\n  /**\n   * ID of the PayinsConfiguration to retrieve.\n   * @format GUID\n   */\n  payinsConfigurationId: string;\n}\n\nexport interface GetPayinsConfigurationResponse {\n  /** The requested PayinsConfiguration. */\n  payinsConfiguration?: PayinsConfiguration;\n}\n\nexport interface UpdatePayinsConfigurationRequest {\n  /** PayinsConfiguration to be updated, may be partial. */\n  payinsConfiguration: PayinsConfiguration;\n}\n\nexport interface UpdatePayinsConfigurationResponse {\n  /** Updated PayinsConfiguration. */\n  payinsConfiguration?: PayinsConfiguration;\n}\n\nexport interface QueryPayinsConfigurationsRequest {\n  /** WQL expression. */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\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 QueryPayinsConfigurationsResponse {\n  /** List of PayinsConfigurations. */\n  payinsConfigurations?: PayinsConfiguration[];\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 BulkUpdatePayinsConfigurationTagsRequest {\n  /**\n   * List of PayinsConfigurations that their tags will update.\n   * @minSize 1\n   * @maxSize 100\n   * @format GUID\n   */\n  ids: string[];\n  /** List of Tags to assign */\n  assignTags: Tags;\n  /** List of Tags to unAssign */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdatePayinsConfigurationTagsResponse {\n  /**\n   * Results\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkUpdatePayinsConfigurationTagsResult[];\n  /** Metadata regarding the bulk update operation */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n  /**\n   * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n   * @format GUID\n   */\n  _id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface BulkUpdatePayinsConfigurationTagsResult {\n  /** Metadata regarding the specific single update operation */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface BulkUpdatePayinsConfigurationTagsByFilterRequest {\n  /** Filter */\n  filter: Record<string, any> | null;\n  /** List of Tags to assign */\n  assignTags: Tags;\n  /** List of Tags to unAssign */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdatePayinsConfigurationTagsByFilterResponse {\n  /**\n   * Job ID\n   * @format GUID\n   */\n  jobId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /**\n   * Unique event ID.\n   * Allows clients to ignore duplicate webhooks.\n   */\n  _id?: string;\n  /**\n   * Assumes actions are also always typed to an entity_type\n   * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n   */\n  entityFqdn?: string;\n  /**\n   * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n   * This is although the created/updated/deleted notion is duplication of the oneof types\n   * 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 defining the order of updates to the underlying entity.\n   * For example, given that some entity was updated at 16:00 and than again at 16:01,\n   * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n   * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n   * To do so, you will need to persist this number on your end, and compare the sequence number from the\n   * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\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  entity?: string;\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  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: 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}\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\n/**\n * Creates a PayinsConfiguration.\n * @param payinsConfiguration - PayinsConfiguration to be created.\n * @internal\n * @documentationMaturity preview\n * @requiredField payinsConfiguration\n * @permissionId PAYMENTS.PAYINS_CONFIGURATION_CREATE\n * @returns The created PayinsConfiguration.\n * @fqn wix.payments.payins_configurations.v1.PayinsConfigurationService.CreatePayinsConfiguration\n */\nexport async function createPayinsConfiguration(\n  payinsConfiguration: PayinsConfiguration\n): Promise<\n  NonNullablePaths<\n    PayinsConfiguration,\n    | `rules`\n    | `rules.${number}.paymentMethodTypeId`\n    | `rules.${number}.accountConnectionId`\n    | `rules.${number}.merchantSelection.payinsEnabled`\n    | `tags.privateTags.tagIds`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    payinsConfiguration: payinsConfiguration,\n  });\n\n  const reqOpts =\n    ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration.createPayinsConfiguration(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)\n      ?.payinsConfiguration!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { payinsConfiguration: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['payinsConfiguration']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Retrieves a PayinsConfiguration.\n * @param payinsConfigurationId - ID of the PayinsConfiguration to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField payinsConfigurationId\n * @permissionId PAYMENTS.PAYINS_CONFIGURATION_READ\n * @returns The requested PayinsConfiguration.\n * @fqn wix.payments.payins_configurations.v1.PayinsConfigurationService.GetPayinsConfiguration\n */\nexport async function getPayinsConfiguration(\n  payinsConfigurationId: string\n): Promise<\n  NonNullablePaths<\n    PayinsConfiguration,\n    | `rules`\n    | `rules.${number}.paymentMethodTypeId`\n    | `rules.${number}.accountConnectionId`\n    | `rules.${number}.merchantSelection.payinsEnabled`\n    | `tags.privateTags.tagIds`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    payinsConfigurationId: payinsConfigurationId,\n  });\n\n  const reqOpts =\n    ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration.getPayinsConfiguration(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)\n      ?.payinsConfiguration!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { payinsConfigurationId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['payinsConfigurationId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Updates a PayinsConfiguration.\n *\n * Each time the PayinsConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PayinsConfiguration.\n * This ensures you're working with the latest PayinsConfiguration\n * and prevents unintended overwrites.\n * @param _id - id\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField payinsConfiguration\n * @requiredField payinsConfiguration.revision\n * @permissionId PAYMENTS.PAYINS_CONFIGURATION_UPDATE\n * @returns Updated PayinsConfiguration.\n * @fqn wix.payments.payins_configurations.v1.PayinsConfigurationService.UpdatePayinsConfiguration\n */\nexport async function updatePayinsConfiguration(\n  _id: string,\n  payinsConfiguration: NonNullablePaths<\n    UpdatePayinsConfiguration,\n    `revision`,\n    2\n  >\n): Promise<\n  NonNullablePaths<\n    PayinsConfiguration,\n    | `rules`\n    | `rules.${number}.paymentMethodTypeId`\n    | `rules.${number}.accountConnectionId`\n    | `rules.${number}.merchantSelection.payinsEnabled`\n    | `tags.privateTags.tagIds`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    payinsConfiguration: { ...payinsConfiguration, id: _id },\n  });\n\n  const reqOpts =\n    ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration.updatePayinsConfiguration(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)\n      ?.payinsConfiguration!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: { payinsConfiguration: '$[1]' },\n        explicitPathsToArguments: { 'payinsConfiguration.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'payinsConfiguration']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdatePayinsConfiguration {\n  /**\n   * id\n   * @format GUID\n   * @readonly\n   * @immutable\n   */\n  _id?: string | null;\n  /**\n   * app_id\n   * @format GUID\n   * @immutable\n   */\n  appId?: string | null;\n  /**\n   * rules\n   * @maxSize 1000\n   */\n  rules?: PayinsRule[];\n  /**\n   * revision\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date when PayinsConfiguration was created\n   * @readonly\n   * @immutable\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date when PayinsConfiguration was updated\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /** Data Extensions */\n  extendedFields?: ExtendedFields;\n  /** Tags */\n  tags?: Tags;\n}\n\n/**\n * Retrieves a list of PayinsConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PayinsConfigurations can be returned per request.\n *\n * To learn how to query PayinsConfigurations, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @internal\n * @documentationMaturity preview\n * @permissionId PAYMENTS.PAYINS_CONFIGURATION_READ\n * @fqn wix.payments.payins_configurations.v1.PayinsConfigurationService.QueryPayinsConfigurations\n */\nexport function queryPayinsConfigurations(): PayinsConfigurationsQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    PayinsConfiguration,\n    'CURSOR',\n    QueryPayinsConfigurationsRequest,\n    QueryPayinsConfigurationsResponse\n  >({\n    func: async (payload: QueryPayinsConfigurationsRequest) => {\n      const reqOpts =\n        ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration.queryPayinsConfigurations(\n          payload\n        );\n\n      sideEffects?.onSiteCall?.();\n      try {\n        const result = await httpClient.request(reqOpts);\n        sideEffects?.onSuccess?.(result);\n        return result;\n      } catch (err) {\n        sideEffects?.onError?.(err);\n        throw err;\n      }\n    },\n    requestTransformer: (query: QueryPayinsConfigurationsRequest['query']) => {\n      const args = [query, {}] as [\n        QueryPayinsConfigurationsRequest['query'],\n        {}\n      ];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({\n      data,\n    }: HttpResponse<QueryPayinsConfigurationsResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [])\n      );\n\n      return {\n        items: transformedData?.payinsConfigurations,\n        pagingMetadata: transformedData?.pagingMetadata,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'CURSOR',\n    transformationPaths: {},\n  });\n}\n\ninterface QueryCursorResult {\n  cursors: Cursors;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface PayinsConfigurationsQueryResult extends QueryCursorResult {\n  items: PayinsConfiguration[];\n  query: PayinsConfigurationsQueryBuilder;\n  next: () => Promise<PayinsConfigurationsQueryResult>;\n  prev: () => Promise<PayinsConfigurationsQueryResult>;\n}\n\nexport interface PayinsConfigurationsQueryBuilder {\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  eq: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId'\n      | 'rules.merchantSelection.payinsEnabled',\n    value: any\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ne: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId'\n      | 'rules.merchantSelection.payinsEnabled',\n    value: any\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ge: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId',\n    value: any\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  gt: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId',\n    value: any\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  le: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId',\n    value: any\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  lt: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId',\n    value: any\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `string`.\n   * @param string - String to compare against. Case-insensitive.\n   * @documentationMaturity preview\n   */\n  startsWith: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId',\n    value: string\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `values`.\n   * @param values - List of values to compare against.\n   * @documentationMaturity preview\n   */\n  hasSome: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId'\n      | 'rules.merchantSelection.payinsEnabled',\n    value: any[]\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId'\n      | 'rules.merchantSelection.payinsEnabled',\n    value: any\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId'\n      | 'rules.merchantSelection.payinsEnabled',\n    value: boolean\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  ascending: (\n    ...propertyNames: Array<\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId'\n      | 'rules.merchantSelection.payinsEnabled'\n    >\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  descending: (\n    ...propertyNames: Array<\n      | '_id'\n      | 'appId'\n      | 'rules.paymentMethodTypeId'\n      | 'rules.accountConnectionId'\n      | 'rules.merchantSelection.payinsEnabled'\n    >\n  ) => PayinsConfigurationsQueryBuilder;\n  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n   * @documentationMaturity preview\n   */\n  limit: (limit: number) => PayinsConfigurationsQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => PayinsConfigurationsQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<PayinsConfigurationsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.payments.payins_configurations.v1.PayinsConfigurationService.QueryPayinsConfigurations\n * @requiredField query\n */\nexport async function typedQueryPayinsConfigurations(\n  query: PayinsConfigurationQuery\n): Promise<\n  NonNullablePaths<QueryPayinsConfigurationsResponse, `payinsConfigurations`, 2>\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n  const reqOpts =\n    ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration.queryPayinsConfigurations(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['query']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface PayinsConfigurationQuerySpec extends QuerySpec {\n  paging: 'cursor';\n  wql: [\n    {\n      fields: [\n        'rules.accountConnectionId',\n        'rules.merchantSelection.payinsEnabled',\n        'rules.paymentMethodTypeId'\n      ];\n      operators: ['$hasAll', '$hasSome'];\n      sort: 'BOTH';\n    },\n    {\n      fields: ['_id', 'appId'];\n      operators: '*';\n      sort: 'BOTH';\n    }\n  ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n  PayinsConfiguration,\n  PayinsConfigurationQuerySpec\n>;\nexport type PayinsConfigurationQuery = {\n  /** \n  Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.  \n  */\n  cursorPaging?: {\n    /** \n  Maximum number of items to return in the results. \n  @max: 100 \n  */\n    limit?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n      | 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?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n      | null;\n  };\n  /** \n  Filter object in the following format:\n  `\"filter\" : {\n  \"fieldName1\": \"value1\",\n  \"fieldName2\":{\"$operator\":\"value2\"}\n  }`\n  Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`  \n  */\n  filter?: CommonQueryWithEntityContext['filter'] | null;\n  /** \n  Sort object in the following format:\n  `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n  @maxSize: 5 \n  */\n  sort?: {\n    /** \n  Name of the field to sort by. \n  @maxLength: 512 \n  */\n    fieldName?: NonNullable<\n      CommonQueryWithEntityContext['sort']\n    >[number]['fieldName'];\n    /** \n  Sort order.  \n  */\n    order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n  }[];\n};\n\nexport const utils = {\n  query: {\n    ...createQueryUtils<\n      PayinsConfiguration,\n      PayinsConfigurationQuerySpec,\n      PayinsConfigurationQuery\n    >(),\n  },\n};\n\n/**\n * Synchronously update tags on multiple PayinsConfigurations, by list of PayinsConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of PayinsConfigurations that their tags will update.\n * @internal\n * @documentationMaturity preview\n * @requiredField ids\n * @requiredField options.assignTags\n * @permissionId PAYMENTS.PAYINS_CONFIGURATION_UPDATE_TAGS\n * @fqn wix.payments.payins_configurations.v1.PayinsConfigurationService.BulkUpdatePayinsConfigurationTags\n */\nexport async function bulkUpdatePayinsConfigurationTags(\n  ids: string[],\n  options?: NonNullablePaths<\n    BulkUpdatePayinsConfigurationTagsOptions,\n    `assignTags`,\n    2\n  >\n): Promise<\n  NonNullablePaths<\n    BulkUpdatePayinsConfigurationTagsResponse,\n    | `results`\n    | `results.${number}.itemMetadata.originalIndex`\n    | `results.${number}.itemMetadata.success`\n    | `results.${number}.itemMetadata.error.code`\n    | `results.${number}.itemMetadata.error.description`\n    | `bulkActionMetadata.totalSuccesses`\n    | `bulkActionMetadata.totalFailures`\n    | `bulkActionMetadata.undetailedFailures`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    ids: ids,\n    assignTags: options?.assignTags,\n    unassignTags: options?.unassignTags,\n  });\n\n  const reqOpts =\n    ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration.bulkUpdatePayinsConfigurationTags(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          ids: '$[0]',\n          assignTags: '$[1].assignTags',\n          unassignTags: '$[1].unassignTags',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['ids', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface BulkUpdatePayinsConfigurationTagsOptions {\n  /** List of Tags to assign */\n  assignTags: Tags;\n  /** List of Tags to unAssign */\n  unassignTags?: Tags;\n}\n\n/**\n * Asynchronously update tags on multiple PayinsConfigurations, by provided filter\n * An empty filter will update all PayinsConfigurations\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param filter - Filter\n * @internal\n * @documentationMaturity preview\n * @requiredField filter\n * @requiredField options.assignTags\n * @permissionId PAYMENTS.PAYINS_CONFIGURATION_UPDATE_TAGS\n * @fqn wix.payments.payins_configurations.v1.PayinsConfigurationService.BulkUpdatePayinsConfigurationTagsByFilter\n */\nexport async function bulkUpdatePayinsConfigurationTagsByFilter(\n  filter: Record<string, any>,\n  options?: NonNullablePaths<\n    BulkUpdatePayinsConfigurationTagsByFilterOptions,\n    `assignTags`,\n    2\n  >\n): Promise<\n  NonNullablePaths<\n    BulkUpdatePayinsConfigurationTagsByFilterResponse,\n    `jobId`,\n    2\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    filter: filter,\n    assignTags: options?.assignTags,\n    unassignTags: options?.unassignTags,\n  });\n\n  const reqOpts =\n    ambassadorWixPaymentsPayinsConfigurationsV1PayinsConfiguration.bulkUpdatePayinsConfigurationTagsByFilter(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          filter: '$[0]',\n          assignTags: '$[1].assignTags',\n          unassignTags: '$[1].unassignTags',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['filter', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface BulkUpdatePayinsConfigurationTagsByFilterOptions {\n  /** List of Tags to assign */\n  assignTags: Tags;\n  /** List of Tags to unAssign */\n  unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {};\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_payins-configurations';\n\n/** Creates a PayinsConfiguration. */\nexport function createPayinsConfiguration(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createPayinsConfiguration({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'payinsConfiguration.createdDate' },\n          { path: 'payinsConfiguration.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.payments.payins_configurations.v1.payins_configuration',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.payments.payins_configurations.v1.PayinsConfigurationService.CreatePayinsConfiguration',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n        { protoPath: '/v1/payins-configurations', data: serializedData, host }\n      ),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'payinsConfiguration.createdDate' },\n              { path: 'payinsConfiguration.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createPayinsConfiguration;\n}\n\n/** Retrieves a PayinsConfiguration. */\nexport function getPayinsConfiguration(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getPayinsConfiguration({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.payments.payins_configurations.v1.payins_configuration',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.payments.payins_configurations.v1.PayinsConfigurationService.GetPayinsConfiguration',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n        {\n          protoPath: '/v1/payins-configurations/{payinsConfigurationId}',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'payinsConfiguration.createdDate' },\n              { path: 'payinsConfiguration.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getPayinsConfiguration;\n}\n\n/**\n * Updates a PayinsConfiguration.\n *\n * Each time the PayinsConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PayinsConfiguration.\n * This ensures you're working with the latest PayinsConfiguration\n * and prevents unintended overwrites.\n */\nexport function updatePayinsConfiguration(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updatePayinsConfiguration({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'payinsConfiguration.createdDate' },\n          { path: 'payinsConfiguration.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.payments.payins_configurations.v1.payins_configuration',\n      method: 'PATCH' as any,\n      methodFqn:\n        'wix.payments.payins_configurations.v1.PayinsConfigurationService.UpdatePayinsConfiguration',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n        {\n          protoPath: '/v1/payins-configurations/{payinsConfiguration.id}',\n          data: serializedData,\n          host,\n        }\n      ),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'payinsConfiguration.createdDate' },\n              { path: 'payinsConfiguration.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updatePayinsConfiguration;\n}\n\n/**\n * Retrieves a list of PayinsConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PayinsConfigurations can be returned per request.\n *\n * To learn how to query PayinsConfigurations, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryPayinsConfigurations(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryPayinsConfigurations({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.payments.payins_configurations.v1.payins_configuration',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.payments.payins_configurations.v1.PayinsConfigurationService.QueryPayinsConfigurations',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n        { protoPath: '/v1/payins-configurations/query', data: payload, host }\n      ),\n      params: toURLSearchParams(payload, true),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'payinsConfigurations.createdDate' },\n              { path: 'payinsConfigurations.updatedDate' },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'POST' as any,\n          url: resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n            {\n              protoPath: '/v1/payins-configurations/query',\n              data: payload,\n              host,\n            }\n          ),\n          data: payload,\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __queryPayinsConfigurations;\n}\n\n/**\n * Synchronously update tags on multiple PayinsConfigurations, by list of PayinsConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdatePayinsConfigurationTags(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdatePayinsConfigurationTags({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.payments.payins_configurations.v1.payins_configuration',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.payments.payins_configurations.v1.PayinsConfigurationService.BulkUpdatePayinsConfigurationTags',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n        {\n          protoPath: '/v1/bulk/payins-configurations/update-tags',\n          data: payload,\n          host,\n        }\n      ),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdatePayinsConfigurationTags;\n}\n\n/**\n * Asynchronously update tags on multiple PayinsConfigurations, by provided filter\n * An empty filter will update all PayinsConfigurations\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdatePayinsConfigurationTagsByFilter(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdatePayinsConfigurationTagsByFilter({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.payments.payins_configurations.v1.payins_configuration',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.payments.payins_configurations.v1.PayinsConfigurationService.BulkUpdatePayinsConfigurationTagsByFilter',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixPaymentsPayinsConfigurationsV1PayinsConfigurationServiceUrl(\n        {\n          protoPath: '/v1/bulk/payins-configurations/update-tags-by-filter',\n          data: payload,\n          host,\n        }\n      ),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdatePayinsConfigurationTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  BulkUpdatePayinsConfigurationTagsByFilterOptions,\n  BulkUpdatePayinsConfigurationTagsByFilterResponse,\n  BulkUpdatePayinsConfigurationTagsOptions,\n  BulkUpdatePayinsConfigurationTagsResponse,\n  PayinsConfiguration,\n  PayinsConfigurationQuery,\n  PayinsConfigurationsQueryBuilder,\n  QueryPayinsConfigurationsResponse,\n  UpdatePayinsConfiguration,\n  bulkUpdatePayinsConfigurationTags as universalBulkUpdatePayinsConfigurationTags,\n  bulkUpdatePayinsConfigurationTagsByFilter as universalBulkUpdatePayinsConfigurationTagsByFilter,\n  createPayinsConfiguration as universalCreatePayinsConfiguration,\n  getPayinsConfiguration as universalGetPayinsConfiguration,\n  queryPayinsConfigurations as universalQueryPayinsConfigurations,\n  typedQueryPayinsConfigurations as universalTypedQueryPayinsConfigurations,\n  updatePayinsConfiguration as universalUpdatePayinsConfiguration,\n} from './payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\n/** @internal */\nexport function createPayinsConfiguration(\n  httpClient: HttpClient\n): CreatePayinsConfigurationSignature {\n  return (payinsConfiguration: PayinsConfiguration) =>\n    universalCreatePayinsConfiguration(\n      payinsConfiguration,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreatePayinsConfigurationSignature {\n  /**\n   * Creates a PayinsConfiguration.\n   * @param - PayinsConfiguration to be created.\n   * @returns The created PayinsConfiguration.\n   */\n  (payinsConfiguration: PayinsConfiguration): Promise<\n    NonNullablePaths<\n      PayinsConfiguration,\n      | `rules`\n      | `rules.${number}.paymentMethodTypeId`\n      | `rules.${number}.accountConnectionId`\n      | `rules.${number}.merchantSelection.payinsEnabled`\n      | `tags.privateTags.tagIds`,\n      5\n    >\n  >;\n}\n\n/** @internal */\nexport function getPayinsConfiguration(\n  httpClient: HttpClient\n): GetPayinsConfigurationSignature {\n  return (payinsConfigurationId: string) =>\n    universalGetPayinsConfiguration(\n      payinsConfigurationId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetPayinsConfigurationSignature {\n  /**\n   * Retrieves a PayinsConfiguration.\n   * @param - ID of the PayinsConfiguration to retrieve.\n   * @returns The requested PayinsConfiguration.\n   */\n  (payinsConfigurationId: string): Promise<\n    NonNullablePaths<\n      PayinsConfiguration,\n      | `rules`\n      | `rules.${number}.paymentMethodTypeId`\n      | `rules.${number}.accountConnectionId`\n      | `rules.${number}.merchantSelection.payinsEnabled`\n      | `tags.privateTags.tagIds`,\n      5\n    >\n  >;\n}\n\n/** @internal */\nexport function updatePayinsConfiguration(\n  httpClient: HttpClient\n): UpdatePayinsConfigurationSignature {\n  return (\n    _id: string,\n    payinsConfiguration: NonNullablePaths<\n      UpdatePayinsConfiguration,\n      `revision`,\n      2\n    >\n  ) =>\n    universalUpdatePayinsConfiguration(\n      _id,\n      payinsConfiguration,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdatePayinsConfigurationSignature {\n  /**\n   * Updates a PayinsConfiguration.\n   *\n   * Each time the PayinsConfiguration is updated,\n   * `revision` increments by 1.\n   * The current `revision` must be passed when updating the PayinsConfiguration.\n   * This ensures you're working with the latest PayinsConfiguration\n   * and prevents unintended overwrites.\n   * @param - id\n   * @returns Updated PayinsConfiguration.\n   */\n  (\n    _id: string,\n    payinsConfiguration: NonNullablePaths<\n      UpdatePayinsConfiguration,\n      `revision`,\n      2\n    >\n  ): Promise<\n    NonNullablePaths<\n      PayinsConfiguration,\n      | `rules`\n      | `rules.${number}.paymentMethodTypeId`\n      | `rules.${number}.accountConnectionId`\n      | `rules.${number}.merchantSelection.payinsEnabled`\n      | `tags.privateTags.tagIds`,\n      5\n    >\n  >;\n}\n\n/** @internal */\nexport function queryPayinsConfigurations(\n  httpClient: HttpClient\n): QueryPayinsConfigurationsSignature {\n  return () =>\n    universalQueryPayinsConfigurations(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryPayinsConfigurationsSignature {\n  /**\n   * Retrieves a list of PayinsConfigurations, given the provided [paging, filtering, and sorting][1].\n   *\n   * Up to 1,000 PayinsConfigurations can be returned per request.\n   *\n   * To learn how to query PayinsConfigurations, see [API Query Language][2].\n   *\n   * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n   * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n   */\n  (): PayinsConfigurationsQueryBuilder;\n}\n\nexport function typedQueryPayinsConfigurations(\n  httpClient: HttpClient\n): TypedQueryPayinsConfigurationsSignature {\n  return (query: PayinsConfigurationQuery) =>\n    universalTypedQueryPayinsConfigurations(\n      query,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface TypedQueryPayinsConfigurationsSignature {\n  /** */\n  (query: PayinsConfigurationQuery): Promise<\n    NonNullablePaths<\n      QueryPayinsConfigurationsResponse,\n      `payinsConfigurations`,\n      2\n    >\n  >;\n}\n\n/** @internal */\nexport function bulkUpdatePayinsConfigurationTags(\n  httpClient: HttpClient\n): BulkUpdatePayinsConfigurationTagsSignature {\n  return (\n    ids: string[],\n    options?: NonNullablePaths<\n      BulkUpdatePayinsConfigurationTagsOptions,\n      `assignTags`,\n      2\n    >\n  ) =>\n    universalBulkUpdatePayinsConfigurationTags(\n      ids,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkUpdatePayinsConfigurationTagsSignature {\n  /**\n   * Synchronously update tags on multiple PayinsConfigurations, by list of PayinsConfigurations ids\n   * A tag that appears both in the list of assign and unassign tags, will be assigned\n   * @param - List of PayinsConfigurations that their tags will update.\n   */\n  (\n    ids: string[],\n    options?: NonNullablePaths<\n      BulkUpdatePayinsConfigurationTagsOptions,\n      `assignTags`,\n      2\n    >\n  ): Promise<\n    NonNullablePaths<\n      BulkUpdatePayinsConfigurationTagsResponse,\n      | `results`\n      | `results.${number}.itemMetadata.originalIndex`\n      | `results.${number}.itemMetadata.success`\n      | `results.${number}.itemMetadata.error.code`\n      | `results.${number}.itemMetadata.error.description`\n      | `bulkActionMetadata.totalSuccesses`\n      | `bulkActionMetadata.totalFailures`\n      | `bulkActionMetadata.undetailedFailures`,\n      6\n    >\n  >;\n}\n\n/** @internal */\nexport function bulkUpdatePayinsConfigurationTagsByFilter(\n  httpClient: HttpClient\n): BulkUpdatePayinsConfigurationTagsByFilterSignature {\n  return (\n    filter: Record<string, any>,\n    options?: NonNullablePaths<\n      BulkUpdatePayinsConfigurationTagsByFilterOptions,\n      `assignTags`,\n      2\n    >\n  ) =>\n    universalBulkUpdatePayinsConfigurationTagsByFilter(\n      filter,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkUpdatePayinsConfigurationTagsByFilterSignature {\n  /**\n   * Asynchronously update tags on multiple PayinsConfigurations, by provided filter\n   * An empty filter will update all PayinsConfigurations\n   * A tag that appears both in the list of assign and unassign tags, will be assigned\n   * @param - Filter\n   */\n  (\n    filter: Record<string, any>,\n    options?: NonNullablePaths<\n      BulkUpdatePayinsConfigurationTagsByFilterOptions,\n      `assignTags`,\n      2\n    >\n  ): Promise<\n    NonNullablePaths<\n      BulkUpdatePayinsConfigurationTagsByFilterResponse,\n      `jobId`,\n      2\n    >\n  >;\n}\n\nexport {\n  ActionEvent,\n  ApplicationError,\n  BulkActionMetadata,\n  BulkUpdatePayinsConfigurationTagsByFilterOptions,\n  BulkUpdatePayinsConfigurationTagsByFilterRequest,\n  BulkUpdatePayinsConfigurationTagsByFilterResponse,\n  BulkUpdatePayinsConfigurationTagsOptions,\n  BulkUpdatePayinsConfigurationTagsRequest,\n  BulkUpdatePayinsConfigurationTagsResponse,\n  BulkUpdatePayinsConfigurationTagsResult,\n  CreatePayinsConfigurationRequest,\n  CreatePayinsConfigurationResponse,\n  CursorPaging,\n  CursorPagingMetadata,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Cursors,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  ExtendedFields,\n  GetPayinsConfigurationRequest,\n  GetPayinsConfigurationResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  ItemMetadata,\n  MerchantSelection,\n  MessageEnvelope,\n  PayinsConfiguration,\n  PayinsConfigurationQuerySpec,\n  PayinsConfigurationsQueryBuilder,\n  PayinsConfigurationsQueryResult,\n  PayinsRule,\n  QueryPayinsConfigurationsRequest,\n  QueryPayinsConfigurationsResponse,\n  RestoreInfo,\n  SortOrder,\n  Sorting,\n  TagList,\n  Tags,\n  UpdatePayinsConfiguration,\n  UpdatePayinsConfigurationRequest,\n  UpdatePayinsConfigurationResponse,\n  WebhookIdentityType,\n  utils,\n} from './payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.js';\n","import {\n  createPayinsConfiguration as publicCreatePayinsConfiguration,\n  getPayinsConfiguration as publicGetPayinsConfiguration,\n  updatePayinsConfiguration as publicUpdatePayinsConfiguration,\n  queryPayinsConfigurations as publicQueryPayinsConfigurations,\n  typedQueryPayinsConfigurations as publicTypedQueryPayinsConfigurations,\n  bulkUpdatePayinsConfigurationTags as publicBulkUpdatePayinsConfigurationTags,\n  bulkUpdatePayinsConfigurationTagsByFilter as publicBulkUpdatePayinsConfigurationTagsByFilter,\n} from './payments-payins-configurations-v1-payins-configuration-payins-configurations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n  PayinsConfigurationQuery,\n  PayinsConfigurationsQueryBuilder,\n  typedQueryPayinsConfigurations as universalTypedQueryPayinsConfigurations,\n} from './payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.js';\n\nfunction customQueryPayinsConfigurations(httpClient: HttpClient) {\n  const router = createQueryOverloadRouter({\n    builderQueryFunction: () => publicQueryPayinsConfigurations(httpClient)(),\n    typedQueryFunction: (query: PayinsConfigurationQuery) =>\n      publicTypedQueryPayinsConfigurations(httpClient)(query),\n    hasOptionsParameter: false,\n  });\n\n  function overloadedQuery(): PayinsConfigurationsQueryBuilder;\n  function overloadedQuery(\n    query: PayinsConfigurationQuery\n  ): ReturnType<typeof universalTypedQueryPayinsConfigurations>;\n  function overloadedQuery(query?: PayinsConfigurationQuery): any {\n    return router(...arguments);\n  }\n\n  return overloadedQuery;\n}\n\n/** @internal */\nexport const createPayinsConfiguration: MaybeContext<\n  BuildRESTFunction<typeof publicCreatePayinsConfiguration> &\n    typeof publicCreatePayinsConfiguration\n> = /*#__PURE__*/ createRESTModule(publicCreatePayinsConfiguration);\n/** @internal */\nexport const getPayinsConfiguration: MaybeContext<\n  BuildRESTFunction<typeof publicGetPayinsConfiguration> &\n    typeof publicGetPayinsConfiguration\n> = /*#__PURE__*/ createRESTModule(publicGetPayinsConfiguration);\n/** @internal */\nexport const updatePayinsConfiguration: MaybeContext<\n  BuildRESTFunction<typeof publicUpdatePayinsConfiguration> &\n    typeof publicUpdatePayinsConfiguration\n> = /*#__PURE__*/ createRESTModule(publicUpdatePayinsConfiguration);\n/** @internal */\nexport const bulkUpdatePayinsConfigurationTags: MaybeContext<\n  BuildRESTFunction<typeof publicBulkUpdatePayinsConfigurationTags> &\n    typeof publicBulkUpdatePayinsConfigurationTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdatePayinsConfigurationTags);\n/** @internal */\nexport const bulkUpdatePayinsConfigurationTagsByFilter: MaybeContext<\n  BuildRESTFunction<typeof publicBulkUpdatePayinsConfigurationTagsByFilter> &\n    typeof publicBulkUpdatePayinsConfigurationTagsByFilter\n> = /*#__PURE__*/ createRESTModule(\n  publicBulkUpdatePayinsConfigurationTagsByFilter\n);\nexport const queryPayinsConfigurations: MaybeContext<\n  BuildRESTFunction<typeof customQueryPayinsConfigurations> &\n    typeof customQueryPayinsConfigurations\n> = /*#__PURE__*/ createRESTModule(customQueryPayinsConfigurations);\n\nexport {\n  SortOrder,\n  WebhookIdentityType,\n} from './payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.js';\nexport {\n  PayinsConfiguration,\n  PayinsRule,\n  MerchantSelection,\n  ExtendedFields,\n  Tags,\n  TagList,\n  CreatePayinsConfigurationRequest,\n  CreatePayinsConfigurationResponse,\n  GetPayinsConfigurationRequest,\n  GetPayinsConfigurationResponse,\n  UpdatePayinsConfigurationRequest,\n  UpdatePayinsConfigurationResponse,\n  QueryPayinsConfigurationsRequest,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Sorting,\n  CursorPaging,\n  QueryPayinsConfigurationsResponse,\n  CursorPagingMetadata,\n  Cursors,\n  BulkUpdatePayinsConfigurationTagsRequest,\n  BulkUpdatePayinsConfigurationTagsResponse,\n  ItemMetadata,\n  ApplicationError,\n  BulkUpdatePayinsConfigurationTagsResult,\n  BulkActionMetadata,\n  BulkUpdatePayinsConfigurationTagsByFilterRequest,\n  BulkUpdatePayinsConfigurationTagsByFilterResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  UpdatePayinsConfiguration,\n  PayinsConfigurationsQueryResult,\n  PayinsConfigurationsQueryBuilder,\n  PayinsConfigurationQuerySpec,\n  BulkUpdatePayinsConfigurationTagsOptions,\n  BulkUpdatePayinsConfigurationTagsByFilterOptions,\n} from './payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.js';\nexport { utils } from './payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.js';\nexport {\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  CommonQueryWithEntityContext,\n  PayinsConfigurationQuery,\n} from './payments-payins-configurations-v1-payins-configuration-payins-configurations.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,sEACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,0BACd,SAC4B;AAC5B,WAAS,4BAA4B,EAAE,KAAK,GAAQ;AAClD,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,kCAAkC;AAAA,UAC1C,EAAE,MAAM,kCAAkC;AAAA,QAC5C;AAAA,MACF;AAAA,IACF,CAAC;AACD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,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AW;AAAA,EACf;AACJ;AAsBO,SAASC,2BACd,YACoC;AACpC,SAAO,CACL,KACA,wBAMAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAmCO,SAASC,2BACd,YACoC;AACpC,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,gCACd,YACyC;AACzC,SAAO,CAAC,UACN;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAcO,SAASC,mCACd,YAC4C;AAC5C,SAAO,CACL,KACA,YAMAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgCO,SAASC,2CACd,YACoD;AACpD,SAAO,CACL,QACA,YAMAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACjPA,SAAS,wBAAwB;AAGjC,SAAS,iCAAiC;AAO1C,SAAS,gCAAgC,YAAwB;AAC/D,QAAM,SAAS,0BAA0B;AAAA,IACvC,sBAAsB,MAAMC,2BAAgC,UAAU,EAAE;AAAA,IACxE,oBAAoB,CAAC,UACnBC,gCAAqC,UAAU,EAAE,KAAK;AAAA,IACxD,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAAuC;AAC9D,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAGO,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAE3D,IAAMC,0BAGK,iCAAiBA,uBAA4B;AAExD,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAE3D,IAAMC,qCAGK,iCAAiBA,kCAAuC;AAEnE,IAAMC,6CAGK;AAAA,EAChBA;AACF;AACO,IAAMN,6BAGK,iCAAiB,+BAA+B;","names":["payload","transformPaths","SortOrder","WebhookIdentityType","createPayinsConfiguration","getPayinsConfiguration","updatePayinsConfiguration","queryPayinsConfigurations","bulkUpdatePayinsConfigurationTags","bulkUpdatePayinsConfigurationTagsByFilter","createPayinsConfiguration","getPayinsConfiguration","updatePayinsConfiguration","queryPayinsConfigurations","typedQueryPayinsConfigurations","bulkUpdatePayinsConfigurationTags","bulkUpdatePayinsConfigurationTagsByFilter","queryPayinsConfigurations","typedQueryPayinsConfigurations","createPayinsConfiguration","getPayinsConfiguration","updatePayinsConfiguration","bulkUpdatePayinsConfigurationTags","bulkUpdatePayinsConfigurationTagsByFilter"]}