@wix/auto_sdk_payments_disputes 1.0.26 → 1.0.28
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 +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +3 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -11
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -11
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payments-disputes-v1-dispute-disputes.universal.ts","../../../src/payments-disputes-v1-dispute-disputes.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputesV1Dispute from './payments-disputes-v1-dispute-disputes.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Dispute. A dispute occurs when an account owner contacts their PSP or bank to contest a payment to you for a number of possible reasons. */\nexport interface Dispute {\n /**\n * Dispute ID\n * @format GUID\n * @immutable\n */\n _id?: string;\n /**\n * Charge ID\n * @format GUID\n * @immutable\n */\n chargeId?: string;\n /**\n * Provider Dispute ID\n * @format GUID\n * @immutable\n */\n providerDisputeId?: string;\n /** Dispute stage */\n stage?: DisputeStageWithLiterals;\n /** Dispute reason */\n reason?: DisputeReasonWithLiterals;\n /**\n * Dispute currency. Should be the same as the charge currency.\n * @immutable\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Dispute Amount in currency's main units (such as dollars or euros). For example, `\"12.95\"`.\n * @immutable\n * @decimalValue options { gt:0, maxScale:8 }\n */\n amount?: string | null;\n /** Dispute status based on provider dispute status */\n status?: DisputeStatusWithLiterals;\n /** True if the merchant can do the refund with the opened dispute, false otherwise */\n chargeRefundable?: boolean | null;\n /** Seller protection */\n sellerProtection?: SellerProtectionWithLiterals;\n /**\n * Dispute Channel\n * Internal - this dispute is created on provider side\n * External - this dispute is created on bank side\n */\n channel?: DisputeChannelWithLiterals;\n /** The latest date and time until which the dispute can remain in its current status */\n dueDate?: Date | null;\n /**\n * Network reason code\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=visa\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=mastercard\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=amex\n * @minLength 1\n * @maxLength 64\n */\n networkReasonCode?: string | null;\n /**\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';\nexport type BulkUpdateDisputeTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\nexport type BulkUpdateDisputeTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\ntype DisputeNonNullablePaths =\n | `_id`\n | `chargeId`\n | `providerDisputeId`\n | `stage`\n | `reason`\n | `status`\n | `sellerProtection`\n | `channel`\n | `tags.tags.tagIds`;\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<NonNullablePaths<Dispute, DisputeNonNullablePaths>> {\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 >\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 { [P in DisputeNonNullablePaths]: `dispute.${P}` }[DisputeNonNullablePaths]\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 { [P in DisputeNonNullablePaths]: `dispute.${P}` }[DisputeNonNullablePaths]\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 > & {\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`> & {\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: 'POST' 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 data: payload,\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"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAA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,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAoBA,eAAsBC,+BACpB,QACA,SAKA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,IACA,YAAY,SAAS;AAAA,IACrB,cAAc,SAAS;AAAA,EACzB,CAAC;AAED,QAAM,UACmC;AAAA,IACrC;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","DisputeStage","DisputeReason","DisputeStatus","SellerProtection","DisputeChannel","SortOrder","DisputeActionType","WebhookIdentityType","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/payments-disputes-v1-dispute-disputes.universal.ts","../../../src/payments-disputes-v1-dispute-disputes.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputesV1Dispute from './payments-disputes-v1-dispute-disputes.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Dispute. A dispute occurs when an account owner contacts their PSP or bank to contest a payment to you for a number of possible reasons. */\nexport interface Dispute {\n /**\n * Dispute ID\n * @format GUID\n * @immutable\n */\n _id?: string;\n /**\n * Charge ID\n * @format GUID\n * @immutable\n */\n chargeId?: string;\n /**\n * Provider Dispute ID\n * @format GUID\n * @immutable\n */\n providerDisputeId?: string;\n /** Dispute stage */\n stage?: DisputeStageWithLiterals;\n /** Dispute reason */\n reason?: DisputeReasonWithLiterals;\n /**\n * Dispute currency. Should be the same as the charge currency.\n * @immutable\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Dispute Amount in currency's main units (such as dollars or euros). For example, `\"12.95\"`.\n * @immutable\n * @decimalValue options { gt:0, maxScale:8 }\n */\n amount?: string | null;\n /** Dispute status based on provider dispute status */\n status?: DisputeStatusWithLiterals;\n /** True if the merchant can do the refund with the opened dispute, false otherwise */\n chargeRefundable?: boolean | null;\n /** Seller protection */\n sellerProtection?: SellerProtectionWithLiterals;\n /**\n * Dispute Channel\n * Internal - this dispute is created on provider side\n * External - this dispute is created on bank side\n */\n channel?: DisputeChannelWithLiterals;\n /** The latest date and time until which the dispute can remain in its current status */\n dueDate?: Date | null;\n /**\n * Network reason code\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=visa\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=mastercard\n * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=amex\n * @minLength 1\n * @maxLength 64\n */\n networkReasonCode?: string | null;\n /**\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: 'POST' 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 data: payload,\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 __bulkUpdateD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Reason","DisputeStatus","SellerProtection","DisputeChannel","SortOrder","DisputeActionType","WebhookIdentityType","getDispute","queryDisputes","getDisputeActions","acceptDispute","submitDisputeEvidence","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_payments_disputes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@wix/sdk-runtime": "^0.3.55",
|
|
33
|
-
"@wix/sdk-types": "^1.13.
|
|
33
|
+
"@wix/sdk-types": "^1.13.35"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.payments.disputes.v1.dispute"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "aed05a0d5aff8828cc7e4d96232fa1e2e0f7162465af6b749335bce7"
|
|
54
54
|
}
|