@wix/auto_sdk_payments_disputes 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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +76 -39
  2. package/build/cjs/index.js +55 -34
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +50 -29
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +79 -43
  8. package/build/cjs/meta.js +45 -26
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +76 -39
  11. package/build/es/index.mjs +54 -33
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +49 -28
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +79 -43
  17. package/build/es/meta.mjs +44 -25
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +16 -16
  20. package/build/internal/cjs/index.js +55 -34
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +87 -50
  23. package/build/internal/cjs/index.typings.js +50 -29
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +79 -43
  26. package/build/internal/cjs/meta.js +45 -26
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +16 -16
  29. package/build/internal/es/index.mjs +54 -33
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +87 -50
  32. package/build/internal/es/index.typings.mjs +49 -28
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +79 -43
  35. package/build/internal/es/meta.mjs +44 -25
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/payments-disputes-v1-dispute-disputes.universal.ts","../../../src/payments-disputes-v1-dispute-disputes.http.ts","../../../src/payments-disputes-v1-dispute-disputes.public.ts","../../../src/payments-disputes-v1-dispute-disputes.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputesV1Dispute from './payments-disputes-v1-dispute-disputes.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Dispute. A dispute occurs when an account owner contacts their PSP or bank to contest a payment to you for a number of possible reasons. */\nexport interface Dispute {\n /**\n * Dispute ID\n * @format GUID\n * @immutable\n */\n _id?: string;\n /**\n * Charge ID\n * @format GUID\n * @immutable\n */\n chargeId?: string;\n /**\n * Provider Dispute ID\n * @format GUID\n * @immutable\n */\n providerDisputeId?: string;\n /** Dispute stage */\n stage?: DisputeStageWithLiterals;\n /** Dispute reason */\n reason?: DisputeReasonWithLiterals;\n /**\n * Dispute currency. Should be the same as the charge currency.\n * @immutable\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Dispute Amount in currency's main units (such as dollars or euros). For example, `\"12.95\"`.\n * @immutable\n * @decimalValue options { gt:0, maxScale:8 }\n */\n amount?: string | null;\n /** Dispute status based on provider dispute status */\n status?: DisputeStatusWithLiterals;\n /** True if the merchant can do the refund with the opened dispute, false otherwise */\n chargeRefundable?: boolean | null;\n /** Seller protection */\n sellerProtection?: SellerProtectionWithLiterals;\n /**\n * Dispute Channel\n * Internal - this dispute is created on provider side\n * External - this dispute is created on bank side\n */\n channel?: DisputeChannelWithLiterals;\n /** The latest date and time until which the dispute can remain in its current status */\n dueDate?: Date | null;\n /**\n * Network reason code\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=visa\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=mastercard\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=amex\n * @minLength 1\n * @maxLength 64\n */\n networkReasonCode?: string | null;\n /** True if dispute is defendable */\n defendable?: boolean | null;\n /** True if it is an auto dispute */\n autoDefended?: boolean | null;\n /**\n * The dispute created date\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * The dispute updated date\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the Dispute is updated.\n * @readonly\n */\n revision?: string | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: PublicTags;\n}\n\nexport enum DisputeStage {\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Chargeback */\n CHARGEBACK = 'CHARGEBACK',\n /** Inquiry (Request for Information) */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeReason {\n /** Unknown reason */\n UNKNOWN_DISPUTE_REASON = 'UNKNOWN_DISPUTE_REASON',\n /** Fraud card */\n FRAUD_CARD_PRESENT = 'FRAUD_CARD_PRESENT',\n /** Card absent */\n FRAUD_CARD_ABSENT = 'FRAUD_CARD_ABSENT',\n /** DUPLICATE */\n DUPLICATE_PROCESSING = 'DUPLICATE_PROCESSING',\n /** Service not provided */\n SERVICES_NOT_PROVIDED = 'SERVICES_NOT_PROVIDED',\n /** Canceled Recurring */\n CANCELED_RECURRING = 'CANCELED_RECURRING',\n /** Item not as describe */\n NOT_AS_DESCRIBED = 'NOT_AS_DESCRIBED',\n /** Counterfeit */\n COUNTERFEIT = 'COUNTERFEIT',\n /** Misrepresentation */\n MISREPRESENTATION = 'MISREPRESENTATION',\n /** Canceled */\n CANCELED = 'CANCELED',\n /** Other reason */\n OTHER = 'OTHER',\n}\n\n/** @enumType */\nexport type DisputeReasonWithLiterals =\n | DisputeReason\n | 'UNKNOWN_DISPUTE_REASON'\n | 'FRAUD_CARD_PRESENT'\n | 'FRAUD_CARD_ABSENT'\n | 'DUPLICATE_PROCESSING'\n | 'SERVICES_NOT_PROVIDED'\n | 'CANCELED_RECURRING'\n | 'NOT_AS_DESCRIBED'\n | 'COUNTERFEIT'\n | 'MISREPRESENTATION'\n | 'CANCELED'\n | 'OTHER';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for some merchant action */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by PSP (internal channel) or Bank (external channel) */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for some buyer action */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute won */\n WON = 'WON',\n /** Dispute lost */\n LOST = 'LOST',\n}\n\n/** @enumType */\nexport type DisputeStatusWithLiterals =\n | DisputeStatus\n | 'UNKNOWN_DISPUTE_STATUS'\n | 'WAITING_MERCHANT'\n | 'UNDER_REVIEW'\n | 'WAITING_BUYER'\n | 'WON'\n | 'LOST';\n\nexport enum SellerProtection {\n UNKNOWN_SELLER_PROTECTION = 'UNKNOWN_SELLER_PROTECTION',\n /** Not Eligible */\n NOT_ELIGIBLE = 'NOT_ELIGIBLE',\n /** Eligible */\n ELIGIBLE = 'ELIGIBLE',\n /** Extended seller protection */\n EXTENDED = 'EXTENDED',\n}\n\n/** @enumType */\nexport type SellerProtectionWithLiterals =\n | SellerProtection\n | 'UNKNOWN_SELLER_PROTECTION'\n | 'NOT_ELIGIBLE'\n | 'ELIGIBLE'\n | 'EXTENDED';\n\nexport enum DisputeChannel {\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Internal, the dispute is reviewed by PSP */\n INTERNAL = 'INTERNAL',\n /** External, the dispute is reviewed by bank (or other financial institution) */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type DisputeChannelWithLiterals =\n | DisputeChannel\n | 'UNKNOWN_DISPUTE_CHANNEL'\n | 'INTERNAL'\n | 'EXTERNAL';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface PublicTags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface GetDisputeRequest {\n /**\n * ID of the Dispute to retrieve.\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface GetDisputeResponse {\n /** The requested Dispute. */\n dispute?: Dispute;\n}\n\nexport interface QueryDisputesRequest {\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 QueryDisputesResponse {\n /** List of Disputes. */\n disputes?: Dispute[];\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 GetDisputeActionsRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface GetDisputeActionsResponse {\n /**\n * Dispute actions\n * @maxSize 20\n */\n actions?: DisputeAction[];\n}\n\nexport interface DisputeAction {\n /** Dispute Action type */\n type?: DisputeActionTypeWithLiterals;\n /** The latest date and time until which the action can be performed */\n dueDate?: Date | null;\n}\n\nexport enum DisputeActionType {\n /** Unknown dispute status */\n UNKNOWN_DISPUTE_ACTION = 'UNKNOWN_DISPUTE_ACTION',\n /** Accept dispute */\n ACCEPT = 'ACCEPT',\n /** Submit evidence */\n SUBMIT_EVIDENCE = 'SUBMIT_EVIDENCE',\n}\n\n/** @enumType */\nexport type DisputeActionTypeWithLiterals =\n | DisputeActionType\n | 'UNKNOWN_DISPUTE_ACTION'\n | 'ACCEPT'\n | 'SUBMIT_EVIDENCE';\n\nexport interface AcceptDisputeRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface AcceptDisputeResponse {\n /** Dispute */\n dispute?: Dispute;\n}\n\nexport interface SubmitDisputeEvidenceRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface SubmitDisputeEvidenceResponse {\n /** Dispute */\n dispute?: Dispute;\n}\n\nexport interface CreateDisputeManuallyRequest {\n /**\n * Dispute Id\n * @format GUID\n */\n disputeId?: string;\n /**\n * Charge Id\n * @format GUID\n */\n chargeId?: string;\n /** Open date */\n openDate?: Date | null;\n /**\n * Provider Dispute Id\n * @minLength 1\n * @maxLength 100\n */\n providerDisputeId?: string;\n /** Dispute stage */\n stage?: DisputeStageWithLiterals;\n /** Dispute reason */\n reason?: DisputeReasonWithLiterals;\n /** Dispute status based on provider dispute status */\n status?: DisputeStatusWithLiterals;\n dueDate?: Date | null;\n /**\n * Dispute currency. Should be the same as the charge currency.\n * @immutable\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Dispute Amount in currency's main units (such as dollars or euros). For example, `\"12.95\"`.\n * @immutable\n * @decimalValue options { gt:0, maxScale:8 }\n */\n amount?: string | null;\n /**\n * Network reason code\n * @minLength 1\n * @maxLength 64\n */\n networkReasonCode?: string | null;\n /** External or Internal */\n external?: boolean | null;\n /**\n * Seller protection\n * @minLength 1\n * @maxLength 64\n */\n sellerProtection?: string | null;\n /** Is charge refundable */\n chargeRefundable?: boolean | null;\n /** True if dispute is defendable */\n defendable?: boolean | null;\n /** True if it is an auto dispute */\n autoDefended?: boolean | null;\n}\n\nexport interface CreateDisputeManuallyResponse {}\n\nexport interface ChangeDisputeStatusManuallyRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId?: string;\n /** Changed date */\n changedDate?: Date | null;\n /** Dispute status based on provider dispute status */\n status?: DisputeStatusWithLiterals;\n}\n\nexport interface ChangeDisputeStatusManuallyResponse {}\n\nexport interface BulkUpdateDisputeTagsRequest {\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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagsTagList;\n}\n\nexport interface TagsTagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface BulkUpdateDisputeTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeTagsResult[];\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 BulkUpdateDisputeTagsResult {\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 BulkUpdateDisputeTagsByFilterRequest {\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 BulkUpdateDisputeTagsByFilterResponse {\n /**\n * Job ID\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** 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 BulkUpdateDisputeTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Get Dispute by ID\n * @param disputeId - ID of the Dispute to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_READ\n * @returns The requested Dispute.\n * @fqn wix.payments.disputes.v1.DisputeService.GetDispute\n */\nexport async function getDispute(\n disputeId: string\n): Promise<\n NonNullablePaths<\n Dispute,\n | `_id`\n | `chargeId`\n | `providerDisputeId`\n | `stage`\n | `reason`\n | `status`\n | `sellerProtection`\n | `channel`\n | `tags.tags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeId: disputeId,\n });\n\n const reqOpts = ambassadorWixPaymentsDisputesV1Dispute.getDispute(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.dispute!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of Disputes\n * @internal\n * @documentationMaturity preview\n * @permissionId PAYMENTS.DISPUTE_READ\n * @fqn wix.payments.disputes.v1.DisputeService.QueryDisputes\n */\nexport function queryDisputes(): DisputesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Dispute,\n 'CURSOR',\n QueryDisputesRequest,\n QueryDisputesResponse\n >({\n func: async (payload: QueryDisputesRequest) => {\n const reqOpts =\n ambassadorWixPaymentsDisputesV1Dispute.queryDisputes(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryDisputesRequest['query']) => {\n const args = [query, {}] as [QueryDisputesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryDisputesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.disputes,\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 DisputesQueryResult extends QueryCursorResult {\n items: Dispute[];\n query: DisputesQueryBuilder;\n next: () => Promise<DisputesQueryResult>;\n prev: () => Promise<DisputesQueryResult>;\n}\n\nexport interface DisputesQueryBuilder {\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: (propertyName: '_id', value: string) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any[]\n ) => DisputesQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | '_createdDate' | '_updatedDate',\n value: boolean\n ) => DisputesQueryBuilder;\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<'_createdDate' | '_updatedDate'>\n ) => DisputesQueryBuilder;\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<'_createdDate' | '_updatedDate'>\n ) => DisputesQueryBuilder;\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) => DisputesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DisputesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DisputesQueryResult>;\n}\n\n/**\n * Get Dispute Actions\n * @param disputeId - Dispute ID\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_GET_ACTIONS\n * @fqn wix.payments.disputes.v1.DisputeService.GetDisputeActions\n */\nexport async function getDisputeActions(\n disputeId: string\n): Promise<\n NonNullablePaths<\n GetDisputeActionsResponse,\n `actions` | `actions.${number}.type`,\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 disputeId: disputeId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputesV1Dispute.getDisputeActions(payload);\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: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Dispute Accept\n * @param disputeId - Dispute ID\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_ACCEPT\n * @fqn wix.payments.disputes.v1.DisputeService.AcceptDispute\n */\nexport async function acceptDispute(\n disputeId: string\n): Promise<\n NonNullablePaths<\n AcceptDisputeResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeId: disputeId,\n });\n\n const reqOpts = ambassadorWixPaymentsDisputesV1Dispute.acceptDispute(payload);\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: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Dispute Submit Evidence\n * @param disputeId - Dispute ID\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_SUBMIT_EVIDENCE\n * @fqn wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence\n */\nexport async function submitDisputeEvidence(\n disputeId: string\n): Promise<\n NonNullablePaths<\n SubmitDisputeEvidenceResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeId: disputeId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputesV1Dispute.submitDisputeEvidence(payload);\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: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Synchronously update tags on multiple Disputes, by list of Disputes ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of NileProtoTagsEntities that their tags will update.\n * @internal\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS\n * @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags\n */\nexport async function bulkUpdateDisputeTags(\n ids: string[],\n options?: BulkUpdateDisputeTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeTagsResponse,\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?: BulkUpdateDisputeTagsApplicationErrors;\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 ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTags(payload);\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 BulkUpdateDisputeTagsOptions {\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 Disputes, by provided filter\n * An empty filter will update all Disputes\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param filter - Filter\n * @internal\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS\n * @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter\n */\nexport async function bulkUpdateDisputeTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateDisputeTagsByFilterOptions\n): Promise<\n NonNullablePaths<BulkUpdateDisputeTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateDisputeTagsByFilterApplicationErrors;\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 ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTagsByFilter(\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 BulkUpdateDisputeTagsByFilterOptions {\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 { 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 resolveWixPaymentsDisputesV1DisputeServiceUrl(\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_disputes';\n\n/** Get Dispute by ID */\nexport function getDispute(payload: object): RequestOptionsFactory<any> {\n function __getDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.GetDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDispute;\n}\n\n/** Retrieves a list of Disputes */\nexport function queryDisputes(payload: object): RequestOptionsFactory<any> {\n function __queryDisputes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.QueryDisputes',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputes.dueDate' },\n { path: 'disputes.createdDate' },\n { path: 'disputes.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputes;\n}\n\n/** Get Dispute Actions */\nexport function getDisputeActions(payload: object): RequestOptionsFactory<any> {\n function __getDisputeActions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.GetDisputeActions',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/actions',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'actions.dueDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeActions;\n}\n\n/** Dispute Accept */\nexport function acceptDispute(payload: object): RequestOptionsFactory<any> {\n function __acceptDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.AcceptDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/accept',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __acceptDispute;\n}\n\n/** Dispute Submit Evidence */\nexport function submitDisputeEvidence(\n payload: object\n): RequestOptionsFactory<any> {\n function __submitDisputeEvidence({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/submit-evidence',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __submitDisputeEvidence;\n}\n\n/**\n * Synchronously update tags on multiple Disputes, by list of Disputes ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTags;\n}\n\n/**\n * Asynchronously update tags on multiple Disputes, by provided filter\n * An empty filter will update all Disputes\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AcceptDisputeResponse,\n BulkUpdateDisputeTagsApplicationErrors,\n BulkUpdateDisputeTagsByFilterApplicationErrors,\n BulkUpdateDisputeTagsByFilterOptions,\n BulkUpdateDisputeTagsByFilterResponse,\n BulkUpdateDisputeTagsOptions,\n BulkUpdateDisputeTagsResponse,\n Dispute,\n DisputesQueryBuilder,\n GetDisputeActionsResponse,\n SubmitDisputeEvidenceResponse,\n acceptDispute as universalAcceptDispute,\n bulkUpdateDisputeTags as universalBulkUpdateDisputeTags,\n bulkUpdateDisputeTagsByFilter as universalBulkUpdateDisputeTagsByFilter,\n getDispute as universalGetDispute,\n getDisputeActions as universalGetDisputeActions,\n queryDisputes as universalQueryDisputes,\n submitDisputeEvidence as universalSubmitDisputeEvidence,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\n/** @internal */\nexport function getDispute(httpClient: HttpClient): GetDisputeSignature {\n return (disputeId: string) =>\n universalGetDispute(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDisputeSignature {\n /**\n * Get Dispute by ID\n * @param - ID of the Dispute to retrieve.\n * @returns The requested Dispute.\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n Dispute,\n | `_id`\n | `chargeId`\n | `providerDisputeId`\n | `stage`\n | `reason`\n | `status`\n | `sellerProtection`\n | `channel`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function queryDisputes(httpClient: HttpClient): QueryDisputesSignature {\n return () =>\n universalQueryDisputes(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryDisputesSignature {\n /**\n * Retrieves a list of Disputes\n */\n (): DisputesQueryBuilder;\n}\n\n/** @internal */\nexport function getDisputeActions(\n httpClient: HttpClient\n): GetDisputeActionsSignature {\n return (disputeId: string) =>\n universalGetDisputeActions(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDisputeActionsSignature {\n /**\n * Get Dispute Actions\n * @param - Dispute ID\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n GetDisputeActionsResponse,\n `actions` | `actions.${number}.type`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function acceptDispute(httpClient: HttpClient): AcceptDisputeSignature {\n return (disputeId: string) =>\n universalAcceptDispute(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AcceptDisputeSignature {\n /**\n * Dispute Accept\n * @param - Dispute ID\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n AcceptDisputeResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function submitDisputeEvidence(\n httpClient: HttpClient\n): SubmitDisputeEvidenceSignature {\n return (disputeId: string) =>\n universalSubmitDisputeEvidence(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SubmitDisputeEvidenceSignature {\n /**\n * Dispute Submit Evidence\n * @param - Dispute ID\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n SubmitDisputeEvidenceResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeTags(\n httpClient: HttpClient\n): BulkUpdateDisputeTagsSignature {\n return (ids: string[], options?: BulkUpdateDisputeTagsOptions) =>\n universalBulkUpdateDisputeTags(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeTagsSignature {\n /**\n * Synchronously update tags on multiple Disputes, by list of Disputes ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - List of NileProtoTagsEntities that their tags will update.\n */\n (ids: string[], options?: BulkUpdateDisputeTagsOptions): Promise<\n NonNullablePaths<\n BulkUpdateDisputeTagsResponse,\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?: BulkUpdateDisputeTagsApplicationErrors;\n }\n >;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateDisputeTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeTagsByFilterOptions\n ) =>\n universalBulkUpdateDisputeTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeTagsByFilterSignature {\n /**\n * Asynchronously update tags on multiple Disputes, by provided filter\n * An empty filter will update all Disputes\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - Filter\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeTagsByFilterOptions\n ): Promise<\n NonNullablePaths<BulkUpdateDisputeTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateDisputeTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport {\n AcceptDisputeRequest,\n AcceptDisputeResponse,\n ActionEvent,\n ApplicationError,\n BulkActionMetadata,\n BulkUpdateDisputeTagsByFilterOptions,\n BulkUpdateDisputeTagsByFilterRequest,\n BulkUpdateDisputeTagsByFilterResponse,\n BulkUpdateDisputeTagsOptions,\n BulkUpdateDisputeTagsRequest,\n BulkUpdateDisputeTagsResponse,\n BulkUpdateDisputeTagsResult,\n ChangeDisputeStatusManuallyRequest,\n ChangeDisputeStatusManuallyResponse,\n CreateDisputeManuallyRequest,\n CreateDisputeManuallyResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n Dispute,\n DisputeAction,\n DisputeActionType,\n DisputeChannel,\n DisputeReason,\n DisputeStage,\n DisputeStatus,\n DisputesQueryBuilder,\n DisputesQueryResult,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetDisputeActionsRequest,\n GetDisputeActionsResponse,\n GetDisputeRequest,\n GetDisputeResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MessageEnvelope,\n PublicTags,\n QueryDisputesRequest,\n QueryDisputesResponse,\n RestoreInfo,\n SellerProtection,\n SortOrder,\n Sorting,\n SubmitDisputeEvidenceRequest,\n SubmitDisputeEvidenceResponse,\n TagList,\n Tags,\n TagsTagList,\n WebhookIdentityType,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\n","import {\n getDispute as publicGetDispute,\n queryDisputes as publicQueryDisputes,\n getDisputeActions as publicGetDisputeActions,\n acceptDispute as publicAcceptDispute,\n submitDisputeEvidence as publicSubmitDisputeEvidence,\n bulkUpdateDisputeTags as publicBulkUpdateDisputeTags,\n bulkUpdateDisputeTagsByFilter as publicBulkUpdateDisputeTagsByFilter,\n} from './payments-disputes-v1-dispute-disputes.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const getDispute: MaybeContext<\n BuildRESTFunction<typeof publicGetDispute> & typeof publicGetDispute\n> = /*#__PURE__*/ createRESTModule(publicGetDispute);\n/** @internal */\nexport const queryDisputes: MaybeContext<\n BuildRESTFunction<typeof publicQueryDisputes> & typeof publicQueryDisputes\n> = /*#__PURE__*/ createRESTModule(publicQueryDisputes);\n/** @internal */\nexport const getDisputeActions: MaybeContext<\n BuildRESTFunction<typeof publicGetDisputeActions> &\n typeof publicGetDisputeActions\n> = /*#__PURE__*/ createRESTModule(publicGetDisputeActions);\n/** @internal */\nexport const acceptDispute: MaybeContext<\n BuildRESTFunction<typeof publicAcceptDispute> & typeof publicAcceptDispute\n> = /*#__PURE__*/ createRESTModule(publicAcceptDispute);\n/** @internal */\nexport const submitDisputeEvidence: MaybeContext<\n BuildRESTFunction<typeof publicSubmitDisputeEvidence> &\n typeof publicSubmitDisputeEvidence\n> = /*#__PURE__*/ createRESTModule(publicSubmitDisputeEvidence);\n/** @internal */\nexport const bulkUpdateDisputeTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeTags> &\n typeof publicBulkUpdateDisputeTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateDisputeTags);\n/** @internal */\nexport const bulkUpdateDisputeTagsByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeTagsByFilter> &\n typeof publicBulkUpdateDisputeTagsByFilter\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateDisputeTagsByFilter);\n\nexport {\n DisputeStage,\n DisputeReason,\n DisputeStatus,\n SellerProtection,\n DisputeChannel,\n SortOrder,\n DisputeActionType,\n WebhookIdentityType,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\nexport {\n Dispute,\n ExtendedFields,\n PublicTags,\n TagList,\n GetDisputeRequest,\n GetDisputeResponse,\n QueryDisputesRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryDisputesResponse,\n CursorPagingMetadata,\n Cursors,\n GetDisputeActionsRequest,\n GetDisputeActionsResponse,\n DisputeAction,\n AcceptDisputeRequest,\n AcceptDisputeResponse,\n SubmitDisputeEvidenceRequest,\n SubmitDisputeEvidenceResponse,\n CreateDisputeManuallyRequest,\n CreateDisputeManuallyResponse,\n ChangeDisputeStatusManuallyRequest,\n ChangeDisputeStatusManuallyResponse,\n BulkUpdateDisputeTagsRequest,\n Tags,\n TagsTagList,\n BulkUpdateDisputeTagsResponse,\n ItemMetadata,\n ApplicationError,\n BulkUpdateDisputeTagsResult,\n BulkActionMetadata,\n BulkUpdateDisputeTagsByFilterRequest,\n BulkUpdateDisputeTagsByFilterResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n DisputesQueryResult,\n DisputesQueryBuilder,\n BulkUpdateDisputeTagsOptions,\n BulkUpdateDisputeTagsByFilterOptions,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\nexport {\n DisputeStageWithLiterals,\n DisputeReasonWithLiterals,\n DisputeStatusWithLiterals,\n SellerProtectionWithLiterals,\n DisputeChannelWithLiterals,\n SortOrderWithLiterals,\n DisputeActionTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n BulkUpdateDisputeTagsApplicationErrors,\n BulkUpdateDisputeTagsByFilterApplicationErrors,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,y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AA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA0BO,SAASC,eAAc,YAAgD;AAC5E,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAUO,SAASC,mBACd,YAC4B;AAC5B,SAAO,CAAC,cACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAiBO,SAASC,eAAc,YAAgD;AAC5E,SAAO,CAAC,cACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAyBO,SAASC,uBACd,YACgC;AAChC,SAAO,CAAC,cACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAyBO,SAASC,uBACd,YACgC;AAChC,SAAO,CAAC,KAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA2BO,SAASC,+BACd,YACwC;AACxC,SAAO,CACL,QACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC/MA,SAAS,wBAAwB;AAI1B,IAAMC,cAEK,iCAAiBA,WAAgB;AAE5C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,qBAGK,iCAAiBA,kBAAuB;AAEnD,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,yBAGK,iCAAiBA,sBAA2B;AAEvD,IAAMC,yBAGK,iCAAiBA,sBAA2B;AAEvD,IAAMC,iCAGK,iCAAiBA,8BAAmC;","names":["payload","transformPaths","DisputeStage","DisputeReason","DisputeStatus","SellerProtection","DisputeChannel","SortOrder","DisputeActionType","WebhookIdentityType","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
1
+ {"version":3,"sources":["../../../src/payments-disputes-v1-dispute-disputes.universal.ts","../../../src/payments-disputes-v1-dispute-disputes.http.ts","../../../src/payments-disputes-v1-dispute-disputes.public.ts","../../../src/payments-disputes-v1-dispute-disputes.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputesV1Dispute from './payments-disputes-v1-dispute-disputes.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Dispute. A dispute occurs when an account owner contacts their PSP or bank to contest a payment to you for a number of possible reasons. */\nexport interface Dispute {\n /**\n * Dispute ID\n * @format GUID\n * @immutable\n */\n _id?: string;\n /**\n * Charge ID\n * @format GUID\n * @immutable\n */\n chargeId?: string;\n /**\n * Provider Dispute ID\n * @format GUID\n * @immutable\n */\n providerDisputeId?: string;\n /**\n * Dispute stage\n * @readonly\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Dispute reason\n * @readonly\n */\n reason?: DisputeReasonWithLiterals;\n /**\n * Dispute currency. Should be the same as the charge currency.\n * @immutable\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Dispute Amount in currency's main units (such as dollars or euros). For example, `\"12.95\"`.\n * @immutable\n * @decimalValue options { gt:0, maxScale:8 }\n */\n amount?: string | null;\n /**\n * Dispute status based on provider dispute status\n * @readonly\n */\n status?: DisputeStatusWithLiterals;\n /** True if the merchant can do the refund with the opened dispute, false otherwise */\n chargeRefundable?: boolean | null;\n /**\n * Seller protection helps protect sellers from financial loss on eligible transactions due to unauthorized payments or claims that items were not received\n * @readonly\n */\n sellerProtection?: SellerProtectionWithLiterals;\n /**\n * Dispute Channel\n * Internal - this dispute is created on provider side\n * External - this dispute is created on bank side\n * @readonly\n */\n channel?: DisputeChannelWithLiterals;\n /**\n * The latest date and time until which the dispute can remain in its current status\n * @readonly\n */\n dueDate?: Date | null;\n /**\n * Network reason code\n * @minLength 1\n * @maxLength 64\n */\n networkReasonCode?: string | null;\n /**\n * True if dispute is defendable\n * @readonly\n */\n defendable?: boolean | null;\n /**\n * True if it is an auto dispute\n * @readonly\n */\n autoDefended?: boolean | null;\n /**\n * The dispute defense date\n * @readonly\n */\n defenseDate?: Date | null;\n /**\n * The dispute acceptance date\n * @readonly\n */\n acceptanceDate?: Date | null;\n /**\n * The actions that can be perform with the dispute\n * @readonly\n * @maxSize 20\n */\n actions?: DisputeAction[];\n /**\n * The dispute created date\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * The dispute updated date\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the Dispute is updated.\n * @readonly\n */\n revision?: string | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: PublicTags;\n}\n\nexport enum DisputeStage {\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Chargeback */\n CHARGEBACK = 'CHARGEBACK',\n /** Inquiry (Request for Information) */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeReason {\n /** Unknown reason */\n UNKNOWN_DISPUTE_REASON = 'UNKNOWN_DISPUTE_REASON',\n /** Fraud card */\n FRAUD_CARD_PRESENT = 'FRAUD_CARD_PRESENT',\n /** Card absent */\n FRAUD_CARD_ABSENT = 'FRAUD_CARD_ABSENT',\n /** DUPLICATE */\n DUPLICATE_PROCESSING = 'DUPLICATE_PROCESSING',\n /** Service not provided */\n SERVICES_NOT_PROVIDED = 'SERVICES_NOT_PROVIDED',\n /** Canceled Recurring */\n CANCELED_RECURRING = 'CANCELED_RECURRING',\n /** Item not as describe */\n NOT_AS_DESCRIBED = 'NOT_AS_DESCRIBED',\n /** Counterfeit */\n COUNTERFEIT = 'COUNTERFEIT',\n /** Misrepresentation */\n MISREPRESENTATION = 'MISREPRESENTATION',\n /** Canceled */\n CANCELED = 'CANCELED',\n /** Other reason */\n OTHER = 'OTHER',\n}\n\n/** @enumType */\nexport type DisputeReasonWithLiterals =\n | DisputeReason\n | 'UNKNOWN_DISPUTE_REASON'\n | 'FRAUD_CARD_PRESENT'\n | 'FRAUD_CARD_ABSENT'\n | 'DUPLICATE_PROCESSING'\n | 'SERVICES_NOT_PROVIDED'\n | 'CANCELED_RECURRING'\n | 'NOT_AS_DESCRIBED'\n | 'COUNTERFEIT'\n | 'MISREPRESENTATION'\n | 'CANCELED'\n | 'OTHER';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for some merchant action */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by PSP or Bank */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for some buyer action */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute won */\n WON = 'WON',\n /** Dispute lost */\n LOST = 'LOST',\n /** Evidence were submitted and are being processed on provider side */\n PROCESSING_EVIDENCE_SUBMISSION = 'PROCESSING_EVIDENCE_SUBMISSION',\n /** The dispute was accepted and the acceptance is being processed on provider side */\n PROCESSING_ACCEPTANCE = 'PROCESSING_ACCEPTANCE',\n}\n\n/** @enumType */\nexport type DisputeStatusWithLiterals =\n | DisputeStatus\n | 'UNKNOWN_DISPUTE_STATUS'\n | 'WAITING_MERCHANT'\n | 'UNDER_REVIEW'\n | 'WAITING_BUYER'\n | 'WON'\n | 'LOST'\n | 'PROCESSING_EVIDENCE_SUBMISSION'\n | 'PROCESSING_ACCEPTANCE';\n\nexport enum SellerProtection {\n UNKNOWN_SELLER_PROTECTION = 'UNKNOWN_SELLER_PROTECTION',\n /** Not Eligible */\n NOT_ELIGIBLE = 'NOT_ELIGIBLE',\n /** Eligible */\n ELIGIBLE = 'ELIGIBLE',\n /** Extended seller protection */\n EXTENDED = 'EXTENDED',\n}\n\n/** @enumType */\nexport type SellerProtectionWithLiterals =\n | SellerProtection\n | 'UNKNOWN_SELLER_PROTECTION'\n | 'NOT_ELIGIBLE'\n | 'ELIGIBLE'\n | 'EXTENDED';\n\nexport enum DisputeChannel {\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Internal, the dispute is reviewed by PSP */\n INTERNAL = 'INTERNAL',\n /** External, the dispute is reviewed by bank (or other financial institution) */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type DisputeChannelWithLiterals =\n | DisputeChannel\n | 'UNKNOWN_DISPUTE_CHANNEL'\n | 'INTERNAL'\n | 'EXTERNAL';\n\nexport interface DisputeAction {\n /** Dispute Action type */\n type?: DisputeActionTypeWithLiterals;\n /** The latest date and time until which the action can be performed */\n dueDate?: Date | null;\n}\n\nexport enum DisputeActionType {\n /** Unknown dispute status */\n UNKNOWN_DISPUTE_ACTION = 'UNKNOWN_DISPUTE_ACTION',\n /** Accept dispute */\n ACCEPT = 'ACCEPT',\n /** Defend evidence */\n DEFEND = 'DEFEND',\n}\n\n/** @enumType */\nexport type DisputeActionTypeWithLiterals =\n | DisputeActionType\n | 'UNKNOWN_DISPUTE_ACTION'\n | 'ACCEPT'\n | 'DEFEND';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface PublicTags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface GetDisputeRequest {\n /**\n * ID of the Dispute to retrieve.\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface GetDisputeResponse {\n /** The requested Dispute. */\n dispute?: Dispute;\n}\n\nexport interface QueryDisputesRequest {\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 QueryDisputesResponse {\n /** List of Disputes. */\n disputes?: Dispute[];\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 AcceptDisputeRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface AcceptDisputeResponse {\n /** Dispute */\n dispute?: Dispute;\n}\n\nexport interface DefendDisputeRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface DefendDisputeResponse {\n /** Dispute */\n dispute?: Dispute;\n}\n\nexport interface SubmitDisputeEvidenceRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId: string;\n}\n\nexport interface SubmitDisputeEvidenceResponse {\n /** Dispute */\n dispute?: Dispute;\n}\n\nexport interface CreateDisputeManuallyRequest {\n /**\n * Dispute Id\n * @format GUID\n */\n disputeId?: string;\n /**\n * Charge Id\n * @format GUID\n */\n chargeId?: string;\n /** Open date */\n openDate?: Date | null;\n /**\n * Provider Dispute Id\n * @minLength 1\n * @maxLength 100\n */\n providerDisputeId?: string;\n /** Dispute stage */\n stage?: DisputeStageWithLiterals;\n /** Dispute reason */\n reason?: DisputeReasonWithLiterals;\n /** Dispute status based on provider dispute status */\n status?: DisputeStatusWithLiterals;\n /** The latest date and time until which the dispute can remain in its current status */\n dueDate?: Date | null;\n /**\n * Dispute currency. Should be the same as the charge currency.\n * @immutable\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Dispute Amount in currency's main units (such as dollars or euros). For example, `\"12.95\"`.\n * @immutable\n * @decimalValue options { gt:0, maxScale:8 }\n */\n amount?: string | null;\n /**\n * Network reason code\n * @minLength 1\n * @maxLength 64\n */\n networkReasonCode?: string | null;\n /** External or Internal */\n external?: boolean | null;\n /**\n * Seller protection\n * @minLength 1\n * @maxLength 64\n */\n sellerProtection?: string | null;\n /** Is charge refundable */\n chargeRefundable?: boolean | null;\n /** True if dispute is defendable */\n defendable?: boolean | null;\n /** True if it is an auto dispute */\n autoDefended?: boolean | null;\n}\n\nexport interface CreateDisputeManuallyResponse {}\n\nexport interface ChangeDisputeStatusManuallyRequest {\n /**\n * Dispute ID\n * @format GUID\n */\n disputeId?: string;\n /** Changed date */\n changedDate?: Date | null;\n /** Dispute status based on provider dispute status */\n status?: DisputeStatusWithLiterals;\n}\n\nexport interface ChangeDisputeStatusManuallyResponse {}\n\nexport interface BulkUpdateDisputeTagsRequest {\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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagsTagList;\n}\n\nexport interface TagsTagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface BulkUpdateDisputeTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeTagsResult[];\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 BulkUpdateDisputeTagsResult {\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 BulkUpdateDisputeTagsByFilterRequest {\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 BulkUpdateDisputeTagsByFilterResponse {\n /**\n * Job ID\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** 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 BulkUpdateDisputeTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Get Dispute by ID\n * @param disputeId - ID of the Dispute to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_READ\n * @returns The requested Dispute.\n * @fqn wix.payments.disputes.v1.DisputeService.GetDispute\n */\nexport async function getDispute(\n disputeId: string\n): Promise<\n NonNullablePaths<\n Dispute,\n | `_id`\n | `chargeId`\n | `providerDisputeId`\n | `stage`\n | `reason`\n | `status`\n | `sellerProtection`\n | `channel`\n | `actions`\n | `actions.${number}.type`\n | `tags.tags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeId: disputeId,\n });\n\n const reqOpts = ambassadorWixPaymentsDisputesV1Dispute.getDispute(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.dispute!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of Disputes\n * @internal\n * @documentationMaturity preview\n * @permissionId PAYMENTS.DISPUTE_READ\n * @fqn wix.payments.disputes.v1.DisputeService.QueryDisputes\n */\nexport function queryDisputes(): DisputesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Dispute,\n 'CURSOR',\n QueryDisputesRequest,\n QueryDisputesResponse\n >({\n func: async (payload: QueryDisputesRequest) => {\n const reqOpts =\n ambassadorWixPaymentsDisputesV1Dispute.queryDisputes(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryDisputesRequest['query']) => {\n const args = [query, {}] as [QueryDisputesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryDisputesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.disputes,\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 DisputesQueryResult extends QueryCursorResult {\n items: Dispute[];\n query: DisputesQueryBuilder;\n next: () => Promise<DisputesQueryResult>;\n prev: () => Promise<DisputesQueryResult>;\n}\n\nexport interface DisputesQueryBuilder {\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\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: (propertyName: '_id', value: string) => DisputesQueryBuilder;\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: '_id' | '_createdDate' | '_updatedDate',\n value: any[]\n ) => DisputesQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | '_createdDate' | '_updatedDate',\n value: any\n ) => DisputesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | '_createdDate' | '_updatedDate',\n value: boolean\n ) => DisputesQueryBuilder;\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<'_createdDate' | '_updatedDate'>\n ) => DisputesQueryBuilder;\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<'_createdDate' | '_updatedDate'>\n ) => DisputesQueryBuilder;\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) => DisputesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DisputesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DisputesQueryResult>;\n}\n\n/**\n * Accept Dispute\n * @param disputeId - Dispute ID\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_ACCEPT\n * @fqn wix.payments.disputes.v1.DisputeService.AcceptDispute\n */\nexport async function acceptDispute(\n disputeId: string\n): Promise<\n NonNullablePaths<\n AcceptDisputeResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.actions`\n | `dispute.actions.${number}.type`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeId: disputeId,\n });\n\n const reqOpts = ambassadorWixPaymentsDisputesV1Dispute.acceptDispute(payload);\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: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Defend Dispute\n * @param disputeId - Dispute ID\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_DEFEND\n * @fqn wix.payments.disputes.v1.DisputeService.DefendDispute\n */\nexport async function defendDispute(\n disputeId: string\n): Promise<\n NonNullablePaths<\n DefendDisputeResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.actions`\n | `dispute.actions.${number}.type`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeId: disputeId,\n });\n\n const reqOpts = ambassadorWixPaymentsDisputesV1Dispute.defendDispute(payload);\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: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Dispute Submit Evidence // TODO will be removed in next PR (after removing usage in transaction-service)\n * @param disputeId - Dispute ID\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeId\n * @permissionId PAYMENTS.DISPUTE_SUBMIT_EVIDENCE\n * @fqn wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence\n */\nexport async function submitDisputeEvidence(\n disputeId: string\n): Promise<\n NonNullablePaths<\n SubmitDisputeEvidenceResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.actions`\n | `dispute.actions.${number}.type`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeId: disputeId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputesV1Dispute.submitDisputeEvidence(payload);\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: { disputeId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Synchronously update tags on multiple Disputes, by list of Disputes ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of NileProtoTagsEntities that their tags will update.\n * @internal\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS\n * @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags\n */\nexport async function bulkUpdateDisputeTags(\n ids: string[],\n options?: BulkUpdateDisputeTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeTagsResponse,\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?: BulkUpdateDisputeTagsApplicationErrors;\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 ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTags(payload);\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 BulkUpdateDisputeTagsOptions {\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 Disputes, by provided filter\n * An empty filter will update all Disputes\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param filter - Filter\n * @internal\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS\n * @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter\n */\nexport async function bulkUpdateDisputeTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateDisputeTagsByFilterOptions\n): Promise<\n NonNullablePaths<BulkUpdateDisputeTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateDisputeTagsByFilterApplicationErrors;\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 ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTagsByFilter(\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 BulkUpdateDisputeTagsByFilterOptions {\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 { 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 resolveWixPaymentsDisputesV1DisputeServiceUrl(\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_disputes';\n\n/** Get Dispute by ID */\nexport function getDispute(payload: object): RequestOptionsFactory<any> {\n function __getDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.GetDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defenseDate' },\n { path: 'dispute.acceptanceDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDispute;\n}\n\n/** Retrieves a list of Disputes */\nexport function queryDisputes(payload: object): RequestOptionsFactory<any> {\n function __queryDisputes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.QueryDisputes',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputes.dueDate' },\n { path: 'disputes.defenseDate' },\n { path: 'disputes.acceptanceDate' },\n { path: 'disputes.createdDate' },\n { path: 'disputes.updatedDate' },\n { path: 'disputes.actions.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputes;\n}\n\n/** Accept Dispute */\nexport function acceptDispute(payload: object): RequestOptionsFactory<any> {\n function __acceptDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.AcceptDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/accept',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defenseDate' },\n { path: 'dispute.acceptanceDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __acceptDispute;\n}\n\n/** Defend Dispute */\nexport function defendDispute(payload: object): RequestOptionsFactory<any> {\n function __defendDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.DefendDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/defend',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defenseDate' },\n { path: 'dispute.acceptanceDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __defendDispute;\n}\n\n/** Dispute Submit Evidence // TODO will be removed in next PR (after removing usage in transaction-service) */\nexport function submitDisputeEvidence(\n payload: object\n): RequestOptionsFactory<any> {\n function __submitDisputeEvidence({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/submit-evidence',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defenseDate' },\n { path: 'dispute.acceptanceDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __submitDisputeEvidence;\n}\n\n/**\n * Synchronously update tags on multiple Disputes, by list of Disputes ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTags;\n}\n\n/**\n * Asynchronously update tags on multiple Disputes, by provided filter\n * An empty filter will update all Disputes\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AcceptDisputeResponse,\n BulkUpdateDisputeTagsApplicationErrors,\n BulkUpdateDisputeTagsByFilterApplicationErrors,\n BulkUpdateDisputeTagsByFilterOptions,\n BulkUpdateDisputeTagsByFilterResponse,\n BulkUpdateDisputeTagsOptions,\n BulkUpdateDisputeTagsResponse,\n DefendDisputeResponse,\n Dispute,\n DisputesQueryBuilder,\n SubmitDisputeEvidenceResponse,\n acceptDispute as universalAcceptDispute,\n bulkUpdateDisputeTags as universalBulkUpdateDisputeTags,\n bulkUpdateDisputeTagsByFilter as universalBulkUpdateDisputeTagsByFilter,\n defendDispute as universalDefendDispute,\n getDispute as universalGetDispute,\n queryDisputes as universalQueryDisputes,\n submitDisputeEvidence as universalSubmitDisputeEvidence,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\n/** @internal */\nexport function getDispute(httpClient: HttpClient): GetDisputeSignature {\n return (disputeId: string) =>\n universalGetDispute(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDisputeSignature {\n /**\n * Get Dispute by ID\n * @param - ID of the Dispute to retrieve.\n * @returns The requested Dispute.\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n Dispute,\n | `_id`\n | `chargeId`\n | `providerDisputeId`\n | `stage`\n | `reason`\n | `status`\n | `sellerProtection`\n | `channel`\n | `actions`\n | `actions.${number}.type`\n | `tags.tags.tagIds`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function queryDisputes(httpClient: HttpClient): QueryDisputesSignature {\n return () =>\n universalQueryDisputes(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryDisputesSignature {\n /**\n * Retrieves a list of Disputes\n */\n (): DisputesQueryBuilder;\n}\n\n/** @internal */\nexport function acceptDispute(httpClient: HttpClient): AcceptDisputeSignature {\n return (disputeId: string) =>\n universalAcceptDispute(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AcceptDisputeSignature {\n /**\n * Accept Dispute\n * @param - Dispute ID\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n AcceptDisputeResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.actions`\n | `dispute.actions.${number}.type`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function defendDispute(httpClient: HttpClient): DefendDisputeSignature {\n return (disputeId: string) =>\n universalDefendDispute(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DefendDisputeSignature {\n /**\n * Defend Dispute\n * @param - Dispute ID\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n DefendDisputeResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.actions`\n | `dispute.actions.${number}.type`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function submitDisputeEvidence(\n httpClient: HttpClient\n): SubmitDisputeEvidenceSignature {\n return (disputeId: string) =>\n universalSubmitDisputeEvidence(\n disputeId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SubmitDisputeEvidenceSignature {\n /**\n * Dispute Submit Evidence // TODO will be removed in next PR (after removing usage in transaction-service)\n * @param - Dispute ID\n */\n (disputeId: string): Promise<\n NonNullablePaths<\n SubmitDisputeEvidenceResponse,\n | `dispute._id`\n | `dispute.chargeId`\n | `dispute.providerDisputeId`\n | `dispute.stage`\n | `dispute.reason`\n | `dispute.status`\n | `dispute.sellerProtection`\n | `dispute.channel`\n | `dispute.actions`\n | `dispute.actions.${number}.type`\n | `dispute.tags.tags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeTags(\n httpClient: HttpClient\n): BulkUpdateDisputeTagsSignature {\n return (ids: string[], options?: BulkUpdateDisputeTagsOptions) =>\n universalBulkUpdateDisputeTags(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeTagsSignature {\n /**\n * Synchronously update tags on multiple Disputes, by list of Disputes ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - List of NileProtoTagsEntities that their tags will update.\n */\n (ids: string[], options?: BulkUpdateDisputeTagsOptions): Promise<\n NonNullablePaths<\n BulkUpdateDisputeTagsResponse,\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?: BulkUpdateDisputeTagsApplicationErrors;\n }\n >;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateDisputeTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeTagsByFilterOptions\n ) =>\n universalBulkUpdateDisputeTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeTagsByFilterSignature {\n /**\n * Asynchronously update tags on multiple Disputes, by provided filter\n * An empty filter will update all Disputes\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - Filter\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeTagsByFilterOptions\n ): Promise<\n NonNullablePaths<BulkUpdateDisputeTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateDisputeTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport {\n AcceptDisputeRequest,\n AcceptDisputeResponse,\n ActionEvent,\n ApplicationError,\n BulkActionMetadata,\n BulkUpdateDisputeTagsByFilterOptions,\n BulkUpdateDisputeTagsByFilterRequest,\n BulkUpdateDisputeTagsByFilterResponse,\n BulkUpdateDisputeTagsOptions,\n BulkUpdateDisputeTagsRequest,\n BulkUpdateDisputeTagsResponse,\n BulkUpdateDisputeTagsResult,\n ChangeDisputeStatusManuallyRequest,\n ChangeDisputeStatusManuallyResponse,\n CreateDisputeManuallyRequest,\n CreateDisputeManuallyResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DefendDisputeRequest,\n DefendDisputeResponse,\n Dispute,\n DisputeAction,\n DisputeActionType,\n DisputeChannel,\n DisputeReason,\n DisputeStage,\n DisputeStatus,\n DisputesQueryBuilder,\n DisputesQueryResult,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetDisputeRequest,\n GetDisputeResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MessageEnvelope,\n PublicTags,\n QueryDisputesRequest,\n QueryDisputesResponse,\n RestoreInfo,\n SellerProtection,\n SortOrder,\n Sorting,\n SubmitDisputeEvidenceRequest,\n SubmitDisputeEvidenceResponse,\n TagList,\n Tags,\n TagsTagList,\n WebhookIdentityType,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\n","import {\n getDispute as publicGetDispute,\n queryDisputes as publicQueryDisputes,\n acceptDispute as publicAcceptDispute,\n defendDispute as publicDefendDispute,\n submitDisputeEvidence as publicSubmitDisputeEvidence,\n bulkUpdateDisputeTags as publicBulkUpdateDisputeTags,\n bulkUpdateDisputeTagsByFilter as publicBulkUpdateDisputeTagsByFilter,\n} from './payments-disputes-v1-dispute-disputes.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const getDispute: MaybeContext<\n BuildRESTFunction<typeof publicGetDispute> & typeof publicGetDispute\n> = /*#__PURE__*/ createRESTModule(publicGetDispute);\n/** @internal */\nexport const queryDisputes: MaybeContext<\n BuildRESTFunction<typeof publicQueryDisputes> & typeof publicQueryDisputes\n> = /*#__PURE__*/ createRESTModule(publicQueryDisputes);\n/** @internal */\nexport const acceptDispute: MaybeContext<\n BuildRESTFunction<typeof publicAcceptDispute> & typeof publicAcceptDispute\n> = /*#__PURE__*/ createRESTModule(publicAcceptDispute);\n/** @internal */\nexport const defendDispute: MaybeContext<\n BuildRESTFunction<typeof publicDefendDispute> & typeof publicDefendDispute\n> = /*#__PURE__*/ createRESTModule(publicDefendDispute);\n/** @internal */\nexport const submitDisputeEvidence: MaybeContext<\n BuildRESTFunction<typeof publicSubmitDisputeEvidence> &\n typeof publicSubmitDisputeEvidence\n> = /*#__PURE__*/ createRESTModule(publicSubmitDisputeEvidence);\n/** @internal */\nexport const bulkUpdateDisputeTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeTags> &\n typeof publicBulkUpdateDisputeTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateDisputeTags);\n/** @internal */\nexport const bulkUpdateDisputeTagsByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeTagsByFilter> &\n typeof publicBulkUpdateDisputeTagsByFilter\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateDisputeTagsByFilter);\n\nexport {\n DisputeStage,\n DisputeReason,\n DisputeStatus,\n SellerProtection,\n DisputeChannel,\n DisputeActionType,\n SortOrder,\n WebhookIdentityType,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\nexport {\n Dispute,\n DisputeAction,\n ExtendedFields,\n PublicTags,\n TagList,\n GetDisputeRequest,\n GetDisputeResponse,\n QueryDisputesRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryDisputesResponse,\n CursorPagingMetadata,\n Cursors,\n AcceptDisputeRequest,\n AcceptDisputeResponse,\n DefendDisputeRequest,\n DefendDisputeResponse,\n SubmitDisputeEvidenceRequest,\n SubmitDisputeEvidenceResponse,\n CreateDisputeManuallyRequest,\n CreateDisputeManuallyResponse,\n ChangeDisputeStatusManuallyRequest,\n ChangeDisputeStatusManuallyResponse,\n BulkUpdateDisputeTagsRequest,\n Tags,\n TagsTagList,\n BulkUpdateDisputeTagsResponse,\n ItemMetadata,\n ApplicationError,\n BulkUpdateDisputeTagsResult,\n BulkActionMetadata,\n BulkUpdateDisputeTagsByFilterRequest,\n BulkUpdateDisputeTagsByFilterResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n DisputesQueryResult,\n DisputesQueryBuilder,\n BulkUpdateDisputeTagsOptions,\n BulkUpdateDisputeTagsByFilterOptions,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\nexport {\n DisputeStageWithLiterals,\n DisputeReasonWithLiterals,\n DisputeStatusWithLiterals,\n SellerProtectionWithLiterals,\n DisputeChannelWithLiterals,\n DisputeActionTypeWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n BulkUpdateDisputeTagsApplicationErrors,\n BulkUpdateDisputeTagsByFilterApplicationErrors,\n} from './payments-disputes-v1-dispute-disputes.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,KAAK,8CAA8C;AAAA,QACjD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,QAAQ,kBAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACA,aAClB,eAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,kBAAkB;AAAA,YAC1B,EAAE,MAAM,sBAAsB;AAAA,YAC9B,EAAE,MAAM,yBAAyB;AAAA,YACjC,EAAE,MAAM,sBAAsB;AAAA,YAC9B,EAAE,MAAM,sBAAsB;AAAA,YAC9B,EAAE,MAAM,0BAA0B;AAAA,UACpC;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAGO,SAAS,cAAc,SAA6C;AACzE,WAAS,gBAAgB,EAAE,KAAK,GAAQ;AACtC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MAC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AAAA,EACf;AACJ;AA2BO,SAASC,uBACd,YACgC;AAChC,SAAO,CAAC,KAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA2BO,SAASC,+BACd,YACwC;AACxC,SAAO,CACL,QACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC7NA,SAAS,wBAAwB;AAI1B,IAAMC,cAEK,iCAAiBA,WAAgB;AAE5C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,yBAGK,iCAAiBA,sBAA2B;AAEvD,IAAMC,yBAGK,iCAAiBA,sBAA2B;AAEvD,IAAMC,iCAGK,iCAAiBA,8BAAmC;","names":["payload","transformPaths","DisputeStage","DisputeReason","DisputeStatus","SellerProtection","DisputeChannel","DisputeActionType","SortOrder","WebhookIdentityType","getDispute","queryDisputes","acceptDispute","defendDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","queryDisputes","acceptDispute","defendDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","queryDisputes","acceptDispute","defendDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
@@ -20,9 +20,15 @@ interface Dispute {
20
20
  * @immutable
21
21
  */
22
22
  providerDisputeId?: string;
23
- /** Dispute stage */
23
+ /**
24
+ * Dispute stage
25
+ * @readonly
26
+ */
24
27
  stage?: DisputeStageWithLiterals;
25
- /** Dispute reason */
28
+ /**
29
+ * Dispute reason
30
+ * @readonly
31
+ */
26
32
  reason?: DisputeReasonWithLiterals;
27
33
  /**
28
34
  * Dispute currency. Should be the same as the charge currency.
@@ -36,33 +42,62 @@ interface Dispute {
36
42
  * @decimalValue options { gt:0, maxScale:8 }
37
43
  */
38
44
  amount?: string | null;
39
- /** Dispute status based on provider dispute status */
45
+ /**
46
+ * Dispute status based on provider dispute status
47
+ * @readonly
48
+ */
40
49
  status?: DisputeStatusWithLiterals;
41
50
  /** True if the merchant can do the refund with the opened dispute, false otherwise */
42
51
  chargeRefundable?: boolean | null;
43
- /** Seller protection */
52
+ /**
53
+ * Seller protection helps protect sellers from financial loss on eligible transactions due to unauthorized payments or claims that items were not received
54
+ * @readonly
55
+ */
44
56
  sellerProtection?: SellerProtectionWithLiterals;
45
57
  /**
46
58
  * Dispute Channel
47
59
  * Internal - this dispute is created on provider side
48
60
  * External - this dispute is created on bank side
61
+ * @readonly
49
62
  */
50
63
  channel?: DisputeChannelWithLiterals;
51
- /** The latest date and time until which the dispute can remain in its current status */
64
+ /**
65
+ * The latest date and time until which the dispute can remain in its current status
66
+ * @readonly
67
+ */
52
68
  dueDate?: Date | null;
53
69
  /**
54
70
  * Network reason code
55
- * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=visa
56
- * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=mastercard
57
- * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=amex
58
71
  * @minLength 1
59
72
  * @maxLength 64
60
73
  */
61
74
  networkReasonCode?: string | null;
62
- /** True if dispute is defendable */
75
+ /**
76
+ * True if dispute is defendable
77
+ * @readonly
78
+ */
63
79
  defendable?: boolean | null;
64
- /** True if it is an auto dispute */
80
+ /**
81
+ * True if it is an auto dispute
82
+ * @readonly
83
+ */
65
84
  autoDefended?: boolean | null;
85
+ /**
86
+ * The dispute defense date
87
+ * @readonly
88
+ */
89
+ defenseDate?: Date | null;
90
+ /**
91
+ * The dispute acceptance date
92
+ * @readonly
93
+ */
94
+ acceptanceDate?: Date | null;
95
+ /**
96
+ * The actions that can be perform with the dispute
97
+ * @readonly
98
+ * @maxSize 20
99
+ */
100
+ actions?: DisputeAction[];
66
101
  /**
67
102
  * The dispute created date
68
103
  * @readonly
@@ -124,17 +159,21 @@ declare enum DisputeStatus {
124
159
  UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
125
160
  /** Waiting for some merchant action */
126
161
  WAITING_MERCHANT = "WAITING_MERCHANT",
127
- /** Dispute is under review by PSP (internal channel) or Bank (external channel) */
162
+ /** Dispute is under review by PSP or Bank */
128
163
  UNDER_REVIEW = "UNDER_REVIEW",
129
164
  /** Waiting for some buyer action */
130
165
  WAITING_BUYER = "WAITING_BUYER",
131
166
  /** Dispute won */
132
167
  WON = "WON",
133
168
  /** Dispute lost */
134
- LOST = "LOST"
169
+ LOST = "LOST",
170
+ /** Evidence were submitted and are being processed on provider side */
171
+ PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
172
+ /** The dispute was accepted and the acceptance is being processed on provider side */
173
+ PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
135
174
  }
136
175
  /** @enumType */
137
- type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
176
+ type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
138
177
  declare enum SellerProtection {
139
178
  UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
140
179
  /** Not Eligible */
@@ -155,6 +194,22 @@ declare enum DisputeChannel {
155
194
  }
156
195
  /** @enumType */
157
196
  type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
197
+ interface DisputeAction {
198
+ /** Dispute Action type */
199
+ type?: DisputeActionTypeWithLiterals;
200
+ /** The latest date and time until which the action can be performed */
201
+ dueDate?: Date | null;
202
+ }
203
+ declare enum DisputeActionType {
204
+ /** Unknown dispute status */
205
+ UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
206
+ /** Accept dispute */
207
+ ACCEPT = "ACCEPT",
208
+ /** Defend evidence */
209
+ DEFEND = "DEFEND"
210
+ }
211
+ /** @enumType */
212
+ type DisputeActionTypeWithLiterals = DisputeActionType | 'UNKNOWN_DISPUTE_ACTION' | 'ACCEPT' | 'DEFEND';
158
213
  interface ExtendedFields {
159
214
  /**
160
215
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -278,44 +333,25 @@ interface Cursors {
278
333
  */
279
334
  prev?: string | null;
280
335
  }
281
- interface GetDisputeActionsRequest {
336
+ interface AcceptDisputeRequest {
282
337
  /**
283
338
  * Dispute ID
284
339
  * @format GUID
285
340
  */
286
341
  disputeId: string;
287
342
  }
288
- interface GetDisputeActionsResponse {
289
- /**
290
- * Dispute actions
291
- * @maxSize 20
292
- */
293
- actions?: DisputeAction[];
294
- }
295
- interface DisputeAction {
296
- /** Dispute Action type */
297
- type?: DisputeActionTypeWithLiterals;
298
- /** The latest date and time until which the action can be performed */
299
- dueDate?: Date | null;
300
- }
301
- declare enum DisputeActionType {
302
- /** Unknown dispute status */
303
- UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
304
- /** Accept dispute */
305
- ACCEPT = "ACCEPT",
306
- /** Submit evidence */
307
- SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
343
+ interface AcceptDisputeResponse {
344
+ /** Dispute */
345
+ dispute?: Dispute;
308
346
  }
309
- /** @enumType */
310
- type DisputeActionTypeWithLiterals = DisputeActionType | 'UNKNOWN_DISPUTE_ACTION' | 'ACCEPT' | 'SUBMIT_EVIDENCE';
311
- interface AcceptDisputeRequest {
347
+ interface DefendDisputeRequest {
312
348
  /**
313
349
  * Dispute ID
314
350
  * @format GUID
315
351
  */
316
352
  disputeId: string;
317
353
  }
318
- interface AcceptDisputeResponse {
354
+ interface DefendDisputeResponse {
319
355
  /** Dispute */
320
356
  dispute?: Dispute;
321
357
  }
@@ -355,6 +391,7 @@ interface CreateDisputeManuallyRequest {
355
391
  reason?: DisputeReasonWithLiterals;
356
392
  /** Dispute status based on provider dispute status */
357
393
  status?: DisputeStatusWithLiterals;
394
+ /** The latest date and time until which the dispute can remain in its current status */
358
395
  dueDate?: Date | null;
359
396
  /**
360
397
  * Dispute currency. Should be the same as the charge currency.
@@ -665,7 +702,7 @@ type BulkUpdateDisputeTagsByFilterApplicationErrors = {
665
702
  * @returns The requested Dispute.
666
703
  * @fqn wix.payments.disputes.v1.DisputeService.GetDispute
667
704
  */
668
- declare function getDispute(disputeId: string): Promise<NonNullablePaths<Dispute, `_id` | `chargeId` | `providerDisputeId` | `stage` | `reason` | `status` | `sellerProtection` | `channel` | `tags.tags.tagIds`, 4>>;
705
+ declare function getDispute(disputeId: string): Promise<NonNullablePaths<Dispute, `_id` | `chargeId` | `providerDisputeId` | `stage` | `reason` | `status` | `sellerProtection` | `channel` | `actions` | `actions.${number}.type` | `tags.tags.tagIds`, 4>>;
669
706
  /**
670
707
  * Retrieves a list of Disputes
671
708
  * @internal
@@ -752,27 +789,27 @@ interface DisputesQueryBuilder {
752
789
  find: () => Promise<DisputesQueryResult>;
753
790
  }
754
791
  /**
755
- * Get Dispute Actions
792
+ * Accept Dispute
756
793
  * @param disputeId - Dispute ID
757
794
  * @internal
758
795
  * @documentationMaturity preview
759
796
  * @requiredField disputeId
760
- * @permissionId PAYMENTS.DISPUTE_GET_ACTIONS
761
- * @fqn wix.payments.disputes.v1.DisputeService.GetDisputeActions
797
+ * @permissionId PAYMENTS.DISPUTE_ACCEPT
798
+ * @fqn wix.payments.disputes.v1.DisputeService.AcceptDispute
762
799
  */
763
- declare function getDisputeActions(disputeId: string): Promise<NonNullablePaths<GetDisputeActionsResponse, `actions` | `actions.${number}.type`, 4>>;
800
+ declare function acceptDispute(disputeId: string): Promise<NonNullablePaths<AcceptDisputeResponse, `dispute._id` | `dispute.chargeId` | `dispute.providerDisputeId` | `dispute.stage` | `dispute.reason` | `dispute.status` | `dispute.sellerProtection` | `dispute.channel` | `dispute.actions` | `dispute.actions.${number}.type` | `dispute.tags.tags.tagIds`, 5>>;
764
801
  /**
765
- * Dispute Accept
802
+ * Defend Dispute
766
803
  * @param disputeId - Dispute ID
767
804
  * @internal
768
805
  * @documentationMaturity preview
769
806
  * @requiredField disputeId
770
- * @permissionId PAYMENTS.DISPUTE_ACCEPT
771
- * @fqn wix.payments.disputes.v1.DisputeService.AcceptDispute
807
+ * @permissionId PAYMENTS.DISPUTE_DEFEND
808
+ * @fqn wix.payments.disputes.v1.DisputeService.DefendDispute
772
809
  */
773
- declare function acceptDispute(disputeId: string): Promise<NonNullablePaths<AcceptDisputeResponse, `dispute._id` | `dispute.chargeId` | `dispute.providerDisputeId` | `dispute.stage` | `dispute.reason` | `dispute.status` | `dispute.sellerProtection` | `dispute.channel` | `dispute.tags.tags.tagIds`, 5>>;
810
+ declare function defendDispute(disputeId: string): Promise<NonNullablePaths<DefendDisputeResponse, `dispute._id` | `dispute.chargeId` | `dispute.providerDisputeId` | `dispute.stage` | `dispute.reason` | `dispute.status` | `dispute.sellerProtection` | `dispute.channel` | `dispute.actions` | `dispute.actions.${number}.type` | `dispute.tags.tags.tagIds`, 5>>;
774
811
  /**
775
- * Dispute Submit Evidence
812
+ * Dispute Submit Evidence // TODO will be removed in next PR (after removing usage in transaction-service)
776
813
  * @param disputeId - Dispute ID
777
814
  * @internal
778
815
  * @documentationMaturity preview
@@ -780,7 +817,7 @@ declare function acceptDispute(disputeId: string): Promise<NonNullablePaths<Acce
780
817
  * @permissionId PAYMENTS.DISPUTE_SUBMIT_EVIDENCE
781
818
  * @fqn wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence
782
819
  */
783
- declare function submitDisputeEvidence(disputeId: string): Promise<NonNullablePaths<SubmitDisputeEvidenceResponse, `dispute._id` | `dispute.chargeId` | `dispute.providerDisputeId` | `dispute.stage` | `dispute.reason` | `dispute.status` | `dispute.sellerProtection` | `dispute.channel` | `dispute.tags.tags.tagIds`, 5>>;
820
+ declare function submitDisputeEvidence(disputeId: string): Promise<NonNullablePaths<SubmitDisputeEvidenceResponse, `dispute._id` | `dispute.chargeId` | `dispute.providerDisputeId` | `dispute.stage` | `dispute.reason` | `dispute.status` | `dispute.sellerProtection` | `dispute.channel` | `dispute.actions` | `dispute.actions.${number}.type` | `dispute.tags.tags.tagIds`, 5>>;
784
821
  /**
785
822
  * Synchronously update tags on multiple Disputes, by list of Disputes ids
786
823
  * A tag that appears both in the list of assign and unassign tags, will be assigned
@@ -821,4 +858,4 @@ interface BulkUpdateDisputeTagsByFilterOptions {
821
858
  unassignTags?: Tags;
822
859
  }
823
860
 
824
- export { type AcceptDisputeRequest, type AcceptDisputeResponse, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeTagsApplicationErrors, type BulkUpdateDisputeTagsByFilterApplicationErrors, type BulkUpdateDisputeTagsByFilterOptions, type BulkUpdateDisputeTagsByFilterRequest, type BulkUpdateDisputeTagsByFilterResponse, type BulkUpdateDisputeTagsOptions, type BulkUpdateDisputeTagsRequest, type BulkUpdateDisputeTagsResponse, type BulkUpdateDisputeTagsResult, type ChangeDisputeStatusManuallyRequest, type ChangeDisputeStatusManuallyResponse, type CreateDisputeManuallyRequest, type CreateDisputeManuallyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type Dispute, type DisputeAction, DisputeActionType, type DisputeActionTypeWithLiterals, DisputeChannel, type DisputeChannelWithLiterals, DisputeReason, type DisputeReasonWithLiterals, DisputeStage, type DisputeStageWithLiterals, DisputeStatus, type DisputeStatusWithLiterals, type DisputesQueryBuilder, type DisputesQueryResult, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDisputeActionsRequest, type GetDisputeActionsResponse, type GetDisputeRequest, type GetDisputeResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type PublicTags, type QueryDisputesRequest, type QueryDisputesResponse, type RestoreInfo, SellerProtection, type SellerProtectionWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitDisputeEvidenceRequest, type SubmitDisputeEvidenceResponse, type TagList, type Tags, type TagsTagList, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, acceptDispute, bulkUpdateDisputeTags, bulkUpdateDisputeTagsByFilter, getDispute, getDisputeActions, queryDisputes, submitDisputeEvidence };
861
+ export { type AcceptDisputeRequest, type AcceptDisputeResponse, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeTagsApplicationErrors, type BulkUpdateDisputeTagsByFilterApplicationErrors, type BulkUpdateDisputeTagsByFilterOptions, type BulkUpdateDisputeTagsByFilterRequest, type BulkUpdateDisputeTagsByFilterResponse, type BulkUpdateDisputeTagsOptions, type BulkUpdateDisputeTagsRequest, type BulkUpdateDisputeTagsResponse, type BulkUpdateDisputeTagsResult, type ChangeDisputeStatusManuallyRequest, type ChangeDisputeStatusManuallyResponse, type CreateDisputeManuallyRequest, type CreateDisputeManuallyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DefendDisputeRequest, type DefendDisputeResponse, type Dispute, type DisputeAction, DisputeActionType, type DisputeActionTypeWithLiterals, DisputeChannel, type DisputeChannelWithLiterals, DisputeReason, type DisputeReasonWithLiterals, DisputeStage, type DisputeStageWithLiterals, DisputeStatus, type DisputeStatusWithLiterals, type DisputesQueryBuilder, type DisputesQueryResult, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDisputeRequest, type GetDisputeResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type PublicTags, type QueryDisputesRequest, type QueryDisputesResponse, type RestoreInfo, SellerProtection, type SellerProtectionWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitDisputeEvidenceRequest, type SubmitDisputeEvidenceResponse, type TagList, type Tags, type TagsTagList, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, acceptDispute, bulkUpdateDisputeTags, bulkUpdateDisputeTagsByFilter, defendDispute, getDispute, queryDisputes, submitDisputeEvidence };