@wix/auto_sdk_payments_payment-acceptance-configurations 1.0.25 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../index.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.ts"],"sourcesContent":["export * from './src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js';\n","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 { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** PaymentAcceptanceConfiguration */\nexport interface PaymentAcceptanceConfiguration {\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?: PaymentAcceptanceRule[];\n /**\n * revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Date when PaymentAcceptanceConfiguration was created\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date when PaymentAcceptanceConfiguration was updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\nexport interface PaymentAcceptanceRule {\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_enabled */\n merchantEnabled?: 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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\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 CreatePaymentAcceptanceConfigurationRequest {\n /** PaymentAcceptanceConfiguration to be created. */\n paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration;\n}\n\nexport interface CreatePaymentAcceptanceConfigurationResponse {\n /** The created PaymentAcceptanceConfiguration. */\n paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;\n}\n\nexport interface GetPaymentAcceptanceConfigurationRequest {\n /**\n * ID of the PaymentAcceptanceConfiguration to retrieve.\n * @format GUID\n */\n paymentAcceptanceConfigurationId: string;\n}\n\nexport interface GetPaymentAcceptanceConfigurationResponse {\n /** The requested PaymentAcceptanceConfiguration. */\n paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;\n}\n\nexport interface UpdatePaymentAcceptanceConfigurationRequest {\n /** PaymentAcceptanceConfiguration to be updated, may be partial. */\n paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration;\n}\n\nexport interface UpdatePaymentAcceptanceConfigurationResponse {\n /** Updated PaymentAcceptanceConfiguration. */\n paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;\n}\n\nexport interface DeletePaymentAcceptanceConfigurationRequest {\n /**\n * Id of payment acceptance configuration to delete\n * @format GUID\n */\n paymentAcceptanceConfigurationId: string;\n}\n\nexport interface DeletePaymentAcceptanceConfigurationResponse {}\n\nexport interface QueryPaymentAcceptanceConfigurationsRequest {\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 QueryPaymentAcceptanceConfigurationsResponse {\n /** List of PaymentAcceptanceConfigurations. */\n paymentAcceptanceConfigurations?: PaymentAcceptanceConfiguration[];\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 BulkUpdatePaymentAcceptanceConfigurationTagsRequest {\n /**\n * List of NileProtoTagsEntities 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 BulkUpdatePaymentAcceptanceConfigurationTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdatePaymentAcceptanceConfigurationTagsResult[];\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 BulkUpdatePaymentAcceptanceConfigurationTagsResult {\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 BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest {\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 BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse {\n /**\n * Job ID\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface Empty {}\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 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 PaymentAcceptanceConfiguration.\n * @param paymentAcceptanceConfiguration - PaymentAcceptanceConfiguration to be created.\n * @internal\n * @documentationMaturity preview\n * @requiredField paymentAcceptanceConfiguration\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_CREATE\n * @returns The created PaymentAcceptanceConfiguration.\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.CreatePaymentAcceptanceConfiguration\n */\nexport async function createPaymentAcceptanceConfiguration(\n paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration\n): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\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 paymentAcceptanceConfiguration: paymentAcceptanceConfiguration,\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.createPaymentAcceptanceConfiguration(\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 ?.paymentAcceptanceConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { paymentAcceptanceConfiguration: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['paymentAcceptanceConfiguration']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PaymentAcceptanceConfiguration.\n * @param paymentAcceptanceConfigurationId - ID of the PaymentAcceptanceConfiguration to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField paymentAcceptanceConfigurationId\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_READ\n * @returns The requested PaymentAcceptanceConfiguration.\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.GetPaymentAcceptanceConfiguration\n */\nexport async function getPaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId: string\n): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\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 paymentAcceptanceConfigurationId: paymentAcceptanceConfigurationId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.getPaymentAcceptanceConfiguration(\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 ?.paymentAcceptanceConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { paymentAcceptanceConfigurationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['paymentAcceptanceConfigurationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a PaymentAcceptanceConfiguration.\n *\n *\n * Each time the PaymentAcceptanceConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PaymentAcceptanceConfiguration.\n * This ensures you're working with the latest PaymentAcceptanceConfiguration\n * and prevents unintended overwrites.\n * @param _id - id\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField paymentAcceptanceConfiguration\n * @requiredField paymentAcceptanceConfiguration.revision\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE\n * @returns Updated PaymentAcceptanceConfiguration.\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.UpdatePaymentAcceptanceConfiguration\n */\nexport async function updatePaymentAcceptanceConfiguration(\n _id: string,\n paymentAcceptanceConfiguration: NonNullablePaths<\n UpdatePaymentAcceptanceConfiguration,\n `revision`,\n 2\n >\n): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\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 paymentAcceptanceConfiguration: {\n ...paymentAcceptanceConfiguration,\n id: _id,\n },\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.updatePaymentAcceptanceConfiguration(\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 ?.paymentAcceptanceConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { paymentAcceptanceConfiguration: '$[1]' },\n explicitPathsToArguments: {\n 'paymentAcceptanceConfiguration.id': '$[0]',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'paymentAcceptanceConfiguration']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdatePaymentAcceptanceConfiguration {\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?: PaymentAcceptanceRule[];\n /**\n * revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Date when PaymentAcceptanceConfiguration was created\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date when PaymentAcceptanceConfiguration was updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\n/**\n * Delete a PaymentAcceptanceConfiguration\n * @param paymentAcceptanceConfigurationId - Id of payment acceptance configuration to delete\n * @internal\n * @documentationMaturity preview\n * @requiredField paymentAcceptanceConfigurationId\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_DELETE\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.DeletePaymentAcceptanceConfiguration\n */\nexport async function deletePaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n paymentAcceptanceConfigurationId: paymentAcceptanceConfigurationId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.deletePaymentAcceptanceConfiguration(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { paymentAcceptanceConfigurationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['paymentAcceptanceConfigurationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of PaymentAcceptanceConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PaymentAcceptanceConfigurations can be returned per request.\n *\n * To learn how to query PaymentAcceptanceConfigurations, 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.PAYMENT_ACCEPTANCE_CONFIGURATION_READ\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.QueryPaymentAcceptanceConfigurations\n */\nexport function queryPaymentAcceptanceConfigurations(): PaymentAcceptanceConfigurationsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n PaymentAcceptanceConfiguration,\n 'CURSOR',\n QueryPaymentAcceptanceConfigurationsRequest,\n QueryPaymentAcceptanceConfigurationsResponse\n >({\n func: async (payload: QueryPaymentAcceptanceConfigurationsRequest) => {\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.queryPaymentAcceptanceConfigurations(\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: (\n query: QueryPaymentAcceptanceConfigurationsRequest['query']\n ) => {\n const args = [query, {}] as [\n QueryPaymentAcceptanceConfigurationsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryPaymentAcceptanceConfigurationsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.paymentAcceptanceConfigurations,\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 PaymentAcceptanceConfigurationsQueryResult\n extends QueryCursorResult {\n items: PaymentAcceptanceConfiguration[];\n query: PaymentAcceptanceConfigurationsQueryBuilder;\n next: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;\n prev: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;\n}\n\nexport interface PaymentAcceptanceConfigurationsQueryBuilder {\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any[]\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'appId'\n | 'rules.paymentMethodTypeId'\n | 'rules.accountConnectionId'\n | 'rules.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | '_id'\n | 'appId'\n | 'rules.paymentMethodTypeId'\n | 'rules.accountConnectionId'\n | 'rules.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: boolean\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;\n}\n\n/**\n * Synchronously update tags on multiple PaymentAcceptanceConfigurations, by list of PaymentAcceptanceConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of NileProtoTagsEntities that their tags will update.\n * @internal\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE_TAGS\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTags\n */\nexport async function bulkUpdatePaymentAcceptanceConfigurationTags(\n ids: string[],\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\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 ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.bulkUpdatePaymentAcceptanceConfigurationTags(\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 BulkUpdatePaymentAcceptanceConfigurationTagsOptions {\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 PaymentAcceptanceConfigurations, by provided filter\n * An empty filter will update all PaymentAcceptanceConfigurations\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 * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE_TAGS\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n */\nexport async function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions\n): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\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 ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\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 BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions {\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 resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\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_payment-acceptance-configurations';\n\n/** Creates a PaymentAcceptanceConfiguration. */\nexport function createPaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __createPaymentAcceptanceConfiguration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.CreatePaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/payment-acceptance-configurations',\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: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPaymentAcceptanceConfiguration;\n}\n\n/** Retrieves a PaymentAcceptanceConfiguration. */\nexport function getPaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPaymentAcceptanceConfiguration({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.GetPaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}',\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: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPaymentAcceptanceConfiguration;\n}\n\n/**\n * Updates a PaymentAcceptanceConfiguration.\n *\n *\n * Each time the PaymentAcceptanceConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PaymentAcceptanceConfiguration.\n * This ensures you're working with the latest PaymentAcceptanceConfiguration\n * and prevents unintended overwrites.\n */\nexport function updatePaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePaymentAcceptanceConfiguration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.UpdatePaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/payment-acceptance-configurations/{paymentAcceptanceConfiguration.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: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePaymentAcceptanceConfiguration;\n}\n\n/** Delete a PaymentAcceptanceConfiguration */\nexport function deletePaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __deletePaymentAcceptanceConfiguration({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.DeletePaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deletePaymentAcceptanceConfiguration;\n}\n\n/**\n * Retrieves a list of PaymentAcceptanceConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PaymentAcceptanceConfigurations can be returned per request.\n *\n * To learn how to query PaymentAcceptanceConfigurations, 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 queryPaymentAcceptanceConfigurations(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPaymentAcceptanceConfigurations({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.QueryPaymentAcceptanceConfigurations',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/payment-acceptance-configurations/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'paymentAcceptanceConfigurations.createdDate' },\n { path: 'paymentAcceptanceConfigurations.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/payment-acceptance-configurations/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPaymentAcceptanceConfigurations;\n}\n\n/**\n * Synchronously update tags on multiple PaymentAcceptanceConfigurations, by list of PaymentAcceptanceConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdatePaymentAcceptanceConfigurationTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdatePaymentAcceptanceConfigurationTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/bulk/payment-acceptance-configurations/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdatePaymentAcceptanceConfigurationTags;\n}\n\n/**\n * Asynchronously update tags on multiple PaymentAcceptanceConfigurations, by provided filter\n * An empty filter will update all PaymentAcceptanceConfigurations\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdatePaymentAcceptanceConfigurationTagsByFilter({\n host,\n }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/bulk/payment-acceptance-configurations/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdatePaymentAcceptanceConfigurationTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n BulkUpdatePaymentAcceptanceConfigurationTagsOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\n PaymentAcceptanceConfiguration,\n PaymentAcceptanceConfigurationsQueryBuilder,\n UpdatePaymentAcceptanceConfiguration,\n bulkUpdatePaymentAcceptanceConfigurationTags as universalBulkUpdatePaymentAcceptanceConfigurationTags,\n bulkUpdatePaymentAcceptanceConfigurationTagsByFilter as universalBulkUpdatePaymentAcceptanceConfigurationTagsByFilter,\n createPaymentAcceptanceConfiguration as universalCreatePaymentAcceptanceConfiguration,\n deletePaymentAcceptanceConfiguration as universalDeletePaymentAcceptanceConfiguration,\n getPaymentAcceptanceConfiguration as universalGetPaymentAcceptanceConfiguration,\n queryPaymentAcceptanceConfigurations as universalQueryPaymentAcceptanceConfigurations,\n updatePaymentAcceptanceConfiguration as universalUpdatePaymentAcceptanceConfiguration,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\n/** @internal */\nexport function createPaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): CreatePaymentAcceptanceConfigurationSignature {\n return (paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration) =>\n universalCreatePaymentAcceptanceConfiguration(\n paymentAcceptanceConfiguration,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreatePaymentAcceptanceConfigurationSignature {\n /**\n * Creates a PaymentAcceptanceConfiguration.\n * @param - PaymentAcceptanceConfiguration to be created.\n * @returns The created PaymentAcceptanceConfiguration.\n */\n (paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function getPaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): GetPaymentAcceptanceConfigurationSignature {\n return (paymentAcceptanceConfigurationId: string) =>\n universalGetPaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPaymentAcceptanceConfigurationSignature {\n /**\n * Retrieves a PaymentAcceptanceConfiguration.\n * @param - ID of the PaymentAcceptanceConfiguration to retrieve.\n * @returns The requested PaymentAcceptanceConfiguration.\n */\n (paymentAcceptanceConfigurationId: string): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function updatePaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): UpdatePaymentAcceptanceConfigurationSignature {\n return (\n _id: string,\n paymentAcceptanceConfiguration: NonNullablePaths<\n UpdatePaymentAcceptanceConfiguration,\n `revision`,\n 2\n >\n ) =>\n universalUpdatePaymentAcceptanceConfiguration(\n _id,\n paymentAcceptanceConfiguration,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdatePaymentAcceptanceConfigurationSignature {\n /**\n * Updates a PaymentAcceptanceConfiguration.\n *\n *\n * Each time the PaymentAcceptanceConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PaymentAcceptanceConfiguration.\n * This ensures you're working with the latest PaymentAcceptanceConfiguration\n * and prevents unintended overwrites.\n * @param - id\n * @returns Updated PaymentAcceptanceConfiguration.\n */\n (\n _id: string,\n paymentAcceptanceConfiguration: NonNullablePaths<\n UpdatePaymentAcceptanceConfiguration,\n `revision`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function deletePaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): DeletePaymentAcceptanceConfigurationSignature {\n return (paymentAcceptanceConfigurationId: string) =>\n universalDeletePaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeletePaymentAcceptanceConfigurationSignature {\n /**\n * Delete a PaymentAcceptanceConfiguration\n * @param - Id of payment acceptance configuration to delete\n */\n (paymentAcceptanceConfigurationId: string): Promise<void>;\n}\n\n/** @internal */\nexport function queryPaymentAcceptanceConfigurations(\n httpClient: HttpClient\n): QueryPaymentAcceptanceConfigurationsSignature {\n return () =>\n universalQueryPaymentAcceptanceConfigurations(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryPaymentAcceptanceConfigurationsSignature {\n /**\n * Retrieves a list of PaymentAcceptanceConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PaymentAcceptanceConfigurations can be returned per request.\n *\n * To learn how to query PaymentAcceptanceConfigurations, 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 (): PaymentAcceptanceConfigurationsQueryBuilder;\n}\n\n/** @internal */\nexport function bulkUpdatePaymentAcceptanceConfigurationTags(\n httpClient: HttpClient\n): BulkUpdatePaymentAcceptanceConfigurationTagsSignature {\n return (\n ids: string[],\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsOptions\n ) =>\n universalBulkUpdatePaymentAcceptanceConfigurationTags(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdatePaymentAcceptanceConfigurationTagsSignature {\n /**\n * Synchronously update tags on multiple PaymentAcceptanceConfigurations, by list of PaymentAcceptanceConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - List of NileProtoTagsEntities that their tags will update.\n */\n (\n ids: string[],\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\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 bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n httpClient: HttpClient\n): BulkUpdatePaymentAcceptanceConfigurationTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions\n ) =>\n universalBulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterSignature {\n /**\n * Asynchronously update tags on multiple PaymentAcceptanceConfigurations, by provided filter\n * An empty filter will update all PaymentAcceptanceConfigurations\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?: BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n `jobId`,\n 2\n >\n >;\n}\n\nexport {\n ActionEvent,\n ApplicationError,\n BulkActionMetadata,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n BulkUpdatePaymentAcceptanceConfigurationTagsOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\n BulkUpdatePaymentAcceptanceConfigurationTagsResult,\n CreatePaymentAcceptanceConfigurationRequest,\n CreatePaymentAcceptanceConfigurationResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeletePaymentAcceptanceConfigurationRequest,\n DeletePaymentAcceptanceConfigurationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetPaymentAcceptanceConfigurationRequest,\n GetPaymentAcceptanceConfigurationResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MessageEnvelope,\n PaymentAcceptanceConfiguration,\n PaymentAcceptanceConfigurationsQueryBuilder,\n PaymentAcceptanceConfigurationsQueryResult,\n PaymentAcceptanceRule,\n QueryPaymentAcceptanceConfigurationsRequest,\n QueryPaymentAcceptanceConfigurationsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n TagList,\n Tags,\n UpdatePaymentAcceptanceConfiguration,\n UpdatePaymentAcceptanceConfigurationRequest,\n UpdatePaymentAcceptanceConfigurationResponse,\n WebhookIdentityType,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\n","import {\n createPaymentAcceptanceConfiguration as publicCreatePaymentAcceptanceConfiguration,\n getPaymentAcceptanceConfiguration as publicGetPaymentAcceptanceConfiguration,\n updatePaymentAcceptanceConfiguration as publicUpdatePaymentAcceptanceConfiguration,\n deletePaymentAcceptanceConfiguration as publicDeletePaymentAcceptanceConfiguration,\n queryPaymentAcceptanceConfigurations as publicQueryPaymentAcceptanceConfigurations,\n bulkUpdatePaymentAcceptanceConfigurationTags as publicBulkUpdatePaymentAcceptanceConfigurationTags,\n bulkUpdatePaymentAcceptanceConfigurationTagsByFilter as publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const createPaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicCreatePaymentAcceptanceConfiguration> &\n typeof publicCreatePaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicCreatePaymentAcceptanceConfiguration);\n/** @internal */\nexport const getPaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicGetPaymentAcceptanceConfiguration> &\n typeof publicGetPaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicGetPaymentAcceptanceConfiguration);\n/** @internal */\nexport const updatePaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicUpdatePaymentAcceptanceConfiguration> &\n typeof publicUpdatePaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicUpdatePaymentAcceptanceConfiguration);\n/** @internal */\nexport const deletePaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicDeletePaymentAcceptanceConfiguration> &\n typeof publicDeletePaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicDeletePaymentAcceptanceConfiguration);\n/** @internal */\nexport const queryPaymentAcceptanceConfigurations: MaybeContext<\n BuildRESTFunction<typeof publicQueryPaymentAcceptanceConfigurations> &\n typeof publicQueryPaymentAcceptanceConfigurations\n> = /*#__PURE__*/ createRESTModule(publicQueryPaymentAcceptanceConfigurations);\n/** @internal */\nexport const bulkUpdatePaymentAcceptanceConfigurationTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdatePaymentAcceptanceConfigurationTags> &\n typeof publicBulkUpdatePaymentAcceptanceConfigurationTags\n> = /*#__PURE__*/ createRESTModule(\n publicBulkUpdatePaymentAcceptanceConfigurationTags\n);\n/** @internal */\nexport const bulkUpdatePaymentAcceptanceConfigurationTagsByFilter: MaybeContext<\n BuildRESTFunction<\n typeof publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n > &\n typeof publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n> = /*#__PURE__*/ createRESTModule(\n publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\nexport {\n PaymentAcceptanceConfiguration,\n PaymentAcceptanceRule,\n ExtendedFields,\n Tags,\n TagList,\n CreatePaymentAcceptanceConfigurationRequest,\n CreatePaymentAcceptanceConfigurationResponse,\n GetPaymentAcceptanceConfigurationRequest,\n GetPaymentAcceptanceConfigurationResponse,\n UpdatePaymentAcceptanceConfigurationRequest,\n UpdatePaymentAcceptanceConfigurationResponse,\n DeletePaymentAcceptanceConfigurationRequest,\n DeletePaymentAcceptanceConfigurationResponse,\n QueryPaymentAcceptanceConfigurationsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryPaymentAcceptanceConfigurationsResponse,\n CursorPagingMetadata,\n Cursors,\n BulkUpdatePaymentAcceptanceConfigurationTagsRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\n ItemMetadata,\n ApplicationError,\n BulkUpdatePaymentAcceptanceConfigurationTagsResult,\n BulkActionMetadata,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n UpdatePaymentAcceptanceConfiguration,\n PaymentAcceptanceConfigurationsQueryResult,\n PaymentAcceptanceConfigurationsQueryBuilder,\n BulkUpdatePaymentAcceptanceConfigurationTagsOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,sDAAAA;AAAA,EAAA,4DAAAC;AAAA,EAAA,4CAAAC;AAAA,EAAA,4CAAAC;AAAA,EAAA,yCAAAC;AAAA,EAAA,4CAAAC;AAAA,EAAA,4CAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,4FACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,qCACd,SAC4B;AAC5B,WAAS,uCAAuC,EAAE,KAAK,GAAQ;AAC7D,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,6CAA6C;AAAA,UACrD,EAAE,MAAM,6CAA6C;AAAA,QACvD;AAAA,MACF;AAAA,IACF,CAAC;AACD,UAAM,WAAW;AAAA,MACf,YACE;AAAA,MACF,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,6CAA6C;AAAA,YACrD,EAAE,MAAM,6CAA6C;AAAA,UACvD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACL;AA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ACd,YACuD;AACvD,SAAO,CACL,KACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA4BO,SAASC,sDACd,YAC+D;AAC/D,SAAO,CACL,QACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClOA,IAAAC,uBAAiC;AAI1B,IAAMC,wCAGK,2DAAiBA,qCAA0C;AAEtE,IAAMC,qCAGK,2DAAiBA,kCAAuC;AAEnE,IAAMC,wCAGK,2DAAiBA,qCAA0C;AAEtE,IAAMC,wCAGK,2DAAiBA,qCAA0C;AAEtE,IAAMC,wCAGK,2DAAiBA,qCAA0C;AAEtE,IAAMC,gDAGK;AAAA,EAChBA;AACF;AAEO,IAAMC,wDAKK;AAAA,EAChBA;AACF;","names":["bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter","createPaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","getPaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","updatePaymentAcceptanceConfiguration","import_timestamp","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","createPaymentAcceptanceConfiguration","sdkTransformError","getPaymentAcceptanceConfiguration","updatePaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter","createPaymentAcceptanceConfiguration","getPaymentAcceptanceConfiguration","updatePaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter","import_rest_modules","createPaymentAcceptanceConfiguration","getPaymentAcceptanceConfiguration","updatePaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter"]}
1
+ {"version":3,"sources":["../../../index.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.ts","../../../src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.ts"],"sourcesContent":["export * from './src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js';\n","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 { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** PaymentAcceptanceConfiguration */\nexport interface PaymentAcceptanceConfiguration {\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?: PaymentAcceptanceRule[];\n /**\n * revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Date when PaymentAcceptanceConfiguration was created\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date when PaymentAcceptanceConfiguration was updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\nexport interface PaymentAcceptanceRule {\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_enabled */\n merchantEnabled?: 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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\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 CreatePaymentAcceptanceConfigurationRequest {\n /** PaymentAcceptanceConfiguration to be created. */\n paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration;\n}\n\nexport interface CreatePaymentAcceptanceConfigurationResponse {\n /** The created PaymentAcceptanceConfiguration. */\n paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;\n}\n\nexport interface GetPaymentAcceptanceConfigurationRequest {\n /**\n * ID of the PaymentAcceptanceConfiguration to retrieve.\n * @format GUID\n */\n paymentAcceptanceConfigurationId: string;\n}\n\nexport interface GetPaymentAcceptanceConfigurationResponse {\n /** The requested PaymentAcceptanceConfiguration. */\n paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;\n}\n\nexport interface UpdatePaymentAcceptanceConfigurationRequest {\n /** PaymentAcceptanceConfiguration to be updated, may be partial. */\n paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration;\n}\n\nexport interface UpdatePaymentAcceptanceConfigurationResponse {\n /** Updated PaymentAcceptanceConfiguration. */\n paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;\n}\n\nexport interface DeletePaymentAcceptanceConfigurationRequest {\n /**\n * Id of payment acceptance configuration to delete\n * @format GUID\n */\n paymentAcceptanceConfigurationId: string;\n}\n\nexport interface DeletePaymentAcceptanceConfigurationResponse {}\n\nexport interface QueryPaymentAcceptanceConfigurationsRequest {\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 QueryPaymentAcceptanceConfigurationsResponse {\n /** List of PaymentAcceptanceConfigurations. */\n paymentAcceptanceConfigurations?: PaymentAcceptanceConfiguration[];\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 BulkUpdatePaymentAcceptanceConfigurationTagsRequest {\n /**\n * List of NileProtoTagsEntities 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 BulkUpdatePaymentAcceptanceConfigurationTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdatePaymentAcceptanceConfigurationTagsResult[];\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 BulkUpdatePaymentAcceptanceConfigurationTagsResult {\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 BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest {\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 BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse {\n /**\n * Job ID\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface Empty {}\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 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 PaymentAcceptanceConfiguration.\n * @param paymentAcceptanceConfiguration - PaymentAcceptanceConfiguration to be created.\n * @internal\n * @documentationMaturity preview\n * @requiredField paymentAcceptanceConfiguration\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_CREATE\n * @returns The created PaymentAcceptanceConfiguration.\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.CreatePaymentAcceptanceConfiguration\n */\nexport async function createPaymentAcceptanceConfiguration(\n paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration\n): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\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 paymentAcceptanceConfiguration: paymentAcceptanceConfiguration,\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.createPaymentAcceptanceConfiguration(\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 ?.paymentAcceptanceConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { paymentAcceptanceConfiguration: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['paymentAcceptanceConfiguration']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PaymentAcceptanceConfiguration.\n * @param paymentAcceptanceConfigurationId - ID of the PaymentAcceptanceConfiguration to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField paymentAcceptanceConfigurationId\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_READ\n * @returns The requested PaymentAcceptanceConfiguration.\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.GetPaymentAcceptanceConfiguration\n */\nexport async function getPaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId: string\n): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\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 paymentAcceptanceConfigurationId: paymentAcceptanceConfigurationId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.getPaymentAcceptanceConfiguration(\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 ?.paymentAcceptanceConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { paymentAcceptanceConfigurationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['paymentAcceptanceConfigurationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a PaymentAcceptanceConfiguration.\n *\n *\n * Each time the PaymentAcceptanceConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PaymentAcceptanceConfiguration.\n * This ensures you're working with the latest PaymentAcceptanceConfiguration\n * and prevents unintended overwrites.\n * @param _id - id\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField paymentAcceptanceConfiguration\n * @requiredField paymentAcceptanceConfiguration.revision\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE\n * @returns Updated PaymentAcceptanceConfiguration.\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.UpdatePaymentAcceptanceConfiguration\n */\nexport async function updatePaymentAcceptanceConfiguration(\n _id: string,\n paymentAcceptanceConfiguration: NonNullablePaths<\n UpdatePaymentAcceptanceConfiguration,\n `revision`,\n 2\n >\n): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\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 paymentAcceptanceConfiguration: {\n ...paymentAcceptanceConfiguration,\n id: _id,\n },\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.updatePaymentAcceptanceConfiguration(\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 ?.paymentAcceptanceConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { paymentAcceptanceConfiguration: '$[1]' },\n explicitPathsToArguments: {\n 'paymentAcceptanceConfiguration.id': '$[0]',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'paymentAcceptanceConfiguration']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdatePaymentAcceptanceConfiguration {\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?: PaymentAcceptanceRule[];\n /**\n * revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Date when PaymentAcceptanceConfiguration was created\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date when PaymentAcceptanceConfiguration was updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\n/**\n * Delete a PaymentAcceptanceConfiguration\n * @param paymentAcceptanceConfigurationId - Id of payment acceptance configuration to delete\n * @internal\n * @documentationMaturity preview\n * @requiredField paymentAcceptanceConfigurationId\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_DELETE\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.DeletePaymentAcceptanceConfiguration\n */\nexport async function deletePaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n paymentAcceptanceConfigurationId: paymentAcceptanceConfigurationId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.deletePaymentAcceptanceConfiguration(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { paymentAcceptanceConfigurationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['paymentAcceptanceConfigurationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of PaymentAcceptanceConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PaymentAcceptanceConfigurations can be returned per request.\n *\n * To learn how to query PaymentAcceptanceConfigurations, 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.PAYMENT_ACCEPTANCE_CONFIGURATION_READ\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.QueryPaymentAcceptanceConfigurations\n */\nexport function queryPaymentAcceptanceConfigurations(): PaymentAcceptanceConfigurationsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n PaymentAcceptanceConfiguration,\n 'CURSOR',\n QueryPaymentAcceptanceConfigurationsRequest,\n QueryPaymentAcceptanceConfigurationsResponse\n >({\n func: async (payload: QueryPaymentAcceptanceConfigurationsRequest) => {\n const reqOpts =\n ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.queryPaymentAcceptanceConfigurations(\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: (\n query: QueryPaymentAcceptanceConfigurationsRequest['query']\n ) => {\n const args = [query, {}] as [\n QueryPaymentAcceptanceConfigurationsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryPaymentAcceptanceConfigurationsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.paymentAcceptanceConfigurations,\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 PaymentAcceptanceConfigurationsQueryResult\n extends QueryCursorResult {\n items: PaymentAcceptanceConfiguration[];\n query: PaymentAcceptanceConfigurationsQueryBuilder;\n next: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;\n prev: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;\n}\n\nexport interface PaymentAcceptanceConfigurationsQueryBuilder {\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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 ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any[]\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'appId'\n | 'rules.paymentMethodTypeId'\n | 'rules.accountConnectionId'\n | 'rules.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | '_id'\n | 'appId'\n | 'rules.paymentMethodTypeId'\n | 'rules.accountConnectionId'\n | 'rules.merchantEnabled'\n | '_createdDate'\n | '_updatedDate',\n value: boolean\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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.merchantEnabled'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => PaymentAcceptanceConfigurationsQueryBuilder;\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) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => PaymentAcceptanceConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;\n}\n\n/**\n * Synchronously update tags on multiple PaymentAcceptanceConfigurations, by list of PaymentAcceptanceConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of NileProtoTagsEntities that their tags will update.\n * @internal\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE_TAGS\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTags\n */\nexport async function bulkUpdatePaymentAcceptanceConfigurationTags(\n ids: string[],\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\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 ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.bulkUpdatePaymentAcceptanceConfigurationTags(\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 BulkUpdatePaymentAcceptanceConfigurationTagsOptions {\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 PaymentAcceptanceConfigurations, by provided filter\n * An empty filter will update all PaymentAcceptanceConfigurations\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 * @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE_TAGS\n * @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n */\nexport async function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions\n): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\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 ambassadorWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfiguration.bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\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 BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions {\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 resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/bo-payment-acceptance-configurations/v1',\n destPath: '/v1/bo-payment-acceptance-configurations',\n },\n {\n srcPath: '/v1/bo-payment-acceptance-configurations',\n destPath: '/v1/bo-payment-acceptance-configurations',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/bo-payment-acceptance-configurations/v1',\n destPath: '/v1/bo-payment-acceptance-configurations',\n },\n {\n srcPath: '/v1/bo-payment-acceptance-configurations',\n destPath: '/v1/bo-payment-acceptance-configurations',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/bo-payment-acceptance-configurations/v1',\n destPath: '/v1/bo-payment-acceptance-configurations',\n },\n {\n srcPath: '/v1/bo-payment-acceptance-configurations',\n destPath: '/v1/bo-payment-acceptance-configurations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_payment-acceptance-configurations';\n\n/** Creates a PaymentAcceptanceConfiguration. */\nexport function createPaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __createPaymentAcceptanceConfiguration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.CreatePaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/payment-acceptance-configurations',\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: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPaymentAcceptanceConfiguration;\n}\n\n/** Retrieves a PaymentAcceptanceConfiguration. */\nexport function getPaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPaymentAcceptanceConfiguration({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.GetPaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}',\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: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPaymentAcceptanceConfiguration;\n}\n\n/**\n * Updates a PaymentAcceptanceConfiguration.\n *\n *\n * Each time the PaymentAcceptanceConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PaymentAcceptanceConfiguration.\n * This ensures you're working with the latest PaymentAcceptanceConfiguration\n * and prevents unintended overwrites.\n */\nexport function updatePaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePaymentAcceptanceConfiguration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.UpdatePaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/payment-acceptance-configurations/{paymentAcceptanceConfiguration.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: 'paymentAcceptanceConfiguration.createdDate' },\n { path: 'paymentAcceptanceConfiguration.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePaymentAcceptanceConfiguration;\n}\n\n/** Delete a PaymentAcceptanceConfiguration */\nexport function deletePaymentAcceptanceConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __deletePaymentAcceptanceConfiguration({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.DeletePaymentAcceptanceConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deletePaymentAcceptanceConfiguration;\n}\n\n/**\n * Retrieves a list of PaymentAcceptanceConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PaymentAcceptanceConfigurations can be returned per request.\n *\n * To learn how to query PaymentAcceptanceConfigurations, 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 queryPaymentAcceptanceConfigurations(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPaymentAcceptanceConfigurations({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.QueryPaymentAcceptanceConfigurations',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/payment-acceptance-configurations/query',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'paymentAcceptanceConfigurations.createdDate' },\n { path: 'paymentAcceptanceConfigurations.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/payment-acceptance-configurations/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPaymentAcceptanceConfigurations;\n}\n\n/**\n * Synchronously update tags on multiple PaymentAcceptanceConfigurations, by list of PaymentAcceptanceConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdatePaymentAcceptanceConfigurationTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdatePaymentAcceptanceConfigurationTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath: '/v1/bulk/payment-acceptance-configurations/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdatePaymentAcceptanceConfigurationTags;\n}\n\n/**\n * Asynchronously update tags on multiple PaymentAcceptanceConfigurations, by provided filter\n * An empty filter will update all PaymentAcceptanceConfigurations\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdatePaymentAcceptanceConfigurationTagsByFilter({\n host,\n }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(\n {\n protoPath:\n '/v1/bulk/payment-acceptance-configurations/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdatePaymentAcceptanceConfigurationTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n BulkUpdatePaymentAcceptanceConfigurationTagsOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\n PaymentAcceptanceConfiguration,\n PaymentAcceptanceConfigurationsQueryBuilder,\n UpdatePaymentAcceptanceConfiguration,\n bulkUpdatePaymentAcceptanceConfigurationTags as universalBulkUpdatePaymentAcceptanceConfigurationTags,\n bulkUpdatePaymentAcceptanceConfigurationTagsByFilter as universalBulkUpdatePaymentAcceptanceConfigurationTagsByFilter,\n createPaymentAcceptanceConfiguration as universalCreatePaymentAcceptanceConfiguration,\n deletePaymentAcceptanceConfiguration as universalDeletePaymentAcceptanceConfiguration,\n getPaymentAcceptanceConfiguration as universalGetPaymentAcceptanceConfiguration,\n queryPaymentAcceptanceConfigurations as universalQueryPaymentAcceptanceConfigurations,\n updatePaymentAcceptanceConfiguration as universalUpdatePaymentAcceptanceConfiguration,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\n/** @internal */\nexport function createPaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): CreatePaymentAcceptanceConfigurationSignature {\n return (paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration) =>\n universalCreatePaymentAcceptanceConfiguration(\n paymentAcceptanceConfiguration,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreatePaymentAcceptanceConfigurationSignature {\n /**\n * Creates a PaymentAcceptanceConfiguration.\n * @param - PaymentAcceptanceConfiguration to be created.\n * @returns The created PaymentAcceptanceConfiguration.\n */\n (paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function getPaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): GetPaymentAcceptanceConfigurationSignature {\n return (paymentAcceptanceConfigurationId: string) =>\n universalGetPaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPaymentAcceptanceConfigurationSignature {\n /**\n * Retrieves a PaymentAcceptanceConfiguration.\n * @param - ID of the PaymentAcceptanceConfiguration to retrieve.\n * @returns The requested PaymentAcceptanceConfiguration.\n */\n (paymentAcceptanceConfigurationId: string): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function updatePaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): UpdatePaymentAcceptanceConfigurationSignature {\n return (\n _id: string,\n paymentAcceptanceConfiguration: NonNullablePaths<\n UpdatePaymentAcceptanceConfiguration,\n `revision`,\n 2\n >\n ) =>\n universalUpdatePaymentAcceptanceConfiguration(\n _id,\n paymentAcceptanceConfiguration,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdatePaymentAcceptanceConfigurationSignature {\n /**\n * Updates a PaymentAcceptanceConfiguration.\n *\n *\n * Each time the PaymentAcceptanceConfiguration is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the PaymentAcceptanceConfiguration.\n * This ensures you're working with the latest PaymentAcceptanceConfiguration\n * and prevents unintended overwrites.\n * @param - id\n * @returns Updated PaymentAcceptanceConfiguration.\n */\n (\n _id: string,\n paymentAcceptanceConfiguration: NonNullablePaths<\n UpdatePaymentAcceptanceConfiguration,\n `revision`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n PaymentAcceptanceConfiguration,\n | `rules`\n | `rules.${number}.paymentMethodTypeId`\n | `rules.${number}.accountConnectionId`\n | `rules.${number}.merchantEnabled`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function deletePaymentAcceptanceConfiguration(\n httpClient: HttpClient\n): DeletePaymentAcceptanceConfigurationSignature {\n return (paymentAcceptanceConfigurationId: string) =>\n universalDeletePaymentAcceptanceConfiguration(\n paymentAcceptanceConfigurationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeletePaymentAcceptanceConfigurationSignature {\n /**\n * Delete a PaymentAcceptanceConfiguration\n * @param - Id of payment acceptance configuration to delete\n */\n (paymentAcceptanceConfigurationId: string): Promise<void>;\n}\n\n/** @internal */\nexport function queryPaymentAcceptanceConfigurations(\n httpClient: HttpClient\n): QueryPaymentAcceptanceConfigurationsSignature {\n return () =>\n universalQueryPaymentAcceptanceConfigurations(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryPaymentAcceptanceConfigurationsSignature {\n /**\n * Retrieves a list of PaymentAcceptanceConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PaymentAcceptanceConfigurations can be returned per request.\n *\n * To learn how to query PaymentAcceptanceConfigurations, 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 (): PaymentAcceptanceConfigurationsQueryBuilder;\n}\n\n/** @internal */\nexport function bulkUpdatePaymentAcceptanceConfigurationTags(\n httpClient: HttpClient\n): BulkUpdatePaymentAcceptanceConfigurationTagsSignature {\n return (\n ids: string[],\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsOptions\n ) =>\n universalBulkUpdatePaymentAcceptanceConfigurationTags(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdatePaymentAcceptanceConfigurationTagsSignature {\n /**\n * Synchronously update tags on multiple PaymentAcceptanceConfigurations, by list of PaymentAcceptanceConfigurations ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - List of NileProtoTagsEntities that their tags will update.\n */\n (\n ids: string[],\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\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 bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n httpClient: HttpClient\n): BulkUpdatePaymentAcceptanceConfigurationTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions\n ) =>\n universalBulkUpdatePaymentAcceptanceConfigurationTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterSignature {\n /**\n * Asynchronously update tags on multiple PaymentAcceptanceConfigurations, by provided filter\n * An empty filter will update all PaymentAcceptanceConfigurations\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?: BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n `jobId`,\n 2\n >\n >;\n}\n\nexport {\n ActionEvent,\n ApplicationError,\n BulkActionMetadata,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n BulkUpdatePaymentAcceptanceConfigurationTagsOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\n BulkUpdatePaymentAcceptanceConfigurationTagsResult,\n CreatePaymentAcceptanceConfigurationRequest,\n CreatePaymentAcceptanceConfigurationResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeletePaymentAcceptanceConfigurationRequest,\n DeletePaymentAcceptanceConfigurationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetPaymentAcceptanceConfigurationRequest,\n GetPaymentAcceptanceConfigurationResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MessageEnvelope,\n PaymentAcceptanceConfiguration,\n PaymentAcceptanceConfigurationsQueryBuilder,\n PaymentAcceptanceConfigurationsQueryResult,\n PaymentAcceptanceRule,\n QueryPaymentAcceptanceConfigurationsRequest,\n QueryPaymentAcceptanceConfigurationsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n TagList,\n Tags,\n UpdatePaymentAcceptanceConfiguration,\n UpdatePaymentAcceptanceConfigurationRequest,\n UpdatePaymentAcceptanceConfigurationResponse,\n WebhookIdentityType,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\n","import {\n createPaymentAcceptanceConfiguration as publicCreatePaymentAcceptanceConfiguration,\n getPaymentAcceptanceConfiguration as publicGetPaymentAcceptanceConfiguration,\n updatePaymentAcceptanceConfiguration as publicUpdatePaymentAcceptanceConfiguration,\n deletePaymentAcceptanceConfiguration as publicDeletePaymentAcceptanceConfiguration,\n queryPaymentAcceptanceConfigurations as publicQueryPaymentAcceptanceConfigurations,\n bulkUpdatePaymentAcceptanceConfigurationTags as publicBulkUpdatePaymentAcceptanceConfigurationTags,\n bulkUpdatePaymentAcceptanceConfigurationTagsByFilter as publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const createPaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicCreatePaymentAcceptanceConfiguration> &\n typeof publicCreatePaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicCreatePaymentAcceptanceConfiguration);\n/** @internal */\nexport const getPaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicGetPaymentAcceptanceConfiguration> &\n typeof publicGetPaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicGetPaymentAcceptanceConfiguration);\n/** @internal */\nexport const updatePaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicUpdatePaymentAcceptanceConfiguration> &\n typeof publicUpdatePaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicUpdatePaymentAcceptanceConfiguration);\n/** @internal */\nexport const deletePaymentAcceptanceConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicDeletePaymentAcceptanceConfiguration> &\n typeof publicDeletePaymentAcceptanceConfiguration\n> = /*#__PURE__*/ createRESTModule(publicDeletePaymentAcceptanceConfiguration);\n/** @internal */\nexport const queryPaymentAcceptanceConfigurations: MaybeContext<\n BuildRESTFunction<typeof publicQueryPaymentAcceptanceConfigurations> &\n typeof publicQueryPaymentAcceptanceConfigurations\n> = /*#__PURE__*/ createRESTModule(publicQueryPaymentAcceptanceConfigurations);\n/** @internal */\nexport const bulkUpdatePaymentAcceptanceConfigurationTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdatePaymentAcceptanceConfigurationTags> &\n typeof publicBulkUpdatePaymentAcceptanceConfigurationTags\n> = /*#__PURE__*/ createRESTModule(\n publicBulkUpdatePaymentAcceptanceConfigurationTags\n);\n/** @internal */\nexport const bulkUpdatePaymentAcceptanceConfigurationTagsByFilter: MaybeContext<\n BuildRESTFunction<\n typeof publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n > &\n typeof publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n> = /*#__PURE__*/ createRESTModule(\n publicBulkUpdatePaymentAcceptanceConfigurationTagsByFilter\n);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\nexport {\n PaymentAcceptanceConfiguration,\n PaymentAcceptanceRule,\n ExtendedFields,\n Tags,\n TagList,\n CreatePaymentAcceptanceConfigurationRequest,\n CreatePaymentAcceptanceConfigurationResponse,\n GetPaymentAcceptanceConfigurationRequest,\n GetPaymentAcceptanceConfigurationResponse,\n UpdatePaymentAcceptanceConfigurationRequest,\n UpdatePaymentAcceptanceConfigurationResponse,\n DeletePaymentAcceptanceConfigurationRequest,\n DeletePaymentAcceptanceConfigurationResponse,\n QueryPaymentAcceptanceConfigurationsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryPaymentAcceptanceConfigurationsResponse,\n CursorPagingMetadata,\n Cursors,\n BulkUpdatePaymentAcceptanceConfigurationTagsRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsResponse,\n ItemMetadata,\n ApplicationError,\n BulkUpdatePaymentAcceptanceConfigurationTagsResult,\n BulkActionMetadata,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n UpdatePaymentAcceptanceConfiguration,\n PaymentAcceptanceConfigurationsQueryResult,\n PaymentAcceptanceConfigurationsQueryBuilder,\n BulkUpdatePaymentAcceptanceConfigurationTagsOptions,\n BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,sDAAAA;AAAA,EAAA,4DAAAC;AAAA,EAAA,4CAAAC;AAAA,EAAA,4CAAAC;AAAA,EAAA,yCAAAC;AAAA,EAAA,4CAAAC;AAAA,EAAA,4CAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,4FACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ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nE,IAAMC,wCAGK,2DAAiBA,qCAA0C;AAEtE,IAAMC,wCAGK,2DAAiBA,qCAA0C;AAEtE,IAAMC,wCAGK,2DAAiBA,qCAA0C;AAEtE,IAAMC,gDAGK;AAAA,EAChBA;AACF;AAEO,IAAMC,wDAKK;AAAA,EAChBA;AACF;","names":["bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter","createPaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","getPaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","updatePaymentAcceptanceConfiguration","import_timestamp","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","createPaymentAcceptanceConfiguration","sdkTransformError","getPaymentAcceptanceConfiguration","updatePaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter","createPaymentAcceptanceConfiguration","getPaymentAcceptanceConfiguration","updatePaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter","import_rest_modules","createPaymentAcceptanceConfiguration","getPaymentAcceptanceConfiguration","updatePaymentAcceptanceConfiguration","deletePaymentAcceptanceConfiguration","queryPaymentAcceptanceConfigurations","bulkUpdatePaymentAcceptanceConfigurationTags","bulkUpdatePaymentAcceptanceConfigurationTagsByFilter"]}
@@ -45,7 +45,38 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
45
45
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
46
46
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
47
47
  function resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(opts) {
48
- const domainToMappings = {};
48
+ const domainToMappings = {
49
+ "bo._base_domain_": [
50
+ {
51
+ srcPath: "/_api/bo-payment-acceptance-configurations/v1",
52
+ destPath: "/v1/bo-payment-acceptance-configurations"
53
+ },
54
+ {
55
+ srcPath: "/v1/bo-payment-acceptance-configurations",
56
+ destPath: "/v1/bo-payment-acceptance-configurations"
57
+ }
58
+ ],
59
+ "wixbo.ai": [
60
+ {
61
+ srcPath: "/_api/bo-payment-acceptance-configurations/v1",
62
+ destPath: "/v1/bo-payment-acceptance-configurations"
63
+ },
64
+ {
65
+ srcPath: "/v1/bo-payment-acceptance-configurations",
66
+ destPath: "/v1/bo-payment-acceptance-configurations"
67
+ }
68
+ ],
69
+ "wix-bo.com": [
70
+ {
71
+ srcPath: "/_api/bo-payment-acceptance-configurations/v1",
72
+ destPath: "/v1/bo-payment-acceptance-configurations"
73
+ },
74
+ {
75
+ srcPath: "/v1/bo-payment-acceptance-configurations",
76
+ destPath: "/v1/bo-payment-acceptance-configurations"
77
+ }
78
+ ]
79
+ };
49
80
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
50
81
  }
51
82
  var PACKAGE_NAME = "@wix/auto_sdk_payments_payment-acceptance-configurations";
@@ -182,7 +213,7 @@ function queryPaymentAcceptanceConfigurations(payload) {
182
213
  function __queryPaymentAcceptanceConfigurations({ host }) {
183
214
  const metadata = {
184
215
  entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
185
- method: "POST",
216
+ method: "GET",
186
217
  methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.QueryPaymentAcceptanceConfigurations",
187
218
  packageName: PACKAGE_NAME,
188
219
  url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
@@ -192,7 +223,7 @@ function queryPaymentAcceptanceConfigurations(payload) {
192
223
  host
193
224
  }
194
225
  ),
195
- data: payload,
226
+ params: (0, import_rest_modules.toURLSearchParams)(payload, true),
196
227
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
197
228
  {
198
229
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,