@wix/auto_sdk_payments_disputes 1.0.36 → 1.0.38
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.js +18 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +341 -1
- package/build/cjs/meta.js +99 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +18 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +18 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +341 -1
- package/build/es/meta.mjs +91 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +341 -1
- package/build/internal/cjs/meta.js +99 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +18 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +18 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +341 -1
- package/build/internal/es/meta.mjs +91 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -271,6 +271,248 @@ interface TagList {
|
|
|
271
271
|
*/
|
|
272
272
|
tagIds?: string[];
|
|
273
273
|
}
|
|
274
|
+
/** Triggered when tags are assigned to or unassigned from a dispute. */
|
|
275
|
+
interface TagsModified {
|
|
276
|
+
/** Updated dispute. */
|
|
277
|
+
dispute?: Dispute;
|
|
278
|
+
/** Tags that were assigned to the dispute. */
|
|
279
|
+
assignedTags?: Tags;
|
|
280
|
+
/** Tags that were unassigned from the dispute. */
|
|
281
|
+
unassignedTags?: Tags;
|
|
282
|
+
}
|
|
283
|
+
interface InternalCreateDisputeManuallyRequest {
|
|
284
|
+
/**
|
|
285
|
+
* Dispute Id
|
|
286
|
+
* @format GUID
|
|
287
|
+
*/
|
|
288
|
+
disputeId?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Charge Id
|
|
291
|
+
* @format GUID
|
|
292
|
+
*/
|
|
293
|
+
chargeId?: string;
|
|
294
|
+
/** Open date */
|
|
295
|
+
openDate?: Date | null;
|
|
296
|
+
/**
|
|
297
|
+
* Provider Dispute Id
|
|
298
|
+
* @minLength 1
|
|
299
|
+
* @maxLength 100
|
|
300
|
+
*/
|
|
301
|
+
providerDisputeId?: string;
|
|
302
|
+
/** Dispute stage */
|
|
303
|
+
stage?: DisputeStageWithLiterals;
|
|
304
|
+
/** Dispute reason */
|
|
305
|
+
reason?: DisputeReasonWithLiterals;
|
|
306
|
+
/** Dispute status based on provider dispute status */
|
|
307
|
+
status?: DisputeStatusWithLiterals;
|
|
308
|
+
/** The latest date and time until which the dispute can remain in its current status */
|
|
309
|
+
dueDate?: Date | null;
|
|
310
|
+
/**
|
|
311
|
+
* Dispute currency. Should be the same as the charge currency.
|
|
312
|
+
* @immutable
|
|
313
|
+
* @format CURRENCY
|
|
314
|
+
*/
|
|
315
|
+
currencyCode?: string | null;
|
|
316
|
+
/**
|
|
317
|
+
* Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`.
|
|
318
|
+
* @immutable
|
|
319
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
320
|
+
*/
|
|
321
|
+
amount?: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* Network reason code
|
|
324
|
+
* @minLength 1
|
|
325
|
+
* @maxLength 64
|
|
326
|
+
*/
|
|
327
|
+
networkReasonCode?: string | null;
|
|
328
|
+
/** External or Internal */
|
|
329
|
+
external?: boolean | null;
|
|
330
|
+
/**
|
|
331
|
+
* Seller protection
|
|
332
|
+
* @minLength 1
|
|
333
|
+
* @maxLength 64
|
|
334
|
+
*/
|
|
335
|
+
sellerProtection?: string | null;
|
|
336
|
+
/** Is charge refundable */
|
|
337
|
+
chargeRefundable?: boolean | null;
|
|
338
|
+
/** True if dispute is defendable */
|
|
339
|
+
defendable?: boolean | null;
|
|
340
|
+
/** True if it is an auto dispute */
|
|
341
|
+
autoDefended?: boolean | null;
|
|
342
|
+
}
|
|
343
|
+
interface InternalCreateDisputeManuallyResponse {
|
|
344
|
+
}
|
|
345
|
+
interface InternalChangeDisputeStatusManuallyRequest {
|
|
346
|
+
/**
|
|
347
|
+
* Dispute ID
|
|
348
|
+
* @format GUID
|
|
349
|
+
*/
|
|
350
|
+
disputeId?: string;
|
|
351
|
+
/** Changed date */
|
|
352
|
+
changedDate?: Date | null;
|
|
353
|
+
/** Dispute status based on provider dispute status */
|
|
354
|
+
status?: DisputeStatusWithLiterals;
|
|
355
|
+
}
|
|
356
|
+
interface InternalChangeDisputeStatusManuallyResponse {
|
|
357
|
+
}
|
|
358
|
+
interface AcceptDisputeManuallyRequest {
|
|
359
|
+
/**
|
|
360
|
+
* Dispute ID
|
|
361
|
+
* @format GUID
|
|
362
|
+
*/
|
|
363
|
+
disputeId?: string;
|
|
364
|
+
/** Accepted date */
|
|
365
|
+
acceptedDate?: Date | null;
|
|
366
|
+
}
|
|
367
|
+
interface AcceptDisputeManuallyResponse {
|
|
368
|
+
}
|
|
369
|
+
interface DefendDisputeManuallyRequest {
|
|
370
|
+
/**
|
|
371
|
+
* Dispute ID
|
|
372
|
+
* @format GUID
|
|
373
|
+
*/
|
|
374
|
+
disputeId?: string;
|
|
375
|
+
/** Defense date */
|
|
376
|
+
defendedDate?: Date | null;
|
|
377
|
+
}
|
|
378
|
+
interface DefendDisputeManuallyResponse {
|
|
379
|
+
}
|
|
380
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
381
|
+
createdEvent?: EntityCreatedEvent;
|
|
382
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
383
|
+
deletedEvent?: EntityDeletedEvent;
|
|
384
|
+
actionEvent?: ActionEvent;
|
|
385
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
386
|
+
id?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
389
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
390
|
+
*/
|
|
391
|
+
entityFqdn?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
394
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
395
|
+
*/
|
|
396
|
+
slug?: string;
|
|
397
|
+
/** ID of the entity associated with the event. */
|
|
398
|
+
entityId?: string;
|
|
399
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
400
|
+
eventTime?: Date | null;
|
|
401
|
+
/**
|
|
402
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
403
|
+
* (for example, GDPR).
|
|
404
|
+
*/
|
|
405
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
406
|
+
/** If present, indicates the action that triggered the event. */
|
|
407
|
+
originatedFrom?: string | null;
|
|
408
|
+
/**
|
|
409
|
+
* 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.
|
|
410
|
+
* 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.
|
|
411
|
+
*/
|
|
412
|
+
entityEventSequence?: string | null;
|
|
413
|
+
}
|
|
414
|
+
/** @oneof */
|
|
415
|
+
interface DomainEventBodyOneOf {
|
|
416
|
+
createdEvent?: EntityCreatedEvent;
|
|
417
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
418
|
+
deletedEvent?: EntityDeletedEvent;
|
|
419
|
+
actionEvent?: ActionEvent;
|
|
420
|
+
}
|
|
421
|
+
interface EntityCreatedEvent {
|
|
422
|
+
entityAsJson?: string;
|
|
423
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
424
|
+
restoreInfo?: RestoreInfo;
|
|
425
|
+
}
|
|
426
|
+
interface RestoreInfo {
|
|
427
|
+
deletedDate?: Date | null;
|
|
428
|
+
}
|
|
429
|
+
interface EntityUpdatedEvent {
|
|
430
|
+
/**
|
|
431
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
432
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
433
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
434
|
+
*/
|
|
435
|
+
currentEntityAsJson?: string;
|
|
436
|
+
}
|
|
437
|
+
interface EntityDeletedEvent {
|
|
438
|
+
/** Entity that was deleted. */
|
|
439
|
+
deletedEntityAsJson?: string | null;
|
|
440
|
+
}
|
|
441
|
+
interface ActionEvent {
|
|
442
|
+
bodyAsJson?: string;
|
|
443
|
+
}
|
|
444
|
+
interface MessageEnvelope {
|
|
445
|
+
/**
|
|
446
|
+
* App instance ID.
|
|
447
|
+
* @format GUID
|
|
448
|
+
*/
|
|
449
|
+
instanceId?: string | null;
|
|
450
|
+
/**
|
|
451
|
+
* Event type.
|
|
452
|
+
* @maxLength 150
|
|
453
|
+
*/
|
|
454
|
+
eventType?: string;
|
|
455
|
+
/** The identification type and identity data. */
|
|
456
|
+
identity?: IdentificationData;
|
|
457
|
+
/** Stringify payload. */
|
|
458
|
+
data?: string;
|
|
459
|
+
}
|
|
460
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
461
|
+
/**
|
|
462
|
+
* ID of a site visitor that has not logged in to the site.
|
|
463
|
+
* @format GUID
|
|
464
|
+
*/
|
|
465
|
+
anonymousVisitorId?: string;
|
|
466
|
+
/**
|
|
467
|
+
* ID of a site visitor that has logged in to the site.
|
|
468
|
+
* @format GUID
|
|
469
|
+
*/
|
|
470
|
+
memberId?: string;
|
|
471
|
+
/**
|
|
472
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
473
|
+
* @format GUID
|
|
474
|
+
*/
|
|
475
|
+
wixUserId?: string;
|
|
476
|
+
/**
|
|
477
|
+
* ID of an app.
|
|
478
|
+
* @format GUID
|
|
479
|
+
*/
|
|
480
|
+
appId?: string;
|
|
481
|
+
/** @readonly */
|
|
482
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
483
|
+
}
|
|
484
|
+
/** @oneof */
|
|
485
|
+
interface IdentificationDataIdOneOf {
|
|
486
|
+
/**
|
|
487
|
+
* ID of a site visitor that has not logged in to the site.
|
|
488
|
+
* @format GUID
|
|
489
|
+
*/
|
|
490
|
+
anonymousVisitorId?: string;
|
|
491
|
+
/**
|
|
492
|
+
* ID of a site visitor that has logged in to the site.
|
|
493
|
+
* @format GUID
|
|
494
|
+
*/
|
|
495
|
+
memberId?: string;
|
|
496
|
+
/**
|
|
497
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
498
|
+
* @format GUID
|
|
499
|
+
*/
|
|
500
|
+
wixUserId?: string;
|
|
501
|
+
/**
|
|
502
|
+
* ID of an app.
|
|
503
|
+
* @format GUID
|
|
504
|
+
*/
|
|
505
|
+
appId?: string;
|
|
506
|
+
}
|
|
507
|
+
declare enum WebhookIdentityType {
|
|
508
|
+
UNKNOWN = "UNKNOWN",
|
|
509
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
510
|
+
MEMBER = "MEMBER",
|
|
511
|
+
WIX_USER = "WIX_USER",
|
|
512
|
+
APP = "APP"
|
|
513
|
+
}
|
|
514
|
+
/** @enumType */
|
|
515
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
274
516
|
interface GetDisputeRequest {
|
|
275
517
|
/**
|
|
276
518
|
* ID of the dispute to retrieve.
|
|
@@ -396,6 +638,92 @@ interface DefendDisputeResponse {
|
|
|
396
638
|
/** Updated dispute after initiating defense. */
|
|
397
639
|
dispute?: Dispute;
|
|
398
640
|
}
|
|
641
|
+
interface SubmitDisputeEvidenceRequest {
|
|
642
|
+
/**
|
|
643
|
+
* Dispute ID
|
|
644
|
+
* @format GUID
|
|
645
|
+
*/
|
|
646
|
+
disputeId?: string;
|
|
647
|
+
}
|
|
648
|
+
interface SubmitDisputeEvidenceResponse {
|
|
649
|
+
/** Dispute */
|
|
650
|
+
dispute?: Dispute;
|
|
651
|
+
}
|
|
652
|
+
interface CreateDisputeManuallyRequest {
|
|
653
|
+
/**
|
|
654
|
+
* Dispute Id
|
|
655
|
+
* @format GUID
|
|
656
|
+
*/
|
|
657
|
+
disputeId?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Charge Id
|
|
660
|
+
* @format GUID
|
|
661
|
+
*/
|
|
662
|
+
chargeId?: string;
|
|
663
|
+
/** Open date */
|
|
664
|
+
openDate?: Date | null;
|
|
665
|
+
/**
|
|
666
|
+
* Provider Dispute Id
|
|
667
|
+
* @minLength 1
|
|
668
|
+
* @maxLength 100
|
|
669
|
+
*/
|
|
670
|
+
providerDisputeId?: string;
|
|
671
|
+
/** Dispute stage */
|
|
672
|
+
stage?: DisputeStageWithLiterals;
|
|
673
|
+
/** Dispute reason */
|
|
674
|
+
reason?: DisputeReasonWithLiterals;
|
|
675
|
+
/** Dispute status based on provider dispute status */
|
|
676
|
+
status?: DisputeStatusWithLiterals;
|
|
677
|
+
/** The latest date and time until which the dispute can remain in its current status */
|
|
678
|
+
dueDate?: Date | null;
|
|
679
|
+
/**
|
|
680
|
+
* Dispute currency. Should be the same as the charge currency.
|
|
681
|
+
* @immutable
|
|
682
|
+
* @format CURRENCY
|
|
683
|
+
*/
|
|
684
|
+
currencyCode?: string | null;
|
|
685
|
+
/**
|
|
686
|
+
* Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`.
|
|
687
|
+
* @immutable
|
|
688
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
689
|
+
*/
|
|
690
|
+
amount?: string | null;
|
|
691
|
+
/**
|
|
692
|
+
* Network reason code
|
|
693
|
+
* @minLength 1
|
|
694
|
+
* @maxLength 64
|
|
695
|
+
*/
|
|
696
|
+
networkReasonCode?: string | null;
|
|
697
|
+
/** External or Internal */
|
|
698
|
+
external?: boolean | null;
|
|
699
|
+
/**
|
|
700
|
+
* Seller protection
|
|
701
|
+
* @minLength 1
|
|
702
|
+
* @maxLength 64
|
|
703
|
+
*/
|
|
704
|
+
sellerProtection?: string | null;
|
|
705
|
+
/** Is charge refundable */
|
|
706
|
+
chargeRefundable?: boolean | null;
|
|
707
|
+
/** True if dispute is defendable */
|
|
708
|
+
defendable?: boolean | null;
|
|
709
|
+
/** True if it is an auto dispute */
|
|
710
|
+
autoDefended?: boolean | null;
|
|
711
|
+
}
|
|
712
|
+
interface CreateDisputeManuallyResponse {
|
|
713
|
+
}
|
|
714
|
+
interface ChangeDisputeStatusManuallyRequest {
|
|
715
|
+
/**
|
|
716
|
+
* Dispute ID
|
|
717
|
+
* @format GUID
|
|
718
|
+
*/
|
|
719
|
+
disputeId?: string;
|
|
720
|
+
/** Changed date */
|
|
721
|
+
changedDate?: Date | null;
|
|
722
|
+
/** Dispute status based on provider dispute status */
|
|
723
|
+
status?: DisputeStatusWithLiterals;
|
|
724
|
+
}
|
|
725
|
+
interface ChangeDisputeStatusManuallyResponse {
|
|
726
|
+
}
|
|
399
727
|
interface BulkUpdateDisputeTagsRequest {
|
|
400
728
|
/**
|
|
401
729
|
* List of dispute IDs to update tags for.
|
|
@@ -467,6 +795,18 @@ interface BulkUpdateDisputeTagsByFilterResponse {
|
|
|
467
795
|
*/
|
|
468
796
|
jobId?: string;
|
|
469
797
|
}
|
|
798
|
+
/** @docsIgnore */
|
|
799
|
+
type BulkUpdateDisputeTagsApplicationErrors = {
|
|
800
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
801
|
+
description?: string;
|
|
802
|
+
data?: Record<string, any>;
|
|
803
|
+
};
|
|
804
|
+
/** @docsIgnore */
|
|
805
|
+
type BulkUpdateDisputeTagsByFilterApplicationErrors = {
|
|
806
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
807
|
+
description?: string;
|
|
808
|
+
data?: Record<string, any>;
|
|
809
|
+
};
|
|
470
810
|
|
|
471
811
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
472
812
|
getUrl: (context: any) => string;
|
|
@@ -491,4 +831,4 @@ declare function defendDispute(): __PublicMethodMetaInfo<'POST', {
|
|
|
491
831
|
declare function bulkUpdateDisputeTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDisputeTagsRequest$1, BulkUpdateDisputeTagsRequest, BulkUpdateDisputeTagsResponse$1, BulkUpdateDisputeTagsResponse>;
|
|
492
832
|
declare function bulkUpdateDisputeTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDisputeTagsByFilterRequest$1, BulkUpdateDisputeTagsByFilterRequest, BulkUpdateDisputeTagsByFilterResponse$1, BulkUpdateDisputeTagsByFilterResponse>;
|
|
493
833
|
|
|
494
|
-
export { type __PublicMethodMetaInfo, acceptDispute, bulkUpdateDisputeTags, bulkUpdateDisputeTagsByFilter, defendDispute, getDispute, queryDisputes };
|
|
834
|
+
export { type AcceptDisputeManuallyRequest as AcceptDisputeManuallyRequestOriginal, type AcceptDisputeManuallyResponse as AcceptDisputeManuallyResponseOriginal, type AcceptDisputeRequest as AcceptDisputeRequestOriginal, type AcceptDisputeResponse as AcceptDisputeResponseOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateDisputeTagsApplicationErrors as BulkUpdateDisputeTagsApplicationErrorsOriginal, type BulkUpdateDisputeTagsByFilterApplicationErrors as BulkUpdateDisputeTagsByFilterApplicationErrorsOriginal, type BulkUpdateDisputeTagsByFilterRequest as BulkUpdateDisputeTagsByFilterRequestOriginal, type BulkUpdateDisputeTagsByFilterResponse as BulkUpdateDisputeTagsByFilterResponseOriginal, type BulkUpdateDisputeTagsRequest as BulkUpdateDisputeTagsRequestOriginal, type BulkUpdateDisputeTagsResponse as BulkUpdateDisputeTagsResponseOriginal, type BulkUpdateDisputeTagsResult as BulkUpdateDisputeTagsResultOriginal, type ChangeDisputeStatusManuallyRequest as ChangeDisputeStatusManuallyRequestOriginal, type ChangeDisputeStatusManuallyResponse as ChangeDisputeStatusManuallyResponseOriginal, type CreateDisputeManuallyRequest as CreateDisputeManuallyRequestOriginal, type CreateDisputeManuallyResponse as CreateDisputeManuallyResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DefendDisputeManuallyRequest as DefendDisputeManuallyRequestOriginal, type DefendDisputeManuallyResponse as DefendDisputeManuallyResponseOriginal, type DefendDisputeRequest as DefendDisputeRequestOriginal, type DefendDisputeResponse as DefendDisputeResponseOriginal, type DisputeAction as DisputeActionOriginal, DisputeActionType as DisputeActionTypeOriginal, type DisputeActionTypeWithLiterals as DisputeActionTypeWithLiteralsOriginal, DisputeChannel as DisputeChannelOriginal, type DisputeChannelWithLiterals as DisputeChannelWithLiteralsOriginal, type Dispute as DisputeOriginal, DisputeReason as DisputeReasonOriginal, type DisputeReasonWithLiterals as DisputeReasonWithLiteralsOriginal, DisputeStage as DisputeStageOriginal, type DisputeStageWithLiterals as DisputeStageWithLiteralsOriginal, DisputeStatus as DisputeStatusOriginal, type DisputeStatusWithLiterals as DisputeStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetDisputeRequest as GetDisputeRequestOriginal, type GetDisputeResponse as GetDisputeResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InternalChangeDisputeStatusManuallyRequest as InternalChangeDisputeStatusManuallyRequestOriginal, type InternalChangeDisputeStatusManuallyResponse as InternalChangeDisputeStatusManuallyResponseOriginal, type InternalCreateDisputeManuallyRequest as InternalCreateDisputeManuallyRequestOriginal, type InternalCreateDisputeManuallyResponse as InternalCreateDisputeManuallyResponseOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryDisputesRequest as QueryDisputesRequestOriginal, type QueryDisputesResponse as QueryDisputesResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SellerProtection as SellerProtectionOriginal, type SellerProtectionWithLiterals as SellerProtectionWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SubmitDisputeEvidenceRequest as SubmitDisputeEvidenceRequestOriginal, type SubmitDisputeEvidenceResponse as SubmitDisputeEvidenceResponseOriginal, type TagList as TagListOriginal, type TagsModified as TagsModifiedOriginal, type Tags as TagsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, acceptDispute, bulkUpdateDisputeTags, bulkUpdateDisputeTagsByFilter, defendDispute, getDispute, queryDisputes };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
DisputeActionTypeOriginal: () => DisputeActionType,
|
|
24
|
+
DisputeChannelOriginal: () => DisputeChannel,
|
|
25
|
+
DisputeReasonOriginal: () => DisputeReason,
|
|
26
|
+
DisputeStageOriginal: () => DisputeStage,
|
|
27
|
+
DisputeStatusOriginal: () => DisputeStatus,
|
|
28
|
+
SellerProtectionOriginal: () => SellerProtection,
|
|
29
|
+
SortOrderOriginal: () => SortOrder,
|
|
30
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
31
|
acceptDispute: () => acceptDispute2,
|
|
24
32
|
bulkUpdateDisputeTags: () => bulkUpdateDisputeTags2,
|
|
25
33
|
bulkUpdateDisputeTagsByFilter: () => bulkUpdateDisputeTagsByFilter2,
|
|
@@ -46,6 +54,9 @@ function getDispute(payload) {
|
|
|
46
54
|
method: "GET",
|
|
47
55
|
methodFqn: "wix.payments.disputes.v1.DisputeService.GetDispute",
|
|
48
56
|
packageName: PACKAGE_NAME,
|
|
57
|
+
migrationOptions: {
|
|
58
|
+
optInTransformResponse: true
|
|
59
|
+
},
|
|
49
60
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
50
61
|
protoPath: "/v1/disputes/{disputeId}",
|
|
51
62
|
data: payload,
|
|
@@ -77,6 +88,9 @@ function queryDisputes(payload) {
|
|
|
77
88
|
method: "GET",
|
|
78
89
|
methodFqn: "wix.payments.disputes.v1.DisputeService.QueryDisputes",
|
|
79
90
|
packageName: PACKAGE_NAME,
|
|
91
|
+
migrationOptions: {
|
|
92
|
+
optInTransformResponse: true
|
|
93
|
+
},
|
|
80
94
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
81
95
|
protoPath: "/v1/disputes/query",
|
|
82
96
|
data: payload,
|
|
@@ -119,6 +133,9 @@ function acceptDispute(payload) {
|
|
|
119
133
|
method: "POST",
|
|
120
134
|
methodFqn: "wix.payments.disputes.v1.DisputeService.AcceptDispute",
|
|
121
135
|
packageName: PACKAGE_NAME,
|
|
136
|
+
migrationOptions: {
|
|
137
|
+
optInTransformResponse: true
|
|
138
|
+
},
|
|
122
139
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
123
140
|
protoPath: "/v1/disputes/{disputeId}/accept",
|
|
124
141
|
data: payload,
|
|
@@ -150,6 +167,9 @@ function defendDispute(payload) {
|
|
|
150
167
|
method: "POST",
|
|
151
168
|
methodFqn: "wix.payments.disputes.v1.DisputeService.DefendDispute",
|
|
152
169
|
packageName: PACKAGE_NAME,
|
|
170
|
+
migrationOptions: {
|
|
171
|
+
optInTransformResponse: true
|
|
172
|
+
},
|
|
153
173
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
154
174
|
protoPath: "/v1/disputes/{disputeId}/defend",
|
|
155
175
|
data: payload,
|
|
@@ -181,6 +201,9 @@ function bulkUpdateDisputeTags(payload) {
|
|
|
181
201
|
method: "POST",
|
|
182
202
|
methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags",
|
|
183
203
|
packageName: PACKAGE_NAME,
|
|
204
|
+
migrationOptions: {
|
|
205
|
+
optInTransformResponse: true
|
|
206
|
+
},
|
|
184
207
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
185
208
|
protoPath: "/v1/bulk/disputes/update-tags",
|
|
186
209
|
data: payload,
|
|
@@ -199,6 +222,9 @@ function bulkUpdateDisputeTagsByFilter(payload) {
|
|
|
199
222
|
method: "POST",
|
|
200
223
|
methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter",
|
|
201
224
|
packageName: PACKAGE_NAME,
|
|
225
|
+
migrationOptions: {
|
|
226
|
+
optInTransformResponse: true
|
|
227
|
+
},
|
|
202
228
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
203
229
|
protoPath: "/v1/bulk/disputes/update-tags-by-filter",
|
|
204
230
|
data: payload,
|
|
@@ -211,6 +237,71 @@ function bulkUpdateDisputeTagsByFilter(payload) {
|
|
|
211
237
|
return __bulkUpdateDisputeTagsByFilter;
|
|
212
238
|
}
|
|
213
239
|
|
|
240
|
+
// src/payments-disputes-v1-dispute-disputes.types.ts
|
|
241
|
+
var DisputeStage = /* @__PURE__ */ ((DisputeStage2) => {
|
|
242
|
+
DisputeStage2["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
|
|
243
|
+
DisputeStage2["CHARGEBACK"] = "CHARGEBACK";
|
|
244
|
+
DisputeStage2["INQUIRY"] = "INQUIRY";
|
|
245
|
+
return DisputeStage2;
|
|
246
|
+
})(DisputeStage || {});
|
|
247
|
+
var DisputeReason = /* @__PURE__ */ ((DisputeReason2) => {
|
|
248
|
+
DisputeReason2["UNKNOWN_DISPUTE_REASON"] = "UNKNOWN_DISPUTE_REASON";
|
|
249
|
+
DisputeReason2["FRAUD_CARD_PRESENT"] = "FRAUD_CARD_PRESENT";
|
|
250
|
+
DisputeReason2["FRAUD_CARD_ABSENT"] = "FRAUD_CARD_ABSENT";
|
|
251
|
+
DisputeReason2["DUPLICATE_PROCESSING"] = "DUPLICATE_PROCESSING";
|
|
252
|
+
DisputeReason2["SERVICES_NOT_PROVIDED"] = "SERVICES_NOT_PROVIDED";
|
|
253
|
+
DisputeReason2["CANCELED_RECURRING"] = "CANCELED_RECURRING";
|
|
254
|
+
DisputeReason2["NOT_AS_DESCRIBED"] = "NOT_AS_DESCRIBED";
|
|
255
|
+
DisputeReason2["COUNTERFEIT"] = "COUNTERFEIT";
|
|
256
|
+
DisputeReason2["MISREPRESENTATION"] = "MISREPRESENTATION";
|
|
257
|
+
DisputeReason2["CANCELED"] = "CANCELED";
|
|
258
|
+
DisputeReason2["OTHER"] = "OTHER";
|
|
259
|
+
return DisputeReason2;
|
|
260
|
+
})(DisputeReason || {});
|
|
261
|
+
var DisputeStatus = /* @__PURE__ */ ((DisputeStatus2) => {
|
|
262
|
+
DisputeStatus2["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
|
|
263
|
+
DisputeStatus2["WAITING_MERCHANT"] = "WAITING_MERCHANT";
|
|
264
|
+
DisputeStatus2["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
265
|
+
DisputeStatus2["WAITING_BUYER"] = "WAITING_BUYER";
|
|
266
|
+
DisputeStatus2["WON"] = "WON";
|
|
267
|
+
DisputeStatus2["LOST"] = "LOST";
|
|
268
|
+
DisputeStatus2["PROCESSING_EVIDENCE_SUBMISSION"] = "PROCESSING_EVIDENCE_SUBMISSION";
|
|
269
|
+
DisputeStatus2["PROCESSING_ACCEPTANCE"] = "PROCESSING_ACCEPTANCE";
|
|
270
|
+
return DisputeStatus2;
|
|
271
|
+
})(DisputeStatus || {});
|
|
272
|
+
var SellerProtection = /* @__PURE__ */ ((SellerProtection2) => {
|
|
273
|
+
SellerProtection2["UNKNOWN_SELLER_PROTECTION"] = "UNKNOWN_SELLER_PROTECTION";
|
|
274
|
+
SellerProtection2["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
275
|
+
SellerProtection2["ELIGIBLE"] = "ELIGIBLE";
|
|
276
|
+
SellerProtection2["EXTENDED"] = "EXTENDED";
|
|
277
|
+
return SellerProtection2;
|
|
278
|
+
})(SellerProtection || {});
|
|
279
|
+
var DisputeChannel = /* @__PURE__ */ ((DisputeChannel2) => {
|
|
280
|
+
DisputeChannel2["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
|
|
281
|
+
DisputeChannel2["INTERNAL"] = "INTERNAL";
|
|
282
|
+
DisputeChannel2["EXTERNAL"] = "EXTERNAL";
|
|
283
|
+
return DisputeChannel2;
|
|
284
|
+
})(DisputeChannel || {});
|
|
285
|
+
var DisputeActionType = /* @__PURE__ */ ((DisputeActionType2) => {
|
|
286
|
+
DisputeActionType2["UNKNOWN_DISPUTE_ACTION"] = "UNKNOWN_DISPUTE_ACTION";
|
|
287
|
+
DisputeActionType2["ACCEPT"] = "ACCEPT";
|
|
288
|
+
DisputeActionType2["DEFEND"] = "DEFEND";
|
|
289
|
+
return DisputeActionType2;
|
|
290
|
+
})(DisputeActionType || {});
|
|
291
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
292
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
293
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
294
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
295
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
296
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
297
|
+
return WebhookIdentityType2;
|
|
298
|
+
})(WebhookIdentityType || {});
|
|
299
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
300
|
+
SortOrder2["ASC"] = "ASC";
|
|
301
|
+
SortOrder2["DESC"] = "DESC";
|
|
302
|
+
return SortOrder2;
|
|
303
|
+
})(SortOrder || {});
|
|
304
|
+
|
|
214
305
|
// src/payments-disputes-v1-dispute-disputes.meta.ts
|
|
215
306
|
function getDispute2() {
|
|
216
307
|
const payload = { disputeId: ":disputeId" };
|
|
@@ -324,6 +415,14 @@ function bulkUpdateDisputeTagsByFilter2() {
|
|
|
324
415
|
}
|
|
325
416
|
// Annotate the CommonJS export names for ESM import in node:
|
|
326
417
|
0 && (module.exports = {
|
|
418
|
+
DisputeActionTypeOriginal,
|
|
419
|
+
DisputeChannelOriginal,
|
|
420
|
+
DisputeReasonOriginal,
|
|
421
|
+
DisputeStageOriginal,
|
|
422
|
+
DisputeStatusOriginal,
|
|
423
|
+
SellerProtectionOriginal,
|
|
424
|
+
SortOrderOriginal,
|
|
425
|
+
WebhookIdentityTypeOriginal,
|
|
327
426
|
acceptDispute,
|
|
328
427
|
bulkUpdateDisputeTags,
|
|
329
428
|
bulkUpdateDisputeTagsByFilter,
|