@wix/auto_sdk_payments_disputes 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +18 -6
- package/build/cjs/index.js +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +3 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +14 -6
- package/build/es/index.d.mts +18 -6
- package/build/es/index.mjs +3 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +3 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +14 -6
- package/build/internal/cjs/index.js +3 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +18 -6
- package/build/internal/cjs/index.typings.js +3 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +14 -6
- package/build/internal/es/index.mjs +3 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +18 -6
- package/build/internal/es/index.typings.mjs +3 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +14 -6
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../index.ts","../../../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":["export * from './src/payments-disputes-v1-dispute-disputes.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as 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 /**\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 /** Request for Information / Inquiry */\n RFI = 'RFI',\n /** Chargeback */\n CHARGEBACK = 'CHARGEBACK',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'RFI'\n | 'CHARGEBACK';\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}\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAAA;AAAA,EAAA,6BAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,6BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,E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AAc,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,IAAAC,uBAAiC;AAI1B,IAAMC,cAEK,2DAAiBA,WAAgB;AAE5C,IAAMC,iBAEK,2DAAiBA,cAAmB;AAE/C,IAAMC,qBAGK,2DAAiBA,kBAAuB;AAEnD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAE/C,IAAMC,yBAGK,2DAAiBA,sBAA2B;AAEvD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AAEvD,IAAMC,iCAGK,2DAAiBA,8BAAmC;","names":["acceptDispute","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","getDisputeActions","queryDisputes","submitDisputeEvidence","import_rest_modules","payload","import_transform_paths","DisputeStage","DisputeReason","DisputeStatus","SellerProtection","DisputeChannel","SortOrder","DisputeActionType","WebhookIdentityType","getDispute","sdkTransformError","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","import_rest_modules","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
|
|
1
|
+
{"version":3,"sources":["../../../index.ts","../../../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":["export * from './src/payments-disputes-v1-dispute-disputes.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as 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 /** 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 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAAA;AAAA,EAAA,6BAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,6BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,iCAAW,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,YAAQ,uCAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,kBAAkB;AAAA,YAC1B,EAAE,MAAM,sBAAsB;AAAA,YAC9B,EAAE,MAAM,sBAAsB;AAAA,UAChC;AAAA,QACF;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AAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC/MA,IAAAC,uBAAiC;AAI1B,IAAMC,cAEK,2DAAiBA,WAAgB;AAE5C,IAAMC,iBAEK,2DAAiBA,cAAmB;AAE/C,IAAMC,qBAGK,2DAAiBA,kBAAuB;AAEnD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAE/C,IAAMC,yBAGK,2DAAiBA,sBAA2B;AAEvD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AAEvD,IAAMC,iCAGK,2DAAiBA,8BAAmC;","names":["acceptDispute","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","getDisputeActions","queryDisputes","submitDisputeEvidence","import_rest_modules","payload","import_transform_paths","DisputeStage","DisputeReason","DisputeStatus","SellerProtection","DisputeChannel","SortOrder","DisputeActionType","WebhookIdentityType","getDispute","sdkTransformError","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter","import_rest_modules","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
|
|
@@ -59,6 +59,10 @@ interface Dispute {
|
|
|
59
59
|
* @maxLength 64
|
|
60
60
|
*/
|
|
61
61
|
networkReasonCode?: string | null;
|
|
62
|
+
/** True if dispute is defendable */
|
|
63
|
+
defendable?: boolean | null;
|
|
64
|
+
/** True if it is an auto dispute */
|
|
65
|
+
autoDefended?: boolean | null;
|
|
62
66
|
/**
|
|
63
67
|
* The dispute created date
|
|
64
68
|
* @readonly
|
|
@@ -82,13 +86,13 @@ interface Dispute {
|
|
|
82
86
|
}
|
|
83
87
|
declare enum DisputeStage {
|
|
84
88
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
85
|
-
/** Request for Information / Inquiry */
|
|
86
|
-
RFI = "RFI",
|
|
87
89
|
/** Chargeback */
|
|
88
|
-
CHARGEBACK = "CHARGEBACK"
|
|
90
|
+
CHARGEBACK = "CHARGEBACK",
|
|
91
|
+
/** Inquiry (Request for Information) */
|
|
92
|
+
INQUIRY = "INQUIRY"
|
|
89
93
|
}
|
|
90
94
|
/** @enumType */
|
|
91
|
-
type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | '
|
|
95
|
+
type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'CHARGEBACK' | 'INQUIRY';
|
|
92
96
|
declare enum DisputeReason {
|
|
93
97
|
/** Unknown reason */
|
|
94
98
|
UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
|
|
@@ -127,10 +131,14 @@ declare enum DisputeStatus {
|
|
|
127
131
|
/** Dispute won */
|
|
128
132
|
WON = "WON",
|
|
129
133
|
/** Dispute lost */
|
|
130
|
-
LOST = "LOST"
|
|
134
|
+
LOST = "LOST",
|
|
135
|
+
/** Evidence were submitted and are being processed on provider side */
|
|
136
|
+
PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
|
|
137
|
+
/** The dispute was accepted and the acceptance is being processed on provider side */
|
|
138
|
+
PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
|
|
131
139
|
}
|
|
132
140
|
/** @enumType */
|
|
133
|
-
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
|
|
141
|
+
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
|
|
134
142
|
declare enum SellerProtection {
|
|
135
143
|
UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
|
|
136
144
|
/** Not Eligible */
|
|
@@ -380,6 +388,10 @@ interface CreateDisputeManuallyRequest {
|
|
|
380
388
|
sellerProtection?: string | null;
|
|
381
389
|
/** Is charge refundable */
|
|
382
390
|
chargeRefundable?: boolean | null;
|
|
391
|
+
/** True if dispute is defendable */
|
|
392
|
+
defendable?: boolean | null;
|
|
393
|
+
/** True if it is an auto dispute */
|
|
394
|
+
autoDefended?: boolean | null;
|
|
383
395
|
}
|
|
384
396
|
interface CreateDisputeManuallyResponse {
|
|
385
397
|
}
|
|
@@ -241,8 +241,8 @@ function bulkUpdateDisputeTagsByFilter(payload) {
|
|
|
241
241
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
242
242
|
var DisputeStage = /* @__PURE__ */ ((DisputeStage2) => {
|
|
243
243
|
DisputeStage2["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
|
|
244
|
-
DisputeStage2["RFI"] = "RFI";
|
|
245
244
|
DisputeStage2["CHARGEBACK"] = "CHARGEBACK";
|
|
245
|
+
DisputeStage2["INQUIRY"] = "INQUIRY";
|
|
246
246
|
return DisputeStage2;
|
|
247
247
|
})(DisputeStage || {});
|
|
248
248
|
var DisputeReason = /* @__PURE__ */ ((DisputeReason2) => {
|
|
@@ -266,6 +266,8 @@ var DisputeStatus = /* @__PURE__ */ ((DisputeStatus2) => {
|
|
|
266
266
|
DisputeStatus2["WAITING_BUYER"] = "WAITING_BUYER";
|
|
267
267
|
DisputeStatus2["WON"] = "WON";
|
|
268
268
|
DisputeStatus2["LOST"] = "LOST";
|
|
269
|
+
DisputeStatus2["PROCESSING_EVIDENCE_SUBMISSION"] = "PROCESSING_EVIDENCE_SUBMISSION";
|
|
270
|
+
DisputeStatus2["PROCESSING_ACCEPTANCE"] = "PROCESSING_ACCEPTANCE";
|
|
269
271
|
return DisputeStatus2;
|
|
270
272
|
})(DisputeStatus || {});
|
|
271
273
|
var SellerProtection = /* @__PURE__ */ ((SellerProtection2) => {
|