@wix/auto_sdk_payments_dispute-evidence-documents 1.0.21 → 1.0.23
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 +35 -1
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +659 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/es/index.d.mts +35 -1
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +624 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +26 -11
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal-Co3je58H.d.ts → index.typings.d.ts} +158 -1
- package/build/internal/cjs/index.typings.js +659 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +26 -11
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{payments-dispute-evidence-documents-v1-dispute-evidence-document-dispute-evidence-documents.universal-Co3je58H.d.mts → index.typings.d.mts} +158 -1
- package/build/internal/es/index.typings.mjs +624 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
/** Dispute Evidence Document */
|
|
2
4
|
interface DisputeEvidenceDocument {
|
|
3
5
|
/**
|
|
@@ -530,6 +532,66 @@ declare enum WebhookIdentityType {
|
|
|
530
532
|
}
|
|
531
533
|
/** @enumType */
|
|
532
534
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
535
|
+
type GenerateDisputeEvidenceDocumentUploadUrlApplicationErrors = {
|
|
536
|
+
code?: 'DISPUTE_EVIDENCE_DOCUMENT_FILE_ALREADY_ATTACHED';
|
|
537
|
+
description?: string;
|
|
538
|
+
data?: Record<string, any>;
|
|
539
|
+
};
|
|
540
|
+
type AttachDisputeEvidenceDocumentFileApplicationErrors = {
|
|
541
|
+
code?: 'DISPUTE_EVIDENCE_DOCUMENT_FILE_ALREADY_ATTACHED';
|
|
542
|
+
description?: string;
|
|
543
|
+
data?: Record<string, any>;
|
|
544
|
+
} | {
|
|
545
|
+
code?: 'FILE_NOT_FOUND';
|
|
546
|
+
description?: string;
|
|
547
|
+
data?: Record<string, any>;
|
|
548
|
+
};
|
|
549
|
+
type GenerateDisputeEvidenceDocumentDownloadUrlApplicationErrors = {
|
|
550
|
+
code?: 'FILE_NOT_FOUND';
|
|
551
|
+
description?: string;
|
|
552
|
+
data?: Record<string, any>;
|
|
553
|
+
};
|
|
554
|
+
type DeleteDisputeEvidenceDocumentApplicationErrors = {
|
|
555
|
+
code?: 'DISPUTE_EVIDENCE_DOCUMENT_ALREADY_SUBMITTED';
|
|
556
|
+
description?: string;
|
|
557
|
+
data?: Record<string, any>;
|
|
558
|
+
};
|
|
559
|
+
type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors = {
|
|
560
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
561
|
+
description?: string;
|
|
562
|
+
data?: Record<string, any>;
|
|
563
|
+
};
|
|
564
|
+
type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors = {
|
|
565
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
566
|
+
description?: string;
|
|
567
|
+
data?: Record<string, any>;
|
|
568
|
+
};
|
|
569
|
+
type DisputeEvidenceDocumentNonNullablePaths = `disputeId` | `tags.tags.tagIds`;
|
|
570
|
+
/**
|
|
571
|
+
* Creates a DisputeEvidenceDocument.
|
|
572
|
+
* @param disputeEvidenceDocument - DisputeEvidenceDocument to be created.
|
|
573
|
+
* @internal
|
|
574
|
+
* @documentationMaturity preview
|
|
575
|
+
* @requiredField disputeEvidenceDocument
|
|
576
|
+
* @requiredField disputeEvidenceDocument.disputeId
|
|
577
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_CREATE
|
|
578
|
+
* @returns The created DisputeEvidenceDocument.
|
|
579
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument
|
|
580
|
+
*/
|
|
581
|
+
declare function createDisputeEvidenceDocument(disputeEvidenceDocument: NonNullablePaths<DisputeEvidenceDocument, `disputeId`>): Promise<NonNullablePaths<DisputeEvidenceDocument, DisputeEvidenceDocumentNonNullablePaths>>;
|
|
582
|
+
/**
|
|
583
|
+
* Generate upload URL to upload the file and associate it with specific evidence using file id.
|
|
584
|
+
* Note: after uploading file you need to use synchronous call to trigger system directly check uploads [AttachDisputeEvidenceDocumentFile]
|
|
585
|
+
* @param disputeEvidenceDocumentId - Dispute Evidence Document ID
|
|
586
|
+
* @internal
|
|
587
|
+
* @documentationMaturity preview
|
|
588
|
+
* @requiredField disputeEvidenceDocumentId
|
|
589
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_GENERATE_UPLOAD_URL
|
|
590
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GenerateDisputeEvidenceDocumentUploadUrl
|
|
591
|
+
*/
|
|
592
|
+
declare function generateDisputeEvidenceDocumentUploadUrl(disputeEvidenceDocumentId: string, options?: GenerateDisputeEvidenceDocumentUploadUrlOptions): Promise<NonNullablePaths<GenerateDisputeEvidenceDocumentUploadUrlResponse, `uploadUrl`> & {
|
|
593
|
+
__applicationErrorsType?: GenerateDisputeEvidenceDocumentUploadUrlApplicationErrors;
|
|
594
|
+
}>;
|
|
533
595
|
interface GenerateDisputeEvidenceDocumentUploadUrlOptions {
|
|
534
596
|
/**
|
|
535
597
|
* Name of the uploaded file
|
|
@@ -538,6 +600,74 @@ interface GenerateDisputeEvidenceDocumentUploadUrlOptions {
|
|
|
538
600
|
*/
|
|
539
601
|
filename?: string;
|
|
540
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* Synchronously attaches uploaded document to the corresponding evidence document.
|
|
605
|
+
* Note: this call doesn't allow to upload document. To upload document use [GenerateDisputeEvidenceDocumentUploadUrl]
|
|
606
|
+
* @param disputeEvidenceDocumentId - Dispute Evidence Document ID
|
|
607
|
+
* @internal
|
|
608
|
+
* @documentationMaturity preview
|
|
609
|
+
* @requiredField disputeEvidenceDocumentId
|
|
610
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_ATTACH_FILE
|
|
611
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.AttachDisputeEvidenceDocumentFile
|
|
612
|
+
*/
|
|
613
|
+
declare function attachDisputeEvidenceDocumentFile(disputeEvidenceDocumentId: string): Promise<NonNullablePaths<AttachDisputeEvidenceDocumentFileResponse, {
|
|
614
|
+
[P in DisputeEvidenceDocumentNonNullablePaths]: `disputeEvidenceDocument.${P}`;
|
|
615
|
+
}[DisputeEvidenceDocumentNonNullablePaths]> & {
|
|
616
|
+
__applicationErrorsType?: AttachDisputeEvidenceDocumentFileApplicationErrors;
|
|
617
|
+
}>;
|
|
618
|
+
/**
|
|
619
|
+
* Retrieves a DisputeEvidenceDocument.
|
|
620
|
+
* @param disputeEvidenceDocumentId - ID of the DisputeEvidenceDocument to retrieve.
|
|
621
|
+
* @internal
|
|
622
|
+
* @documentationMaturity preview
|
|
623
|
+
* @requiredField disputeEvidenceDocumentId
|
|
624
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
|
|
625
|
+
* @returns The requested DisputeEvidenceDocument.
|
|
626
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument
|
|
627
|
+
*/
|
|
628
|
+
declare function getDisputeEvidenceDocument(disputeEvidenceDocumentId: string): Promise<NonNullablePaths<DisputeEvidenceDocument, DisputeEvidenceDocumentNonNullablePaths>>;
|
|
629
|
+
/**
|
|
630
|
+
* Generate DisputeEvidenceDocument Download Url.
|
|
631
|
+
* @param disputeEvidenceDocumentId - ID of the DisputeEvidenceDocument to generate Download Url.
|
|
632
|
+
* @internal
|
|
633
|
+
* @documentationMaturity preview
|
|
634
|
+
* @requiredField disputeEvidenceDocumentId
|
|
635
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_GENERATE_DOWNLOAD_URL
|
|
636
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GenerateDisputeEvidenceDocumentDownloadUrl
|
|
637
|
+
*/
|
|
638
|
+
declare function generateDisputeEvidenceDocumentDownloadUrl(disputeEvidenceDocumentId: string): Promise<GenerateDisputeEvidenceDocumentDownloadUrlResponse & {
|
|
639
|
+
__applicationErrorsType?: GenerateDisputeEvidenceDocumentDownloadUrlApplicationErrors;
|
|
640
|
+
}>;
|
|
641
|
+
/**
|
|
642
|
+
* Mark a DisputeEvidenceDocument as submitted.
|
|
643
|
+
* @param disputeEvidenceDocumentId - Id of the DisputeEvidenceDocument to mark as submitted.
|
|
644
|
+
* @internal
|
|
645
|
+
* @documentationMaturity preview
|
|
646
|
+
* @requiredField disputeEvidenceDocumentId
|
|
647
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_MARK_SUBMITTED
|
|
648
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.MarkDisputeEvidenceDocumentSubmitted
|
|
649
|
+
*/
|
|
650
|
+
declare function markDisputeEvidenceDocumentSubmitted(disputeEvidenceDocumentId: string): Promise<void>;
|
|
651
|
+
/**
|
|
652
|
+
* Deletes a DisputeEvidenceDocument.
|
|
653
|
+
* @param disputeEvidenceDocumentId - Id of the DisputeEvidenceDocument to delete.
|
|
654
|
+
* @internal
|
|
655
|
+
* @documentationMaturity preview
|
|
656
|
+
* @requiredField disputeEvidenceDocumentId
|
|
657
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_DELETE
|
|
658
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.DeleteDisputeEvidenceDocument
|
|
659
|
+
*/
|
|
660
|
+
declare function deleteDisputeEvidenceDocument(disputeEvidenceDocumentId: string): Promise<void & {
|
|
661
|
+
__applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;
|
|
662
|
+
}>;
|
|
663
|
+
/**
|
|
664
|
+
* Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].
|
|
665
|
+
* @internal
|
|
666
|
+
* @documentationMaturity preview
|
|
667
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
|
|
668
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments
|
|
669
|
+
*/
|
|
670
|
+
declare function queryDisputeEvidenceDocuments(): DisputeEvidenceDocumentsQueryBuilder;
|
|
541
671
|
interface QueryCursorResult {
|
|
542
672
|
cursors: Cursors;
|
|
543
673
|
hasNext: () => boolean;
|
|
@@ -615,12 +745,39 @@ interface DisputeEvidenceDocumentsQueryBuilder {
|
|
|
615
745
|
/** @documentationMaturity preview */
|
|
616
746
|
find: () => Promise<DisputeEvidenceDocumentsQueryResult>;
|
|
617
747
|
}
|
|
748
|
+
/**
|
|
749
|
+
* Synchronously update tags on multiple products, by list of product ids
|
|
750
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
751
|
+
* @param ids - List of NileProtoTagsEntities that their tags will update.
|
|
752
|
+
* @internal
|
|
753
|
+
* @documentationMaturity preview
|
|
754
|
+
* @requiredField ids
|
|
755
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
|
|
756
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTags
|
|
757
|
+
*/
|
|
758
|
+
declare function bulkUpdateDisputeEvidenceDocumentTags(ids: string[], options?: BulkUpdateDisputeEvidenceDocumentTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeEvidenceDocumentTagsResponse, `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`> & {
|
|
759
|
+
__applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;
|
|
760
|
+
}>;
|
|
618
761
|
interface BulkUpdateDisputeEvidenceDocumentTagsOptions {
|
|
619
762
|
/** List of Tags to assign */
|
|
620
763
|
assignTags?: Tags;
|
|
621
764
|
/** List of Tags to unAssign */
|
|
622
765
|
unassignTags?: Tags;
|
|
623
766
|
}
|
|
767
|
+
/**
|
|
768
|
+
* Asynchronously update tags on multiple products, by provided filter
|
|
769
|
+
* An empty filter will update all products
|
|
770
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
771
|
+
* @param filter - Filter
|
|
772
|
+
* @internal
|
|
773
|
+
* @documentationMaturity preview
|
|
774
|
+
* @requiredField filter
|
|
775
|
+
* @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
|
|
776
|
+
* @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTagsByFilter
|
|
777
|
+
*/
|
|
778
|
+
declare function bulkUpdateDisputeEvidenceDocumentTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, `jobId`> & {
|
|
779
|
+
__applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;
|
|
780
|
+
}>;
|
|
624
781
|
interface BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {
|
|
625
782
|
/** List of Tags to assign */
|
|
626
783
|
assignTags?: Tags;
|
|
@@ -628,4 +785,4 @@ interface BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {
|
|
|
628
785
|
unassignTags?: Tags;
|
|
629
786
|
}
|
|
630
787
|
|
|
631
|
-
export { type
|
|
788
|
+
export { type ActionEvent, type ApplicationError, type AttachDisputeEvidenceDocumentFileApplicationErrors, type AttachDisputeEvidenceDocumentFileRequest, type AttachDisputeEvidenceDocumentFileResponse, type BulkActionMetadata, type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, type BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest, type BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, type BulkUpdateDisputeEvidenceDocumentTagsOptions, type BulkUpdateDisputeEvidenceDocumentTagsRequest, type BulkUpdateDisputeEvidenceDocumentTagsResponse, type BulkUpdateDisputeEvidenceDocumentTagsResult, type CreateDisputeEvidenceDocumentRequest, type CreateDisputeEvidenceDocumentResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteDisputeEvidenceDocumentApplicationErrors, type DeleteDisputeEvidenceDocumentRequest, type DeleteDisputeEvidenceDocumentResponse, type DisputeEvidenceDocument, type DisputeEvidenceDocumentsQueryBuilder, type DisputeEvidenceDocumentsQueryResult, type DocumentFile, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GenerateDisputeEvidenceDocumentDownloadUrlApplicationErrors, type GenerateDisputeEvidenceDocumentDownloadUrlRequest, type GenerateDisputeEvidenceDocumentDownloadUrlResponse, type GenerateDisputeEvidenceDocumentUploadUrlApplicationErrors, type GenerateDisputeEvidenceDocumentUploadUrlOptions, type GenerateDisputeEvidenceDocumentUploadUrlRequest, type GenerateDisputeEvidenceDocumentUploadUrlResponse, type GetDisputeEvidenceDocumentRequest, type GetDisputeEvidenceDocumentResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MarkDisputeEvidenceDocumentSubmittedRequest, type MarkDisputeEvidenceDocumentSubmittedResponse, type MessageEnvelope, type MigrateDisputeEvidenceDocumentRequest, type MigrateDisputeEvidenceDocumentResponse, type QueryDisputeEvidenceDocumentsRequest, type QueryDisputeEvidenceDocumentsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitMigratedDisputeEvidenceDocumentRequest, type SubmitMigratedDisputeEvidenceDocumentResponse, type TagList, type Tags, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, attachDisputeEvidenceDocumentFile, bulkUpdateDisputeEvidenceDocumentTags, bulkUpdateDisputeEvidenceDocumentTagsByFilter, createDisputeEvidenceDocument, deleteDisputeEvidenceDocument, generateDisputeEvidenceDocumentDownloadUrl, generateDisputeEvidenceDocumentUploadUrl, getDisputeEvidenceDocument, markDisputeEvidenceDocumentSubmitted, queryDisputeEvidenceDocuments };
|