@wix/auto_sdk_payments_dispute-evidence-documents 1.0.29 → 1.0.30

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":["../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.ts","../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.http.ts","../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.public.ts","../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Dispute Evidence Document */\nexport interface DisputeEvidenceDocument {\n /**\n * DisputeEvidenceDocument ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n _id?: string | null;\n /**\n * Revision number\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DisputeEvidenceDocument was created.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DisputeEvidenceDocument was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Dispute ID\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Document evidence file if it was uploaded and attached\n * @readonly\n */\n file?: DocumentFile;\n /**\n * Submitted date\n * @readonly\n */\n submittedDate?: Date | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\nexport interface DocumentFile {\n /**\n * Document filename.\n * @readonly\n * @maxLength 255\n */\n filename?: string | null;\n /**\n * Document size in bytes.\n * @readonly\n */\n sizeInBytes?: string | null;\n /**\n * Hexadecimal representation of the document's MD5 digest.\n * @minLength 32\n * @maxLength 32\n * @readonly\n */\n hexMd5Digest?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface CreateDisputeEvidenceDocumentRequest {\n /** DisputeEvidenceDocument to be created. */\n disputeEvidenceDocument: DisputeEvidenceDocument;\n}\n\nexport interface CreateDisputeEvidenceDocumentResponse {\n /** The created DisputeEvidenceDocument. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n /**\n * Evidence Document upload URL\n * @format WEB_URL\n */\n uploadUrl?: string | null;\n}\n\nexport interface GetDisputeEvidenceDocumentRequest {\n /**\n * ID of the DisputeEvidenceDocument to retrieve.\n * @format GUID\n */\n disputeEvidenceDocumentId: string;\n}\n\nexport interface GetDisputeEvidenceDocumentResponse {\n /** The requested DisputeEvidenceDocument. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n}\n\nexport interface DeleteDisputeEvidenceDocumentRequest {\n /**\n * Id of the DisputeEvidenceDocument to delete.\n * @format GUID\n */\n disputeEvidenceDocumentId: string;\n}\n\nexport interface DeleteDisputeEvidenceDocumentResponse {}\n\nexport interface QueryDisputeEvidenceDocumentsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryDisputeEvidenceDocumentsResponse {\n /** List of DisputeEvidenceDocuments. */\n disputeEvidenceDocuments?: DisputeEvidenceDocument[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsRequest {\n /**\n * List of NileProtoTagsEntities that their tags will update.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeEvidenceDocumentTagsResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest {\n /** Filter */\n filter: Record<string, any> | null;\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {\n /**\n * Job ID\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface MigrateDisputeEvidenceDocumentRequest {\n /**\n * Dispute Id\n * @format GUID\n */\n disputeId?: string;\n /**\n * Evidence Id\n * @format GUID\n */\n evidenceId?: string;\n /**\n * External evidence document Id\n * @minLength 1\n * @maxLength 64\n */\n evidenceDocumentId?: string;\n /**\n * File hash\n * @minLength 32\n * @maxLength 32\n */\n hash?: string | null;\n /** Created date */\n _createdDate?: Date | null;\n}\n\nexport interface MigrateDisputeEvidenceDocumentResponse {}\n\nexport interface SubmitMigratedDisputeEvidenceDocumentRequest {\n /**\n * Dispute Id\n * @format GUID\n */\n disputeId?: string;\n /**\n * Evidence Id\n * @format GUID\n */\n evidenceId?: string;\n /** Submitted date */\n submittedDate?: Date | null;\n}\n\nexport interface SubmitMigratedDisputeEvidenceDocumentResponse {}\n\nexport interface GenerateDisputeEvidenceDocumentUploadUrlRequest {\n /**\n * Dispute Evidence Document ID\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n /**\n * Name of the uploaded file\n * @minLength 1\n * @maxLength 255\n */\n filename?: string;\n}\n\nexport interface GenerateDisputeEvidenceDocumentUploadUrlResponse {\n /**\n * Evidence Document upload URL\n * @format WEB_URL\n */\n uploadUrl?: string;\n}\n\nexport interface AttachDisputeEvidenceDocumentFileRequest {\n /**\n * Dispute Evidence Document ID\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\nexport interface AttachDisputeEvidenceDocumentFileResponse {\n /** Dispute Evidence Document */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n}\n\nexport interface GenerateDisputeEvidenceDocumentDownloadUrlRequest {\n /**\n * ID of the DisputeEvidenceDocument to generate Download Url.\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\nexport interface GenerateDisputeEvidenceDocumentDownloadUrlResponse {\n /**\n * Document source URL.\n * @format WEB_URL\n */\n url?: string | null;\n /** Document source URL expiration date (when relevant). */\n urlExpirationDate?: Date | null;\n}\n\nexport interface MarkDisputeEvidenceDocumentSubmittedRequest {\n /**\n * Id of the DisputeEvidenceDocument to mark as submitted.\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\nexport interface MarkDisputeEvidenceDocumentSubmittedResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type DeleteDisputeEvidenceDocumentApplicationErrors = {\n code?: 'DISPUTE_EVIDENCE_DOCUMENT_ALREADY_SUBMITTED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a DisputeEvidenceDocument.\n * @param disputeEvidenceDocument - DisputeEvidenceDocument to be created.\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocument\n * @requiredField disputeEvidenceDocument.disputeId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_CREATE\n * @returns The created DisputeEvidenceDocument.\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument\n */\nexport async function createDisputeEvidenceDocument(\n disputeEvidenceDocument: NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId`,\n 2\n >\n): Promise<\n NonNullablePaths<DisputeEvidenceDocument, `disputeId` | `tags.tags.tagIds`, 4>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeEvidenceDocument: disputeEvidenceDocument,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.createDisputeEvidenceDocument(\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 ?.disputeEvidenceDocument!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeEvidenceDocument: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeEvidenceDocument']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a DisputeEvidenceDocument.\n * @param disputeEvidenceDocumentId - ID of the DisputeEvidenceDocument to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocumentId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @returns The requested DisputeEvidenceDocument.\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument\n */\nexport async function getDisputeEvidenceDocument(\n disputeEvidenceDocumentId: string\n): Promise<\n NonNullablePaths<DisputeEvidenceDocument, `disputeId` | `tags.tags.tagIds`, 4>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeEvidenceDocumentId: disputeEvidenceDocumentId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.getDisputeEvidenceDocument(\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 ?.disputeEvidenceDocument!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeEvidenceDocumentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeEvidenceDocumentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes a DisputeEvidenceDocument.\n * @param disputeEvidenceDocumentId - Id of the DisputeEvidenceDocument to delete.\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocumentId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_DELETE\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.DeleteDisputeEvidenceDocument\n */\nexport async function deleteDisputeEvidenceDocument(\n disputeEvidenceDocumentId: string\n): Promise<\n void & {\n __applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;\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 disputeEvidenceDocumentId: disputeEvidenceDocumentId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.deleteDisputeEvidenceDocument(\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: { disputeEvidenceDocumentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeEvidenceDocumentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].\n * @internal\n * @documentationMaturity preview\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments\n */\nexport function queryDisputeEvidenceDocuments(): DisputeEvidenceDocumentsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n DisputeEvidenceDocument,\n 'CURSOR',\n QueryDisputeEvidenceDocumentsRequest,\n QueryDisputeEvidenceDocumentsResponse\n >({\n func: async (payload: QueryDisputeEvidenceDocumentsRequest) => {\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.queryDisputeEvidenceDocuments(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (\n query: QueryDisputeEvidenceDocumentsRequest['query']\n ) => {\n const args = [query, {}] as [\n QueryDisputeEvidenceDocumentsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryDisputeEvidenceDocumentsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.disputeEvidenceDocuments,\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 DisputeEvidenceDocumentsQueryResult extends QueryCursorResult {\n items: DisputeEvidenceDocument[];\n query: DisputeEvidenceDocumentsQueryBuilder;\n next: () => Promise<DisputeEvidenceDocumentsQueryResult>;\n prev: () => Promise<DisputeEvidenceDocumentsQueryResult>;\n}\n\nexport interface DisputeEvidenceDocumentsQueryBuilder {\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeEvidenceDocumentsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'disputeId',\n value: boolean\n ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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) => DisputeEvidenceDocumentsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DisputeEvidenceDocumentsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DisputeEvidenceDocumentsQueryResult>;\n}\n\n/**\n * Synchronously update tags on multiple products, by list of product ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of NileProtoTagsEntities that their tags will update.\n * @internal\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTags\n */\nexport async function bulkUpdateDisputeEvidenceDocumentTags(\n ids: string[],\n options?: BulkUpdateDisputeEvidenceDocumentTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\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?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;\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 ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.bulkUpdateDisputeEvidenceDocumentTags(\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 BulkUpdateDisputeEvidenceDocumentTagsOptions {\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously update tags on multiple products, by provided filter\n * An empty filter will update all products\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param filter - Filter\n * @internal\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTagsByFilter\n */\nexport async function bulkUpdateDisputeEvidenceDocumentTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n `jobId`,\n 2\n > & {\n __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;\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 ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.bulkUpdateDisputeEvidenceDocumentTagsByFilter(\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 BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { 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 resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-evidence-documents';\n\n/** Creates a DisputeEvidenceDocument. */\nexport function createDisputeEvidenceDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDisputeEvidenceDocument({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'disputeEvidenceDocument.createdDate' },\n { path: 'disputeEvidenceDocument.updatedDate' },\n { path: 'disputeEvidenceDocument.submittedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/dispute-evidence-documents',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeEvidenceDocument.createdDate' },\n { path: 'disputeEvidenceDocument.updatedDate' },\n { path: 'disputeEvidenceDocument.submittedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDisputeEvidenceDocument;\n}\n\n/** Retrieves a DisputeEvidenceDocument. */\nexport function getDisputeEvidenceDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeEvidenceDocument({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath:\n '/v1/dispute-evidence-documents/{disputeEvidenceDocumentId}',\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: 'disputeEvidenceDocument.createdDate' },\n { path: 'disputeEvidenceDocument.updatedDate' },\n { path: 'disputeEvidenceDocument.submittedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeEvidenceDocument;\n}\n\n/** Deletes a DisputeEvidenceDocument. */\nexport function deleteDisputeEvidenceDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDisputeEvidenceDocument({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.DeleteDisputeEvidenceDocument',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath:\n '/v1/dispute-evidence-documents/{disputeEvidenceDocumentId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteDisputeEvidenceDocument;\n}\n\n/** Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1]. */\nexport function queryDisputeEvidenceDocuments(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeEvidenceDocuments({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/dispute-evidence-documents/query',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeEvidenceDocuments.createdDate' },\n { path: 'disputeEvidenceDocuments.updatedDate' },\n { path: 'disputeEvidenceDocuments.submittedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/dispute-evidence-documents/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeEvidenceDocuments;\n}\n\n/**\n * Synchronously update tags on multiple products, by list of product ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeEvidenceDocumentTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeEvidenceDocumentTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-evidence-documents/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeEvidenceDocumentTags;\n}\n\n/**\n * Asynchronously update tags on multiple products, by provided filter\n * An empty filter will update all products\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeEvidenceDocumentTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeEvidenceDocumentTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath:\n '/v1/bulk/dispute-evidence-documents/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeEvidenceDocumentTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n BulkUpdateDisputeEvidenceDocumentTagsOptions,\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\n DeleteDisputeEvidenceDocumentApplicationErrors,\n DisputeEvidenceDocument,\n DisputeEvidenceDocumentsQueryBuilder,\n bulkUpdateDisputeEvidenceDocumentTags as universalBulkUpdateDisputeEvidenceDocumentTags,\n bulkUpdateDisputeEvidenceDocumentTagsByFilter as universalBulkUpdateDisputeEvidenceDocumentTagsByFilter,\n createDisputeEvidenceDocument as universalCreateDisputeEvidenceDocument,\n deleteDisputeEvidenceDocument as universalDeleteDisputeEvidenceDocument,\n getDisputeEvidenceDocument as universalGetDisputeEvidenceDocument,\n queryDisputeEvidenceDocuments as universalQueryDisputeEvidenceDocuments,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\n/** @internal */\nexport function createDisputeEvidenceDocument(\n httpClient: HttpClient\n): CreateDisputeEvidenceDocumentSignature {\n return (\n disputeEvidenceDocument: NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId`,\n 2\n >\n ) =>\n universalCreateDisputeEvidenceDocument(\n disputeEvidenceDocument,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateDisputeEvidenceDocumentSignature {\n /**\n * Creates a DisputeEvidenceDocument.\n * @param - DisputeEvidenceDocument to be created.\n * @returns The created DisputeEvidenceDocument.\n */\n (\n disputeEvidenceDocument: NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId` | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function getDisputeEvidenceDocument(\n httpClient: HttpClient\n): GetDisputeEvidenceDocumentSignature {\n return (disputeEvidenceDocumentId: string) =>\n universalGetDisputeEvidenceDocument(\n disputeEvidenceDocumentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDisputeEvidenceDocumentSignature {\n /**\n * Retrieves a DisputeEvidenceDocument.\n * @param - ID of the DisputeEvidenceDocument to retrieve.\n * @returns The requested DisputeEvidenceDocument.\n */\n (disputeEvidenceDocumentId: string): Promise<\n NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId` | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function deleteDisputeEvidenceDocument(\n httpClient: HttpClient\n): DeleteDisputeEvidenceDocumentSignature {\n return (disputeEvidenceDocumentId: string) =>\n universalDeleteDisputeEvidenceDocument(\n disputeEvidenceDocumentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteDisputeEvidenceDocumentSignature {\n /**\n * Deletes a DisputeEvidenceDocument.\n * @param - Id of the DisputeEvidenceDocument to delete.\n */\n (disputeEvidenceDocumentId: string): Promise<\n void & {\n __applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;\n }\n >;\n}\n\n/** @internal */\nexport function queryDisputeEvidenceDocuments(\n httpClient: HttpClient\n): QueryDisputeEvidenceDocumentsSignature {\n return () =>\n universalQueryDisputeEvidenceDocuments(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryDisputeEvidenceDocumentsSignature {\n /**\n * Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].\n */\n (): DisputeEvidenceDocumentsQueryBuilder;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeEvidenceDocumentTags(\n httpClient: HttpClient\n): BulkUpdateDisputeEvidenceDocumentTagsSignature {\n return (\n ids: string[],\n options?: BulkUpdateDisputeEvidenceDocumentTagsOptions\n ) =>\n universalBulkUpdateDisputeEvidenceDocumentTags(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeEvidenceDocumentTagsSignature {\n /**\n * Synchronously update tags on multiple products, by list of product ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - List of NileProtoTagsEntities that their tags will update.\n */\n (\n ids: string[],\n options?: BulkUpdateDisputeEvidenceDocumentTagsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\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?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;\n }\n >;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeEvidenceDocumentTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateDisputeEvidenceDocumentTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions\n ) =>\n universalBulkUpdateDisputeEvidenceDocumentTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeEvidenceDocumentTagsByFilterSignature {\n /**\n * Asynchronously update tags on multiple products, by provided filter\n * An empty filter will update all products\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - Filter\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n `jobId`,\n 2\n > & {\n __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport {\n ActionEvent,\n ApplicationError,\n AttachDisputeEvidenceDocumentFileRequest,\n AttachDisputeEvidenceDocumentFileResponse,\n BulkActionMetadata,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n BulkUpdateDisputeEvidenceDocumentTagsOptions,\n BulkUpdateDisputeEvidenceDocumentTagsRequest,\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\n BulkUpdateDisputeEvidenceDocumentTagsResult,\n CreateDisputeEvidenceDocumentRequest,\n CreateDisputeEvidenceDocumentResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteDisputeEvidenceDocumentRequest,\n DeleteDisputeEvidenceDocumentResponse,\n DisputeEvidenceDocument,\n DisputeEvidenceDocumentsQueryBuilder,\n DisputeEvidenceDocumentsQueryResult,\n DocumentFile,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GenerateDisputeEvidenceDocumentDownloadUrlRequest,\n GenerateDisputeEvidenceDocumentDownloadUrlResponse,\n GenerateDisputeEvidenceDocumentUploadUrlRequest,\n GenerateDisputeEvidenceDocumentUploadUrlResponse,\n GetDisputeEvidenceDocumentRequest,\n GetDisputeEvidenceDocumentResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MarkDisputeEvidenceDocumentSubmittedRequest,\n MarkDisputeEvidenceDocumentSubmittedResponse,\n MessageEnvelope,\n MigrateDisputeEvidenceDocumentRequest,\n MigrateDisputeEvidenceDocumentResponse,\n QueryDisputeEvidenceDocumentsRequest,\n QueryDisputeEvidenceDocumentsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n SubmitMigratedDisputeEvidenceDocumentRequest,\n SubmitMigratedDisputeEvidenceDocumentResponse,\n TagList,\n Tags,\n WebhookIdentityType,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\n","import {\n createDisputeEvidenceDocument as publicCreateDisputeEvidenceDocument,\n getDisputeEvidenceDocument as publicGetDisputeEvidenceDocument,\n deleteDisputeEvidenceDocument as publicDeleteDisputeEvidenceDocument,\n queryDisputeEvidenceDocuments as publicQueryDisputeEvidenceDocuments,\n bulkUpdateDisputeEvidenceDocumentTags as publicBulkUpdateDisputeEvidenceDocumentTags,\n bulkUpdateDisputeEvidenceDocumentTagsByFilter as publicBulkUpdateDisputeEvidenceDocumentTagsByFilter,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const createDisputeEvidenceDocument: MaybeContext<\n BuildRESTFunction<typeof publicCreateDisputeEvidenceDocument> &\n typeof publicCreateDisputeEvidenceDocument\n> = /*#__PURE__*/ createRESTModule(publicCreateDisputeEvidenceDocument);\n/** @internal */\nexport const getDisputeEvidenceDocument: MaybeContext<\n BuildRESTFunction<typeof publicGetDisputeEvidenceDocument> &\n typeof publicGetDisputeEvidenceDocument\n> = /*#__PURE__*/ createRESTModule(publicGetDisputeEvidenceDocument);\n/** @internal */\nexport const deleteDisputeEvidenceDocument: MaybeContext<\n BuildRESTFunction<typeof publicDeleteDisputeEvidenceDocument> &\n typeof publicDeleteDisputeEvidenceDocument\n> = /*#__PURE__*/ createRESTModule(publicDeleteDisputeEvidenceDocument);\n/** @internal */\nexport const queryDisputeEvidenceDocuments: MaybeContext<\n BuildRESTFunction<typeof publicQueryDisputeEvidenceDocuments> &\n typeof publicQueryDisputeEvidenceDocuments\n> = /*#__PURE__*/ createRESTModule(publicQueryDisputeEvidenceDocuments);\n/** @internal */\nexport const bulkUpdateDisputeEvidenceDocumentTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeEvidenceDocumentTags> &\n typeof publicBulkUpdateDisputeEvidenceDocumentTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateDisputeEvidenceDocumentTags);\n/** @internal */\nexport const bulkUpdateDisputeEvidenceDocumentTagsByFilter: MaybeContext<\n BuildRESTFunction<\n typeof publicBulkUpdateDisputeEvidenceDocumentTagsByFilter\n > &\n typeof publicBulkUpdateDisputeEvidenceDocumentTagsByFilter\n> = /*#__PURE__*/ createRESTModule(\n publicBulkUpdateDisputeEvidenceDocumentTagsByFilter\n);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\nexport {\n DisputeEvidenceDocument,\n DocumentFile,\n ExtendedFields,\n Tags,\n TagList,\n CreateDisputeEvidenceDocumentRequest,\n CreateDisputeEvidenceDocumentResponse,\n GetDisputeEvidenceDocumentRequest,\n GetDisputeEvidenceDocumentResponse,\n DeleteDisputeEvidenceDocumentRequest,\n DeleteDisputeEvidenceDocumentResponse,\n QueryDisputeEvidenceDocumentsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryDisputeEvidenceDocumentsResponse,\n CursorPagingMetadata,\n Cursors,\n BulkUpdateDisputeEvidenceDocumentTagsRequest,\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\n ItemMetadata,\n ApplicationError,\n BulkUpdateDisputeEvidenceDocumentTagsResult,\n BulkActionMetadata,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n MigrateDisputeEvidenceDocumentRequest,\n MigrateDisputeEvidenceDocumentResponse,\n SubmitMigratedDisputeEvidenceDocumentRequest,\n SubmitMigratedDisputeEvidenceDocumentResponse,\n GenerateDisputeEvidenceDocumentUploadUrlRequest,\n GenerateDisputeEvidenceDocumentUploadUrlResponse,\n AttachDisputeEvidenceDocumentFileRequest,\n AttachDisputeEvidenceDocumentFileResponse,\n GenerateDisputeEvidenceDocumentDownloadUrlRequest,\n GenerateDisputeEvidenceDocumentDownloadUrlResponse,\n MarkDisputeEvidenceDocumentSubmittedRequest,\n MarkDisputeEvidenceDocumentSubmittedResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n DisputeEvidenceDocumentsQueryResult,\n DisputeEvidenceDocumentsQueryBuilder,\n BulkUpdateDisputeEvidenceDocumentTagsOptions,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n DeleteDisputeEvidenceDocumentApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAA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,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AEvkCO,SAASC,+BACd,YACwC;AACxC,SAAO,CACL,4BAMAA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAwBO,SAASC,4BACd,YACqC;AACrC,SAAO,CAAC,8BACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAkBO,SAASC,+BACd,YACwC;AACxC,SAAO,CAAC,8BACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAeO,SAASC,+BACd,YACwC;AACxC,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAUO,SAASC,uCACd,YACgD;AAChD,SAAO,CACL,KACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA8BO,SAASC,+CACd,YACwD;AACxD,SAAO,CACL,QACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClLA,SAAS,wBAAwB;AAI1B,IAAMC,iCAGK,iCAAiBA,8BAAmC;AAE/D,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAE5D,IAAMC,iCAGK,iCAAiBA,8BAAmC;AAE/D,IAAMC,iCAGK,iCAAiBA,8BAAmC;AAE/D,IAAMC,yCAGK,iCAAiBA,sCAA2C;AAEvE,IAAMC,iDAKK;AAAA,EAChBA;AACF;","names":["payload","transformPaths","SortOrder","WebhookIdentityType","createDisputeEvidenceDocument","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter","createDisputeEvidenceDocument","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter","createDisputeEvidenceDocument","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter"]}
1
+ {"version":3,"sources":["../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.public.ts","../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.ts","../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.http.ts","../../../src/payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n BulkUpdateDisputeEvidenceDocumentTagsOptions,\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\n DeleteDisputeEvidenceDocumentApplicationErrors,\n DisputeEvidenceDocument,\n DisputeEvidenceDocumentCreatedEnvelope,\n DisputeEvidenceDocumentDeletedEnvelope,\n DisputeEvidenceDocumentUpdatedEnvelope,\n DisputeEvidenceDocumentsQueryBuilder,\n bulkUpdateDisputeEvidenceDocumentTags as universalBulkUpdateDisputeEvidenceDocumentTags,\n bulkUpdateDisputeEvidenceDocumentTagsByFilter as universalBulkUpdateDisputeEvidenceDocumentTagsByFilter,\n createDisputeEvidenceDocument as universalCreateDisputeEvidenceDocument,\n deleteDisputeEvidenceDocument as universalDeleteDisputeEvidenceDocument,\n getDisputeEvidenceDocument as universalGetDisputeEvidenceDocument,\n queryDisputeEvidenceDocuments as universalQueryDisputeEvidenceDocuments,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\nexport function createDisputeEvidenceDocument(\n httpClient: HttpClient\n): CreateDisputeEvidenceDocumentSignature {\n return (\n disputeEvidenceDocument: NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId`,\n 2\n >\n ) =>\n universalCreateDisputeEvidenceDocument(\n disputeEvidenceDocument,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateDisputeEvidenceDocumentSignature {\n /**\n * Creates a DisputeEvidenceDocument.\n * @param - DisputeEvidenceDocument to be created.\n * @returns The created DisputeEvidenceDocument.\n */\n (\n disputeEvidenceDocument: NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n DisputeEvidenceDocument,\n `_id` | `disputeId` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function getDisputeEvidenceDocument(\n httpClient: HttpClient\n): GetDisputeEvidenceDocumentSignature {\n return (disputeEvidenceDocumentId: string) =>\n universalGetDisputeEvidenceDocument(\n disputeEvidenceDocumentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDisputeEvidenceDocumentSignature {\n /**\n * Retrieves a DisputeEvidenceDocument.\n * @param - ID of the DisputeEvidenceDocument to retrieve.\n * @returns The requested DisputeEvidenceDocument.\n */\n (disputeEvidenceDocumentId: string): Promise<\n NonNullablePaths<\n DisputeEvidenceDocument,\n `_id` | `disputeId` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function deleteDisputeEvidenceDocument(\n httpClient: HttpClient\n): DeleteDisputeEvidenceDocumentSignature {\n return (disputeEvidenceDocumentId: string) =>\n universalDeleteDisputeEvidenceDocument(\n disputeEvidenceDocumentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteDisputeEvidenceDocumentSignature {\n /**\n * Deletes a DisputeEvidenceDocument.\n * @param - Id of the DisputeEvidenceDocument to delete.\n */\n (disputeEvidenceDocumentId: string): Promise<\n void & {\n __applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;\n }\n >;\n}\n\nexport function queryDisputeEvidenceDocuments(\n httpClient: HttpClient\n): QueryDisputeEvidenceDocumentsSignature {\n return () =>\n universalQueryDisputeEvidenceDocuments(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryDisputeEvidenceDocumentsSignature {\n /**\n * Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].\n */\n (): DisputeEvidenceDocumentsQueryBuilder;\n}\n\nexport function bulkUpdateDisputeEvidenceDocumentTags(\n httpClient: HttpClient\n): BulkUpdateDisputeEvidenceDocumentTagsSignature {\n return (\n ids: string[],\n options?: BulkUpdateDisputeEvidenceDocumentTagsOptions\n ) =>\n universalBulkUpdateDisputeEvidenceDocumentTags(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeEvidenceDocumentTagsSignature {\n /**\n * Synchronously update tags on multiple dispute evidence documents, by list of dispute evidence document ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - List of NileProtoTagsEntities that their tags will update.\n */\n (\n ids: string[],\n options?: BulkUpdateDisputeEvidenceDocumentTagsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\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?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;\n }\n >;\n}\n\nexport function bulkUpdateDisputeEvidenceDocumentTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateDisputeEvidenceDocumentTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions\n ) =>\n universalBulkUpdateDisputeEvidenceDocumentTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeEvidenceDocumentTagsByFilterSignature {\n /**\n * Asynchronously update tags on multiple dispute evidence documents, by provided filter.\n * An empty filter will update all dispute evidence documents\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - Filter\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n `jobId`,\n 2\n > & {\n __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport const onDisputeEvidenceDocumentCreated = EventDefinition(\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_created',\n true,\n (event: DisputeEvidenceDocumentCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'entity.submittedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<DisputeEvidenceDocumentCreatedEnvelope>();\nexport const onDisputeEvidenceDocumentDeleted = EventDefinition(\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_deleted',\n true,\n (event: DisputeEvidenceDocumentDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'entity.submittedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<DisputeEvidenceDocumentDeletedEnvelope>();\nexport const onDisputeEvidenceDocumentUpdated = EventDefinition(\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_updated',\n true,\n (event: DisputeEvidenceDocumentUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'entity.submittedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<DisputeEvidenceDocumentUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n ApplicationError,\n AttachDisputeEvidenceDocumentFileRequest,\n AttachDisputeEvidenceDocumentFileResponse,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n BulkUpdateDisputeEvidenceDocumentTagsOptions,\n BulkUpdateDisputeEvidenceDocumentTagsRequest,\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\n BulkUpdateDisputeEvidenceDocumentTagsResult,\n CreateDisputeEvidenceDocumentRequest,\n CreateDisputeEvidenceDocumentResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteDisputeEvidenceDocumentRequest,\n DeleteDisputeEvidenceDocumentResponse,\n DisputeEvidenceDocument,\n DisputeEvidenceDocumentCreatedEnvelope,\n DisputeEvidenceDocumentDeletedEnvelope,\n DisputeEvidenceDocumentUpdatedEnvelope,\n DisputeEvidenceDocumentsQueryBuilder,\n DisputeEvidenceDocumentsQueryResult,\n DocumentFile,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n GenerateDisputeEvidenceDocumentDownloadUrlRequest,\n GenerateDisputeEvidenceDocumentDownloadUrlResponse,\n GenerateDisputeEvidenceDocumentUploadUrlRequest,\n GenerateDisputeEvidenceDocumentUploadUrlResponse,\n GetDisputeEvidenceDocumentRequest,\n GetDisputeEvidenceDocumentResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MarkDisputeEvidenceDocumentSubmittedRequest,\n MarkDisputeEvidenceDocumentSubmittedResponse,\n MessageEnvelope,\n MigrateDisputeEvidenceDocumentRequest,\n MigrateDisputeEvidenceDocumentResponse,\n QueryDisputeEvidenceDocumentsRequest,\n QueryDisputeEvidenceDocumentsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n SubmitMigratedDisputeEvidenceDocumentRequest,\n SubmitMigratedDisputeEvidenceDocumentResponse,\n TagList,\n Tags,\n TagsModified,\n WebhookIdentityType,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.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 { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Dispute Evidence Document */\nexport interface DisputeEvidenceDocument {\n /**\n * DisputeEvidenceDocument ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n _id?: string;\n /**\n * Revision number, which increments by 1 each time the dispute evidence document is updated.\n * To prevent conflicting changes, the existing revision must be specified when updating a dispute evidence document.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DisputeEvidenceDocument was created.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DisputeEvidenceDocument was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Dispute ID\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Document evidence file if it was uploaded and attached\n * @readonly\n */\n file?: DocumentFile;\n /**\n * Custom field data for the dispute evidence document.\n * Extended fields must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\nexport interface DocumentFile {\n /**\n * Document filename.\n * @readonly\n * @maxLength 255\n */\n filename?: string | null;\n /**\n * Document size in bytes.\n * @readonly\n */\n sizeInBytes?: string | null;\n /**\n * Hexadecimal representation of the document's MD5 digest.\n * @minLength 32\n * @maxLength 32\n * @readonly\n */\n hexMd5Digest?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * 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\nexport interface TagsModified {\n /** Updated DisputeEvidenceDocument. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n /** Tags that were assigned to the DisputeEvidenceDocument. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the DisputeEvidenceDocument. */\n unassignedTags?: Tags;\n}\n\nexport interface CreateDisputeEvidenceDocumentRequest {\n /** DisputeEvidenceDocument to be created. */\n disputeEvidenceDocument: DisputeEvidenceDocument;\n}\n\nexport interface CreateDisputeEvidenceDocumentResponse {\n /** The created DisputeEvidenceDocument. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n /**\n * Upload URL to upload file evidence\n * @format WEB_URL\n */\n uploadUrl?: string | null;\n}\n\nexport interface GetDisputeEvidenceDocumentRequest {\n /**\n * ID of the DisputeEvidenceDocument to retrieve.\n * @format GUID\n */\n disputeEvidenceDocumentId: string;\n}\n\nexport interface GetDisputeEvidenceDocumentResponse {\n /** The requested DisputeEvidenceDocument. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n}\n\nexport interface DeleteDisputeEvidenceDocumentRequest {\n /**\n * Id of the DisputeEvidenceDocument to delete.\n * @format GUID\n */\n disputeEvidenceDocumentId: string;\n}\n\nexport interface DeleteDisputeEvidenceDocumentResponse {}\n\nexport interface QueryDisputeEvidenceDocumentsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryDisputeEvidenceDocumentsResponse {\n /** List of DisputeEvidenceDocuments. */\n disputeEvidenceDocuments?: DisputeEvidenceDocument[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsRequest {\n /**\n * List of NileProtoTagsEntities that their tags will update.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeEvidenceDocumentTagsResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest {\n /** Filter */\n filter: Record<string, any> | null;\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {\n /**\n * Pass this ID to Get Async Job\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface MigrateDisputeEvidenceDocumentRequest {\n /**\n * Dispute Id\n * @format GUID\n */\n disputeId?: string;\n /**\n * Evidence Id\n * @format GUID\n */\n evidenceId?: string;\n /**\n * External evidence document Id\n * @minLength 1\n * @maxLength 64\n */\n evidenceDocumentId?: string;\n /**\n * File hash\n * @minLength 32\n * @maxLength 32\n */\n hash?: string | null;\n /** Created date */\n _createdDate?: Date | null;\n}\n\nexport interface MigrateDisputeEvidenceDocumentResponse {}\n\nexport interface SubmitMigratedDisputeEvidenceDocumentRequest {\n /**\n * Dispute Id\n * @format GUID\n */\n disputeId?: string;\n /**\n * Evidence Id\n * @format GUID\n */\n evidenceId?: string;\n /** Submitted date */\n submittedDate?: Date | null;\n}\n\nexport interface SubmitMigratedDisputeEvidenceDocumentResponse {}\n\nexport interface GenerateDisputeEvidenceDocumentUploadUrlRequest {\n /**\n * Dispute Evidence Document ID\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n /**\n * Name of the uploaded file\n * @minLength 1\n * @maxLength 255\n */\n filename?: string;\n}\n\nexport interface GenerateDisputeEvidenceDocumentUploadUrlResponse {\n /**\n * Evidence Document upload URL\n * @format WEB_URL\n */\n uploadUrl?: string;\n}\n\nexport interface AttachDisputeEvidenceDocumentFileRequest {\n /**\n * Dispute Evidence Document ID\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\nexport interface AttachDisputeEvidenceDocumentFileResponse {\n /** Dispute Evidence Document */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n}\n\n/** it will be removed */\nexport interface GenerateDisputeEvidenceDocumentDownloadUrlRequest {\n /**\n * ID of the DisputeEvidenceDocument to generate Download Url.\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\n/** it will be removed */\nexport interface GenerateDisputeEvidenceDocumentDownloadUrlResponse {\n /**\n * Document source URL.\n * @format WEB_URL\n */\n url?: string | null;\n /** Document source URL expiration date (when relevant). */\n urlExpirationDate?: Date | null;\n}\n\n/** it will be removed */\nexport interface MarkDisputeEvidenceDocumentSubmittedRequest {\n /**\n * Id of the DisputeEvidenceDocument to mark as submitted.\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\n/** it will be removed */\nexport interface MarkDisputeEvidenceDocumentSubmittedResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type DeleteDisputeEvidenceDocumentApplicationErrors = {\n code?: 'DISPUTE_EVIDENCE_DOCUMENT_ALREADY_SUBMITTED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\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}\n\nexport interface EventMetadata extends BaseEventMetadata {\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\nexport interface DisputeEvidenceDocumentCreatedEnvelope {\n entity: DisputeEvidenceDocument;\n metadata: EventMetadata;\n}\n\n/** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @webhook\n * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onDisputeEvidenceDocumentCreated(\n handler: (\n event: DisputeEvidenceDocumentCreatedEnvelope\n ) => void | Promise<void>\n): void;\n\nexport interface DisputeEvidenceDocumentDeletedEnvelope {\n entity: DisputeEvidenceDocument;\n metadata: EventMetadata;\n}\n\n/** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @webhook\n * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onDisputeEvidenceDocumentDeleted(\n handler: (\n event: DisputeEvidenceDocumentDeletedEnvelope\n ) => void | Promise<void>\n): void;\n\nexport interface DisputeEvidenceDocumentUpdatedEnvelope {\n entity: DisputeEvidenceDocument;\n metadata: EventMetadata;\n}\n\n/** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @webhook\n * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onDisputeEvidenceDocumentUpdated(\n handler: (\n event: DisputeEvidenceDocumentUpdatedEnvelope\n ) => void | Promise<void>\n): void;\n\n/**\n * Creates a DisputeEvidenceDocument.\n * @param disputeEvidenceDocument - DisputeEvidenceDocument to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocument\n * @requiredField disputeEvidenceDocument.disputeId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_CREATE\n * @returns The created DisputeEvidenceDocument.\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument\n */\nexport async function createDisputeEvidenceDocument(\n disputeEvidenceDocument: NonNullablePaths<\n DisputeEvidenceDocument,\n `disputeId`,\n 2\n >\n): Promise<\n NonNullablePaths<\n DisputeEvidenceDocument,\n `_id` | `disputeId` | `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 disputeEvidenceDocument: disputeEvidenceDocument,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.createDisputeEvidenceDocument(\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 ?.disputeEvidenceDocument!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeEvidenceDocument: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeEvidenceDocument']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a DisputeEvidenceDocument.\n * @param disputeEvidenceDocumentId - ID of the DisputeEvidenceDocument to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocumentId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @returns The requested DisputeEvidenceDocument.\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument\n */\nexport async function getDisputeEvidenceDocument(\n disputeEvidenceDocumentId: string\n): Promise<\n NonNullablePaths<\n DisputeEvidenceDocument,\n `_id` | `disputeId` | `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 disputeEvidenceDocumentId: disputeEvidenceDocumentId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.getDisputeEvidenceDocument(\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 ?.disputeEvidenceDocument!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeEvidenceDocumentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeEvidenceDocumentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes a DisputeEvidenceDocument.\n * @param disputeEvidenceDocumentId - Id of the DisputeEvidenceDocument to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocumentId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_DELETE\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.DeleteDisputeEvidenceDocument\n */\nexport async function deleteDisputeEvidenceDocument(\n disputeEvidenceDocumentId: string\n): Promise<\n void & {\n __applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;\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 disputeEvidenceDocumentId: disputeEvidenceDocumentId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.deleteDisputeEvidenceDocument(\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: { disputeEvidenceDocumentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeEvidenceDocumentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].\n * @public\n * @documentationMaturity preview\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments\n */\nexport function queryDisputeEvidenceDocuments(): DisputeEvidenceDocumentsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n DisputeEvidenceDocument,\n 'CURSOR',\n QueryDisputeEvidenceDocumentsRequest,\n QueryDisputeEvidenceDocumentsResponse\n >({\n func: async (payload: QueryDisputeEvidenceDocumentsRequest) => {\n const reqOpts =\n ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.queryDisputeEvidenceDocuments(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (\n query: QueryDisputeEvidenceDocumentsRequest['query']\n ) => {\n const args = [query, {}] as [\n QueryDisputeEvidenceDocumentsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryDisputeEvidenceDocumentsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.disputeEvidenceDocuments,\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 DisputeEvidenceDocumentsQueryResult extends QueryCursorResult {\n items: DisputeEvidenceDocument[];\n query: DisputeEvidenceDocumentsQueryBuilder;\n next: () => Promise<DisputeEvidenceDocumentsQueryResult>;\n prev: () => Promise<DisputeEvidenceDocumentsQueryResult>;\n}\n\nexport interface DisputeEvidenceDocumentsQueryBuilder {\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeEvidenceDocumentsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'disputeId',\n value: boolean\n ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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 ) => DisputeEvidenceDocumentsQueryBuilder;\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) => DisputeEvidenceDocumentsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DisputeEvidenceDocumentsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DisputeEvidenceDocumentsQueryResult>;\n}\n\n/**\n * Synchronously update tags on multiple dispute evidence documents, by list of dispute evidence document ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of NileProtoTagsEntities that their tags will update.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTags\n */\nexport async function bulkUpdateDisputeEvidenceDocumentTags(\n ids: string[],\n options?: BulkUpdateDisputeEvidenceDocumentTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\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?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;\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 ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.bulkUpdateDisputeEvidenceDocumentTags(\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 BulkUpdateDisputeEvidenceDocumentTagsOptions {\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously update tags on multiple dispute evidence documents, by provided filter.\n * An empty filter will update all dispute evidence documents\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param filter - Filter\n * @public\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS\n * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTagsByFilter\n */\nexport async function bulkUpdateDisputeEvidenceDocumentTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n `jobId`,\n 2\n > & {\n __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;\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 ambassadorWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocument.bulkUpdateDisputeEvidenceDocumentTagsByFilter(\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 BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { 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 resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-evidence-documents';\n\n/** Creates a DisputeEvidenceDocument. */\nexport function createDisputeEvidenceDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDisputeEvidenceDocument({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'disputeEvidenceDocument.createdDate' },\n { path: 'disputeEvidenceDocument.updatedDate' },\n { path: 'disputeEvidenceDocument.submittedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/dispute-evidence-documents',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeEvidenceDocument.createdDate' },\n { path: 'disputeEvidenceDocument.updatedDate' },\n { path: 'disputeEvidenceDocument.submittedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDisputeEvidenceDocument;\n}\n\n/** Retrieves a DisputeEvidenceDocument. */\nexport function getDisputeEvidenceDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeEvidenceDocument({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath:\n '/v1/dispute-evidence-documents/{disputeEvidenceDocumentId}',\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: 'disputeEvidenceDocument.createdDate' },\n { path: 'disputeEvidenceDocument.updatedDate' },\n { path: 'disputeEvidenceDocument.submittedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeEvidenceDocument;\n}\n\n/** Deletes a DisputeEvidenceDocument. */\nexport function deleteDisputeEvidenceDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDisputeEvidenceDocument({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.DeleteDisputeEvidenceDocument',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath:\n '/v1/dispute-evidence-documents/{disputeEvidenceDocumentId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteDisputeEvidenceDocument;\n}\n\n/** Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1]. */\nexport function queryDisputeEvidenceDocuments(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeEvidenceDocuments({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/dispute-evidence-documents/query',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeEvidenceDocuments.createdDate' },\n { path: 'disputeEvidenceDocuments.updatedDate' },\n { path: 'disputeEvidenceDocuments.submittedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/dispute-evidence-documents/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeEvidenceDocuments;\n}\n\n/**\n * Synchronously update tags on multiple dispute evidence documents, by list of dispute evidence document ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeEvidenceDocumentTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeEvidenceDocumentTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-evidence-documents/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeEvidenceDocumentTags;\n}\n\n/**\n * Asynchronously update tags on multiple dispute evidence documents, by provided filter.\n * An empty filter will update all dispute evidence documents\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeEvidenceDocumentTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeEvidenceDocumentTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_evidence_documents.v1.dispute_evidence_document',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeEvidenceDocumentsV1DisputeEvidenceDocumentServiceUrl(\n {\n protoPath:\n '/v1/bulk/dispute-evidence-documents/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeEvidenceDocumentTagsByFilter;\n}\n","import {\n createDisputeEvidenceDocument as publicCreateDisputeEvidenceDocument,\n getDisputeEvidenceDocument as publicGetDisputeEvidenceDocument,\n deleteDisputeEvidenceDocument as publicDeleteDisputeEvidenceDocument,\n queryDisputeEvidenceDocuments as publicQueryDisputeEvidenceDocuments,\n bulkUpdateDisputeEvidenceDocumentTags as publicBulkUpdateDisputeEvidenceDocumentTags,\n bulkUpdateDisputeEvidenceDocumentTagsByFilter as publicBulkUpdateDisputeEvidenceDocumentTagsByFilter,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onDisputeEvidenceDocumentCreated as publicOnDisputeEvidenceDocumentCreated } from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.public.js';\nimport { onDisputeEvidenceDocumentDeleted as publicOnDisputeEvidenceDocumentDeleted } from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.public.js';\nimport { onDisputeEvidenceDocumentUpdated as publicOnDisputeEvidenceDocumentUpdated } from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.public.js';\n\nexport const createDisputeEvidenceDocument: MaybeContext<\n BuildRESTFunction<typeof publicCreateDisputeEvidenceDocument> &\n typeof publicCreateDisputeEvidenceDocument\n> = /*#__PURE__*/ createRESTModule(publicCreateDisputeEvidenceDocument);\nexport const getDisputeEvidenceDocument: MaybeContext<\n BuildRESTFunction<typeof publicGetDisputeEvidenceDocument> &\n typeof publicGetDisputeEvidenceDocument\n> = /*#__PURE__*/ createRESTModule(publicGetDisputeEvidenceDocument);\nexport const deleteDisputeEvidenceDocument: MaybeContext<\n BuildRESTFunction<typeof publicDeleteDisputeEvidenceDocument> &\n typeof publicDeleteDisputeEvidenceDocument\n> = /*#__PURE__*/ createRESTModule(publicDeleteDisputeEvidenceDocument);\nexport const queryDisputeEvidenceDocuments: MaybeContext<\n BuildRESTFunction<typeof publicQueryDisputeEvidenceDocuments> &\n typeof publicQueryDisputeEvidenceDocuments\n> = /*#__PURE__*/ createRESTModule(publicQueryDisputeEvidenceDocuments);\nexport const bulkUpdateDisputeEvidenceDocumentTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeEvidenceDocumentTags> &\n typeof publicBulkUpdateDisputeEvidenceDocumentTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateDisputeEvidenceDocumentTags);\nexport const bulkUpdateDisputeEvidenceDocumentTagsByFilter: MaybeContext<\n BuildRESTFunction<\n typeof publicBulkUpdateDisputeEvidenceDocumentTagsByFilter\n > &\n typeof publicBulkUpdateDisputeEvidenceDocumentTagsByFilter\n> = /*#__PURE__*/ createRESTModule(\n publicBulkUpdateDisputeEvidenceDocumentTagsByFilter\n);\n/** */\nexport const onDisputeEvidenceDocumentCreated: BuildEventDefinition<\n typeof publicOnDisputeEvidenceDocumentCreated\n> &\n typeof publicOnDisputeEvidenceDocumentCreated = createEventModule(\n publicOnDisputeEvidenceDocumentCreated\n);\n/** */\nexport const onDisputeEvidenceDocumentDeleted: BuildEventDefinition<\n typeof publicOnDisputeEvidenceDocumentDeleted\n> &\n typeof publicOnDisputeEvidenceDocumentDeleted = createEventModule(\n publicOnDisputeEvidenceDocumentDeleted\n);\n/** */\nexport const onDisputeEvidenceDocumentUpdated: BuildEventDefinition<\n typeof publicOnDisputeEvidenceDocumentUpdated\n> &\n typeof publicOnDisputeEvidenceDocumentUpdated = createEventModule(\n publicOnDisputeEvidenceDocumentUpdated\n);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\nexport {\n DisputeEvidenceDocument,\n DocumentFile,\n ExtendedFields,\n Tags,\n TagList,\n TagsModified,\n CreateDisputeEvidenceDocumentRequest,\n CreateDisputeEvidenceDocumentResponse,\n GetDisputeEvidenceDocumentRequest,\n GetDisputeEvidenceDocumentResponse,\n DeleteDisputeEvidenceDocumentRequest,\n DeleteDisputeEvidenceDocumentResponse,\n QueryDisputeEvidenceDocumentsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryDisputeEvidenceDocumentsResponse,\n CursorPagingMetadata,\n Cursors,\n BulkUpdateDisputeEvidenceDocumentTagsRequest,\n BulkUpdateDisputeEvidenceDocumentTagsResponse,\n ItemMetadata,\n ApplicationError,\n BulkUpdateDisputeEvidenceDocumentTagsResult,\n BulkActionMetadata,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse,\n MigrateDisputeEvidenceDocumentRequest,\n MigrateDisputeEvidenceDocumentResponse,\n SubmitMigratedDisputeEvidenceDocumentRequest,\n SubmitMigratedDisputeEvidenceDocumentResponse,\n GenerateDisputeEvidenceDocumentUploadUrlRequest,\n GenerateDisputeEvidenceDocumentUploadUrlResponse,\n AttachDisputeEvidenceDocumentFileRequest,\n AttachDisputeEvidenceDocumentFileResponse,\n GenerateDisputeEvidenceDocumentDownloadUrlRequest,\n GenerateDisputeEvidenceDocumentDownloadUrlResponse,\n MarkDisputeEvidenceDocumentSubmittedRequest,\n MarkDisputeEvidenceDocumentSubmittedResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n DisputeEvidenceDocumentCreatedEnvelope,\n DisputeEvidenceDocumentDeletedEnvelope,\n DisputeEvidenceDocumentUpdatedEnvelope,\n DisputeEvidenceDocumentsQueryResult,\n DisputeEvidenceDocumentsQueryBuilder,\n BulkUpdateDisputeEvidenceDocumentTagsOptions,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n DeleteDisputeEvidenceDocumentApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors,\n BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors,\n} from './payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACH9D,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8EACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE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,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,uBAAuB;AAAA,UAC/B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA0C;AACnC,IAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA,CAAC,UACCF;AAAA,IACEC,gBAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,uBAAuB;AAAA,UAC/B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA0C;;;AG9P1C,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAU3B,IAAMC,iCAGK,iCAAiBA,8BAAmC;AAC/D,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAC5D,IAAMC,iCAGK,iCAAiBA,8BAAmC;AAC/D,IAAMC,iCAGK,iCAAiBA,8BAAmC;AAC/D,IAAMC,yCAGK,iCAAiBA,sCAA2C;AACvE,IAAMC,iDAKK;AAAA,EAChBA;AACF;AAEO,IAAMC,oCAGqC;AAAA,EAChD;AACF;AAEO,IAAMC,oCAGqC;AAAA,EAChD;AACF;AAEO,IAAMC,oCAGqC;AAAA,EAChD;AACF;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTTimestampToSDKTimestamp","transformPaths","payload","transformPaths","SortOrder","WebhookIdentityType","createDisputeEvidenceDocument","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter","createDisputeEvidenceDocument","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","createDisputeEvidenceDocument","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter","onDisputeEvidenceDocumentCreated","onDisputeEvidenceDocumentDeleted","onDisputeEvidenceDocumentUpdated"]}
@@ -8,9 +8,10 @@ interface DisputeEvidenceDocument {
8
8
  * @readonly
9
9
  * @immutable
10
10
  */
11
- _id?: string | null;
11
+ _id?: string;
12
12
  /**
13
- * Revision number
13
+ * Revision number, which increments by 1 each time the dispute evidence document is updated.
14
+ * To prevent conflicting changes, the existing revision must be specified when updating a dispute evidence document.
14
15
  * @readonly
15
16
  */
16
17
  revision?: string | null;
@@ -37,11 +38,9 @@ interface DisputeEvidenceDocument {
37
38
  */
38
39
  file?: DocumentFile;
39
40
  /**
40
- * Submitted date
41
- * @readonly
41
+ * Custom field data for the dispute evidence document.
42
+ * Extended fields must be configured in the app dashboard before they can be accessed with API calls.
42
43
  */
43
- submittedDate?: Date | null;
44
- /** Data Extensions */
45
44
  extendedFields?: ExtendedFields;
46
45
  /** Tags */
47
46
  tags?: Tags;
@@ -81,6 +80,7 @@ interface ExtendedFields {
81
80
  * Common object for tags.
82
81
  * Should be use as in this example:
83
82
  * message Foo {
83
+ * option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
84
84
  * string id = 1;
85
85
  * ...
86
86
  * Tags tags = 5
@@ -90,7 +90,7 @@ interface ExtendedFields {
90
90
  * {
91
91
  * id: "123"
92
92
  * tags: {
93
- * tags: {
93
+ * public_tags: {
94
94
  * tag_ids:["11","22"]
95
95
  * },
96
96
  * private_tags: {
@@ -100,17 +100,27 @@ interface ExtendedFields {
100
100
  * }
101
101
  */
102
102
  interface Tags {
103
+ /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
104
+ privateTags?: TagList;
103
105
  /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
104
- tags?: TagList;
106
+ publicTags?: TagList;
105
107
  }
106
108
  interface TagList {
107
109
  /**
108
- * List of tag IDs
110
+ * List of tag IDs.
109
111
  * @maxSize 100
110
112
  * @maxLength 5
111
113
  */
112
114
  tagIds?: string[];
113
115
  }
116
+ interface TagsModified {
117
+ /** Updated DisputeEvidenceDocument. */
118
+ disputeEvidenceDocument?: DisputeEvidenceDocument;
119
+ /** Tags that were assigned to the DisputeEvidenceDocument. */
120
+ assignedTags?: Tags;
121
+ /** Tags that were unassigned from the DisputeEvidenceDocument. */
122
+ unassignedTags?: Tags;
123
+ }
114
124
  interface CreateDisputeEvidenceDocumentRequest {
115
125
  /** DisputeEvidenceDocument to be created. */
116
126
  disputeEvidenceDocument: DisputeEvidenceDocument;
@@ -119,7 +129,7 @@ interface CreateDisputeEvidenceDocumentResponse {
119
129
  /** The created DisputeEvidenceDocument. */
120
130
  disputeEvidenceDocument?: DisputeEvidenceDocument;
121
131
  /**
122
- * Evidence Document upload URL
132
+ * Upload URL to upload file evidence
123
133
  * @format WEB_URL
124
134
  */
125
135
  uploadUrl?: string | null;
@@ -299,7 +309,7 @@ interface BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest {
299
309
  }
300
310
  interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {
301
311
  /**
302
- * Job ID
312
+ * Pass this ID to Get Async Job
303
313
  * @format GUID
304
314
  */
305
315
  jobId?: string;
@@ -379,6 +389,7 @@ interface AttachDisputeEvidenceDocumentFileResponse {
379
389
  /** Dispute Evidence Document */
380
390
  disputeEvidenceDocument?: DisputeEvidenceDocument;
381
391
  }
392
+ /** it will be removed */
382
393
  interface GenerateDisputeEvidenceDocumentDownloadUrlRequest {
383
394
  /**
384
395
  * ID of the DisputeEvidenceDocument to generate Download Url.
@@ -386,6 +397,7 @@ interface GenerateDisputeEvidenceDocumentDownloadUrlRequest {
386
397
  */
387
398
  disputeEvidenceDocumentId?: string;
388
399
  }
400
+ /** it will be removed */
389
401
  interface GenerateDisputeEvidenceDocumentDownloadUrlResponse {
390
402
  /**
391
403
  * Document source URL.
@@ -395,6 +407,7 @@ interface GenerateDisputeEvidenceDocumentDownloadUrlResponse {
395
407
  /** Document source URL expiration date (when relevant). */
396
408
  urlExpirationDate?: Date | null;
397
409
  }
410
+ /** it will be removed */
398
411
  interface MarkDisputeEvidenceDocumentSubmittedRequest {
399
412
  /**
400
413
  * Id of the DisputeEvidenceDocument to mark as submitted.
@@ -402,6 +415,7 @@ interface MarkDisputeEvidenceDocumentSubmittedRequest {
402
415
  */
403
416
  disputeEvidenceDocumentId?: string;
404
417
  }
418
+ /** it will be removed */
405
419
  interface MarkDisputeEvidenceDocumentSubmittedResponse {
406
420
  }
407
421
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -556,10 +570,87 @@ type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors = {
556
570
  description?: string;
557
571
  data?: Record<string, any>;
558
572
  };
573
+ interface BaseEventMetadata {
574
+ /**
575
+ * App instance ID.
576
+ * @format GUID
577
+ */
578
+ instanceId?: string | null;
579
+ /**
580
+ * Event type.
581
+ * @maxLength 150
582
+ */
583
+ eventType?: string;
584
+ /** The identification type and identity data. */
585
+ identity?: IdentificationData;
586
+ }
587
+ interface EventMetadata extends BaseEventMetadata {
588
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
589
+ _id?: string;
590
+ /**
591
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
592
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
593
+ */
594
+ entityFqdn?: string;
595
+ /**
596
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
597
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
598
+ */
599
+ slug?: string;
600
+ /** ID of the entity associated with the event. */
601
+ entityId?: string;
602
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
603
+ eventTime?: Date | null;
604
+ /**
605
+ * Whether the event was triggered as a result of a privacy regulation application
606
+ * (for example, GDPR).
607
+ */
608
+ triggeredByAnonymizeRequest?: boolean | null;
609
+ /** If present, indicates the action that triggered the event. */
610
+ originatedFrom?: string | null;
611
+ /**
612
+ * 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.
613
+ * 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.
614
+ */
615
+ entityEventSequence?: string | null;
616
+ }
617
+ interface DisputeEvidenceDocumentCreatedEnvelope {
618
+ entity: DisputeEvidenceDocument;
619
+ metadata: EventMetadata;
620
+ }
621
+ /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
622
+ * @webhook
623
+ * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_created
624
+ * @slug created
625
+ * @documentationMaturity preview
626
+ */
627
+ declare function onDisputeEvidenceDocumentCreated(handler: (event: DisputeEvidenceDocumentCreatedEnvelope) => void | Promise<void>): void;
628
+ interface DisputeEvidenceDocumentDeletedEnvelope {
629
+ entity: DisputeEvidenceDocument;
630
+ metadata: EventMetadata;
631
+ }
632
+ /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
633
+ * @webhook
634
+ * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_deleted
635
+ * @slug deleted
636
+ * @documentationMaturity preview
637
+ */
638
+ declare function onDisputeEvidenceDocumentDeleted(handler: (event: DisputeEvidenceDocumentDeletedEnvelope) => void | Promise<void>): void;
639
+ interface DisputeEvidenceDocumentUpdatedEnvelope {
640
+ entity: DisputeEvidenceDocument;
641
+ metadata: EventMetadata;
642
+ }
643
+ /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
644
+ * @webhook
645
+ * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_updated
646
+ * @slug updated
647
+ * @documentationMaturity preview
648
+ */
649
+ declare function onDisputeEvidenceDocumentUpdated(handler: (event: DisputeEvidenceDocumentUpdatedEnvelope) => void | Promise<void>): void;
559
650
  /**
560
651
  * Creates a DisputeEvidenceDocument.
561
652
  * @param disputeEvidenceDocument - DisputeEvidenceDocument to be created.
562
- * @internal
653
+ * @public
563
654
  * @documentationMaturity preview
564
655
  * @requiredField disputeEvidenceDocument
565
656
  * @requiredField disputeEvidenceDocument.disputeId
@@ -567,22 +658,22 @@ type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors = {
567
658
  * @returns The created DisputeEvidenceDocument.
568
659
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument
569
660
  */
570
- declare function createDisputeEvidenceDocument(disputeEvidenceDocument: NonNullablePaths<DisputeEvidenceDocument, `disputeId`, 2>): Promise<NonNullablePaths<DisputeEvidenceDocument, `disputeId` | `tags.tags.tagIds`, 4>>;
661
+ declare function createDisputeEvidenceDocument(disputeEvidenceDocument: NonNullablePaths<DisputeEvidenceDocument, `disputeId`, 2>): Promise<NonNullablePaths<DisputeEvidenceDocument, `_id` | `disputeId` | `tags.privateTags.tagIds`, 4>>;
571
662
  /**
572
663
  * Retrieves a DisputeEvidenceDocument.
573
664
  * @param disputeEvidenceDocumentId - ID of the DisputeEvidenceDocument to retrieve.
574
- * @internal
665
+ * @public
575
666
  * @documentationMaturity preview
576
667
  * @requiredField disputeEvidenceDocumentId
577
668
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
578
669
  * @returns The requested DisputeEvidenceDocument.
579
670
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument
580
671
  */
581
- declare function getDisputeEvidenceDocument(disputeEvidenceDocumentId: string): Promise<NonNullablePaths<DisputeEvidenceDocument, `disputeId` | `tags.tags.tagIds`, 4>>;
672
+ declare function getDisputeEvidenceDocument(disputeEvidenceDocumentId: string): Promise<NonNullablePaths<DisputeEvidenceDocument, `_id` | `disputeId` | `tags.privateTags.tagIds`, 4>>;
582
673
  /**
583
674
  * Deletes a DisputeEvidenceDocument.
584
675
  * @param disputeEvidenceDocumentId - Id of the DisputeEvidenceDocument to delete.
585
- * @internal
676
+ * @public
586
677
  * @documentationMaturity preview
587
678
  * @requiredField disputeEvidenceDocumentId
588
679
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_DELETE
@@ -593,7 +684,7 @@ declare function deleteDisputeEvidenceDocument(disputeEvidenceDocumentId: string
593
684
  }>;
594
685
  /**
595
686
  * Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].
596
- * @internal
687
+ * @public
597
688
  * @documentationMaturity preview
598
689
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
599
690
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments
@@ -677,10 +768,10 @@ interface DisputeEvidenceDocumentsQueryBuilder {
677
768
  find: () => Promise<DisputeEvidenceDocumentsQueryResult>;
678
769
  }
679
770
  /**
680
- * Synchronously update tags on multiple products, by list of product ids
771
+ * Synchronously update tags on multiple dispute evidence documents, by list of dispute evidence document ids
681
772
  * A tag that appears both in the list of assign and unassign tags, will be assigned
682
773
  * @param ids - List of NileProtoTagsEntities that their tags will update.
683
- * @internal
774
+ * @public
684
775
  * @documentationMaturity preview
685
776
  * @requiredField ids
686
777
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
@@ -696,11 +787,11 @@ interface BulkUpdateDisputeEvidenceDocumentTagsOptions {
696
787
  unassignTags?: Tags;
697
788
  }
698
789
  /**
699
- * Asynchronously update tags on multiple products, by provided filter
700
- * An empty filter will update all products
790
+ * Asynchronously update tags on multiple dispute evidence documents, by provided filter.
791
+ * An empty filter will update all dispute evidence documents
701
792
  * A tag that appears both in the list of assign and unassign tags, will be assigned
702
793
  * @param filter - Filter
703
- * @internal
794
+ * @public
704
795
  * @documentationMaturity preview
705
796
  * @requiredField filter
706
797
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
@@ -716,4 +807,4 @@ interface BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {
716
807
  unassignTags?: Tags;
717
808
  }
718
809
 
719
- export { type ActionEvent, type ApplicationError, type AttachDisputeEvidenceDocumentFileRequest, type AttachDisputeEvidenceDocumentFileResponse, type BulkActionMetadata, type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, type BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest, type BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, type BulkUpdateDisputeEvidenceDocumentTagsOptions, type BulkUpdateDisputeEvidenceDocumentTagsRequest, type BulkUpdateDisputeEvidenceDocumentTagsResponse, type BulkUpdateDisputeEvidenceDocumentTagsResult, type CreateDisputeEvidenceDocumentRequest, type CreateDisputeEvidenceDocumentResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteDisputeEvidenceDocumentApplicationErrors, type DeleteDisputeEvidenceDocumentRequest, type DeleteDisputeEvidenceDocumentResponse, type DisputeEvidenceDocument, type DisputeEvidenceDocumentsQueryBuilder, type DisputeEvidenceDocumentsQueryResult, type DocumentFile, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GenerateDisputeEvidenceDocumentDownloadUrlRequest, type GenerateDisputeEvidenceDocumentDownloadUrlResponse, type GenerateDisputeEvidenceDocumentUploadUrlRequest, type GenerateDisputeEvidenceDocumentUploadUrlResponse, type GetDisputeEvidenceDocumentRequest, type GetDisputeEvidenceDocumentResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MarkDisputeEvidenceDocumentSubmittedRequest, type MarkDisputeEvidenceDocumentSubmittedResponse, type MessageEnvelope, type MigrateDisputeEvidenceDocumentRequest, type MigrateDisputeEvidenceDocumentResponse, type QueryDisputeEvidenceDocumentsRequest, type QueryDisputeEvidenceDocumentsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitMigratedDisputeEvidenceDocumentRequest, type SubmitMigratedDisputeEvidenceDocumentResponse, type TagList, type Tags, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkUpdateDisputeEvidenceDocumentTags, bulkUpdateDisputeEvidenceDocumentTagsByFilter, createDisputeEvidenceDocument, deleteDisputeEvidenceDocument, getDisputeEvidenceDocument, queryDisputeEvidenceDocuments };
810
+ export { type ActionEvent, type ApplicationError, type AttachDisputeEvidenceDocumentFileRequest, type AttachDisputeEvidenceDocumentFileResponse, type BaseEventMetadata, type BulkActionMetadata, type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, type BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest, type BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, type BulkUpdateDisputeEvidenceDocumentTagsOptions, type BulkUpdateDisputeEvidenceDocumentTagsRequest, type BulkUpdateDisputeEvidenceDocumentTagsResponse, type BulkUpdateDisputeEvidenceDocumentTagsResult, type CreateDisputeEvidenceDocumentRequest, type CreateDisputeEvidenceDocumentResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteDisputeEvidenceDocumentApplicationErrors, type DeleteDisputeEvidenceDocumentRequest, type DeleteDisputeEvidenceDocumentResponse, type DisputeEvidenceDocument, type DisputeEvidenceDocumentCreatedEnvelope, type DisputeEvidenceDocumentDeletedEnvelope, type DisputeEvidenceDocumentUpdatedEnvelope, type DisputeEvidenceDocumentsQueryBuilder, type DisputeEvidenceDocumentsQueryResult, type DocumentFile, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GenerateDisputeEvidenceDocumentDownloadUrlRequest, type GenerateDisputeEvidenceDocumentDownloadUrlResponse, type GenerateDisputeEvidenceDocumentUploadUrlRequest, type GenerateDisputeEvidenceDocumentUploadUrlResponse, type GetDisputeEvidenceDocumentRequest, type GetDisputeEvidenceDocumentResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MarkDisputeEvidenceDocumentSubmittedRequest, type MarkDisputeEvidenceDocumentSubmittedResponse, type MessageEnvelope, type MigrateDisputeEvidenceDocumentRequest, type MigrateDisputeEvidenceDocumentResponse, type QueryDisputeEvidenceDocumentsRequest, type QueryDisputeEvidenceDocumentsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitMigratedDisputeEvidenceDocumentRequest, type SubmitMigratedDisputeEvidenceDocumentResponse, type TagList, type Tags, type TagsModified, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkUpdateDisputeEvidenceDocumentTags, bulkUpdateDisputeEvidenceDocumentTagsByFilter, createDisputeEvidenceDocument, deleteDisputeEvidenceDocument, getDisputeEvidenceDocument, onDisputeEvidenceDocumentCreated, onDisputeEvidenceDocumentDeleted, onDisputeEvidenceDocumentUpdated, queryDisputeEvidenceDocuments };