@wix/auto_sdk_payments_disputes 1.0.9 → 1.0.11

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.
Files changed (131) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +2 -0
  11. package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js +29 -0
  12. package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
  13. package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
  14. package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js +217 -0
  15. package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
  16. package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
  17. package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +161 -0
  18. package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
  19. package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +4 -0
  20. package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js +64 -0
  21. package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
  22. package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
  23. package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js +94 -0
  24. package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
  25. package/build/{index.d.mts → cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +58 -59
  26. package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +386 -0
  27. package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +2 -0
  38. package/build/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
  39. package/build/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
  40. package/build/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
  41. package/build/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
  42. package/build/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
  43. package/build/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
  44. package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
  45. package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
  46. package/build/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +4 -0
  47. package/build/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
  48. package/build/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
  49. package/build/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
  50. package/build/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
  51. package/build/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
  52. package/build/{index.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +58 -59
  53. package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
  54. package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
  65. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js +29 -0
  66. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
  67. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
  68. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js +217 -0
  69. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
  70. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
  71. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +161 -0
  72. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
  73. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
  74. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js +64 -0
  75. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
  76. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
  77. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js +94 -0
  78. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
  79. package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.mts → cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
  80. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +386 -0
  81. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
  92. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
  93. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
  94. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
  95. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
  96. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
  97. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
  98. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
  99. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
  100. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
  101. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
  102. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
  103. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
  104. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
  105. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
  106. package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
  107. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
  108. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.js +0 -588
  111. package/build/index.js.map +0 -1
  112. package/build/index.mjs +0 -550
  113. package/build/index.mjs.map +0 -1
  114. package/build/internal/index.d.mts +0 -87
  115. package/build/internal/index.d.ts +0 -87
  116. package/build/internal/index.js +0 -588
  117. package/build/internal/index.js.map +0 -1
  118. package/build/internal/index.mjs +0 -550
  119. package/build/internal/index.mjs.map +0 -1
  120. package/build/internal/meta.d.mts +0 -449
  121. package/build/internal/meta.d.ts +0 -449
  122. package/build/internal/meta.js +0 -366
  123. package/build/internal/meta.js.map +0 -1
  124. package/build/internal/meta.mjs +0 -333
  125. package/build/internal/meta.mjs.map +0 -1
  126. package/build/meta.d.mts +0 -449
  127. package/build/meta.d.ts +0 -449
  128. package/build/meta.js +0 -366
  129. package/build/meta.js.map +0 -1
  130. package/build/meta.mjs +0 -333
  131. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.DisputeActionType = exports.SortOrder = exports.DisputeChannel = exports.SellerProtection = exports.DisputeStatus = exports.DisputeReason = exports.DisputeStage = void 0;
4
+ var DisputeStage;
5
+ (function (DisputeStage) {
6
+ DisputeStage["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
7
+ /** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
8
+ DisputeStage["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
9
+ /** Request for Information / Inquiry */
10
+ DisputeStage["RFI"] = "RFI";
11
+ /** Chargeback */
12
+ DisputeStage["CHARGEBACK"] = "CHARGEBACK";
13
+ })(DisputeStage || (exports.DisputeStage = DisputeStage = {}));
14
+ var DisputeReason;
15
+ (function (DisputeReason) {
16
+ /** Unknown reason */
17
+ DisputeReason["UNKNOWN_DISPUTE_REASON"] = "UNKNOWN_DISPUTE_REASON";
18
+ /** Fraud card */
19
+ DisputeReason["FRAUD_CARD_PRESENT"] = "FRAUD_CARD_PRESENT";
20
+ /** Card absent */
21
+ DisputeReason["FRAUD_CARD_ABSENT"] = "FRAUD_CARD_ABSENT";
22
+ /** DUPLICATE */
23
+ DisputeReason["DUPLICATE_PROCESSING"] = "DUPLICATE_PROCESSING";
24
+ /** Service not provided */
25
+ DisputeReason["SERVICES_NOT_PROVIDED"] = "SERVICES_NOT_PROVIDED";
26
+ /** Canceled Recurring */
27
+ DisputeReason["CANCELED_RECURRING"] = "CANCELED_RECURRING";
28
+ /** Item not as describe */
29
+ DisputeReason["NOT_AS_DESCRIBED"] = "NOT_AS_DESCRIBED";
30
+ /** Counterfeit */
31
+ DisputeReason["COUNTERFEIT"] = "COUNTERFEIT";
32
+ /** Misrepresentation */
33
+ DisputeReason["MISREPRESENTATION"] = "MISREPRESENTATION";
34
+ /** Canceled */
35
+ DisputeReason["CANCELED"] = "CANCELED";
36
+ /** Other reason */
37
+ DisputeReason["OTHER"] = "OTHER";
38
+ })(DisputeReason || (exports.DisputeReason = DisputeReason = {}));
39
+ var DisputeStatus;
40
+ (function (DisputeStatus) {
41
+ /** Unknown status */
42
+ DisputeStatus["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
43
+ /** Waiting for some merchant action */
44
+ DisputeStatus["WAITING_MERCHANT"] = "WAITING_MERCHANT";
45
+ /** Dispute is under review by PSP (internal channel) or Bank (external channel) */
46
+ DisputeStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
47
+ /** Waiting for some buyer action */
48
+ DisputeStatus["WAITING_BUYER"] = "WAITING_BUYER";
49
+ /** Dispute won */
50
+ DisputeStatus["WON"] = "WON";
51
+ /** Dispute lost */
52
+ DisputeStatus["LOST"] = "LOST";
53
+ })(DisputeStatus || (exports.DisputeStatus = DisputeStatus = {}));
54
+ var SellerProtection;
55
+ (function (SellerProtection) {
56
+ SellerProtection["UNKNOWN_SELLER_PROTECTION"] = "UNKNOWN_SELLER_PROTECTION";
57
+ /** Not Eligible */
58
+ SellerProtection["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
59
+ /** Eligible */
60
+ SellerProtection["ELIGIBLE"] = "ELIGIBLE";
61
+ /** Extended seller protection */
62
+ SellerProtection["EXTENDED"] = "EXTENDED";
63
+ })(SellerProtection || (exports.SellerProtection = SellerProtection = {}));
64
+ var DisputeChannel;
65
+ (function (DisputeChannel) {
66
+ DisputeChannel["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
67
+ /** Internal, the dispute is reviewed by PSP */
68
+ DisputeChannel["INTERNAL"] = "INTERNAL";
69
+ /** External, the dispute is reviewed by bank (or other financial institution) */
70
+ DisputeChannel["EXTERNAL"] = "EXTERNAL";
71
+ })(DisputeChannel || (exports.DisputeChannel = DisputeChannel = {}));
72
+ var SortOrder;
73
+ (function (SortOrder) {
74
+ SortOrder["ASC"] = "ASC";
75
+ SortOrder["DESC"] = "DESC";
76
+ })(SortOrder || (exports.SortOrder = SortOrder = {}));
77
+ var DisputeActionType;
78
+ (function (DisputeActionType) {
79
+ /** Unknown dispute status */
80
+ DisputeActionType["UNKNOWN_DISPUTE_ACTION"] = "UNKNOWN_DISPUTE_ACTION";
81
+ /** Accept dispute */
82
+ DisputeActionType["ACCEPT"] = "ACCEPT";
83
+ /** Submit evidence */
84
+ DisputeActionType["SUBMIT_EVIDENCE"] = "SUBMIT_EVIDENCE";
85
+ })(DisputeActionType || (exports.DisputeActionType = DisputeActionType = {}));
86
+ var WebhookIdentityType;
87
+ (function (WebhookIdentityType) {
88
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
89
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
90
+ WebhookIdentityType["MEMBER"] = "MEMBER";
91
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
92
+ WebhookIdentityType["APP"] = "APP";
93
+ })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
94
+ //# sourceMappingURL=payments-disputes-v1-dispute-disputes.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments-disputes-v1-dispute-disputes.types.js","sourceRoot":"","sources":["../../../../src/payments-disputes-v1-dispute-disputes.types.ts"],"names":[],"mappings":";;;AAiFA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iEAAiE;IACjE,+DAA+C,CAAA;IAC/C,wCAAwC;IACxC,2BAAW,CAAA;IACX,iBAAiB;IACjB,yCAAyB,CAAA;AAC3B,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAED,IAAY,aAuBX;AAvBD,WAAY,aAAa;IACvB,qBAAqB;IACrB,kEAAiD,CAAA;IACjD,iBAAiB;IACjB,0DAAyC,CAAA;IACzC,kBAAkB;IAClB,wDAAuC,CAAA;IACvC,gBAAgB;IAChB,8DAA6C,CAAA;IAC7C,2BAA2B;IAC3B,gEAA+C,CAAA;IAC/C,yBAAyB;IACzB,0DAAyC,CAAA;IACzC,2BAA2B;IAC3B,sDAAqC,CAAA;IACrC,kBAAkB;IAClB,4CAA2B,CAAA;IAC3B,wBAAwB;IACxB,wDAAuC,CAAA;IACvC,eAAe;IACf,sCAAqB,CAAA;IACrB,mBAAmB;IACnB,gCAAe,CAAA;AACjB,CAAC,EAvBW,aAAa,6BAAb,aAAa,QAuBxB;AAED,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,qBAAqB;IACrB,kEAAiD,CAAA;IACjD,uCAAuC;IACvC,sDAAqC,CAAA;IACrC,mFAAmF;IACnF,8CAA6B,CAAA;IAC7B,oCAAoC;IACpC,gDAA+B,CAAA;IAC/B,kBAAkB;IAClB,4BAAW,CAAA;IACX,mBAAmB;IACnB,8BAAa,CAAA;AACf,CAAC,EAbW,aAAa,6BAAb,aAAa,QAaxB;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,2EAAuD,CAAA;IACvD,mBAAmB;IACnB,iDAA6B,CAAA;IAC7B,eAAe;IACf,yCAAqB,CAAA;IACrB,iCAAiC;IACjC,yCAAqB,CAAA;AACvB,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B;AAED,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,qEAAmD,CAAA;IACnD,+CAA+C;IAC/C,uCAAqB,CAAA;IACrB,iFAAiF;IACjF,uCAAqB,CAAA;AACvB,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAkFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA2ED,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,6BAA6B;IAC7B,sEAAiD,CAAA;IACjD,qBAAqB;IACrB,sCAAiB,CAAA;IACjB,sBAAsB;IACtB,wDAAmC,CAAA;AACrC,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAwWD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
@@ -1,5 +1,6 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
1
2
  /** Dispute. A dispute occurs when an account owner contacts their PSP or bank to contest a payment to you for a number of possible reasons. */
2
- interface Dispute {
3
+ export interface Dispute {
3
4
  /**
4
5
  * Dispute ID
5
6
  * @format GUID
@@ -78,7 +79,7 @@ interface Dispute {
78
79
  /** Tags */
79
80
  tags?: PublicTags;
80
81
  }
81
- declare enum DisputeStage {
82
+ export declare enum DisputeStage {
82
83
  UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
83
84
  /** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
84
85
  NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
@@ -87,7 +88,7 @@ declare enum DisputeStage {
87
88
  /** Chargeback */
88
89
  CHARGEBACK = "CHARGEBACK"
89
90
  }
90
- declare enum DisputeReason {
91
+ export declare enum DisputeReason {
91
92
  /** Unknown reason */
92
93
  UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
93
94
  /** Fraud card */
@@ -111,7 +112,7 @@ declare enum DisputeReason {
111
112
  /** Other reason */
112
113
  OTHER = "OTHER"
113
114
  }
114
- declare enum DisputeStatus {
115
+ export declare enum DisputeStatus {
115
116
  /** Unknown status */
116
117
  UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
117
118
  /** Waiting for some merchant action */
@@ -125,7 +126,7 @@ declare enum DisputeStatus {
125
126
  /** Dispute lost */
126
127
  LOST = "LOST"
127
128
  }
128
- declare enum SellerProtection {
129
+ export declare enum SellerProtection {
129
130
  UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
130
131
  /** Not Eligible */
131
132
  NOT_ELIGIBLE = "NOT_ELIGIBLE",
@@ -134,14 +135,14 @@ declare enum SellerProtection {
134
135
  /** Extended seller protection */
135
136
  EXTENDED = "EXTENDED"
136
137
  }
137
- declare enum DisputeChannel {
138
+ export declare enum DisputeChannel {
138
139
  UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
139
140
  /** Internal, the dispute is reviewed by PSP */
140
141
  INTERNAL = "INTERNAL",
141
142
  /** External, the dispute is reviewed by bank (or other financial institution) */
142
143
  EXTERNAL = "EXTERNAL"
143
144
  }
144
- interface ExtendedFields {
145
+ export interface ExtendedFields {
145
146
  /**
146
147
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
147
148
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -152,11 +153,11 @@ interface ExtendedFields {
152
153
  */
153
154
  namespaces?: Record<string, Record<string, any>>;
154
155
  }
155
- interface PublicTags {
156
+ export interface PublicTags {
156
157
  /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
157
158
  tags?: TagList;
158
159
  }
159
- interface TagList {
160
+ export interface TagList {
160
161
  /**
161
162
  * List of tag IDs
162
163
  * @maxSize 100
@@ -164,22 +165,22 @@ interface TagList {
164
165
  */
165
166
  tagIds?: string[];
166
167
  }
167
- interface GetDisputeRequest {
168
+ export interface GetDisputeRequest {
168
169
  /**
169
170
  * ID of the Dispute to retrieve.
170
171
  * @format GUID
171
172
  */
172
173
  disputeId: string;
173
174
  }
174
- interface GetDisputeResponse {
175
+ export interface GetDisputeResponse {
175
176
  /** The requested Dispute. */
176
177
  dispute?: Dispute;
177
178
  }
178
- interface QueryDisputesRequest {
179
+ export interface QueryDisputesRequest {
179
180
  /** WQL expression. */
180
181
  query?: CursorQuery;
181
182
  }
182
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
183
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
183
184
  /** 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`. */
184
185
  cursorPaging?: CursorPaging;
185
186
  /**
@@ -199,11 +200,11 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
199
200
  sort?: Sorting[];
200
201
  }
201
202
  /** @oneof */
202
- interface CursorQueryPagingMethodOneOf {
203
+ export interface CursorQueryPagingMethodOneOf {
203
204
  /** 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`. */
204
205
  cursorPaging?: CursorPaging;
205
206
  }
206
- interface Sorting {
207
+ export interface Sorting {
207
208
  /**
208
209
  * Name of the field to sort by.
209
210
  * @maxLength 512
@@ -212,11 +213,11 @@ interface Sorting {
212
213
  /** Sort order. */
213
214
  order?: SortOrder;
214
215
  }
215
- declare enum SortOrder {
216
+ export declare enum SortOrder {
216
217
  ASC = "ASC",
217
218
  DESC = "DESC"
218
219
  }
219
- interface CursorPaging {
220
+ export interface CursorPaging {
220
221
  /**
221
222
  * Maximum number of items to return in the results.
222
223
  * @max 100
@@ -231,13 +232,13 @@ interface CursorPaging {
231
232
  */
232
233
  cursor?: string | null;
233
234
  }
234
- interface QueryDisputesResponse {
235
+ export interface QueryDisputesResponse {
235
236
  /** List of Disputes. */
236
237
  disputes?: Dispute[];
237
238
  /** Paging metadata */
238
239
  pagingMetadata?: CursorPagingMetadata;
239
240
  }
240
- interface CursorPagingMetadata {
241
+ export interface CursorPagingMetadata {
241
242
  /** Number of items returned in the response. */
242
243
  count?: number | null;
243
244
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -250,7 +251,7 @@ interface CursorPagingMetadata {
250
251
  */
251
252
  hasNext?: boolean | null;
252
253
  }
253
- interface Cursors {
254
+ export interface Cursors {
254
255
  /**
255
256
  * Cursor string pointing to the next page in the list of results.
256
257
  * @maxLength 16000
@@ -262,27 +263,27 @@ interface Cursors {
262
263
  */
263
264
  prev?: string | null;
264
265
  }
265
- interface GetDisputeActionsRequest {
266
+ export interface GetDisputeActionsRequest {
266
267
  /**
267
268
  * Dispute ID
268
269
  * @format GUID
269
270
  */
270
271
  disputeId: string;
271
272
  }
272
- interface GetDisputeActionsResponse {
273
+ export interface GetDisputeActionsResponse {
273
274
  /**
274
275
  * Dispute actions
275
276
  * @maxSize 20
276
277
  */
277
278
  actions?: DisputeAction[];
278
279
  }
279
- interface DisputeAction {
280
+ export interface DisputeAction {
280
281
  /** Dispute Action type */
281
282
  type?: DisputeActionType;
282
283
  /** The latest date and time until which the action can be performed */
283
284
  dueDate?: Date | null;
284
285
  }
285
- declare enum DisputeActionType {
286
+ export declare enum DisputeActionType {
286
287
  /** Unknown dispute status */
287
288
  UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
288
289
  /** Accept dispute */
@@ -290,29 +291,29 @@ declare enum DisputeActionType {
290
291
  /** Submit evidence */
291
292
  SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
292
293
  }
293
- interface AcceptDisputeRequest {
294
+ export interface AcceptDisputeRequest {
294
295
  /**
295
296
  * Dispute ID
296
297
  * @format GUID
297
298
  */
298
299
  disputeId: string;
299
300
  }
300
- interface AcceptDisputeResponse {
301
+ export interface AcceptDisputeResponse {
301
302
  /** Dispute */
302
303
  dispute?: Dispute;
303
304
  }
304
- interface SubmitDisputeEvidenceRequest {
305
+ export interface SubmitDisputeEvidenceRequest {
305
306
  /**
306
307
  * Dispute ID
307
308
  * @format GUID
308
309
  */
309
310
  disputeId: string;
310
311
  }
311
- interface SubmitDisputeEvidenceResponse {
312
+ export interface SubmitDisputeEvidenceResponse {
312
313
  /** Dispute */
313
314
  dispute?: Dispute;
314
315
  }
315
- interface CreateDisputeManuallyRequest {
316
+ export interface CreateDisputeManuallyRequest {
316
317
  /**
317
318
  * Dispute Id
318
319
  * @format GUID
@@ -367,9 +368,9 @@ interface CreateDisputeManuallyRequest {
367
368
  /** Is charge refundable */
368
369
  chargeRefundable?: boolean | null;
369
370
  }
370
- interface CreateDisputeManuallyResponse {
371
+ export interface CreateDisputeManuallyResponse {
371
372
  }
372
- interface ChangeDisputeStatusManuallyRequest {
373
+ export interface ChangeDisputeStatusManuallyRequest {
373
374
  /**
374
375
  * Dispute ID
375
376
  * @format GUID
@@ -380,9 +381,9 @@ interface ChangeDisputeStatusManuallyRequest {
380
381
  /** Dispute status based on provider dispute status */
381
382
  status?: DisputeStatus;
382
383
  }
383
- interface ChangeDisputeStatusManuallyResponse {
384
+ export interface ChangeDisputeStatusManuallyResponse {
384
385
  }
385
- interface BulkUpdateDisputeTagsRequest {
386
+ export interface BulkUpdateDisputeTagsRequest {
386
387
  /**
387
388
  * List of NileProtoTagsEntities that their tags will update.
388
389
  * @minSize 1
@@ -417,11 +418,11 @@ interface BulkUpdateDisputeTagsRequest {
417
418
  * }
418
419
  * }
419
420
  */
420
- interface Tags {
421
+ export interface Tags {
421
422
  /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
422
423
  tags?: TagsTagList;
423
424
  }
424
- interface TagsTagList {
425
+ export interface TagsTagList {
425
426
  /**
426
427
  * List of tag IDs
427
428
  * @maxSize 100
@@ -429,7 +430,7 @@ interface TagsTagList {
429
430
  */
430
431
  tagIds?: string[];
431
432
  }
432
- interface BulkUpdateDisputeTagsResponse {
433
+ export interface BulkUpdateDisputeTagsResponse {
433
434
  /**
434
435
  * Results
435
436
  * @minSize 1
@@ -439,7 +440,7 @@ interface BulkUpdateDisputeTagsResponse {
439
440
  /** Metadata regarding the bulk update operation */
440
441
  bulkActionMetadata?: BulkActionMetadata;
441
442
  }
442
- interface ItemMetadata {
443
+ export interface ItemMetadata {
443
444
  /**
444
445
  * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
445
446
  * @format GUID
@@ -452,7 +453,7 @@ interface ItemMetadata {
452
453
  /** Details about the error in case of failure. */
453
454
  error?: ApplicationError;
454
455
  }
455
- interface ApplicationError {
456
+ export interface ApplicationError {
456
457
  /** Error code. */
457
458
  code?: string;
458
459
  /** Description of the error. */
@@ -460,11 +461,11 @@ interface ApplicationError {
460
461
  /** Data related to the error. */
461
462
  data?: Record<string, any> | null;
462
463
  }
463
- interface BulkUpdateDisputeTagsResult {
464
+ export interface BulkUpdateDisputeTagsResult {
464
465
  /** Metadata regarding the specific single update operation */
465
466
  itemMetadata?: ItemMetadata;
466
467
  }
467
- interface BulkActionMetadata {
468
+ export interface BulkActionMetadata {
468
469
  /** Number of items that were successfully processed. */
469
470
  totalSuccesses?: number;
470
471
  /** Number of items that couldn't be processed. */
@@ -472,7 +473,7 @@ interface BulkActionMetadata {
472
473
  /** Number of failures without details because detailed failure threshold was exceeded. */
473
474
  undetailedFailures?: number;
474
475
  }
475
- interface BulkUpdateDisputeTagsByFilterRequest {
476
+ export interface BulkUpdateDisputeTagsByFilterRequest {
476
477
  /** Filter */
477
478
  filter: Record<string, any> | null;
478
479
  /** List of Tags to assign */
@@ -480,14 +481,14 @@ interface BulkUpdateDisputeTagsByFilterRequest {
480
481
  /** List of Tags to unAssign */
481
482
  unassignTags?: Tags;
482
483
  }
483
- interface BulkUpdateDisputeTagsByFilterResponse {
484
+ export interface BulkUpdateDisputeTagsByFilterResponse {
484
485
  /**
485
486
  * Job ID
486
487
  * @format GUID
487
488
  */
488
489
  jobId?: string;
489
490
  }
490
- interface DomainEvent extends DomainEventBodyOneOf {
491
+ export interface DomainEvent extends DomainEventBodyOneOf {
491
492
  createdEvent?: EntityCreatedEvent;
492
493
  updatedEvent?: EntityUpdatedEvent;
493
494
  deletedEvent?: EntityDeletedEvent;
@@ -530,19 +531,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
530
531
  entityEventSequence?: string | null;
531
532
  }
532
533
  /** @oneof */
533
- interface DomainEventBodyOneOf {
534
+ export interface DomainEventBodyOneOf {
534
535
  createdEvent?: EntityCreatedEvent;
535
536
  updatedEvent?: EntityUpdatedEvent;
536
537
  deletedEvent?: EntityDeletedEvent;
537
538
  actionEvent?: ActionEvent;
538
539
  }
539
- interface EntityCreatedEvent {
540
+ export interface EntityCreatedEvent {
540
541
  entity?: string;
541
542
  }
542
- interface RestoreInfo {
543
+ export interface RestoreInfo {
543
544
  deletedDate?: Date | null;
544
545
  }
545
- interface EntityUpdatedEvent {
546
+ export interface EntityUpdatedEvent {
546
547
  /**
547
548
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
548
549
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -550,14 +551,14 @@ interface EntityUpdatedEvent {
550
551
  */
551
552
  currentEntity?: string;
552
553
  }
553
- interface EntityDeletedEvent {
554
+ export interface EntityDeletedEvent {
554
555
  /** Entity that was deleted */
555
556
  deletedEntity?: string | null;
556
557
  }
557
- interface ActionEvent {
558
+ export interface ActionEvent {
558
559
  body?: string;
559
560
  }
560
- interface MessageEnvelope {
561
+ export interface MessageEnvelope {
561
562
  /**
562
563
  * App instance ID.
563
564
  * @format GUID
@@ -573,7 +574,7 @@ interface MessageEnvelope {
573
574
  /** Stringify payload. */
574
575
  data?: string;
575
576
  }
576
- interface IdentificationData extends IdentificationDataIdOneOf {
577
+ export interface IdentificationData extends IdentificationDataIdOneOf {
577
578
  /**
578
579
  * ID of a site visitor that has not logged in to the site.
579
580
  * @format GUID
@@ -598,7 +599,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
598
599
  identityType?: WebhookIdentityType;
599
600
  }
600
601
  /** @oneof */
601
- interface IdentificationDataIdOneOf {
602
+ export interface IdentificationDataIdOneOf {
602
603
  /**
603
604
  * ID of a site visitor that has not logged in to the site.
604
605
  * @format GUID
@@ -620,13 +621,33 @@ interface IdentificationDataIdOneOf {
620
621
  */
621
622
  appId?: string;
622
623
  }
623
- declare enum WebhookIdentityType {
624
+ export declare enum WebhookIdentityType {
624
625
  UNKNOWN = "UNKNOWN",
625
626
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
626
627
  MEMBER = "MEMBER",
627
628
  WIX_USER = "WIX_USER",
628
629
  APP = "APP"
629
630
  }
631
+ type DisputeNonNullablePaths = `_id` | `chargeId` | `providerDisputeId` | `stage` | `reason` | `status` | `sellerProtection` | `channel` | `tags.tags.tagIds`;
632
+ /**
633
+ * Get Dispute by ID
634
+ * @param disputeId - ID of the Dispute to retrieve.
635
+ * @internal
636
+ * @documentationMaturity preview
637
+ * @requiredField disputeId
638
+ * @permissionId PAYMENTS.DISPUTE_READ
639
+ * @returns The requested Dispute.
640
+ * @fqn wix.payments.disputes.v1.DisputeService.GetDispute
641
+ */
642
+ export declare function getDispute(disputeId: string): Promise<NonNullablePaths<Dispute, DisputeNonNullablePaths>>;
643
+ /**
644
+ * Retrieves a list of Disputes
645
+ * @internal
646
+ * @documentationMaturity preview
647
+ * @permissionId PAYMENTS.DISPUTE_READ
648
+ * @fqn wix.payments.disputes.v1.DisputeService.QueryDisputes
649
+ */
650
+ export declare function queryDisputes(): DisputesQueryBuilder;
630
651
  interface QueryCursorResult {
631
652
  cursors: Cursors;
632
653
  hasNext: () => boolean;
@@ -634,13 +655,13 @@ interface QueryCursorResult {
634
655
  length: number;
635
656
  pageSize: number;
636
657
  }
637
- interface DisputesQueryResult extends QueryCursorResult {
658
+ export interface DisputesQueryResult extends QueryCursorResult {
638
659
  items: Dispute[];
639
660
  query: DisputesQueryBuilder;
640
661
  next: () => Promise<DisputesQueryResult>;
641
662
  prev: () => Promise<DisputesQueryResult>;
642
663
  }
643
- interface DisputesQueryBuilder {
664
+ export interface DisputesQueryBuilder {
644
665
  /** @param propertyName - Property whose value is compared with `value`.
645
666
  * @param value - Value to compare against.
646
667
  * @documentationMaturity preview
@@ -704,17 +725,73 @@ interface DisputesQueryBuilder {
704
725
  /** @documentationMaturity preview */
705
726
  find: () => Promise<DisputesQueryResult>;
706
727
  }
707
- interface BulkUpdateDisputeTagsOptions {
728
+ /**
729
+ * Get Dispute Actions
730
+ * @param disputeId - Dispute ID
731
+ * @internal
732
+ * @documentationMaturity preview
733
+ * @requiredField disputeId
734
+ * @permissionId PAYMENTS.DISPUTE_GET_ACTIONS
735
+ * @fqn wix.payments.disputes.v1.DisputeService.GetDisputeActions
736
+ */
737
+ export declare function getDisputeActions(disputeId: string): Promise<NonNullablePaths<GetDisputeActionsResponse, `actions` | `actions.${number}.type`>>;
738
+ /**
739
+ * Dispute Accept
740
+ * @param disputeId - Dispute ID
741
+ * @internal
742
+ * @documentationMaturity preview
743
+ * @requiredField disputeId
744
+ * @permissionId PAYMENTS.DISPUTE_ACCEPT
745
+ * @fqn wix.payments.disputes.v1.DisputeService.AcceptDispute
746
+ */
747
+ export declare function acceptDispute(disputeId: string): Promise<NonNullablePaths<AcceptDisputeResponse, {
748
+ [P in DisputeNonNullablePaths]: `dispute.${P}`;
749
+ }[DisputeNonNullablePaths]>>;
750
+ /**
751
+ * Dispute Submit Evidence
752
+ * @param disputeId - Dispute ID
753
+ * @internal
754
+ * @documentationMaturity preview
755
+ * @requiredField disputeId
756
+ * @permissionId PAYMENTS.DISPUTE_SUBMIT_EVIDENCE
757
+ * @fqn wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence
758
+ */
759
+ export declare function submitDisputeEvidence(disputeId: string): Promise<NonNullablePaths<SubmitDisputeEvidenceResponse, {
760
+ [P in DisputeNonNullablePaths]: `dispute.${P}`;
761
+ }[DisputeNonNullablePaths]>>;
762
+ /**
763
+ * Synchronously update tags on multiple Disputes, by list of Disputes ids
764
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
765
+ * @param ids - List of NileProtoTagsEntities that their tags will update.
766
+ * @internal
767
+ * @documentationMaturity preview
768
+ * @requiredField ids
769
+ * @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS
770
+ * @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags
771
+ */
772
+ export declare function bulkUpdateDisputeTags(ids: string[], options?: BulkUpdateDisputeTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeTagsResponse, `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`>>;
773
+ export interface BulkUpdateDisputeTagsOptions {
708
774
  /** List of Tags to assign */
709
775
  assignTags?: Tags;
710
776
  /** List of Tags to unAssign */
711
777
  unassignTags?: Tags;
712
778
  }
713
- interface BulkUpdateDisputeTagsByFilterOptions {
779
+ /**
780
+ * Asynchronously update tags on multiple Disputes, by provided filter
781
+ * An empty filter will update all Disputes
782
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
783
+ * @param filter - Filter
784
+ * @internal
785
+ * @documentationMaturity preview
786
+ * @requiredField filter
787
+ * @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS
788
+ * @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter
789
+ */
790
+ export declare function bulkUpdateDisputeTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDisputeTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeTagsByFilterResponse, `jobId`>>;
791
+ export interface BulkUpdateDisputeTagsByFilterOptions {
714
792
  /** List of Tags to assign */
715
793
  assignTags?: Tags;
716
794
  /** List of Tags to unAssign */
717
795
  unassignTags?: Tags;
718
796
  }
719
-
720
- export { type MessageEnvelope as $, type AcceptDisputeResponse as A, type BulkUpdateDisputeTagsOptions as B, type CursorQuery as C, type Dispute as D, type ExtendedFields as E, type ChangeDisputeStatusManuallyResponse as F, type GetDisputeActionsResponse as G, type BulkUpdateDisputeTagsRequest as H, type Tags as I, type TagsTagList as J, type ItemMetadata as K, type ApplicationError as L, type BulkUpdateDisputeTagsResult as M, type BulkActionMetadata as N, type BulkUpdateDisputeTagsByFilterRequest as O, type PublicTags as P, type QueryDisputesRequest as Q, type DomainEvent as R, type SubmitDisputeEvidenceResponse as S, type TagList as T, type DomainEventBodyOneOf as U, type EntityCreatedEvent as V, WebhookIdentityType as W, type RestoreInfo as X, type EntityUpdatedEvent as Y, type EntityDeletedEvent as Z, type ActionEvent as _, type DisputesQueryBuilder as a, type IdentificationData as a0, type IdentificationDataIdOneOf as a1, type DisputesQueryResult as a2, type BulkUpdateDisputeTagsResponse as b, type BulkUpdateDisputeTagsByFilterOptions as c, type BulkUpdateDisputeTagsByFilterResponse as d, DisputeStage as e, DisputeReason as f, DisputeStatus as g, SellerProtection as h, DisputeChannel as i, SortOrder as j, DisputeActionType as k, type GetDisputeRequest as l, type GetDisputeResponse as m, type CursorQueryPagingMethodOneOf as n, type Sorting as o, type CursorPaging as p, type QueryDisputesResponse as q, type CursorPagingMetadata as r, type Cursors as s, type GetDisputeActionsRequest as t, type DisputeAction as u, type AcceptDisputeRequest as v, type SubmitDisputeEvidenceRequest as w, type CreateDisputeManuallyRequest as x, type CreateDisputeManuallyResponse as y, type ChangeDisputeStatusManuallyRequest as z };
797
+ export {};