@wix/auto_sdk_ecom_order-transactions 1.0.11 → 1.0.13

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 (134) 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/ecom-v1-order-transactions-order-transactions.context.d.ts +9 -0
  11. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.context.js +41 -0
  12. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  14. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.http.js +466 -0
  15. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  17. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js +161 -0
  18. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.public.d.ts +63 -0
  20. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.public.js +76 -0
  21. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  22. package/build/{ecom-v1-order-transactions-order-transactions.universal-DgIVKgiJ.d.mts → cjs/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -221
  23. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.types.js +303 -0
  24. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2537 -0
  26. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.universal.js +681 -0
  27. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.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/ecom-v1-order-transactions-order-transactions.context.d.ts +9 -0
  39. package/build/es/src/ecom-v1-order-transactions-order-transactions.context.js +13 -0
  40. package/build/es/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  42. package/build/es/src/ecom-v1-order-transactions-order-transactions.http.js +456 -0
  43. package/build/es/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  45. package/build/es/src/ecom-v1-order-transactions-order-transactions.meta.js +128 -0
  46. package/build/es/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-order-transactions-order-transactions.public.d.ts +63 -0
  48. package/build/es/src/ecom-v1-order-transactions-order-transactions.public.js +41 -0
  49. package/build/es/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  50. package/build/{ecom-v1-order-transactions-order-transactions.universal-DgIVKgiJ.d.ts → es/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -221
  51. package/build/es/src/ecom-v1-order-transactions-order-transactions.types.js +300 -0
  52. package/build/es/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2537 -0
  54. package/build/es/src/ecom-v1-order-transactions-order-transactions.universal.js +648 -0
  55. package/build/es/src/ecom-v1-order-transactions-order-transactions.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/ecom-v1-order-transactions-order-transactions.context.d.ts +13 -0
  66. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.context.js +41 -0
  67. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  69. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.http.js +466 -0
  70. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  72. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js +161 -0
  73. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.public.d.ts +108 -0
  75. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.public.js +76 -0
  76. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  77. package/build/internal/{ecom-v1-order-transactions-order-transactions.universal-CQewkK3E.d.mts → cjs/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -305
  78. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.types.js +303 -0
  79. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2684 -0
  81. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.universal.js +681 -0
  82. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.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/ecom-v1-order-transactions-order-transactions.context.d.ts +13 -0
  93. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.context.js +13 -0
  94. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  96. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.http.js +456 -0
  97. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  99. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.meta.js +128 -0
  100. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.public.d.ts +108 -0
  102. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.public.js +41 -0
  103. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  104. package/build/internal/{ecom-v1-order-transactions-order-transactions.universal-CQewkK3E.d.ts → es/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -305
  105. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.types.js +300 -0
  106. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2684 -0
  108. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.universal.js +648 -0
  109. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -69
  112. package/build/index.d.ts +0 -69
  113. package/build/index.js +0 -942
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -887
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -118
  118. package/build/internal/index.d.ts +0 -118
  119. package/build/internal/index.js +0 -942
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -887
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -602
  124. package/build/internal/meta.d.ts +0 -602
  125. package/build/internal/meta.js +0 -566
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -533
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -602
  130. package/build/meta.d.ts +0 -602
  131. package/build/meta.js +0 -566
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -533
  134. package/build/meta.mjs.map +0 -1
package/build/meta.d.mts DELETED
@@ -1,602 +0,0 @@
1
- import { aX as ListTransactionsForSingleOrderRequest$1, L as ListTransactionsForSingleOrderResponse$1, aY as ListTransactionsForMultipleOrdersRequest$1, a as ListTransactionsForMultipleOrdersResponse$1, aZ as AddPaymentsRequest$1, A as AddPaymentsResponse$1, b0 as UpdatePaymentStatusRequest$1, c as UpdatePaymentStatusResponse$1, b1 as BulkUpdatePaymentStatusesRequest$1, e as BulkUpdatePaymentStatusesResponse$1, b8 as UpdateRefundTransactionRequest$1, b9 as UpdateRefundTransactionResponse$1, ba as UpdatePaymentsRequest$1, bc as UpdatePaymentsResponse$1 } from './ecom-v1-order-transactions-order-transactions.universal-DgIVKgiJ.mjs';
2
-
3
- interface OrderTransactions {
4
- /**
5
- * Order ID.
6
- * @format GUID
7
- */
8
- orderId?: string;
9
- /**
10
- * Record of payments made to the merchant.
11
- * @maxSize 100
12
- */
13
- payments?: Payment[];
14
- /**
15
- * Record of refunds made to the buyer.
16
- * @maxSize 300
17
- */
18
- refunds?: Refund[];
19
- }
20
- interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
21
- /** Regular payment details. */
22
- regularPaymentDetails?: RegularPaymentDetails;
23
- /** Gift card payment details. */
24
- giftcardPaymentDetails?: GiftCardPaymentDetails;
25
- /**
26
- * Payment ID.
27
- * @format GUID
28
- * @readonly
29
- */
30
- id?: string | null;
31
- /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
32
- createdDate?: Date | null;
33
- /**
34
- * Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
35
- * @readonly
36
- */
37
- updatedDate?: Date | null;
38
- /** Payment amount. */
39
- amount?: Price;
40
- /**
41
- * Whether refunds for this payment are disabled.
42
- * + `true`: This payment is not refundable.
43
- * + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
44
- */
45
- refundDisabled?: boolean;
46
- }
47
- /** @oneof */
48
- interface PaymentPaymentDetailsOneOf {
49
- /** Regular payment details. */
50
- regularPaymentDetails?: RegularPaymentDetails;
51
- /** Gift card payment details. */
52
- giftcardPaymentDetails?: GiftCardPaymentDetails;
53
- }
54
- /** @oneof */
55
- interface PaymentReceiptInfoOneOf {
56
- }
57
- interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
58
- /** Whether regular card used */
59
- creditCardDetails?: CreditCardPaymentMethodDetails;
60
- /**
61
- * Wix Payments order ID.
62
- * @maxLength 100
63
- */
64
- paymentOrderId?: string | null;
65
- /**
66
- * Payment gateway's transaction ID.
67
- * This field is only returned when the value of `offline_payment` is `false`.
68
- * @maxLength 100
69
- */
70
- gatewayTransactionId?: string | null;
71
- /**
72
- * Payment method. Non-exhaustive list of supported values:
73
- * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
74
- * @maxLength 100
75
- */
76
- paymentMethod?: string | null;
77
- /**
78
- * Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments.
79
- * @maxLength 100
80
- */
81
- providerTransactionId?: string | null;
82
- /** Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager. */
83
- offlinePayment?: boolean;
84
- /** Payment status. */
85
- status?: TransactionStatus;
86
- /**
87
- * Whether there is a payment agreement that allows for future charges.
88
- * @immutable
89
- */
90
- savedPaymentMethod?: boolean;
91
- /** Authorization details. */
92
- authorizationDetails?: AuthorizationDetails;
93
- }
94
- /** @oneof */
95
- interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
96
- /** Whether regular card used */
97
- creditCardDetails?: CreditCardPaymentMethodDetails;
98
- }
99
- declare enum TransactionStatus {
100
- UNDEFINED = "UNDEFINED",
101
- APPROVED = "APPROVED",
102
- PENDING = "PENDING",
103
- PENDING_MERCHANT = "PENDING_MERCHANT",
104
- CANCELED = "CANCELED",
105
- DECLINED = "DECLINED",
106
- REFUNDED = "REFUNDED",
107
- PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
108
- AUTHORIZED = "AUTHORIZED",
109
- VOIDED = "VOIDED"
110
- }
111
- interface CreditCardPaymentMethodDetails {
112
- /**
113
- * The last 4 digits of the card number.
114
- * @maxLength 4
115
- */
116
- lastFourDigits?: string | null;
117
- /**
118
- * Card issuer's brand.
119
- * @maxLength 100
120
- */
121
- brand?: string | null;
122
- }
123
- interface AuthorizationDetails {
124
- /**
125
- * Whether the authorized payment is of a delayed capture.
126
- * @readonly
127
- */
128
- delayedCapture?: boolean;
129
- /** Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
130
- authorizedDate?: Date | null;
131
- /**
132
- * List of captures associated with payment
133
- * In case of failed it can be replaced with new one with PENDING or SUCCESS statuses
134
- * @maxSize 1
135
- */
136
- captures?: AuthorizationCapture[];
137
- /** Void associated with payment */
138
- void?: AuthorizationVoid;
139
- /** Scheduled action for this transaction */
140
- scheduledAction?: ScheduledAction;
141
- }
142
- interface AuthorizationCapture {
143
- /**
144
- * Capture ID.
145
- * @format GUID
146
- * @readonly
147
- */
148
- id?: string | null;
149
- /** Status of this capture action */
150
- status?: AuthorizationCaptureStatus;
151
- /**
152
- * Amount of this capture
153
- * @immutable
154
- */
155
- amount?: Price;
156
- /** Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
157
- createdDate?: Date | null;
158
- /** In case of status is FAILED may contain failure details */
159
- failureDetails?: AuthorizationActionFailureDetails;
160
- }
161
- declare enum AuthorizationCaptureStatus {
162
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
163
- /** Capture operation still in progress. */
164
- PENDING = "PENDING",
165
- /** Capture operation succeeded. */
166
- SUCCEEDED = "SUCCEEDED",
167
- /** Capture operation failed. */
168
- FAILED = "FAILED"
169
- }
170
- interface Price {
171
- /**
172
- * Amount.
173
- * @decimalValue options { gte:0, lte:1000000000000000 }
174
- */
175
- amount?: string;
176
- /**
177
- * Amount formatted with currency symbol.
178
- * @readonly
179
- */
180
- formattedAmount?: string;
181
- }
182
- interface AuthorizationActionFailureDetails {
183
- /** @maxLength 100 */
184
- failureCode?: string;
185
- }
186
- interface AuthorizationVoid {
187
- /** Status of this void action */
188
- status?: AuthorizationVoidStatus;
189
- /** Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
190
- voidedDate?: Date | null;
191
- /** In case of status is FAILED may contain failure details */
192
- failureDetails?: AuthorizationActionFailureDetails;
193
- /** Reason of void action */
194
- reason?: Reason;
195
- }
196
- declare enum AuthorizationVoidStatus {
197
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
198
- /** Void operation still in progress. */
199
- PENDING = "PENDING",
200
- /** Void operation succeeded. */
201
- SUCCEEDED = "SUCCEEDED",
202
- /** Void operation failed. */
203
- FAILED = "FAILED"
204
- }
205
- /** Reason the authorization was voided. */
206
- declare enum Reason {
207
- UNKNOWN_REASON = "UNKNOWN_REASON",
208
- /** Authorization was voided by user. */
209
- MANUAL = "MANUAL",
210
- /** Authorization passed execution date. */
211
- SCHEDULED = "SCHEDULED"
212
- }
213
- interface ScheduledAction {
214
- /** Type of the action. */
215
- actionType?: ActionType;
216
- /** The date and time of the action. */
217
- executionDate?: Date | null;
218
- }
219
- declare enum ActionType {
220
- UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
221
- VOID = "VOID",
222
- CAPTURE = "CAPTURE"
223
- }
224
- interface GiftCardPaymentDetails {
225
- /**
226
- * Gift card payment ID.
227
- * @minLength 1
228
- * @maxLength 100
229
- */
230
- giftCardPaymentId?: string;
231
- /**
232
- * ID of the app that created the gift card.
233
- * @format GUID
234
- */
235
- appId?: string;
236
- /**
237
- * Whether the gift card is voided.
238
- * @readonly
239
- */
240
- voided?: boolean;
241
- }
242
- interface Refund {
243
- /**
244
- * Refund ID.
245
- * @format GUID
246
- * @readonly
247
- */
248
- id?: string;
249
- /**
250
- * List of transactions.
251
- * @maxSize 50
252
- */
253
- transactions?: RefundTransaction[];
254
- /** Refund business details. */
255
- details?: RefundDetails;
256
- /**
257
- * Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
258
- * @readonly
259
- * @immutable
260
- */
261
- createdDate?: Date | null;
262
- /**
263
- * Aggregated refund summary.
264
- * @readonly
265
- */
266
- summary?: AggregatedRefundSummary;
267
- /**
268
- * ID of the app that initiated this refund.
269
- * @format GUID
270
- * @readonly
271
- * @immutable
272
- */
273
- requestingServiceAppId?: string | null;
274
- }
275
- interface RefundTransaction {
276
- /**
277
- * ID of the payment associated with this refund.
278
- * @format GUID
279
- * @immutable
280
- */
281
- paymentId?: string;
282
- /**
283
- * Refund amount.
284
- * @immutable
285
- */
286
- amount?: Price;
287
- /** Refund status. */
288
- refundStatus?: RefundStatus;
289
- /** Optional details of current refund status. */
290
- refundStatusInfo?: RefundStatusInfo;
291
- /**
292
- * Payment gateway's refund ID.
293
- * This field is only returned when the value of `external_refund` is `false`.
294
- * @format GUID
295
- */
296
- gatewayRefundId?: string | null;
297
- /** ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds. */
298
- providerRefundId?: string | null;
299
- /**
300
- * Whether refund was made externally and manually on the payment provider's side.
301
- * @immutable
302
- */
303
- externalRefund?: boolean;
304
- }
305
- /** Refund transaction status. */
306
- declare enum RefundStatus {
307
- /** Refund was initiated on payment provider side. PENDING status was assigned by provider. */
308
- PENDING = "PENDING",
309
- /** Refund transaction succeeded. */
310
- SUCCEEDED = "SUCCEEDED",
311
- /** Refund transaction failed. */
312
- FAILED = "FAILED",
313
- /** Refund request acknowledged, and will be executed soon. */
314
- SCHEDULED = "SCHEDULED",
315
- /** Refund was initiated on payment provider side. */
316
- STARTED = "STARTED"
317
- }
318
- interface RefundStatusInfo {
319
- /**
320
- * Reason code for the refund's current status.
321
- *
322
- * Learn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes).
323
- * @minLength 1
324
- * @maxLength 10
325
- */
326
- paymentGatewayReasonCode?: string | null;
327
- /**
328
- * Free text explanation of current refund status.
329
- * @minLength 1
330
- * @maxLength 1000
331
- */
332
- description?: string | null;
333
- }
334
- /** Business model of a refund request */
335
- interface RefundDetails {
336
- /**
337
- * Order line item IDs and quantities that were refunded.
338
- * @maxSize 300
339
- */
340
- items?: RefundItem[];
341
- /** Whether the shipping fee was also refunded. */
342
- shippingIncluded?: boolean;
343
- /**
344
- * Reason for the refund, provided by customer (optional).
345
- * @maxLength 200
346
- */
347
- reason?: string | null;
348
- /**
349
- * Line items that were refunded.
350
- * @maxSize 300
351
- */
352
- lineItems?: LineItemRefund[];
353
- /**
354
- * Additional fees that were refunded.
355
- * @maxSize 100
356
- */
357
- additionalFees?: AdditionalFeeRefund[];
358
- /** Shipping amount that was refunded. */
359
- shipping?: ShippingRefund;
360
- }
361
- interface RefundItem {
362
- /**
363
- * Line item ID the refunded line item.
364
- * @format GUID
365
- */
366
- lineItemId?: string;
367
- /**
368
- * Line item quantity refunded.
369
- * @min 1
370
- * @max 100000
371
- */
372
- quantity?: number;
373
- }
374
- interface LineItemRefund {
375
- /**
376
- * Line item ID.
377
- * @format GUID
378
- * @immutable
379
- */
380
- lineItemId?: string;
381
- /**
382
- * Refund quantity.
383
- * @min 1
384
- * @max 100000
385
- * @immutable
386
- */
387
- quantity?: number;
388
- }
389
- interface AdditionalFeeRefund {
390
- /**
391
- * Additional fee ID.
392
- * @format GUID
393
- * @immutable
394
- */
395
- additionalFeeId?: string;
396
- /**
397
- * Refund amount.
398
- * @immutable
399
- */
400
- amount?: Price;
401
- }
402
- interface ShippingRefund {
403
- /**
404
- * Refund amount.
405
- * @immutable
406
- */
407
- amount?: Price;
408
- }
409
- interface AggregatedRefundSummary {
410
- /** Total amount requested for refund. */
411
- requestedRefund?: Price;
412
- /** Pending refund amount - the portion of `requestedRefund` that is still pending. */
413
- pendingRefund?: Price;
414
- /** Refunded amount - the portion of `requestedRefund` that refunded successfully. */
415
- refunded?: Price;
416
- /** Failed refund amount - the portion of `requestedRefund` that failed. */
417
- failedRefundAmount?: Price;
418
- /** Whether at least one refund transaction is still in `"PENDING"` status. */
419
- pending?: boolean;
420
- /** Breakdown of refunded items. Available only after refund is complete. */
421
- breakdown?: RefundItemsBreakdown;
422
- }
423
- interface RefundItemsBreakdown {
424
- /**
425
- * Refunded line items and the amount refunded for each.
426
- * @maxSize 300
427
- */
428
- lineItems?: LineItemRefundSummary[];
429
- }
430
- interface LineItemRefundSummary {
431
- /**
432
- * ID of the refunded line item.
433
- * @format GUID
434
- */
435
- lineItemId?: string;
436
- /** Total refunded amount for the line item. */
437
- totalRefundedAmount?: Price;
438
- }
439
- interface ListTransactionsForSingleOrderRequest {
440
- /**
441
- * Order ID.
442
- * @minLength 1
443
- * @maxLength 100
444
- */
445
- orderId: string;
446
- }
447
- interface ListTransactionsForSingleOrderResponse {
448
- /** Order ID and its associated transactions. */
449
- orderTransactions?: OrderTransactions;
450
- }
451
- interface ListTransactionsForMultipleOrdersRequest {
452
- /**
453
- * Order IDs for which to retrieve transactions.
454
- * @minSize 1
455
- * @maxSize 100
456
- * @minLength 1
457
- * @maxLength 100
458
- */
459
- orderIds: string[];
460
- }
461
- interface ListTransactionsForMultipleOrdersResponse {
462
- /** List of order IDs and their associated transactions. */
463
- orderTransactions?: OrderTransactions[];
464
- }
465
- interface AddPaymentsRequest {
466
- /**
467
- * Order ID.
468
- * @format GUID
469
- */
470
- orderId: string;
471
- /**
472
- * Payments to be added to order.
473
- * @minSize 1
474
- * @maxSize 50
475
- */
476
- payments: Payment[];
477
- }
478
- interface AddPaymentsResponse {
479
- /** Order ID and its associated transactions. */
480
- orderTransactions?: OrderTransactions;
481
- /** IDs of added order payments. */
482
- paymentsIds?: string[];
483
- }
484
- interface UpdatePaymentStatusRequest {
485
- /**
486
- * Order ID.
487
- * @format GUID
488
- */
489
- orderId: string;
490
- /**
491
- * Payment ID.
492
- * @format GUID
493
- */
494
- paymentId: string;
495
- /** Payment status. */
496
- status?: TransactionStatus;
497
- }
498
- interface UpdatePaymentStatusResponse {
499
- /** Order ID and its associated transactions after update. */
500
- orderTransactions?: OrderTransactions;
501
- }
502
- interface BulkUpdatePaymentStatusesRequest {
503
- /**
504
- * Order and payment IDs for which to update payment status.
505
- * @minSize 1
506
- * @maxSize 300
507
- */
508
- paymentAndOrderIds: PaymentAndOrderId[];
509
- /** Whether to return the full payment entity (`results.item`) in the response. */
510
- returnFullEntity?: boolean;
511
- /** Payment status. */
512
- status?: TransactionStatus;
513
- }
514
- interface PaymentAndOrderId {
515
- /**
516
- * Order ID.
517
- * @format GUID
518
- */
519
- orderId?: string;
520
- /**
521
- * Payment ID.
522
- * todo: remove comment once UI will use BulkMarkOrderAsPaid
523
- */
524
- paymentId?: string;
525
- }
526
- interface BulkUpdatePaymentStatusesResponse {
527
- /** Bulk operation results. */
528
- results?: BulkPaymentResult[];
529
- /** Bulk operation metadata. */
530
- bulkActionMetadata?: BulkActionMetadata;
531
- }
532
- interface BulkPaymentResult {
533
- /** Item metadata. */
534
- itemMetadata?: ItemMetadata;
535
- /** Updated payment. Returned if `return_full_entity` set to `true`. */
536
- item?: Payment;
537
- }
538
- interface ItemMetadata {
539
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
540
- id?: string | null;
541
- /** Index of the item within the request array. Allows for correlation between request and response items. */
542
- originalIndex?: number;
543
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
544
- success?: boolean;
545
- /** Details about the error in case of failure. */
546
- error?: ApplicationError;
547
- }
548
- interface ApplicationError {
549
- /** Error code. */
550
- code?: string;
551
- /** Description of the error. */
552
- description?: string;
553
- /** Data related to the error. */
554
- data?: Record<string, any> | null;
555
- }
556
- interface BulkActionMetadata {
557
- /** Number of items that were successfully processed. */
558
- totalSuccesses?: number;
559
- /** Number of items that couldn't be processed. */
560
- totalFailures?: number;
561
- /** Number of failures without details because detailed failure threshold was exceeded. */
562
- undetailedFailures?: number;
563
- }
564
- interface UpdateRefundTransactionRequest {
565
- }
566
- interface UpdateRefundTransactionResponse {
567
- }
568
- interface UpdatePaymentsRequest {
569
- }
570
- interface UpdatePaymentsResponse {
571
- }
572
-
573
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
574
- getUrl: (context: any) => string;
575
- httpMethod: K;
576
- path: string;
577
- pathParams: M;
578
- __requestType: T;
579
- __originalRequestType: S;
580
- __responseType: Q;
581
- __originalResponseType: R;
582
- };
583
- declare function listTransactionsForSingleOrder(): __PublicMethodMetaInfo<'GET', {
584
- orderId: string;
585
- }, ListTransactionsForSingleOrderRequest$1, ListTransactionsForSingleOrderRequest, ListTransactionsForSingleOrderResponse$1, ListTransactionsForSingleOrderResponse>;
586
- declare function listTransactionsForMultipleOrders(): __PublicMethodMetaInfo<'POST', {}, ListTransactionsForMultipleOrdersRequest$1, ListTransactionsForMultipleOrdersRequest, ListTransactionsForMultipleOrdersResponse$1, ListTransactionsForMultipleOrdersResponse>;
587
- declare function addPayments(): __PublicMethodMetaInfo<'POST', {
588
- orderId: string;
589
- }, AddPaymentsRequest$1, AddPaymentsRequest, AddPaymentsResponse$1, AddPaymentsResponse>;
590
- declare function updatePaymentStatus(): __PublicMethodMetaInfo<'POST', {
591
- paymentId: string;
592
- orderId: string;
593
- }, UpdatePaymentStatusRequest$1, UpdatePaymentStatusRequest, UpdatePaymentStatusResponse$1, UpdatePaymentStatusResponse>;
594
- declare function bulkUpdatePaymentStatuses(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePaymentStatusesRequest$1, BulkUpdatePaymentStatusesRequest, BulkUpdatePaymentStatusesResponse$1, BulkUpdatePaymentStatusesResponse>;
595
- declare function updateRefundTransaction(): __PublicMethodMetaInfo<'POST', {
596
- orderId: string;
597
- }, UpdateRefundTransactionRequest$1, UpdateRefundTransactionRequest, UpdateRefundTransactionResponse$1, UpdateRefundTransactionResponse>;
598
- declare function updatePayments(): __PublicMethodMetaInfo<'POST', {
599
- orderId: string;
600
- }, UpdatePaymentsRequest$1, UpdatePaymentsRequest, UpdatePaymentsResponse$1, UpdatePaymentsResponse>;
601
-
602
- export { type __PublicMethodMetaInfo, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, updatePaymentStatus, updatePayments, updateRefundTransaction };