@wix/auto_sdk_payments_dispute-history-records 1.0.39 → 1.0.40

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.typings.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.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 {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A dispute history record represents a snapshot of dispute information at a specific point in time.\n *\n * Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.\n */\nexport interface DisputeHistoryRecord {\n /**\n * Dispute history record ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n _id?: string;\n /**\n * Revision number, which increments by 1 each time the dispute history record is updated.\n * To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the dispute history record was created.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the dispute history record was last updated.\n * @readonly\n * @immutable\n */\n _updatedDate?: Date | null;\n /**\n * ID of the dispute that this history record is a snapshot of.\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Stage of the dispute process.\n * @readonly\n * @immutable\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Status of the dispute at the time this record was created.\n * Indicates what action was required and by whom at this point in the dispute lifecycle.\n * @readonly\n * @immutable\n */\n status?: DisputeStatusWithLiterals;\n /**\n * The latest date and time until which the dispute can remain in its current status.\n *\n * If this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.\n * @readonly\n * @immutable\n */\n dueDate?: Date | null;\n /**\n * ID of the charge that is being disputed.\n * @format GUID\n * @readonly\n * @immutable\n */\n chargeId?: string;\n /**\n * Channel through which the dispute is being processed.\n * @readonly\n * @immutable\n */\n channel?: DisputeChannelWithLiterals;\n /**\n * Custom field data for the dispute history record object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the dispute history record for organization and filtering purposes. */\n tags?: Tags;\n}\n\nexport enum DisputeStage {\n /** Unknown dispute stage. */\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Formal dispute filed through the card network or issuing bank. */\n CHARGEBACK = 'CHARGEBACK',\n /** Initial inquiry from the customer requesting information about the charge. */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for merchant action, such as submitting evidence or accepting the dispute. */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for buyer action or response. */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute was resolved in favor of the merchant. */\n WON = 'WON',\n /** Dispute was resolved in favor of the cardholder. */\n LOST = 'LOST',\n}\n\n/** @enumType */\nexport type DisputeStatusWithLiterals =\n | DisputeStatus\n | 'UNKNOWN_DISPUTE_STATUS'\n | 'WAITING_MERCHANT'\n | 'UNDER_REVIEW'\n | 'WAITING_BUYER'\n | 'WON'\n | 'LOST';\n\nexport enum DisputeChannel {\n /** Unknown dispute channel. */\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Dispute is processed by the payment service provider. */\n INTERNAL = 'INTERNAL',\n /** Dispute is processed through the card network or issuing bank. */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type DisputeChannelWithLiterals =\n | DisputeChannel\n | 'UNKNOWN_DISPUTE_CHANNEL'\n | 'INTERNAL'\n | 'EXTERNAL';\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 * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_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 require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Triggered when tags are modified on a dispute history record. */\nexport interface TagsModified {\n /** Updated dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n /** Tags that were assigned to the dispute history record. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the dispute history record. */\n unassignedTags?: Tags;\n}\n\nexport interface GetDisputeHistoryRecordRequest {\n /**\n * ID of the dispute history record to retrieve.\n * @format GUID\n */\n disputeHistoryRecordId: string;\n}\n\nexport interface GetDisputeHistoryRecordResponse {\n /** The retrieved dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n}\n\nexport interface QueryDisputeHistoryRecordsRequest {\n /** Wix Query Language expression for filtering, sorting, and paging dispute history records. */\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 QueryDisputeHistoryRecordsResponse {\n /** Retrieved dispute history records. */\n disputeHistoryRecords?: DisputeHistoryRecord[];\n /** Paging metadata for cursor-based pagination. */\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 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 Empty {}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsRequest {\n /**\n * List of dispute history records IDs to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResponse {\n /**\n * Results of the bulk tag update operation for each dispute history record.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeHistoryRecordTagsResult[];\n /** Metadata about 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 BulkUpdateDisputeHistoryRecordTagsResult {\n /** Metadata about the individual item 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 BulkUpdateDisputeHistoryRecordTagsByFilterRequest {\n /**\n * Filter that determines which disputes to update tags for.\n *\n * An empty filter updates all disputes.\n */\n filter: Record<string, any> | null;\n /** Tags to assign to the filtered dispute history records. */\n assignTags?: Tags;\n /** Tags to remove from the filtered dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous bulk update operation.\n * @format GUID\n */\n jobId?: 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/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Retrieves a dispute history record.\n * @param disputeHistoryRecordId - ID of the dispute history record to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField disputeHistoryRecordId\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ\n * @applicableIdentity APP\n * @returns The retrieved dispute history record.\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord\n */\nexport async function getDisputeHistoryRecord(\n disputeHistoryRecordId: string\n): Promise<\n NonNullablePaths<\n DisputeHistoryRecord,\n | `_id`\n | `disputeId`\n | `stage`\n | `status`\n | `chargeId`\n | `channel`\n | `tags.privateTags.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 disputeHistoryRecordId: disputeHistoryRecordId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\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 ?.disputeHistoryRecord!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeHistoryRecordId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeHistoryRecordId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a query to retrieve a list of dispute history records.\n *\n * The Query Dispute History Records method builds a query to retrieve a list of dispute history records and returns a `DisputeHistoryRecordsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `DisputeHistoryRecordsQueryBuilder` methods onto the query. `DisputeHistoryRecordsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute History Records returns.\n *\n * Query Dispute History Records has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `DisputeHistoryRecordsQueryResult`.\n * @public\n * @documentationMaturity preview\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ\n * @applicableIdentity APP\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords\n */\nexport function queryDisputeHistoryRecords(): DisputeHistoryRecordsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n DisputeHistoryRecord,\n 'CURSOR',\n QueryDisputeHistoryRecordsRequest,\n QueryDisputeHistoryRecordsResponse\n >({\n func: async (payload: QueryDisputeHistoryRecordsRequest) => {\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryDisputeHistoryRecordsRequest['query']) => {\n const args = [query, {}] as [\n QueryDisputeHistoryRecordsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryDisputeHistoryRecordsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.disputeHistoryRecords,\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 DisputeHistoryRecordsQueryResult extends QueryCursorResult {\n items: DisputeHistoryRecord[];\n query: DisputeHistoryRecordsQueryBuilder;\n next: () => Promise<DisputeHistoryRecordsQueryResult>;\n prev: () => Promise<DisputeHistoryRecordsQueryResult>;\n}\n\nexport interface DisputeHistoryRecordsQueryBuilder {\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: string\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any[]\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'disputeId',\n value: boolean\n ) => DisputeHistoryRecordsQueryBuilder;\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<'disputeId'>\n ) => DisputeHistoryRecordsQueryBuilder;\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<'disputeId'>\n ) => DisputeHistoryRecordsQueryBuilder;\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) => DisputeHistoryRecordsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DisputeHistoryRecordsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords\n * @requiredField query\n */\nexport async function typedQueryDisputeHistoryRecords(\n query: DisputeHistoryRecordQuery\n): Promise<\n NonNullablePaths<\n QueryDisputeHistoryRecordsResponse,\n | `disputeHistoryRecords`\n | `disputeHistoryRecords.${number}._id`\n | `disputeHistoryRecords.${number}.disputeId`\n | `disputeHistoryRecords.${number}.stage`\n | `disputeHistoryRecords.${number}.status`\n | `disputeHistoryRecords.${number}.chargeId`\n | `disputeHistoryRecords.${number}.channel`,\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({ query: query });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DisputeHistoryRecordQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['disputeId'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n DisputeHistoryRecord,\n DisputeHistoryRecordQuerySpec\n>;\nexport type DisputeHistoryRecordQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\n/**\n * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n * @param ids - List of dispute history records IDs to update tags for.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags\n */\nexport async function bulkUpdateDisputeHistoryRecordTags(\n ids: string[],\n options?: BulkUpdateDisputeHistoryRecordTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeHistoryRecordTagsResponse,\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 __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsApplicationErrors;\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 ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\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 BulkUpdateDisputeHistoryRecordTagsOptions {\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n * @param filter - Filter that determines which disputes to update tags for.\n *\n * An empty filter updates all disputes.\n * @public\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter\n */\nexport async function bulkUpdateDisputeHistoryRecordTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n `jobId`,\n 2\n > & {\n __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors;\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 ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\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 BulkUpdateDisputeHistoryRecordTagsByFilterOptions {\n /** Tags to assign to the filtered dispute history records. */\n assignTags?: Tags;\n /** Tags to remove from the filtered dispute history records. */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n _: [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a dispute history record. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\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: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/**\n * Creates a query to retrieve a list of dispute history records.\n *\n * The Query Dispute History Records method builds a query to retrieve a list of dispute history records and returns a `DisputeHistoryRecordsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `DisputeHistoryRecordsQueryBuilder` methods onto the query. `DisputeHistoryRecordsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute History Records returns.\n *\n * Query Dispute History Records has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `DisputeHistoryRecordsQueryResult`.\n */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,wBACd,SAC4B;AAC5B,WAAS,0BAA0B,EAAE,KAAK,GAAQ;AAChD,UAAM,WAAW;AAAA,MACf,YACE;AAAA,MACF,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH;AAAA,UACE,WAAW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AAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","import_transform_paths","DisputeStage","DisputeStatus","DisputeChannel","SortOrder","WebhookIdentityType","getDisputeHistoryRecord","sdkTransformError","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.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 {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A dispute history record represents a snapshot of dispute information at a specific point in time.\n *\n * Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.\n */\nexport interface DisputeHistoryRecord {\n /**\n * Dispute history record ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n _id?: string;\n /**\n * Revision number, which increments by 1 each time the dispute history record is updated.\n * To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the dispute history record was created.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the dispute history record was last updated.\n * @readonly\n * @immutable\n */\n _updatedDate?: Date | null;\n /**\n * ID of the dispute that this history record is a snapshot of.\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Stage of the dispute process.\n * @readonly\n * @immutable\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Status of the dispute at the time this record was created.\n * Indicates what action was required and by whom at this point in the dispute lifecycle.\n * @readonly\n * @immutable\n */\n status?: DisputeStatusWithLiterals;\n /**\n * The latest date and time until which the dispute can remain in its current status.\n *\n * If this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.\n * @readonly\n * @immutable\n */\n dueDate?: Date | null;\n /**\n * ID of the charge that is being disputed.\n * @format GUID\n * @readonly\n * @immutable\n */\n chargeId?: string;\n /**\n * Channel through which the dispute is being processed.\n * @readonly\n * @immutable\n */\n channel?: DisputeChannelWithLiterals;\n /**\n * Custom field data for the dispute history record object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the dispute history record for organization and filtering purposes. */\n tags?: Tags;\n}\n\nexport enum DisputeStage {\n /** Unknown dispute stage. */\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Formal dispute filed through the card network or issuing bank. */\n CHARGEBACK = 'CHARGEBACK',\n /** Initial inquiry from the customer requesting information about the charge. */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for merchant action, such as submitting evidence or accepting the dispute. */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for buyer action or response. */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute was resolved in favor of the merchant. */\n WON = 'WON',\n /** Dispute was resolved in favor of the cardholder. */\n LOST = 'LOST',\n}\n\n/** @enumType */\nexport type DisputeStatusWithLiterals =\n | DisputeStatus\n | 'UNKNOWN_DISPUTE_STATUS'\n | 'WAITING_MERCHANT'\n | 'UNDER_REVIEW'\n | 'WAITING_BUYER'\n | 'WON'\n | 'LOST';\n\nexport enum DisputeChannel {\n /** Unknown dispute channel. */\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Dispute is processed by the payment service provider. */\n INTERNAL = 'INTERNAL',\n /** Dispute is processed through the card network or issuing bank. */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type DisputeChannelWithLiterals =\n | DisputeChannel\n | 'UNKNOWN_DISPUTE_CHANNEL'\n | 'INTERNAL'\n | 'EXTERNAL';\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 * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_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 require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Triggered when tags are modified on a dispute history record. */\nexport interface TagsModified {\n /** Updated dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n /** Tags that were assigned to the dispute history record. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the dispute history record. */\n unassignedTags?: Tags;\n}\n\nexport interface GetDisputeHistoryRecordRequest {\n /**\n * ID of the dispute history record to retrieve.\n * @format GUID\n */\n disputeHistoryRecordId: string;\n}\n\nexport interface GetDisputeHistoryRecordResponse {\n /** The retrieved dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n}\n\nexport interface QueryDisputeHistoryRecordsRequest {\n /** Wix Query Language expression for filtering, sorting, and paging dispute history records. */\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 QueryDisputeHistoryRecordsResponse {\n /** Retrieved dispute history records. */\n disputeHistoryRecords?: DisputeHistoryRecord[];\n /** Paging metadata for cursor-based pagination. */\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 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 Empty {}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsRequest {\n /**\n * List of dispute history records IDs to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResponse {\n /**\n * Results of the bulk tag update operation for each dispute history record.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeHistoryRecordTagsResult[];\n /** Metadata about 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 BulkUpdateDisputeHistoryRecordTagsResult {\n /** Metadata about the individual item 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 BulkUpdateDisputeHistoryRecordTagsByFilterRequest {\n /**\n * Filter that determines which disputes to update tags for.\n *\n * An empty filter updates all disputes.\n */\n filter: Record<string, any> | null;\n /** Tags to assign to the filtered dispute history records. */\n assignTags?: Tags;\n /** Tags to remove from the filtered dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous bulk update operation.\n * @format GUID\n */\n jobId?: 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\nexport interface AccountDetails {\n /**\n * ID of the account.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the site, if applicable.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Retrieves a dispute history record.\n * @param disputeHistoryRecordId - ID of the dispute history record to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField disputeHistoryRecordId\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ\n * @applicableIdentity APP\n * @returns The retrieved dispute history record.\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord\n */\nexport async function getDisputeHistoryRecord(\n disputeHistoryRecordId: string\n): Promise<\n NonNullablePaths<\n DisputeHistoryRecord,\n | `_id`\n | `disputeId`\n | `stage`\n | `status`\n | `chargeId`\n | `channel`\n | `tags.privateTags.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 disputeHistoryRecordId: disputeHistoryRecordId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\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 ?.disputeHistoryRecord!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeHistoryRecordId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeHistoryRecordId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a query to retrieve a list of dispute history records.\n *\n * The Query Dispute History Records method builds a query to retrieve a list of dispute history records and returns a `DisputeHistoryRecordsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `DisputeHistoryRecordsQueryBuilder` methods onto the query. `DisputeHistoryRecordsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute History Records returns.\n *\n * Query Dispute History Records has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `DisputeHistoryRecordsQueryResult`.\n * @public\n * @documentationMaturity preview\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ\n * @applicableIdentity APP\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords\n */\nexport function queryDisputeHistoryRecords(): DisputeHistoryRecordsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n DisputeHistoryRecord,\n 'CURSOR',\n QueryDisputeHistoryRecordsRequest,\n QueryDisputeHistoryRecordsResponse\n >({\n func: async (payload: QueryDisputeHistoryRecordsRequest) => {\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryDisputeHistoryRecordsRequest['query']) => {\n const args = [query, {}] as [\n QueryDisputeHistoryRecordsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryDisputeHistoryRecordsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.disputeHistoryRecords,\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 DisputeHistoryRecordsQueryResult extends QueryCursorResult {\n items: DisputeHistoryRecord[];\n query: DisputeHistoryRecordsQueryBuilder;\n next: () => Promise<DisputeHistoryRecordsQueryResult>;\n prev: () => Promise<DisputeHistoryRecordsQueryResult>;\n}\n\nexport interface DisputeHistoryRecordsQueryBuilder {\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: string\n ) => DisputeHistoryRecordsQueryBuilder;\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: 'disputeId',\n value: any[]\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'disputeId',\n value: boolean\n ) => DisputeHistoryRecordsQueryBuilder;\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<'disputeId'>\n ) => DisputeHistoryRecordsQueryBuilder;\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<'disputeId'>\n ) => DisputeHistoryRecordsQueryBuilder;\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) => DisputeHistoryRecordsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DisputeHistoryRecordsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords\n * @requiredField query\n */\nexport async function typedQueryDisputeHistoryRecords(\n query: DisputeHistoryRecordQuery\n): Promise<\n NonNullablePaths<\n QueryDisputeHistoryRecordsResponse,\n | `disputeHistoryRecords`\n | `disputeHistoryRecords.${number}._id`\n | `disputeHistoryRecords.${number}.disputeId`\n | `disputeHistoryRecords.${number}.stage`\n | `disputeHistoryRecords.${number}.status`\n | `disputeHistoryRecords.${number}.chargeId`\n | `disputeHistoryRecords.${number}.channel`,\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({ query: query });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DisputeHistoryRecordQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['disputeId'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n DisputeHistoryRecord,\n DisputeHistoryRecordQuerySpec\n>;\nexport type DisputeHistoryRecordQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\n/**\n * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n * @param ids - List of dispute history records IDs to update tags for.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags\n */\nexport async function bulkUpdateDisputeHistoryRecordTags(\n ids: string[],\n options?: BulkUpdateDisputeHistoryRecordTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeHistoryRecordTagsResponse,\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 __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsApplicationErrors;\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 ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\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 BulkUpdateDisputeHistoryRecordTagsOptions {\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n * @param filter - Filter that determines which disputes to update tags for.\n *\n * An empty filter updates all disputes.\n * @public\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter\n */\nexport async function bulkUpdateDisputeHistoryRecordTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n `jobId`,\n 2\n > & {\n __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors;\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 ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\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 BulkUpdateDisputeHistoryRecordTagsByFilterOptions {\n /** Tags to assign to the filtered dispute history records. */\n assignTags?: Tags;\n /** Tags to remove from the filtered dispute history records. */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n _: [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a dispute history record. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\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: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/**\n * Creates a query to retrieve a list of dispute history records.\n *\n * The Query Dispute History Records method builds a query to retrieve a list of dispute history records and returns a `DisputeHistoryRecordsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `DisputeHistoryRecordsQueryBuilder` methods onto the query. `DisputeHistoryRecordsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute History Records returns.\n *\n * Query Dispute History Records has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `DisputeHistoryRecordsQueryResult`.\n */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU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ACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAH;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","import_transform_paths","DisputeStage","DisputeStatus","DisputeChannel","SortOrder","WebhookIdentityType","getDisputeHistoryRecord","sdkTransformError","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
@@ -487,6 +487,23 @@ declare enum WebhookIdentityType {
487
487
  }
488
488
  /** @enumType */
489
489
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
490
+ interface AccountDetails {
491
+ /**
492
+ * ID of the account.
493
+ * @format GUID
494
+ */
495
+ accountId?: string | null;
496
+ /**
497
+ * ID of the parent account.
498
+ * @format GUID
499
+ */
500
+ parentAccountId?: string | null;
501
+ /**
502
+ * ID of the site, if applicable.
503
+ * @format GUID
504
+ */
505
+ siteId?: string | null;
506
+ }
490
507
  /** @docsIgnore */
491
508
  type BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {
492
509
  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
@@ -517,4 +534,4 @@ declare function queryDisputeHistoryRecords(): __PublicMethodMetaInfo<'GET', {},
517
534
  declare function bulkUpdateDisputeHistoryRecordTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDisputeHistoryRecordTagsRequest$1, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResponse$1, BulkUpdateDisputeHistoryRecordTagsResponse>;
518
535
  declare function bulkUpdateDisputeHistoryRecordTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDisputeHistoryRecordTagsByFilterRequest$1, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsByFilterResponse$1, BulkUpdateDisputeHistoryRecordTagsByFilterResponse>;
519
536
 
520
- export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateDisputeHistoryRecordTagsApplicationErrors as BulkUpdateDisputeHistoryRecordTagsApplicationErrorsOriginal, type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors as BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrorsOriginal, type BulkUpdateDisputeHistoryRecordTagsByFilterRequest as BulkUpdateDisputeHistoryRecordTagsByFilterRequestOriginal, type BulkUpdateDisputeHistoryRecordTagsByFilterResponse as BulkUpdateDisputeHistoryRecordTagsByFilterResponseOriginal, type BulkUpdateDisputeHistoryRecordTagsRequest as BulkUpdateDisputeHistoryRecordTagsRequestOriginal, type BulkUpdateDisputeHistoryRecordTagsResponse as BulkUpdateDisputeHistoryRecordTagsResponseOriginal, type BulkUpdateDisputeHistoryRecordTagsResult as BulkUpdateDisputeHistoryRecordTagsResultOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, DisputeChannel as DisputeChannelOriginal, type DisputeChannelWithLiterals as DisputeChannelWithLiteralsOriginal, type DisputeHistoryRecord as DisputeHistoryRecordOriginal, DisputeStage as DisputeStageOriginal, type DisputeStageWithLiterals as DisputeStageWithLiteralsOriginal, DisputeStatus as DisputeStatusOriginal, type DisputeStatusWithLiterals as DisputeStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequestOriginal, type GetDisputeHistoryRecordResponse as GetDisputeHistoryRecordResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryDisputeHistoryRecordsRequest as QueryDisputeHistoryRecordsRequestOriginal, type QueryDisputeHistoryRecordsResponse as QueryDisputeHistoryRecordsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TagList as TagListOriginal, type TagsModified as TagsModifiedOriginal, type Tags as TagsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkUpdateDisputeHistoryRecordTags, bulkUpdateDisputeHistoryRecordTagsByFilter, getDisputeHistoryRecord, queryDisputeHistoryRecords };
537
+ export { type AccountDetails as AccountDetailsOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateDisputeHistoryRecordTagsApplicationErrors as BulkUpdateDisputeHistoryRecordTagsApplicationErrorsOriginal, type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors as BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrorsOriginal, type BulkUpdateDisputeHistoryRecordTagsByFilterRequest as BulkUpdateDisputeHistoryRecordTagsByFilterRequestOriginal, type BulkUpdateDisputeHistoryRecordTagsByFilterResponse as BulkUpdateDisputeHistoryRecordTagsByFilterResponseOriginal, type BulkUpdateDisputeHistoryRecordTagsRequest as BulkUpdateDisputeHistoryRecordTagsRequestOriginal, type BulkUpdateDisputeHistoryRecordTagsResponse as BulkUpdateDisputeHistoryRecordTagsResponseOriginal, type BulkUpdateDisputeHistoryRecordTagsResult as BulkUpdateDisputeHistoryRecordTagsResultOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, DisputeChannel as DisputeChannelOriginal, type DisputeChannelWithLiterals as DisputeChannelWithLiteralsOriginal, type DisputeHistoryRecord as DisputeHistoryRecordOriginal, DisputeStage as DisputeStageOriginal, type DisputeStageWithLiterals as DisputeStageWithLiteralsOriginal, DisputeStatus as DisputeStatusOriginal, type DisputeStatusWithLiterals as DisputeStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequestOriginal, type GetDisputeHistoryRecordResponse as GetDisputeHistoryRecordResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryDisputeHistoryRecordsRequest as QueryDisputeHistoryRecordsRequestOriginal, type QueryDisputeHistoryRecordsResponse as QueryDisputeHistoryRecordsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TagList as TagListOriginal, type TagsModified as TagsModifiedOriginal, type Tags as TagsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkUpdateDisputeHistoryRecordTags, bulkUpdateDisputeHistoryRecordTagsByFilter, getDisputeHistoryRecord, queryDisputeHistoryRecords };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n _: [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a dispute history record. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\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: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/**\n * Creates a query to retrieve a list of dispute history records.\n *\n * The Query Dispute History Records method builds a query to retrieve a list of dispute history records and returns a `DisputeHistoryRecordsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `DisputeHistoryRecordsQueryBuilder` methods onto the query. `DisputeHistoryRecordsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute History Records returns.\n *\n * Query Dispute History Records has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `DisputeHistoryRecordsQueryResult`.\n */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n","/**\n * A dispute history record represents a snapshot of dispute information at a specific point in time.\n *\n * Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.\n */\nexport interface DisputeHistoryRecord {\n /**\n * Dispute history record ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n id?: string;\n /**\n * Revision number, which increments by 1 each time the dispute history record is updated.\n * To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the dispute history record was created.\n * @readonly\n * @immutable\n */\n createdDate?: Date | null;\n /**\n * Date and time the dispute history record was last updated.\n * @readonly\n * @immutable\n */\n updatedDate?: Date | null;\n /**\n * ID of the dispute that this history record is a snapshot of.\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Stage of the dispute process.\n * @readonly\n * @immutable\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Status of the dispute at the time this record was created.\n * Indicates what action was required and by whom at this point in the dispute lifecycle.\n * @readonly\n * @immutable\n */\n status?: DisputeStatusWithLiterals;\n /**\n * The latest date and time until which the dispute can remain in its current status.\n *\n * If this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.\n * @readonly\n * @immutable\n */\n dueDate?: Date | null;\n /**\n * ID of the charge that is being disputed.\n * @format GUID\n * @readonly\n * @immutable\n */\n chargeId?: string;\n /**\n * Channel through which the dispute is being processed.\n * @readonly\n * @immutable\n */\n channel?: DisputeChannelWithLiterals;\n /**\n * Custom field data for the dispute history record object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the dispute history record for organization and filtering purposes. */\n tags?: Tags;\n}\n\nexport enum DisputeStage {\n /** Unknown dispute stage. */\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Formal dispute filed through the card network or issuing bank. */\n CHARGEBACK = 'CHARGEBACK',\n /** Initial inquiry from the customer requesting information about the charge. */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for merchant action, such as submitting evidence or accepting the dispute. */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for buyer action or response. */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute was resolved in favor of the merchant. */\n WON = 'WON',\n /** Dispute was resolved in favor of the cardholder. */\n LOST = 'LOST',\n}\n\n/** @enumType */\nexport type DisputeStatusWithLiterals =\n | DisputeStatus\n | 'UNKNOWN_DISPUTE_STATUS'\n | 'WAITING_MERCHANT'\n | 'UNDER_REVIEW'\n | 'WAITING_BUYER'\n | 'WON'\n | 'LOST';\n\nexport enum DisputeChannel {\n /** Unknown dispute channel. */\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Dispute is processed by the payment service provider. */\n INTERNAL = 'INTERNAL',\n /** Dispute is processed through the card network or issuing bank. */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type DisputeChannelWithLiterals =\n | DisputeChannel\n | 'UNKNOWN_DISPUTE_CHANNEL'\n | 'INTERNAL'\n | 'EXTERNAL';\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 * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_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 require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Triggered when tags are modified on a dispute history record. */\nexport interface TagsModified {\n /** Updated dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n /** Tags that were assigned to the dispute history record. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the dispute history record. */\n unassignedTags?: Tags;\n}\n\nexport interface GetDisputeHistoryRecordRequest {\n /**\n * ID of the dispute history record to retrieve.\n * @format GUID\n */\n disputeHistoryRecordId: string;\n}\n\nexport interface GetDisputeHistoryRecordResponse {\n /** The retrieved dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n}\n\nexport interface QueryDisputeHistoryRecordsRequest {\n /** Wix Query Language expression for filtering, sorting, and paging dispute history records. */\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 QueryDisputeHistoryRecordsResponse {\n /** Retrieved dispute history records. */\n disputeHistoryRecords?: DisputeHistoryRecord[];\n /** Paging metadata for cursor-based pagination. */\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 DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsRequest {\n /**\n * List of dispute history records IDs to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResponse {\n /**\n * Results of the bulk tag update operation for each dispute history record.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeHistoryRecordTagsResult[];\n /** Metadata about 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 BulkUpdateDisputeHistoryRecordTagsResult {\n /** Metadata about the individual item 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 BulkUpdateDisputeHistoryRecordTagsByFilterRequest {\n /**\n * Filter that determines which disputes to update tags for.\n *\n * An empty filter updates all disputes.\n */\n filter: Record<string, any> | null;\n /** Tags to assign to the filtered dispute history records. */\n assignTags?: Tags;\n /** Tags to remove from the filtered dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous bulk update operation.\n * @format GUID\n */\n jobId?: 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/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDisputeHistoryRecord(): __PublicMethodMetaInfo<\n 'GET',\n { disputeHistoryRecordId: string },\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordResponse\n> {\n const payload = { disputeHistoryRecordId: ':disputeHistoryRecordId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n pathParams: { disputeHistoryRecordId: 'disputeHistoryRecordId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputeHistoryRecords(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DisputeHistoryRecord as DisputeHistoryRecordOriginal,\n DisputeStage as DisputeStageOriginal,\n DisputeStageWithLiterals as DisputeStageWithLiteralsOriginal,\n DisputeStatus as DisputeStatusOriginal,\n DisputeStatusWithLiterals as DisputeStatusWithLiteralsOriginal,\n DisputeChannel as DisputeChannelOriginal,\n DisputeChannelWithLiterals as DisputeChannelWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n Tags as TagsOriginal,\n TagList as TagListOriginal,\n TagsModified as TagsModifiedOriginal,\n GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequestOriginal,\n GetDisputeHistoryRecordResponse as GetDisputeHistoryRecordResponseOriginal,\n QueryDisputeHistoryRecordsRequest as QueryDisputeHistoryRecordsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryDisputeHistoryRecordsResponse as QueryDisputeHistoryRecordsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n BulkUpdateDisputeHistoryRecordTagsRequest as BulkUpdateDisputeHistoryRecordTagsRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsResponse as BulkUpdateDisputeHistoryRecordTagsResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkUpdateDisputeHistoryRecordTagsResult as BulkUpdateDisputeHistoryRecordTagsResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterRequest as BulkUpdateDisputeHistoryRecordTagsByFilterRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse as BulkUpdateDisputeHistoryRecordTagsByFilterResponseOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n BulkUpdateDisputeHistoryRecordTagsApplicationErrors as BulkUpdateDisputeHistoryRecordTagsApplicationErrorsOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors as BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrorsOriginal,\n} from './payments-dispute-history-records-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C;AAEjB,QAAM,oBAC6D;AAAA,IAC/D;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","DisputeStage","DisputeStatus","DisputeChannel","SortOrder","WebhookIdentityType","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.ts","../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n _: [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a dispute history record. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\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: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/**\n * Creates a query to retrieve a list of dispute history records.\n *\n * The Query Dispute History Records method builds a query to retrieve a list of dispute history records and returns a `DisputeHistoryRecordsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `DisputeHistoryRecordsQueryBuilder` methods onto the query. `DisputeHistoryRecordsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute History Records returns.\n *\n * Query Dispute History Records has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `DisputeHistoryRecordsQueryResult`.\n */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n","/**\n * A dispute history record represents a snapshot of dispute information at a specific point in time.\n *\n * Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.\n */\nexport interface DisputeHistoryRecord {\n /**\n * Dispute history record ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n id?: string;\n /**\n * Revision number, which increments by 1 each time the dispute history record is updated.\n * To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the dispute history record was created.\n * @readonly\n * @immutable\n */\n createdDate?: Date | null;\n /**\n * Date and time the dispute history record was last updated.\n * @readonly\n * @immutable\n */\n updatedDate?: Date | null;\n /**\n * ID of the dispute that this history record is a snapshot of.\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Stage of the dispute process.\n * @readonly\n * @immutable\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Status of the dispute at the time this record was created.\n * Indicates what action was required and by whom at this point in the dispute lifecycle.\n * @readonly\n * @immutable\n */\n status?: DisputeStatusWithLiterals;\n /**\n * The latest date and time until which the dispute can remain in its current status.\n *\n * If this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.\n * @readonly\n * @immutable\n */\n dueDate?: Date | null;\n /**\n * ID of the charge that is being disputed.\n * @format GUID\n * @readonly\n * @immutable\n */\n chargeId?: string;\n /**\n * Channel through which the dispute is being processed.\n * @readonly\n * @immutable\n */\n channel?: DisputeChannelWithLiterals;\n /**\n * Custom field data for the dispute history record object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the dispute history record for organization and filtering purposes. */\n tags?: Tags;\n}\n\nexport enum DisputeStage {\n /** Unknown dispute stage. */\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Formal dispute filed through the card network or issuing bank. */\n CHARGEBACK = 'CHARGEBACK',\n /** Initial inquiry from the customer requesting information about the charge. */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for merchant action, such as submitting evidence or accepting the dispute. */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for buyer action or response. */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute was resolved in favor of the merchant. */\n WON = 'WON',\n /** Dispute was resolved in favor of the cardholder. */\n LOST = 'LOST',\n}\n\n/** @enumType */\nexport type DisputeStatusWithLiterals =\n | DisputeStatus\n | 'UNKNOWN_DISPUTE_STATUS'\n | 'WAITING_MERCHANT'\n | 'UNDER_REVIEW'\n | 'WAITING_BUYER'\n | 'WON'\n | 'LOST';\n\nexport enum DisputeChannel {\n /** Unknown dispute channel. */\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Dispute is processed by the payment service provider. */\n INTERNAL = 'INTERNAL',\n /** Dispute is processed through the card network or issuing bank. */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type DisputeChannelWithLiterals =\n | DisputeChannel\n | 'UNKNOWN_DISPUTE_CHANNEL'\n | 'INTERNAL'\n | 'EXTERNAL';\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 * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_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 require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Triggered when tags are modified on a dispute history record. */\nexport interface TagsModified {\n /** Updated dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n /** Tags that were assigned to the dispute history record. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the dispute history record. */\n unassignedTags?: Tags;\n}\n\nexport interface GetDisputeHistoryRecordRequest {\n /**\n * ID of the dispute history record to retrieve.\n * @format GUID\n */\n disputeHistoryRecordId: string;\n}\n\nexport interface GetDisputeHistoryRecordResponse {\n /** The retrieved dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n}\n\nexport interface QueryDisputeHistoryRecordsRequest {\n /** Wix Query Language expression for filtering, sorting, and paging dispute history records. */\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 QueryDisputeHistoryRecordsResponse {\n /** Retrieved dispute history records. */\n disputeHistoryRecords?: DisputeHistoryRecord[];\n /** Paging metadata for cursor-based pagination. */\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 DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsRequest {\n /**\n * List of dispute history records IDs to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResponse {\n /**\n * Results of the bulk tag update operation for each dispute history record.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeHistoryRecordTagsResult[];\n /** Metadata about 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 BulkUpdateDisputeHistoryRecordTagsResult {\n /** Metadata about the individual item 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 BulkUpdateDisputeHistoryRecordTagsByFilterRequest {\n /**\n * Filter that determines which disputes to update tags for.\n *\n * An empty filter updates all disputes.\n */\n filter: Record<string, any> | null;\n /** Tags to assign to the filtered dispute history records. */\n assignTags?: Tags;\n /** Tags to remove from the filtered dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous bulk update operation.\n * @format GUID\n */\n jobId?: 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\nexport interface AccountDetails {\n /**\n * ID of the account.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the site, if applicable.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDisputeHistoryRecord(): __PublicMethodMetaInfo<\n 'GET',\n { disputeHistoryRecordId: string },\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordResponse\n> {\n const payload = { disputeHistoryRecordId: ':disputeHistoryRecordId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n pathParams: { disputeHistoryRecordId: 'disputeHistoryRecordId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputeHistoryRecords(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DisputeHistoryRecord as DisputeHistoryRecordOriginal,\n DisputeStage as DisputeStageOriginal,\n DisputeStageWithLiterals as DisputeStageWithLiteralsOriginal,\n DisputeStatus as DisputeStatusOriginal,\n DisputeStatusWithLiterals as DisputeStatusWithLiteralsOriginal,\n DisputeChannel as DisputeChannelOriginal,\n DisputeChannelWithLiterals as DisputeChannelWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n Tags as TagsOriginal,\n TagList as TagListOriginal,\n TagsModified as TagsModifiedOriginal,\n GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequestOriginal,\n GetDisputeHistoryRecordResponse as GetDisputeHistoryRecordResponseOriginal,\n QueryDisputeHistoryRecordsRequest as QueryDisputeHistoryRecordsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryDisputeHistoryRecordsResponse as QueryDisputeHistoryRecordsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n BulkUpdateDisputeHistoryRecordTagsRequest as BulkUpdateDisputeHistoryRecordTagsRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsResponse as BulkUpdateDisputeHistoryRecordTagsResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkUpdateDisputeHistoryRecordTagsResult as BulkUpdateDisputeHistoryRecordTagsResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterRequest as BulkUpdateDisputeHistoryRecordTagsByFilterRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse as BulkUpdateDisputeHistoryRecordTagsByFilterResponseOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountDetails as AccountDetailsOriginal,\n BulkUpdateDisputeHistoryRecordTagsApplicationErrors as BulkUpdateDisputeHistoryRecordTagsApplicationErrorsOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors as BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrorsOriginal,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SACE;AAAA,QACF,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,wBACd,SAC4B;AAC5B,WAAS,0BAA0B,EAAE,KAAK,GAAQ;AAChD,UAAM,WAAW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ACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8CAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6D;AAAA,IAC/D;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","DisputeStage","DisputeStatus","DisputeChannel","SortOrder","WebhookIdentityType","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
2
  import { DisputeHistoryRecord, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsResponse, BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors, DisputeHistoryRecordsQueryBuilder, DisputeHistoryRecordQuery, typedQueryDisputeHistoryRecords } from './index.typings.mjs';
3
- export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResult, CommonQueryWithEntityContext, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DisputeChannel, DisputeChannelWithLiterals, DisputeHistoryRecordQuerySpec, DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStageWithLiterals, DisputeStatus, DisputeStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDisputeHistoryRecordRequest, GetDisputeHistoryRecordResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryDisputeHistoryRecordsRequest, QueryDisputeHistoryRecordsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
3
+ export { AccountDetails, ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResult, CommonQueryWithEntityContext, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DisputeChannel, DisputeChannelWithLiterals, DisputeHistoryRecordQuerySpec, DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStageWithLiterals, DisputeStatus, DisputeStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDisputeHistoryRecordRequest, GetDisputeHistoryRecordResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryDisputeHistoryRecordsRequest, QueryDisputeHistoryRecordsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function getDisputeHistoryRecord$1(httpClient: HttpClient): GetDisputeHistoryRecordSignature;
6
6
  interface GetDisputeHistoryRecordSignature {