@wix/auto_sdk_payments_dispute-evidence-documents 1.0.30 → 1.0.32
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.
- package/build/cjs/index.d.ts +40 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +188 -77
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +104 -35
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +40 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +188 -77
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +104 -35
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +40 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +188 -77
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +104 -35
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +40 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +188 -77
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +104 -35
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.typings.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"],"sourcesContent":["export * from './src/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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,+CAAAA;AAAA,EAAA,qDAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,qCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8EACP,MACA;AACA,QAAM,mBAAmB,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AA,UACZ,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter","createDisputeEvidenceDocument","deleteDisputeEvidenceDocument","getDisputeEvidenceDocument","queryDisputeEvidenceDocuments","import_timestamp","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","createDisputeEvidenceDocument","sdkTransformError","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter"]}
|
|
1
|
+
{"version":3,"sources":["../../index.typings.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"],"sourcesContent":["export * from './src/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/**\n * A dispute evidence document represents a file-based piece of evidence submitted to support a payment dispute resolution case.\n *\n * Evidence documents are created for specific disputes and follow a structured workflow:\n * create the document, upload the file, and submit for dispute resolution.\n * Once submitted, documents become immutable and cannot be deleted or modified.\n */\nexport interface DisputeEvidenceDocument {\n /**\n * Dispute evidence document ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the dispute evidence document is updated. To prevent conflicting changes, the existing revision must be specified when updating a dispute evidence document. Ignored when creating a dispute evidence document.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the dispute evidence document was created.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the dispute evidence document was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * ID of the dispute this evidence document supports.\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * File details for the uploaded evidence document.\n *\n * Returned only when a file has been successfully uploaded and attached to the evidence document.\n * @readonly\n */\n file?: DocumentFile;\n /**\n * Custom field data for the dispute evidence document.\n *\n * Extended fields must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Tags assigned to the dispute evidence document for organization and filtering purposes.\n * Tags assigned to the dispute evidence document for organization and filtering purposes.\n */\n tags?: Tags;\n}\n\n/** File details for an uploaded evidence document. */\nexport interface DocumentFile {\n /**\n * Name of the uploaded evidence file.\n * @readonly\n * @maxLength 255\n */\n filename?: string | null;\n /**\n * Size of the uploaded evidence file in bytes.\n * @readonly\n */\n size?: string | null;\n /**\n * Hexadecimal checksum of the uploaded file for integrity verification.\n * @minLength 32\n * @maxLength 256\n * @readonly\n */\n checksum?: 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\n/**\n * Triggers when tags are modified on a dispute evidence document.\n * TagsModified message represents a modification of tags associated with a dispute evidence document.\n */\nexport interface TagsModified {\n /** Dispute evidence document with the updated tags. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n /** Tags that were newly assigned to the dispute evidence document. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the dispute evidence document. */\n unassignedTags?: Tags;\n}\n\nexport interface CreateDisputeEvidenceDocumentRequest {\n /**\n * Dispute evidence document to create.\n *\n * The `disputeId` field is required. Do not provide an `id` as it will be generated automatically.\n */\n disputeEvidenceDocument: DisputeEvidenceDocument;\n}\n\nexport interface CreateDisputeEvidenceDocumentResponse {\n /** Created dispute evidence document. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n /**\n * URL for uploading the evidence file.\n *\n * Use this URL to upload the file that will serve as evidence for the dispute.\n * File attachment is automatic once the upload completes successfully.\n * @format WEB_URL\n */\n uploadUrl?: string | null;\n}\n\nexport interface GetDisputeEvidenceDocumentRequest {\n /**\n * ID of the dispute evidence document to retrieve.\n * ID of the dispute evidence document to retrieve.\n * @format GUID\n */\n disputeEvidenceDocumentId: string;\n}\n\nexport interface GetDisputeEvidenceDocumentResponse {\n /**\n * Retrieved dispute evidence document.\n * Retrieved dispute evidence document.\n */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n}\n\nexport interface DeleteDisputeEvidenceDocumentRequest {\n /**\n * ID of the dispute evidence document to delete.\n * ID of the dispute evidence document to delete.\n * @format GUID\n */\n disputeEvidenceDocumentId: string;\n}\n\nexport interface DeleteDisputeEvidenceDocumentResponse {}\n\nexport interface QueryDisputeEvidenceDocumentsRequest {\n /**\n * Query options for filtering, sorting, and paging dispute evidence documents.\n *\n * Supported properties: `disputeId`\n * Query options for filtering, sorting, and paging dispute evidence documents.\n *\n * Supported properties: `disputeId`\n */\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 /**\n * List of dispute evidence documents matching the query criteria.\n * List of dispute evidence documents matching the query criteria.\n */\n disputeEvidenceDocuments?: DisputeEvidenceDocument[];\n /**\n * Paging metadata for the query results.\n * Paging metadata for the query results.\n */\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 * IDs of the dispute evidence documents to update.\n * IDs of the dispute evidence documents to update.\n *\n * Limited to 100 documents per request.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /**\n * Tags to assign to the dispute evidence documents.\n * Tags to assign to the dispute evidence documents.\n * Tags to assign to the filtered dispute evidence documents.\n */\n assignTags?: Tags;\n /**\n * Tags to remove from the dispute evidence documents.\n * Tags to remove from the dispute evidence documents.\n * Tags to remove from the filtered dispute evidence documents.\n */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsResponse {\n /**\n * Results of the bulk tag update operation for each document.\n * Results of the bulk tag update operation for each document.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeEvidenceDocumentTagsResult[];\n /**\n * Metadata about the bulk tag update operation.\n * Metadata about the bulk tag update operation.\n */\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 /**\n * Metadata about the tag update result for this specific document.\n * Metadata about the tag update result for this specific document.\n */\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 /**\n * Filter criteria for selecting dispute evidence documents to update.\n * Filter criteria for selecting dispute evidence documents to update.\n *\n * An empty filter will update all dispute evidence documents.\n */\n filter: Record<string, any> | null;\n /**\n * Tags to assign to the filtered dispute evidence documents.\n * Tags to assign to the dispute evidence documents.\n * Tags to assign to the filtered dispute evidence documents.\n */\n assignTags?: Tags;\n /**\n * Tags to remove from the filtered dispute evidence documents.\n * Tags to remove from the dispute evidence documents.\n * Tags to remove from the filtered dispute evidence documents.\n */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {\n /**\n * Job ID for tracking the progress of the bulk tag update operation.\n * Job ID for tracking the progress of the bulk tag update operation.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface MigrateDisputeEvidenceDocumentRequest {\n /**\n * ID of the dispute.\n * @format GUID\n */\n disputeId?: string;\n /**\n * ID of the evidence being migrated.\n * @format GUID\n */\n evidenceId?: string;\n /**\n * External system ID of the evidence document being migrated.\n * @minLength 1\n * @maxLength 64\n */\n evidenceDocumentId?: string;\n /**\n * Hash of the file for integrity verification during migration.\n * @minLength 32\n * @maxLength 32\n */\n hash?: string | null;\n /** Date and time the evidence document was created in the legacy system. */\n _createdDate?: Date | null;\n}\n\nexport interface MigrateDisputeEvidenceDocumentResponse {}\n\nexport interface SubmitMigratedDisputeEvidenceDocumentRequest {\n /**\n * ID of the dispute.\n * @format GUID\n */\n disputeId?: string;\n /**\n * ID of the migrated evidence document.\n * @format GUID\n */\n evidenceId?: string;\n /** Date when the evidence document was originally submitted in the legacy system. */\n submittedDate?: Date | null;\n}\n\nexport interface SubmitMigratedDisputeEvidenceDocumentResponse {}\n\nexport interface GenerateDisputeEvidenceDocumentUploadUrlRequest {\n /**\n * ID of the dispute evidence document.\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n /**\n * Name of the file to be uploaded as evidence.\n * @minLength 1\n * @maxLength 255\n */\n filename?: string;\n}\n\nexport interface GenerateDisputeEvidenceDocumentUploadUrlResponse {\n /**\n * URL for uploading the evidence file.\n * @format WEB_URL\n */\n uploadUrl?: string;\n}\n\nexport interface AttachDisputeEvidenceDocumentFileRequest {\n /**\n * ID of the dispute evidence document.\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\nexport interface AttachDisputeEvidenceDocumentFileResponse {\n /** Updated dispute evidence document with attached file information. */\n disputeEvidenceDocument?: DisputeEvidenceDocument;\n}\n\n/** it will be removed */\nexport interface GenerateDisputeEvidenceDocumentDownloadUrlRequest {\n /**\n * ID of the dispute evidence document.\n * @format GUID\n */\n disputeEvidenceDocumentId?: string;\n}\n\n/** it will be removed */\nexport interface GenerateDisputeEvidenceDocumentDownloadUrlResponse {\n /**\n * URL for downloading the evidence document file.\n * @format WEB_URL\n */\n url?: string | null;\n /** Date and time when the download URL expires. */\n urlExpirationDate?: Date | null;\n}\n\n/** it will be removed */\nexport interface MarkDisputeEvidenceDocumentSubmittedRequest {\n /**\n * ID of the dispute evidence document 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 dispute evidence document for a specific dispute.\n *\n * Returns the created document along with an upload URL for attaching the evidence file.\n * Use the provided upload URL to upload your evidence file directly.\n * @param disputeEvidenceDocument - Dispute evidence document to create.\n *\n * The `disputeId` field is required. Do not provide an `id` as it will be generated automatically.\n * @public\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocument\n * @requiredField disputeEvidenceDocument.disputeId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_CREATE\n * @returns Created dispute evidence document.\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 `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 dispute evidence document by ID.\n * @param disputeEvidenceDocumentId - ID of the dispute evidence document to retrieve.\n * ID of the dispute evidence document to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField disputeEvidenceDocumentId\n * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ\n * @returns Retrieved dispute evidence document.\n * Retrieved dispute evidence document.\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 `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 dispute evidence document.\n *\n * Documents cannot be deleted once they have been submitted for dispute resolution.\n * @param disputeEvidenceDocumentId - ID of the dispute evidence document to delete.\n * ID of the dispute evidence document 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 dispute evidence documents, given the provided paging, filtering, and sorting.\n *\n * Use the `disputeId` filter to retrieve all evidence documents for a specific dispute.\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 * Updates tags on multiple dispute evidence documents by ID.\n *\n * If a tag appears in both assign and unassign lists, it will be assigned.\n * Limited to 100 documents per request.\n * @param ids - IDs of the dispute evidence documents to update.\n * IDs of the dispute evidence documents to update.\n *\n * Limited to 100 documents per request.\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 /**\n * Tags to assign to the dispute evidence documents.\n * Tags to assign to the dispute evidence documents.\n * Tags to assign to the filtered dispute evidence documents.\n */\n assignTags?: Tags;\n /**\n * Tags to remove from the dispute evidence documents.\n * Tags to remove from the dispute evidence documents.\n * Tags to remove from the filtered dispute evidence documents.\n */\n unassignTags?: Tags;\n}\n\n/**\n * Updates tags on multiple dispute evidence documents matching the provided filter.\n *\n * This operation runs asynchronously and returns a job ID for tracking progress.\n * An empty filter will update all dispute evidence documents.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n * @param filter - Filter criteria for selecting dispute evidence documents to update.\n * Filter criteria for selecting dispute evidence documents to update.\n *\n * An empty filter will update all dispute evidence documents.\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 /**\n * Tags to assign to the filtered dispute evidence documents.\n * Tags to assign to the dispute evidence documents.\n * Tags to assign to the filtered dispute evidence documents.\n */\n assignTags?: Tags;\n /**\n * Tags to remove from the filtered dispute evidence documents.\n * Tags to remove from the dispute evidence documents.\n * Tags to remove from the filtered dispute evidence documents.\n */\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/**\n * Creates a dispute evidence document for a specific dispute.\n *\n * Returns the created document along with an upload URL for attaching the evidence file.\n * Use the provided upload URL to upload your evidence file directly.\n */\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 dispute evidence document by ID. */\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/**\n * Deletes a dispute evidence document.\n *\n * Documents cannot be deleted once they have been submitted for dispute resolution.\n */\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/**\n * Retrieves a list of dispute evidence documents, given the provided paging, filtering, and sorting.\n *\n * Use the `disputeId` filter to retrieve all evidence documents for a specific dispute.\n */\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 * Updates tags on multiple dispute evidence documents by ID.\n *\n * If a tag appears in both assign and unassign lists, it will be assigned.\n * Limited to 100 documents per request.\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 * Updates tags on multiple dispute evidence documents matching the provided filter.\n *\n * This operation runs asynchronously and returns a job ID for tracking progress.\n * An empty filter will update all dispute evidence documents.\n * If a tag appears in both assign and unassign lists, it 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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,+CAAAA;AAAA,EAAA,qDAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,qCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8EACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAQd,SAAS,8BACd,SAC4B;AAC5B,WAAS,gCAAgC,EAAE,KAAK,GAAQ;AACtD,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,sCAAsC;AAAA,UAC9C,EAAE,MAAM,sCAAsC;AAAA,UAC9C,EAAE,MAAM,wCAAwC;AAAA,QAClD;AAAA,MACF;AAAA,IACF,CAAC;AACD,UAAM,WAAW;AAAA,MACf,YACE;AAAA,MACF,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,sCA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M;AAAA,EACR;AACF;AAiCA,eAAsBK,+CACpB,QACA,SASA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,IACA,YAAY,SAAS;AAAA,IACrB,cAAc,SAAS;AAAA,EACzB,CAAC;AAED,QAAM,UACmE;AAAA,IACrE;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAL;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter","createDisputeEvidenceDocument","deleteDisputeEvidenceDocument","getDisputeEvidenceDocument","queryDisputeEvidenceDocuments","import_timestamp","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","createDisputeEvidenceDocument","sdkTransformError","getDisputeEvidenceDocument","deleteDisputeEvidenceDocument","queryDisputeEvidenceDocuments","bulkUpdateDisputeEvidenceDocumentTags","bulkUpdateDisputeEvidenceDocumentTagsByFilter"]}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,70 +1,82 @@
|
|
|
1
1
|
import { CreateDisputeEvidenceDocumentRequest as CreateDisputeEvidenceDocumentRequest$1, CreateDisputeEvidenceDocumentResponse as CreateDisputeEvidenceDocumentResponse$1, GetDisputeEvidenceDocumentRequest as GetDisputeEvidenceDocumentRequest$1, GetDisputeEvidenceDocumentResponse as GetDisputeEvidenceDocumentResponse$1, DeleteDisputeEvidenceDocumentRequest as DeleteDisputeEvidenceDocumentRequest$1, DeleteDisputeEvidenceDocumentResponse as DeleteDisputeEvidenceDocumentResponse$1, QueryDisputeEvidenceDocumentsRequest as QueryDisputeEvidenceDocumentsRequest$1, QueryDisputeEvidenceDocumentsResponse as QueryDisputeEvidenceDocumentsResponse$1, BulkUpdateDisputeEvidenceDocumentTagsRequest as BulkUpdateDisputeEvidenceDocumentTagsRequest$1, BulkUpdateDisputeEvidenceDocumentTagsResponse as BulkUpdateDisputeEvidenceDocumentTagsResponse$1, BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest as BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest$1, BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse as BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* A dispute evidence document represents a file-based piece of evidence submitted to support a payment dispute resolution case.
|
|
6
|
+
*
|
|
7
|
+
* Evidence documents are created for specific disputes and follow a structured workflow:
|
|
8
|
+
* create the document, upload the file, and submit for dispute resolution.
|
|
9
|
+
* Once submitted, documents become immutable and cannot be deleted or modified.
|
|
10
|
+
*/
|
|
5
11
|
interface DisputeEvidenceDocument {
|
|
6
12
|
/**
|
|
7
|
-
*
|
|
13
|
+
* Dispute evidence document ID.
|
|
8
14
|
* @format GUID
|
|
9
15
|
* @readonly
|
|
10
16
|
* @immutable
|
|
11
17
|
*/
|
|
12
|
-
id?: string;
|
|
18
|
+
id?: string | null;
|
|
13
19
|
/**
|
|
14
|
-
* Revision number, which increments by 1 each time the dispute evidence document is updated.
|
|
15
|
-
* To prevent conflicting changes, the existing revision must be specified when updating a dispute evidence document.
|
|
20
|
+
* Revision number, which increments by 1 each time the dispute evidence document is updated. To prevent conflicting changes, the existing revision must be specified when updating a dispute evidence document. Ignored when creating a dispute evidence document.
|
|
16
21
|
* @readonly
|
|
17
22
|
*/
|
|
18
23
|
revision?: string | null;
|
|
19
24
|
/**
|
|
20
|
-
* Date and time the
|
|
25
|
+
* Date and time the dispute evidence document was created.
|
|
21
26
|
* @readonly
|
|
22
27
|
* @immutable
|
|
23
28
|
*/
|
|
24
29
|
createdDate?: Date | null;
|
|
25
30
|
/**
|
|
26
|
-
* Date and time the
|
|
31
|
+
* Date and time the dispute evidence document was updated.
|
|
27
32
|
* @readonly
|
|
28
33
|
*/
|
|
29
34
|
updatedDate?: Date | null;
|
|
30
35
|
/**
|
|
31
|
-
*
|
|
36
|
+
* ID of the dispute this evidence document supports.
|
|
32
37
|
* @format GUID
|
|
33
38
|
* @immutable
|
|
34
39
|
*/
|
|
35
40
|
disputeId?: string;
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* File details for the uploaded evidence document.
|
|
43
|
+
*
|
|
44
|
+
* Returned only when a file has been successfully uploaded and attached to the evidence document.
|
|
38
45
|
* @readonly
|
|
39
46
|
*/
|
|
40
47
|
file?: DocumentFile;
|
|
41
48
|
/**
|
|
42
49
|
* Custom field data for the dispute evidence document.
|
|
50
|
+
*
|
|
43
51
|
* Extended fields must be configured in the app dashboard before they can be accessed with API calls.
|
|
44
52
|
*/
|
|
45
53
|
extendedFields?: ExtendedFields;
|
|
46
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Tags assigned to the dispute evidence document for organization and filtering purposes.
|
|
56
|
+
* Tags assigned to the dispute evidence document for organization and filtering purposes.
|
|
57
|
+
*/
|
|
47
58
|
tags?: Tags;
|
|
48
59
|
}
|
|
60
|
+
/** File details for an uploaded evidence document. */
|
|
49
61
|
interface DocumentFile {
|
|
50
62
|
/**
|
|
51
|
-
*
|
|
63
|
+
* Name of the uploaded evidence file.
|
|
52
64
|
* @readonly
|
|
53
65
|
* @maxLength 255
|
|
54
66
|
*/
|
|
55
67
|
filename?: string | null;
|
|
56
68
|
/**
|
|
57
|
-
*
|
|
69
|
+
* Size of the uploaded evidence file in bytes.
|
|
58
70
|
* @readonly
|
|
59
71
|
*/
|
|
60
|
-
|
|
72
|
+
size?: string | null;
|
|
61
73
|
/**
|
|
62
|
-
* Hexadecimal
|
|
74
|
+
* Hexadecimal checksum of the uploaded file for integrity verification.
|
|
63
75
|
* @minLength 32
|
|
64
|
-
* @maxLength
|
|
76
|
+
* @maxLength 256
|
|
65
77
|
* @readonly
|
|
66
78
|
*/
|
|
67
|
-
|
|
79
|
+
checksum?: string | null;
|
|
68
80
|
}
|
|
69
81
|
interface ExtendedFields {
|
|
70
82
|
/**
|
|
@@ -115,32 +127,44 @@ interface TagList {
|
|
|
115
127
|
tagIds?: string[];
|
|
116
128
|
}
|
|
117
129
|
interface CreateDisputeEvidenceDocumentRequest {
|
|
118
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* Dispute evidence document to create.
|
|
132
|
+
*
|
|
133
|
+
* The `disputeId` field is required. Do not provide an `id` as it will be generated automatically.
|
|
134
|
+
*/
|
|
119
135
|
disputeEvidenceDocument: DisputeEvidenceDocument;
|
|
120
136
|
}
|
|
121
137
|
interface CreateDisputeEvidenceDocumentResponse {
|
|
122
|
-
/**
|
|
138
|
+
/** Created dispute evidence document. */
|
|
123
139
|
disputeEvidenceDocument?: DisputeEvidenceDocument;
|
|
124
140
|
/**
|
|
125
|
-
*
|
|
141
|
+
* URL for uploading the evidence file.
|
|
142
|
+
*
|
|
143
|
+
* Use this URL to upload the file that will serve as evidence for the dispute.
|
|
144
|
+
* File attachment is automatic once the upload completes successfully.
|
|
126
145
|
* @format WEB_URL
|
|
127
146
|
*/
|
|
128
147
|
uploadUrl?: string | null;
|
|
129
148
|
}
|
|
130
149
|
interface GetDisputeEvidenceDocumentRequest {
|
|
131
150
|
/**
|
|
132
|
-
* ID of the
|
|
151
|
+
* ID of the dispute evidence document to retrieve.
|
|
152
|
+
* ID of the dispute evidence document to retrieve.
|
|
133
153
|
* @format GUID
|
|
134
154
|
*/
|
|
135
155
|
disputeEvidenceDocumentId: string;
|
|
136
156
|
}
|
|
137
157
|
interface GetDisputeEvidenceDocumentResponse {
|
|
138
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* Retrieved dispute evidence document.
|
|
160
|
+
* Retrieved dispute evidence document.
|
|
161
|
+
*/
|
|
139
162
|
disputeEvidenceDocument?: DisputeEvidenceDocument;
|
|
140
163
|
}
|
|
141
164
|
interface DeleteDisputeEvidenceDocumentRequest {
|
|
142
165
|
/**
|
|
143
|
-
*
|
|
166
|
+
* ID of the dispute evidence document to delete.
|
|
167
|
+
* ID of the dispute evidence document to delete.
|
|
144
168
|
* @format GUID
|
|
145
169
|
*/
|
|
146
170
|
disputeEvidenceDocumentId: string;
|
|
@@ -148,7 +172,14 @@ interface DeleteDisputeEvidenceDocumentRequest {
|
|
|
148
172
|
interface DeleteDisputeEvidenceDocumentResponse {
|
|
149
173
|
}
|
|
150
174
|
interface QueryDisputeEvidenceDocumentsRequest {
|
|
151
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* Query options for filtering, sorting, and paging dispute evidence documents.
|
|
177
|
+
*
|
|
178
|
+
* Supported properties: `disputeId`
|
|
179
|
+
* Query options for filtering, sorting, and paging dispute evidence documents.
|
|
180
|
+
*
|
|
181
|
+
* Supported properties: `disputeId`
|
|
182
|
+
*/
|
|
152
183
|
query?: CursorQuery;
|
|
153
184
|
}
|
|
154
185
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -206,9 +237,15 @@ interface CursorPaging {
|
|
|
206
237
|
cursor?: string | null;
|
|
207
238
|
}
|
|
208
239
|
interface QueryDisputeEvidenceDocumentsResponse {
|
|
209
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* List of dispute evidence documents matching the query criteria.
|
|
242
|
+
* List of dispute evidence documents matching the query criteria.
|
|
243
|
+
*/
|
|
210
244
|
disputeEvidenceDocuments?: DisputeEvidenceDocument[];
|
|
211
|
-
/**
|
|
245
|
+
/**
|
|
246
|
+
* Paging metadata for the query results.
|
|
247
|
+
* Paging metadata for the query results.
|
|
248
|
+
*/
|
|
212
249
|
pagingMetadata?: CursorPagingMetadata;
|
|
213
250
|
}
|
|
214
251
|
interface CursorPagingMetadata {
|
|
@@ -238,25 +275,40 @@ interface Cursors {
|
|
|
238
275
|
}
|
|
239
276
|
interface BulkUpdateDisputeEvidenceDocumentTagsRequest {
|
|
240
277
|
/**
|
|
241
|
-
*
|
|
278
|
+
* IDs of the dispute evidence documents to update.
|
|
279
|
+
* IDs of the dispute evidence documents to update.
|
|
280
|
+
*
|
|
281
|
+
* Limited to 100 documents per request.
|
|
242
282
|
* @minSize 1
|
|
243
283
|
* @maxSize 100
|
|
244
284
|
* @format GUID
|
|
245
285
|
*/
|
|
246
286
|
ids: string[];
|
|
247
|
-
/**
|
|
287
|
+
/**
|
|
288
|
+
* Tags to assign to the dispute evidence documents.
|
|
289
|
+
* Tags to assign to the dispute evidence documents.
|
|
290
|
+
* Tags to assign to the filtered dispute evidence documents.
|
|
291
|
+
*/
|
|
248
292
|
assignTags?: Tags;
|
|
249
|
-
/**
|
|
293
|
+
/**
|
|
294
|
+
* Tags to remove from the dispute evidence documents.
|
|
295
|
+
* Tags to remove from the dispute evidence documents.
|
|
296
|
+
* Tags to remove from the filtered dispute evidence documents.
|
|
297
|
+
*/
|
|
250
298
|
unassignTags?: Tags;
|
|
251
299
|
}
|
|
252
300
|
interface BulkUpdateDisputeEvidenceDocumentTagsResponse {
|
|
253
301
|
/**
|
|
254
|
-
* Results
|
|
302
|
+
* Results of the bulk tag update operation for each document.
|
|
303
|
+
* Results of the bulk tag update operation for each document.
|
|
255
304
|
* @minSize 1
|
|
256
305
|
* @maxSize 100
|
|
257
306
|
*/
|
|
258
307
|
results?: BulkUpdateDisputeEvidenceDocumentTagsResult[];
|
|
259
|
-
/**
|
|
308
|
+
/**
|
|
309
|
+
* Metadata about the bulk tag update operation.
|
|
310
|
+
* Metadata about the bulk tag update operation.
|
|
311
|
+
*/
|
|
260
312
|
bulkActionMetadata?: BulkActionMetadata;
|
|
261
313
|
}
|
|
262
314
|
interface ItemMetadata {
|
|
@@ -281,7 +333,10 @@ interface ApplicationError {
|
|
|
281
333
|
data?: Record<string, any> | null;
|
|
282
334
|
}
|
|
283
335
|
interface BulkUpdateDisputeEvidenceDocumentTagsResult {
|
|
284
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* Metadata about the tag update result for this specific document.
|
|
338
|
+
* Metadata about the tag update result for this specific document.
|
|
339
|
+
*/
|
|
285
340
|
itemMetadata?: ItemMetadata;
|
|
286
341
|
}
|
|
287
342
|
interface BulkActionMetadata {
|
|
@@ -293,16 +348,30 @@ interface BulkActionMetadata {
|
|
|
293
348
|
undetailedFailures?: number;
|
|
294
349
|
}
|
|
295
350
|
interface BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest {
|
|
296
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* Filter criteria for selecting dispute evidence documents to update.
|
|
353
|
+
* Filter criteria for selecting dispute evidence documents to update.
|
|
354
|
+
*
|
|
355
|
+
* An empty filter will update all dispute evidence documents.
|
|
356
|
+
*/
|
|
297
357
|
filter: Record<string, any> | null;
|
|
298
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* Tags to assign to the filtered dispute evidence documents.
|
|
360
|
+
* Tags to assign to the dispute evidence documents.
|
|
361
|
+
* Tags to assign to the filtered dispute evidence documents.
|
|
362
|
+
*/
|
|
299
363
|
assignTags?: Tags;
|
|
300
|
-
/**
|
|
364
|
+
/**
|
|
365
|
+
* Tags to remove from the filtered dispute evidence documents.
|
|
366
|
+
* Tags to remove from the dispute evidence documents.
|
|
367
|
+
* Tags to remove from the filtered dispute evidence documents.
|
|
368
|
+
*/
|
|
301
369
|
unassignTags?: Tags;
|
|
302
370
|
}
|
|
303
371
|
interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {
|
|
304
372
|
/**
|
|
305
|
-
*
|
|
373
|
+
* Job ID for tracking the progress of the bulk tag update operation.
|
|
374
|
+
* Job ID for tracking the progress of the bulk tag update operation.
|
|
306
375
|
* @format GUID
|
|
307
376
|
*/
|
|
308
377
|
jobId?: string;
|