@wix/auto_sdk_payments_dispute-history-records 1.0.33 → 1.0.35

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.
@@ -8,7 +8,7 @@ import '@wix/sdk-types';
8
8
  */
9
9
  interface DisputeHistoryRecord {
10
10
  /**
11
- * DisputeHistoryRecord ID.
11
+ * Dispute history record ID.
12
12
  * @format GUID
13
13
  * @readonly
14
14
  * @immutable
@@ -21,26 +21,25 @@ interface DisputeHistoryRecord {
21
21
  */
22
22
  revision?: string | null;
23
23
  /**
24
- * Date and time the DisputeHistoryRecord was created.
24
+ * Date and time the dispute history record was created.
25
25
  * @readonly
26
26
  * @immutable
27
27
  */
28
28
  createdDate?: Date | null;
29
29
  /**
30
- * Date and time the DisputeHistoryRecord was last updated.
30
+ * Date and time the dispute history record was last updated.
31
31
  * @readonly
32
32
  * @immutable
33
33
  */
34
34
  updatedDate?: Date | null;
35
35
  /**
36
- * ID of the dispute that this history record tracks. Each dispute can have multiple history records showing its lifecycle changes.
36
+ * ID of the dispute that this history record is a snapshot of.
37
37
  * @format GUID
38
38
  * @immutable
39
39
  */
40
40
  disputeId?: string;
41
41
  /**
42
- * Stage of the dispute lifecycle at the time this record was created.
43
- * Indicates whether this was an inquiry (request for information) or a chargeback (formal dispute).
42
+ * Stage of the dispute process.
44
43
  * @readonly
45
44
  * @immutable
46
45
  */
@@ -53,15 +52,15 @@ interface DisputeHistoryRecord {
53
52
  */
54
53
  status?: DisputeStatusWithLiterals;
55
54
  /**
56
- * Date by which action must be taken on the dispute.
57
- * After this date, the dispute may be automatically resolved against the merchant.
55
+ * The latest date and time until which the dispute can remain in its current status.
56
+ *
57
+ * If this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.
58
58
  * @readonly
59
59
  * @immutable
60
60
  */
61
61
  dueDate?: Date | null;
62
62
  /**
63
- * ID of the payment charge that is being disputed.
64
- * Links this history record to the original transaction.
63
+ * ID of the charge that is being disputed.
65
64
  * @format GUID
66
65
  * @readonly
67
66
  * @immutable
@@ -69,21 +68,25 @@ interface DisputeHistoryRecord {
69
68
  chargeId?: string;
70
69
  /**
71
70
  * Channel through which the dispute is being processed.
72
- * Internal disputes are handled by the payment processor, while external disputes go through the card network or issuing bank.
73
71
  * @readonly
74
72
  * @immutable
75
73
  */
76
74
  channel?: DisputeChannelWithLiterals;
77
- /** Custom field data for the dispute history record. Extended fields must be configured in the app dashboard before they can be accessed with API calls. */
75
+ /**
76
+ * Custom field data for the dispute history record object.
77
+ *
78
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
79
+ */
78
80
  extendedFields?: ExtendedFields;
79
- /** Tags */
81
+ /** Tags assigned to the dispute history record for organization and filtering purposes. */
80
82
  tags?: Tags;
81
83
  }
82
84
  declare enum DisputeStage {
85
+ /** Unknown dispute stage. */
83
86
  UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
84
- /** Formal dispute filed by the cardholder through their bank. */
87
+ /** Formal dispute filed through the card network or issuing bank. */
85
88
  CHARGEBACK = "CHARGEBACK",
86
- /** Request for additional information about the transaction, which may escalate to a chargeback if not resolved. */
89
+ /** Initial inquiry from the customer requesting information about the charge. */
87
90
  INQUIRY = "INQUIRY"
88
91
  }
89
92
  /** @enumType */
@@ -105,10 +108,11 @@ declare enum DisputeStatus {
105
108
  /** @enumType */
106
109
  type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
107
110
  declare enum DisputeChannel {
111
+ /** Unknown dispute channel. */
108
112
  UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
109
- /** Dispute is reviewed internally by the payment service provider. */
113
+ /** Dispute is processed by the payment service provider. */
110
114
  INTERNAL = "INTERNAL",
111
- /** Dispute is reviewed externally by the bank or other financial institution. */
115
+ /** Dispute is processed through the card network or issuing bank. */
112
116
  EXTERNAL = "EXTERNAL"
113
117
  }
114
118
  /** @enumType */
@@ -178,15 +182,11 @@ interface GetDisputeHistoryRecordRequest {
178
182
  disputeHistoryRecordId: string;
179
183
  }
180
184
  interface GetDisputeHistoryRecordResponse {
181
- /** The requested dispute history record. */
185
+ /** The retrieved dispute history record. */
182
186
  disputeHistoryRecord?: DisputeHistoryRecord;
183
187
  }
184
188
  interface QueryDisputeHistoryRecordsRequest {
185
- /**
186
- * WQL expression for filtering, sorting, and paging dispute history records.
187
- *
188
- * Supported properties: `disputeId`, `stage`, `status`, `dueDate`, `chargeId`, `channel`, `createdDate`, `updatedDate`
189
- */
189
+ /** Wix Query Language expression for filtering, sorting, and paging dispute history records. */
190
190
  query?: CursorQuery;
191
191
  }
192
192
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -244,7 +244,7 @@ interface CursorPaging {
244
244
  cursor?: string | null;
245
245
  }
246
246
  interface QueryDisputeHistoryRecordsResponse {
247
- /** List of dispute history records matching the query criteria. */
247
+ /** Retrieved dispute history records. */
248
248
  disputeHistoryRecords?: DisputeHistoryRecord[];
249
249
  /** Paging metadata for cursor-based pagination. */
250
250
  pagingMetadata?: CursorPagingMetadata;
@@ -342,9 +342,7 @@ interface Empty {
342
342
  }
343
343
  interface BulkUpdateDisputeHistoryRecordTagsRequest {
344
344
  /**
345
- * List of dispute history record IDs whose tags will be updated.
346
- *
347
- * Limited to 100 IDs per request.
345
+ * List of dispute history records IDs to update tags for.
348
346
  * @minSize 1
349
347
  * @maxSize 100
350
348
  * @format GUID
@@ -400,13 +398,14 @@ interface BulkActionMetadata {
400
398
  }
401
399
  interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
402
400
  /**
403
- * Filter criteria for selecting dispute history records to update.
404
- * An empty filter will update all dispute history records.
401
+ * Filter that determines which disputes to update tags for.
402
+ *
403
+ * An empty filter updates all disputes.
405
404
  */
406
405
  filter: Record<string, any> | null;
407
- /** List of Tags to assign */
406
+ /** Tags to assign to the filtered dispute history records. */
408
407
  assignTags?: Tags;
409
- /** List of Tags to unAssign */
408
+ /** Tags to remove from the filtered dispute history records. */
410
409
  unassignTags?: Tags;
411
410
  }
412
411
  interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../meta.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js';\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 resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n _: [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a dispute history record by ID. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/**\n * Retrieves dispute history records with support for filtering, cursor-based paging, and sorting.\n *\n * Use this method to get the complete audit trail for specific disputes or to query records across multiple disputes based on various criteria.\n */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Synchronously updates tags on multiple dispute history records by ID.\n *\n * Use this method when you need immediate confirmation of tag updates for a specific set of records.\n * Limited to 100 records per request. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records using a filter.\n *\n * Use this method for bulk operations on large sets of records. An empty filter will update all dispute history records.\n * Returns a job ID for tracking the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n","/**\n * A dispute history record represents a snapshot of dispute information at a specific point in time.\n *\n * Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.\n */\nexport interface DisputeHistoryRecord {\n /**\n * DisputeHistoryRecord ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n id?: string;\n /**\n * Revision number, which increments by 1 each time the dispute history record is updated.\n * To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DisputeHistoryRecord was created.\n * @readonly\n * @immutable\n */\n createdDate?: Date | null;\n /**\n * Date and time the DisputeHistoryRecord was last updated.\n * @readonly\n * @immutable\n */\n updatedDate?: Date | null;\n /**\n * ID of the dispute that this history record tracks. Each dispute can have multiple history records showing its lifecycle changes.\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Stage of the dispute lifecycle at the time this record was created.\n * Indicates whether this was an inquiry (request for information) or a chargeback (formal dispute).\n * @readonly\n * @immutable\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Status of the dispute at the time this record was created.\n * Indicates what action was required and by whom at this point in the dispute lifecycle.\n * @readonly\n * @immutable\n */\n status?: DisputeStatusWithLiterals;\n /**\n * Date by which action must be taken on the dispute.\n * After this date, the dispute may be automatically resolved against the merchant.\n * @readonly\n * @immutable\n */\n dueDate?: Date | null;\n /**\n * ID of the payment charge that is being disputed.\n * Links this history record to the original transaction.\n * @format GUID\n * @readonly\n * @immutable\n */\n chargeId?: string;\n /**\n * Channel through which the dispute is being processed.\n * Internal disputes are handled by the payment processor, while external disputes go through the card network or issuing bank.\n * @readonly\n * @immutable\n */\n channel?: DisputeChannelWithLiterals;\n /** Custom field data for the dispute history record. Extended fields must be configured in the app dashboard before they can be accessed with API calls. */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\nexport enum DisputeStage {\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Formal dispute filed by the cardholder through their bank. */\n CHARGEBACK = 'CHARGEBACK',\n /** Request for additional information about the transaction, which may escalate to a chargeback if not resolved. */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for merchant action, such as submitting evidence or accepting the dispute. */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for buyer action or response. */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute was resolved in favor of the merchant. */\n WON = 'WON',\n /** Dispute was resolved in favor of the cardholder. */\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 DisputeChannel {\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Dispute is reviewed internally by the payment service provider. */\n INTERNAL = 'INTERNAL',\n /** Dispute is reviewed externally by the 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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Triggered when tags are modified on a dispute history record. */\nexport interface TagsModified {\n /** Updated dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n /** Tags that were assigned to the dispute history record. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the dispute history record. */\n unassignedTags?: Tags;\n}\n\nexport interface GetDisputeHistoryRecordRequest {\n /**\n * ID of the dispute history record to retrieve.\n * @format GUID\n */\n disputeHistoryRecordId: string;\n}\n\nexport interface GetDisputeHistoryRecordResponse {\n /** The requested dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n}\n\nexport interface QueryDisputeHistoryRecordsRequest {\n /**\n * WQL expression for filtering, sorting, and paging dispute history records.\n *\n * Supported properties: `disputeId`, `stage`, `status`, `dueDate`, `chargeId`, `channel`, `createdDate`, `updatedDate`\n */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryDisputeHistoryRecordsResponse {\n /** List of dispute history records matching the query criteria. */\n disputeHistoryRecords?: DisputeHistoryRecord[];\n /** Paging metadata for cursor-based pagination. */\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 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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsRequest {\n /**\n * List of dispute history record IDs whose tags will be updated.\n *\n * Limited to 100 IDs per request.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResponse {\n /**\n * Results of the bulk tag update operation for each dispute history record.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeHistoryRecordTagsResult[];\n /** Metadata about 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 BulkUpdateDisputeHistoryRecordTagsResult {\n /** Metadata about the individual item 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 BulkUpdateDisputeHistoryRecordTagsByFilterRequest {\n /**\n * Filter criteria for selecting dispute history records to update.\n * An empty filter will update all dispute history records.\n */\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 BulkUpdateDisputeHistoryRecordTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous bulk update operation.\n * @format GUID\n */\n jobId?: 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 BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDisputeHistoryRecord(): __PublicMethodMetaInfo<\n 'GET',\n { disputeHistoryRecordId: string },\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordResponse\n> {\n const payload = { disputeHistoryRecordId: ':disputeHistoryRecordId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n pathParams: { disputeHistoryRecordId: 'disputeHistoryRecordId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputeHistoryRecords(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DisputeHistoryRecord as DisputeHistoryRecordOriginal,\n DisputeStage as DisputeStageOriginal,\n DisputeStageWithLiterals as DisputeStageWithLiteralsOriginal,\n DisputeStatus as DisputeStatusOriginal,\n DisputeStatusWithLiterals as DisputeStatusWithLiteralsOriginal,\n DisputeChannel as DisputeChannelOriginal,\n DisputeChannelWithLiterals as DisputeChannelWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n Tags as TagsOriginal,\n TagList as TagListOriginal,\n TagsModified as TagsModifiedOriginal,\n GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequestOriginal,\n GetDisputeHistoryRecordResponse as GetDisputeHistoryRecordResponseOriginal,\n QueryDisputeHistoryRecordsRequest as QueryDisputeHistoryRecordsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryDisputeHistoryRecordsResponse as QueryDisputeHistoryRecordsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n BulkUpdateDisputeHistoryRecordTagsRequest as BulkUpdateDisputeHistoryRecordTagsRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsResponse as BulkUpdateDisputeHistoryRecordTagsResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkUpdateDisputeHistoryRecordTagsResult as BulkUpdateDisputeHistoryRecordTagsResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterRequest as BulkUpdateDisputeHistoryRecordTagsByFilterRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse as BulkUpdateDisputeHistoryRecordTagsByFilterResponseOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n BulkUpdateDisputeHistoryRecordTagsApplicationErrors as BulkUpdateDisputeHistoryRecordTagsApplicationErrorsOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors as BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrorsOriginal,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AA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A,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","DisputeStage","DisputeStatus","DisputeChannel","SortOrder","WebhookIdentityType","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
1
+ {"version":3,"sources":["../../../meta.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js';\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 resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n _: [\n {\n srcPath:\n '/payments/dispute-history-records/v1/bulk/dispute-history-records',\n destPath: '/v1/bulk/dispute-history-records',\n },\n {\n srcPath: '/payments/dispute-history-records/v1/dispute-history-records',\n destPath: '/v1/dispute-history-records',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a dispute history record. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/**\n * Creates a query to retrieve a list of dispute history records.\n *\n * The Query Dispute History Records method builds a query to retrieve a list of dispute history records and returns a `DisputeHistoryRecordsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `DisputeHistoryRecordsQueryBuilder` methods onto the query. `DisputeHistoryRecordsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute History Records returns.\n *\n * Query Dispute History Records has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `DisputeHistoryRecordsQueryResult`.\n */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n","/**\n * A dispute history record represents a snapshot of dispute information at a specific point in time.\n *\n * Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.\n */\nexport interface DisputeHistoryRecord {\n /**\n * Dispute history record ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n id?: string;\n /**\n * Revision number, which increments by 1 each time the dispute history record is updated.\n * To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the dispute history record was created.\n * @readonly\n * @immutable\n */\n createdDate?: Date | null;\n /**\n * Date and time the dispute history record was last updated.\n * @readonly\n * @immutable\n */\n updatedDate?: Date | null;\n /**\n * ID of the dispute that this history record is a snapshot of.\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Stage of the dispute process.\n * @readonly\n * @immutable\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Status of the dispute at the time this record was created.\n * Indicates what action was required and by whom at this point in the dispute lifecycle.\n * @readonly\n * @immutable\n */\n status?: DisputeStatusWithLiterals;\n /**\n * The latest date and time until which the dispute can remain in its current status.\n *\n * If this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.\n * @readonly\n * @immutable\n */\n dueDate?: Date | null;\n /**\n * ID of the charge that is being disputed.\n * @format GUID\n * @readonly\n * @immutable\n */\n chargeId?: string;\n /**\n * Channel through which the dispute is being processed.\n * @readonly\n * @immutable\n */\n channel?: DisputeChannelWithLiterals;\n /**\n * Custom field data for the dispute history record object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the dispute history record for organization and filtering purposes. */\n tags?: Tags;\n}\n\nexport enum DisputeStage {\n /** Unknown dispute stage. */\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Formal dispute filed through the card network or issuing bank. */\n CHARGEBACK = 'CHARGEBACK',\n /** Initial inquiry from the customer requesting information about the charge. */\n INQUIRY = 'INQUIRY',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'CHARGEBACK'\n | 'INQUIRY';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for merchant action, such as submitting evidence or accepting the dispute. */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for buyer action or response. */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute was resolved in favor of the merchant. */\n WON = 'WON',\n /** Dispute was resolved in favor of the cardholder. */\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 DisputeChannel {\n /** Unknown dispute channel. */\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Dispute is processed by the payment service provider. */\n INTERNAL = 'INTERNAL',\n /** Dispute is processed through the card network or issuing bank. */\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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Triggered when tags are modified on a dispute history record. */\nexport interface TagsModified {\n /** Updated dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n /** Tags that were assigned to the dispute history record. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the dispute history record. */\n unassignedTags?: Tags;\n}\n\nexport interface GetDisputeHistoryRecordRequest {\n /**\n * ID of the dispute history record to retrieve.\n * @format GUID\n */\n disputeHistoryRecordId: string;\n}\n\nexport interface GetDisputeHistoryRecordResponse {\n /** The retrieved dispute history record. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n}\n\nexport interface QueryDisputeHistoryRecordsRequest {\n /** Wix Query Language expression for filtering, sorting, and paging dispute history records. */\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 QueryDisputeHistoryRecordsResponse {\n /** Retrieved dispute history records. */\n disputeHistoryRecords?: DisputeHistoryRecord[];\n /** Paging metadata for cursor-based pagination. */\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 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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsRequest {\n /**\n * List of dispute history records IDs to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** Tags to assign to the dispute history records. */\n assignTags?: Tags;\n /** Tags to unassign from the dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResponse {\n /**\n * Results of the bulk tag update operation for each dispute history record.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeHistoryRecordTagsResult[];\n /** Metadata about 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 BulkUpdateDisputeHistoryRecordTagsResult {\n /** Metadata about the individual item 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 BulkUpdateDisputeHistoryRecordTagsByFilterRequest {\n /**\n * Filter that determines which disputes to update tags for.\n *\n * An empty filter updates all disputes.\n */\n filter: Record<string, any> | null;\n /** Tags to assign to the filtered dispute history records. */\n assignTags?: Tags;\n /** Tags to remove from the filtered dispute history records. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous bulk update operation.\n * @format GUID\n */\n jobId?: 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 BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDisputeHistoryRecord(): __PublicMethodMetaInfo<\n 'GET',\n { disputeHistoryRecordId: string },\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordResponse\n> {\n const payload = { disputeHistoryRecordId: ':disputeHistoryRecordId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n pathParams: { disputeHistoryRecordId: 'disputeHistoryRecordId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputeHistoryRecords(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DisputeHistoryRecord as DisputeHistoryRecordOriginal,\n DisputeStage as DisputeStageOriginal,\n DisputeStageWithLiterals as DisputeStageWithLiteralsOriginal,\n DisputeStatus as DisputeStatusOriginal,\n DisputeStatusWithLiterals as DisputeStatusWithLiteralsOriginal,\n DisputeChannel as DisputeChannelOriginal,\n DisputeChannelWithLiterals as DisputeChannelWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n Tags as TagsOriginal,\n TagList as TagListOriginal,\n TagsModified as TagsModifiedOriginal,\n GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequestOriginal,\n GetDisputeHistoryRecordResponse as GetDisputeHistoryRecordResponseOriginal,\n QueryDisputeHistoryRecordsRequest as QueryDisputeHistoryRecordsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryDisputeHistoryRecordsResponse as QueryDisputeHistoryRecordsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n BulkUpdateDisputeHistoryRecordTagsRequest as BulkUpdateDisputeHistoryRecordTagsRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsResponse as BulkUpdateDisputeHistoryRecordTagsResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkUpdateDisputeHistoryRecordTagsResult as BulkUpdateDisputeHistoryRecordTagsResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterRequest as BulkUpdateDisputeHistoryRecordTagsByFilterRequestOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse as BulkUpdateDisputeHistoryRecordTagsByFilterResponseOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n BulkUpdateDisputeHistoryRecordTagsApplicationErrors as BulkUpdateDisputeHistoryRecordTagsApplicationErrorsOriginal,\n BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors as BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrorsOriginal,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,k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AO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","DisputeStage","DisputeStatus","DisputeChannel","SortOrder","WebhookIdentityType","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
@@ -1,35 +1,22 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { DisputeHistoryRecord, DisputeHistoryRecordsQueryBuilder, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsResponse, BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors } from './index.typings.mjs';
3
- export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResult, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DisputeChannel, DisputeChannelWithLiterals, DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStageWithLiterals, DisputeStatus, DisputeStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDisputeHistoryRecordRequest, GetDisputeHistoryRecordResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryDisputeHistoryRecordsRequest, QueryDisputeHistoryRecordsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
2
+ import { DisputeHistoryRecord, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsResponse, BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors, DisputeHistoryRecordsQueryBuilder, CursorQuery, typedQueryDisputeHistoryRecords } from './index.typings.mjs';
3
+ export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResult, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DisputeChannel, DisputeChannelWithLiterals, DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStageWithLiterals, DisputeStatus, DisputeStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDisputeHistoryRecordRequest, GetDisputeHistoryRecordResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryDisputeHistoryRecordsRequest, QueryDisputeHistoryRecordsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function getDisputeHistoryRecord$1(httpClient: HttpClient): GetDisputeHistoryRecordSignature;
6
6
  interface GetDisputeHistoryRecordSignature {
7
7
  /**
8
- * Retrieves a dispute history record by ID.
8
+ * Retrieves a dispute history record.
9
9
  * @param - ID of the dispute history record to retrieve.
10
- * @returns The requested dispute history record.
10
+ * @returns The retrieved dispute history record.
11
11
  */
12
12
  (disputeHistoryRecordId: string): Promise<NonNullablePaths<DisputeHistoryRecord, `_id` | `disputeId` | `stage` | `status` | `chargeId` | `channel` | `tags.privateTags.tagIds`, 4>>;
13
13
  }
14
- declare function queryDisputeHistoryRecords$1(httpClient: HttpClient): QueryDisputeHistoryRecordsSignature;
15
- interface QueryDisputeHistoryRecordsSignature {
16
- /**
17
- * Retrieves dispute history records with support for filtering, cursor-based paging, and sorting.
18
- *
19
- * Use this method to get the complete audit trail for specific disputes or to query records across multiple disputes based on various criteria.
20
- */
21
- (): DisputeHistoryRecordsQueryBuilder;
22
- }
23
14
  declare function bulkUpdateDisputeHistoryRecordTags$1(httpClient: HttpClient): BulkUpdateDisputeHistoryRecordTagsSignature;
24
15
  interface BulkUpdateDisputeHistoryRecordTagsSignature {
25
16
  /**
26
- * Synchronously updates tags on multiple dispute history records by ID.
27
- *
28
- * Use this method when you need immediate confirmation of tag updates for a specific set of records.
29
- * Limited to 100 records per request. If a tag appears in both assign and unassign lists, it will be assigned.
30
- * @param - List of dispute history record IDs whose tags will be updated.
31
- *
32
- * Limited to 100 IDs per request.
17
+ * Updates tags on multiple dispute history records simultaneously using a list of dispute history record IDs.
18
+ * If a tag appears in both assign and unassign lists, it will be assigned.
19
+ * @param - List of dispute history records IDs to update tags for.
33
20
  */
34
21
  (ids: string[], options?: BulkUpdateDisputeHistoryRecordTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
35
22
  __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsApplicationErrors;
@@ -38,21 +25,24 @@ interface BulkUpdateDisputeHistoryRecordTagsSignature {
38
25
  declare function bulkUpdateDisputeHistoryRecordTagsByFilter$1(httpClient: HttpClient): BulkUpdateDisputeHistoryRecordTagsByFilterSignature;
39
26
  interface BulkUpdateDisputeHistoryRecordTagsByFilterSignature {
40
27
  /**
41
- * Asynchronously updates tags on multiple dispute history records using a filter.
28
+ * Asynchronously updates tags on multiple dispute history records based on filter criteria.
29
+ * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.
30
+ * @param - Filter that determines which disputes to update tags for.
42
31
  *
43
- * Use this method for bulk operations on large sets of records. An empty filter will update all dispute history records.
44
- * Returns a job ID for tracking the operation status. If a tag appears in both assign and unassign lists, it will be assigned.
45
- * @param - Filter criteria for selecting dispute history records to update.
46
- * An empty filter will update all dispute history records.
32
+ * An empty filter updates all disputes.
47
33
  */
48
34
  (filter: Record<string, any>, options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsByFilterResponse, `jobId`, 2> & {
49
35
  __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors;
50
36
  }>;
51
37
  }
52
38
 
39
+ declare function customQueryDisputeHistoryRecords(httpClient: HttpClient): {
40
+ (): DisputeHistoryRecordsQueryBuilder;
41
+ (query: CursorQuery): ReturnType<typeof typedQueryDisputeHistoryRecords>;
42
+ };
53
43
  declare const getDisputeHistoryRecord: MaybeContext<BuildRESTFunction<typeof getDisputeHistoryRecord$1> & typeof getDisputeHistoryRecord$1>;
54
- declare const queryDisputeHistoryRecords: MaybeContext<BuildRESTFunction<typeof queryDisputeHistoryRecords$1> & typeof queryDisputeHistoryRecords$1>;
55
44
  declare const bulkUpdateDisputeHistoryRecordTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateDisputeHistoryRecordTags$1> & typeof bulkUpdateDisputeHistoryRecordTags$1>;
56
45
  declare const bulkUpdateDisputeHistoryRecordTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateDisputeHistoryRecordTagsByFilter$1> & typeof bulkUpdateDisputeHistoryRecordTagsByFilter$1>;
46
+ declare const queryDisputeHistoryRecords: MaybeContext<BuildRESTFunction<typeof customQueryDisputeHistoryRecords> & typeof customQueryDisputeHistoryRecords>;
57
47
 
58
- export { BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsResponse, DisputeHistoryRecord, DisputeHistoryRecordsQueryBuilder, bulkUpdateDisputeHistoryRecordTags, bulkUpdateDisputeHistoryRecordTagsByFilter, getDisputeHistoryRecord, queryDisputeHistoryRecords };
48
+ export { BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsResponse, CursorQuery, DisputeHistoryRecord, DisputeHistoryRecordsQueryBuilder, bulkUpdateDisputeHistoryRecordTags, bulkUpdateDisputeHistoryRecordTagsByFilter, getDisputeHistoryRecord, queryDisputeHistoryRecords };
@@ -279,6 +279,31 @@ function queryDisputeHistoryRecords2() {
279
279
  transformationPaths: {}
280
280
  });
281
281
  }
282
+ async function typedQueryDisputeHistoryRecords(query) {
283
+ const { httpClient, sideEffects } = arguments[1];
284
+ const payload = renameKeysFromSDKRequestToRESTRequest({ query });
285
+ const reqOpts = queryDisputeHistoryRecords(
286
+ payload
287
+ );
288
+ sideEffects?.onSiteCall?.();
289
+ try {
290
+ const result = await httpClient.request(reqOpts);
291
+ sideEffects?.onSuccess?.(result);
292
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
293
+ } catch (err) {
294
+ const transformedError = sdkTransformError(
295
+ err,
296
+ {
297
+ spreadPathsToArguments: {},
298
+ explicitPathsToArguments: { query: "$[0]" },
299
+ singleArgumentUnchanged: false
300
+ },
301
+ ["query"]
302
+ );
303
+ sideEffects?.onError?.(err);
304
+ throw transformedError;
305
+ }
306
+ }
282
307
  async function bulkUpdateDisputeHistoryRecordTags2(ids, options) {
283
308
  const { httpClient, sideEffects } = arguments[2];
284
309
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -360,6 +385,13 @@ function queryDisputeHistoryRecords3(httpClient) {
360
385
  { httpClient }
361
386
  );
362
387
  }
388
+ function typedQueryDisputeHistoryRecords2(httpClient) {
389
+ return (query) => typedQueryDisputeHistoryRecords(
390
+ query,
391
+ // @ts-ignore
392
+ { httpClient }
393
+ );
394
+ }
363
395
  function bulkUpdateDisputeHistoryRecordTags3(httpClient) {
364
396
  return (ids, options) => bulkUpdateDisputeHistoryRecordTags2(
365
397
  ids,
@@ -379,12 +411,24 @@ function bulkUpdateDisputeHistoryRecordTagsByFilter3(httpClient) {
379
411
 
380
412
  // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.ts
381
413
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
414
+ import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
415
+ function customQueryDisputeHistoryRecords(httpClient) {
416
+ const router = createQueryOverloadRouter({
417
+ builderQueryFunction: () => queryDisputeHistoryRecords3(httpClient)(),
418
+ typedQueryFunction: (query) => typedQueryDisputeHistoryRecords2(httpClient)(query),
419
+ hasOptionsParameter: false
420
+ });
421
+ function overloadedQuery(query) {
422
+ return router(...arguments);
423
+ }
424
+ return overloadedQuery;
425
+ }
382
426
  var getDisputeHistoryRecord4 = /* @__PURE__ */ createRESTModule(getDisputeHistoryRecord3);
383
- var queryDisputeHistoryRecords4 = /* @__PURE__ */ createRESTModule(queryDisputeHistoryRecords3);
384
427
  var bulkUpdateDisputeHistoryRecordTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateDisputeHistoryRecordTags3);
385
428
  var bulkUpdateDisputeHistoryRecordTagsByFilter4 = /* @__PURE__ */ createRESTModule(
386
429
  bulkUpdateDisputeHistoryRecordTagsByFilter3
387
430
  );
431
+ var queryDisputeHistoryRecords4 = /* @__PURE__ */ createRESTModule(customQueryDisputeHistoryRecords);
388
432
  export {
389
433
  DisputeChannel,
390
434
  DisputeStage,