@wix/auto_sdk_payments_disputes 1.0.10 → 1.0.12

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 (132) 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/package.json +3 -0
  38. package/build/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +2 -0
  39. package/build/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
  40. package/build/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
  41. package/build/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
  42. package/build/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
  43. package/build/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
  44. package/build/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
  45. package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
  46. package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
  47. package/build/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +4 -0
  48. package/build/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
  49. package/build/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
  50. package/build/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
  51. package/build/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
  52. package/build/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
  53. package/build/{index.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +58 -59
  54. package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
  55. package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
  66. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js +29 -0
  67. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
  68. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
  69. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js +217 -0
  70. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
  71. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
  72. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +161 -0
  73. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
  74. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
  75. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js +64 -0
  76. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
  77. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
  78. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js +94 -0
  79. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
  80. package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.mts → cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
  81. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +386 -0
  82. package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
  93. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
  94. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
  95. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
  96. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
  97. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
  98. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
  99. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
  100. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
  101. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
  102. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
  103. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
  104. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
  105. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
  106. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
  107. package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
  108. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
  109. package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
  110. package/package.json +13 -14
  111. package/build/index.js +0 -588
  112. package/build/index.js.map +0 -1
  113. package/build/index.mjs +0 -550
  114. package/build/index.mjs.map +0 -1
  115. package/build/internal/index.d.mts +0 -87
  116. package/build/internal/index.d.ts +0 -87
  117. package/build/internal/index.js +0 -588
  118. package/build/internal/index.js.map +0 -1
  119. package/build/internal/index.mjs +0 -550
  120. package/build/internal/index.mjs.map +0 -1
  121. package/build/internal/meta.d.mts +0 -449
  122. package/build/internal/meta.d.ts +0 -449
  123. package/build/internal/meta.js +0 -366
  124. package/build/internal/meta.js.map +0 -1
  125. package/build/internal/meta.mjs +0 -333
  126. package/build/internal/meta.mjs.map +0 -1
  127. package/build/meta.d.mts +0 -449
  128. package/build/meta.d.ts +0 -449
  129. package/build/meta.js +0 -366
  130. package/build/meta.js.map +0 -1
  131. package/build/meta.mjs +0 -333
  132. package/build/meta.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments-disputes-v1-dispute-disputes.public.js","sourceRoot":"","sources":["../../../src/payments-disputes-v1-dispute-disputes.public.ts"],"names":[],"mappings":";;;AACA,6HAiB8D;AAEjD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,gBAAgB;AAChB,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,+DAAmB,EACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;AAWD,gBAAgB;AAChB,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,IAAA,kEAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,sCAMC;AASD,gBAAgB;AAChB,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,sEAA0B,EACxB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,8CASC;AAUD,gBAAgB;AAChB,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,kEAAsB,EACpB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAUD,gBAAgB;AAChB,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,0EAA8B,EAC5B,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sDASC;AAUD,gBAAgB;AAChB,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,GAAa,EAAE,OAAsC,EAAE,EAAE,CAC/D,IAAA,0EAA8B,EAC5B,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,sDAUC;AAcD,gBAAgB;AAChB,SAAgB,6BAA6B,CAC3C,UAAsB;IAEtB,OAAO,CACL,MAA2B,EAC3B,OAA8C,EAC9C,EAAE,CACF,IAAA,kFAAsC,EACpC,MAAM,EACN,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,sEAaC;AAeD,2HA0D8D;AAlC5D,uJAAA,iBAAiB,OAAA;AACjB,oJAAA,cAAc,OAAA;AACd,mJAAA,aAAa,OAAA;AACb,kJAAA,YAAY,OAAA;AACZ,mJAAA,aAAa,OAAA;AAqBb,sJAAA,gBAAgB,OAAA;AAChB,+IAAA,SAAS,OAAA;AAOT,yJAAA,mBAAmB,OAAA"}
@@ -0,0 +1,631 @@
1
+ /** 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
+ export interface Dispute {
3
+ /**
4
+ * Dispute ID
5
+ * @format GUID
6
+ * @immutable
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Charge ID
11
+ * @format GUID
12
+ * @immutable
13
+ */
14
+ chargeId?: string;
15
+ /**
16
+ * Provider Dispute ID
17
+ * @format GUID
18
+ * @immutable
19
+ */
20
+ providerDisputeId?: string;
21
+ /** Dispute stage */
22
+ stage?: DisputeStage;
23
+ /** Dispute reason */
24
+ reason?: DisputeReason;
25
+ /**
26
+ * Dispute currency. Should be the same as the charge currency.
27
+ * @immutable
28
+ * @format CURRENCY
29
+ */
30
+ currencyCode?: string | null;
31
+ /**
32
+ * Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`.
33
+ * @immutable
34
+ * @decimalValue options { gt:0, maxScale:8 }
35
+ */
36
+ amount?: string | null;
37
+ /** Dispute status based on provider dispute status */
38
+ status?: DisputeStatus;
39
+ /** True if the merchant can do the refund with the opened dispute, false otherwise */
40
+ chargeRefundable?: boolean | null;
41
+ /** Seller protection */
42
+ sellerProtection?: SellerProtection;
43
+ /**
44
+ * Dispute Channel
45
+ * Internal - this dispute is created on provider side
46
+ * External - this dispute is created on bank side
47
+ */
48
+ channel?: DisputeChannel;
49
+ /** The latest date and time until which the dispute can remain in its current status */
50
+ dueDate?: Date | null;
51
+ /**
52
+ * Network reason code
53
+ * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=visa
54
+ * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=mastercard
55
+ * https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=amex
56
+ * @minLength 1
57
+ * @maxLength 64
58
+ */
59
+ networkReasonCode?: string | null;
60
+ /**
61
+ * The dispute created date
62
+ * @readonly
63
+ * @immutable
64
+ */
65
+ createdDate?: Date | null;
66
+ /**
67
+ * The dispute updated date
68
+ * @readonly
69
+ */
70
+ updatedDate?: Date | null;
71
+ /**
72
+ * Revision number, which increments by 1 each time the Dispute is updated.
73
+ * @readonly
74
+ */
75
+ revision?: string | null;
76
+ /** Data Extensions */
77
+ extendedFields?: ExtendedFields;
78
+ /** Tags */
79
+ tags?: PublicTags;
80
+ }
81
+ export declare enum DisputeStage {
82
+ UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
83
+ /** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
84
+ NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
85
+ /** Request for Information / Inquiry */
86
+ RFI = "RFI",
87
+ /** Chargeback */
88
+ CHARGEBACK = "CHARGEBACK"
89
+ }
90
+ export declare enum DisputeReason {
91
+ /** Unknown reason */
92
+ UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
93
+ /** Fraud card */
94
+ FRAUD_CARD_PRESENT = "FRAUD_CARD_PRESENT",
95
+ /** Card absent */
96
+ FRAUD_CARD_ABSENT = "FRAUD_CARD_ABSENT",
97
+ /** DUPLICATE */
98
+ DUPLICATE_PROCESSING = "DUPLICATE_PROCESSING",
99
+ /** Service not provided */
100
+ SERVICES_NOT_PROVIDED = "SERVICES_NOT_PROVIDED",
101
+ /** Canceled Recurring */
102
+ CANCELED_RECURRING = "CANCELED_RECURRING",
103
+ /** Item not as describe */
104
+ NOT_AS_DESCRIBED = "NOT_AS_DESCRIBED",
105
+ /** Counterfeit */
106
+ COUNTERFEIT = "COUNTERFEIT",
107
+ /** Misrepresentation */
108
+ MISREPRESENTATION = "MISREPRESENTATION",
109
+ /** Canceled */
110
+ CANCELED = "CANCELED",
111
+ /** Other reason */
112
+ OTHER = "OTHER"
113
+ }
114
+ export declare enum DisputeStatus {
115
+ /** Unknown status */
116
+ UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
117
+ /** Waiting for some merchant action */
118
+ WAITING_MERCHANT = "WAITING_MERCHANT",
119
+ /** Dispute is under review by PSP (internal channel) or Bank (external channel) */
120
+ UNDER_REVIEW = "UNDER_REVIEW",
121
+ /** Waiting for some buyer action */
122
+ WAITING_BUYER = "WAITING_BUYER",
123
+ /** Dispute won */
124
+ WON = "WON",
125
+ /** Dispute lost */
126
+ LOST = "LOST"
127
+ }
128
+ export declare enum SellerProtection {
129
+ UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
130
+ /** Not Eligible */
131
+ NOT_ELIGIBLE = "NOT_ELIGIBLE",
132
+ /** Eligible */
133
+ ELIGIBLE = "ELIGIBLE",
134
+ /** Extended seller protection */
135
+ EXTENDED = "EXTENDED"
136
+ }
137
+ export declare enum DisputeChannel {
138
+ UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
139
+ /** Internal, the dispute is reviewed by PSP */
140
+ INTERNAL = "INTERNAL",
141
+ /** External, the dispute is reviewed by bank (or other financial institution) */
142
+ EXTERNAL = "EXTERNAL"
143
+ }
144
+ export interface ExtendedFields {
145
+ /**
146
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
147
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
148
+ *
149
+ * You can only access fields for which you have the appropriate permissions.
150
+ *
151
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
152
+ */
153
+ namespaces?: Record<string, Record<string, any>>;
154
+ }
155
+ export interface PublicTags {
156
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
157
+ tags?: TagList;
158
+ }
159
+ export interface TagList {
160
+ /**
161
+ * List of tag IDs
162
+ * @maxSize 100
163
+ * @maxLength 5
164
+ */
165
+ tagIds?: string[];
166
+ }
167
+ export interface GetDisputeRequest {
168
+ /**
169
+ * ID of the Dispute to retrieve.
170
+ * @format GUID
171
+ */
172
+ disputeId: string;
173
+ }
174
+ export interface GetDisputeResponse {
175
+ /** The requested Dispute. */
176
+ dispute?: Dispute;
177
+ }
178
+ export interface QueryDisputesRequest {
179
+ /** WQL expression. */
180
+ query?: CursorQuery;
181
+ }
182
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
183
+ /** 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
+ cursorPaging?: CursorPaging;
185
+ /**
186
+ * Filter object in the following format:
187
+ * `"filter" : {
188
+ * "fieldName1": "value1",
189
+ * "fieldName2":{"$operator":"value2"}
190
+ * }`
191
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
192
+ */
193
+ filter?: Record<string, any> | null;
194
+ /**
195
+ * Sort object in the following format:
196
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
197
+ * @maxSize 5
198
+ */
199
+ sort?: Sorting[];
200
+ }
201
+ /** @oneof */
202
+ export interface CursorQueryPagingMethodOneOf {
203
+ /** 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
+ cursorPaging?: CursorPaging;
205
+ }
206
+ export interface Sorting {
207
+ /**
208
+ * Name of the field to sort by.
209
+ * @maxLength 512
210
+ */
211
+ fieldName?: string;
212
+ /** Sort order. */
213
+ order?: SortOrder;
214
+ }
215
+ export declare enum SortOrder {
216
+ ASC = "ASC",
217
+ DESC = "DESC"
218
+ }
219
+ export interface CursorPaging {
220
+ /**
221
+ * Maximum number of items to return in the results.
222
+ * @max 100
223
+ */
224
+ limit?: number | null;
225
+ /**
226
+ * Pointer to the next or previous page in the list of results.
227
+ *
228
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
229
+ * Not relevant for the first request.
230
+ * @maxLength 16000
231
+ */
232
+ cursor?: string | null;
233
+ }
234
+ export interface QueryDisputesResponse {
235
+ /** List of Disputes. */
236
+ disputes?: Dispute[];
237
+ /** Paging metadata */
238
+ pagingMetadata?: CursorPagingMetadata;
239
+ }
240
+ export interface CursorPagingMetadata {
241
+ /** Number of items returned in the response. */
242
+ count?: number | null;
243
+ /** Cursor strings that point to the next page, previous page, or both. */
244
+ cursors?: Cursors;
245
+ /**
246
+ * Whether there are more pages to retrieve following the current page.
247
+ *
248
+ * + `true`: Another page of results can be retrieved.
249
+ * + `false`: This is the last page.
250
+ */
251
+ hasNext?: boolean | null;
252
+ }
253
+ export interface Cursors {
254
+ /**
255
+ * Cursor string pointing to the next page in the list of results.
256
+ * @maxLength 16000
257
+ */
258
+ next?: string | null;
259
+ /**
260
+ * Cursor pointing to the previous page in the list of results.
261
+ * @maxLength 16000
262
+ */
263
+ prev?: string | null;
264
+ }
265
+ export interface GetDisputeActionsRequest {
266
+ /**
267
+ * Dispute ID
268
+ * @format GUID
269
+ */
270
+ disputeId: string;
271
+ }
272
+ export interface GetDisputeActionsResponse {
273
+ /**
274
+ * Dispute actions
275
+ * @maxSize 20
276
+ */
277
+ actions?: DisputeAction[];
278
+ }
279
+ export interface DisputeAction {
280
+ /** Dispute Action type */
281
+ type?: DisputeActionType;
282
+ /** The latest date and time until which the action can be performed */
283
+ dueDate?: Date | null;
284
+ }
285
+ export declare enum DisputeActionType {
286
+ /** Unknown dispute status */
287
+ UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
288
+ /** Accept dispute */
289
+ ACCEPT = "ACCEPT",
290
+ /** Submit evidence */
291
+ SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
292
+ }
293
+ export interface AcceptDisputeRequest {
294
+ /**
295
+ * Dispute ID
296
+ * @format GUID
297
+ */
298
+ disputeId: string;
299
+ }
300
+ export interface AcceptDisputeResponse {
301
+ /** Dispute */
302
+ dispute?: Dispute;
303
+ }
304
+ export interface SubmitDisputeEvidenceRequest {
305
+ /**
306
+ * Dispute ID
307
+ * @format GUID
308
+ */
309
+ disputeId: string;
310
+ }
311
+ export interface SubmitDisputeEvidenceResponse {
312
+ /** Dispute */
313
+ dispute?: Dispute;
314
+ }
315
+ export interface CreateDisputeManuallyRequest {
316
+ /**
317
+ * Dispute Id
318
+ * @format GUID
319
+ */
320
+ disputeId?: string;
321
+ /**
322
+ * Charge Id
323
+ * @format GUID
324
+ */
325
+ chargeId?: string;
326
+ /** Open date */
327
+ openDate?: Date | null;
328
+ /**
329
+ * Provider Dispute Id
330
+ * @minLength 1
331
+ * @maxLength 100
332
+ */
333
+ providerDisputeId?: string;
334
+ /** Dispute stage */
335
+ stage?: DisputeStage;
336
+ /** Dispute reason */
337
+ reason?: DisputeReason;
338
+ /** Dispute status based on provider dispute status */
339
+ status?: DisputeStatus;
340
+ dueDate?: Date | null;
341
+ /**
342
+ * Dispute currency. Should be the same as the charge currency.
343
+ * @immutable
344
+ * @format CURRENCY
345
+ */
346
+ currencyCode?: string | null;
347
+ /**
348
+ * Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`.
349
+ * @immutable
350
+ * @decimalValue options { gt:0, maxScale:8 }
351
+ */
352
+ amount?: string | null;
353
+ /**
354
+ * Network reason code
355
+ * @minLength 1
356
+ * @maxLength 64
357
+ */
358
+ networkReasonCode?: string | null;
359
+ /** External or Internal */
360
+ external?: boolean | null;
361
+ /**
362
+ * Seller protection
363
+ * @minLength 1
364
+ * @maxLength 64
365
+ */
366
+ sellerProtection?: string | null;
367
+ /** Is charge refundable */
368
+ chargeRefundable?: boolean | null;
369
+ }
370
+ export interface CreateDisputeManuallyResponse {
371
+ }
372
+ export interface ChangeDisputeStatusManuallyRequest {
373
+ /**
374
+ * Dispute ID
375
+ * @format GUID
376
+ */
377
+ disputeId?: string;
378
+ /** Changed date */
379
+ changedDate?: Date | null;
380
+ /** Dispute status based on provider dispute status */
381
+ status?: DisputeStatus;
382
+ }
383
+ export interface ChangeDisputeStatusManuallyResponse {
384
+ }
385
+ export interface BulkUpdateDisputeTagsRequest {
386
+ /**
387
+ * List of NileProtoTagsEntities that their tags will update.
388
+ * @minSize 1
389
+ * @maxSize 100
390
+ * @format GUID
391
+ */
392
+ ids: string[];
393
+ /** List of Tags to assign */
394
+ assignTags?: Tags;
395
+ /** List of Tags to unAssign */
396
+ unassignTags?: Tags;
397
+ }
398
+ /**
399
+ * Common object for tags.
400
+ * Should be use as in this example:
401
+ * message Foo {
402
+ * string id = 1;
403
+ * ...
404
+ * Tags tags = 5
405
+ * }
406
+ *
407
+ * example of taggable entity
408
+ * {
409
+ * id: "123"
410
+ * tags: {
411
+ * tags: {
412
+ * tag_ids:["11","22"]
413
+ * },
414
+ * private_tags: {
415
+ * tag_ids: ["33", "44"]
416
+ * }
417
+ * }
418
+ * }
419
+ */
420
+ export interface Tags {
421
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
422
+ tags?: TagsTagList;
423
+ }
424
+ export interface TagsTagList {
425
+ /**
426
+ * List of tag IDs
427
+ * @maxSize 100
428
+ * @maxLength 5
429
+ */
430
+ tagIds?: string[];
431
+ }
432
+ export interface BulkUpdateDisputeTagsResponse {
433
+ /**
434
+ * Results
435
+ * @minSize 1
436
+ * @maxSize 100
437
+ */
438
+ results?: BulkUpdateDisputeTagsResult[];
439
+ /** Metadata regarding the bulk update operation */
440
+ bulkActionMetadata?: BulkActionMetadata;
441
+ }
442
+ export interface ItemMetadata {
443
+ /**
444
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
445
+ * @format GUID
446
+ */
447
+ id?: string | null;
448
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
449
+ originalIndex?: number;
450
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
451
+ success?: boolean;
452
+ /** Details about the error in case of failure. */
453
+ error?: ApplicationError;
454
+ }
455
+ export interface ApplicationError {
456
+ /** Error code. */
457
+ code?: string;
458
+ /** Description of the error. */
459
+ description?: string;
460
+ /** Data related to the error. */
461
+ data?: Record<string, any> | null;
462
+ }
463
+ export interface BulkUpdateDisputeTagsResult {
464
+ /** Metadata regarding the specific single update operation */
465
+ itemMetadata?: ItemMetadata;
466
+ }
467
+ export interface BulkActionMetadata {
468
+ /** Number of items that were successfully processed. */
469
+ totalSuccesses?: number;
470
+ /** Number of items that couldn't be processed. */
471
+ totalFailures?: number;
472
+ /** Number of failures without details because detailed failure threshold was exceeded. */
473
+ undetailedFailures?: number;
474
+ }
475
+ export interface BulkUpdateDisputeTagsByFilterRequest {
476
+ /** Filter */
477
+ filter: Record<string, any> | null;
478
+ /** List of Tags to assign */
479
+ assignTags?: Tags;
480
+ /** List of Tags to unAssign */
481
+ unassignTags?: Tags;
482
+ }
483
+ export interface BulkUpdateDisputeTagsByFilterResponse {
484
+ /**
485
+ * Job ID
486
+ * @format GUID
487
+ */
488
+ jobId?: string;
489
+ }
490
+ export interface DomainEvent extends DomainEventBodyOneOf {
491
+ createdEvent?: EntityCreatedEvent;
492
+ updatedEvent?: EntityUpdatedEvent;
493
+ deletedEvent?: EntityDeletedEvent;
494
+ actionEvent?: ActionEvent;
495
+ /**
496
+ * Unique event ID.
497
+ * Allows clients to ignore duplicate webhooks.
498
+ */
499
+ id?: string;
500
+ /**
501
+ * Assumes actions are also always typed to an entity_type
502
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
503
+ */
504
+ entityFqdn?: string;
505
+ /**
506
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
507
+ * This is although the created/updated/deleted notion is duplication of the oneof types
508
+ * Example: created/updated/deleted/started/completed/email_opened
509
+ */
510
+ slug?: string;
511
+ /** ID of the entity associated with the event. */
512
+ entityId?: string;
513
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
514
+ eventTime?: Date | null;
515
+ /**
516
+ * Whether the event was triggered as a result of a privacy regulation application
517
+ * (for example, GDPR).
518
+ */
519
+ triggeredByAnonymizeRequest?: boolean | null;
520
+ /** If present, indicates the action that triggered the event. */
521
+ originatedFrom?: string | null;
522
+ /**
523
+ * A sequence number defining the order of updates to the underlying entity.
524
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
525
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
526
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
527
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
528
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
529
+ */
530
+ entityEventSequence?: string | null;
531
+ }
532
+ /** @oneof */
533
+ export interface DomainEventBodyOneOf {
534
+ createdEvent?: EntityCreatedEvent;
535
+ updatedEvent?: EntityUpdatedEvent;
536
+ deletedEvent?: EntityDeletedEvent;
537
+ actionEvent?: ActionEvent;
538
+ }
539
+ export interface EntityCreatedEvent {
540
+ entityAsJson?: string;
541
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
542
+ restoreInfo?: RestoreInfo;
543
+ }
544
+ export interface RestoreInfo {
545
+ deletedDate?: Date | null;
546
+ }
547
+ export interface EntityUpdatedEvent {
548
+ /**
549
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
550
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
551
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
552
+ */
553
+ currentEntityAsJson?: string;
554
+ }
555
+ export interface EntityDeletedEvent {
556
+ /** Entity that was deleted */
557
+ deletedEntityAsJson?: string | null;
558
+ }
559
+ export interface ActionEvent {
560
+ bodyAsJson?: string;
561
+ }
562
+ export interface MessageEnvelope {
563
+ /**
564
+ * App instance ID.
565
+ * @format GUID
566
+ */
567
+ instanceId?: string | null;
568
+ /**
569
+ * Event type.
570
+ * @maxLength 150
571
+ */
572
+ eventType?: string;
573
+ /** The identification type and identity data. */
574
+ identity?: IdentificationData;
575
+ /** Stringify payload. */
576
+ data?: string;
577
+ }
578
+ export interface IdentificationData extends IdentificationDataIdOneOf {
579
+ /**
580
+ * ID of a site visitor that has not logged in to the site.
581
+ * @format GUID
582
+ */
583
+ anonymousVisitorId?: string;
584
+ /**
585
+ * ID of a site visitor that has logged in to the site.
586
+ * @format GUID
587
+ */
588
+ memberId?: string;
589
+ /**
590
+ * ID of a Wix user (site owner, contributor, etc.).
591
+ * @format GUID
592
+ */
593
+ wixUserId?: string;
594
+ /**
595
+ * ID of an app.
596
+ * @format GUID
597
+ */
598
+ appId?: string;
599
+ /** @readonly */
600
+ identityType?: WebhookIdentityType;
601
+ }
602
+ /** @oneof */
603
+ export interface IdentificationDataIdOneOf {
604
+ /**
605
+ * ID of a site visitor that has not logged in to the site.
606
+ * @format GUID
607
+ */
608
+ anonymousVisitorId?: string;
609
+ /**
610
+ * ID of a site visitor that has logged in to the site.
611
+ * @format GUID
612
+ */
613
+ memberId?: string;
614
+ /**
615
+ * ID of a Wix user (site owner, contributor, etc.).
616
+ * @format GUID
617
+ */
618
+ wixUserId?: string;
619
+ /**
620
+ * ID of an app.
621
+ * @format GUID
622
+ */
623
+ appId?: string;
624
+ }
625
+ export declare enum WebhookIdentityType {
626
+ UNKNOWN = "UNKNOWN",
627
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
628
+ MEMBER = "MEMBER",
629
+ WIX_USER = "WIX_USER",
630
+ APP = "APP"
631
+ }