@wix/auto_sdk_ecom_orders 1.0.68 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{ecom-v1-order-orders.universal-D9sENjnN.d.ts → ecom-v1-order-orders.universal-C73TYoI7.d.ts} +217 -914
- package/build/cjs/index.d.ts +8 -3
- package/build/cjs/index.js +70 -75
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +23 -75
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +71 -13
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{ecom-v1-order-orders.universal-D9sENjnN.d.mts → ecom-v1-order-orders.universal-C73TYoI7.d.mts} +217 -914
- package/build/es/index.d.mts +8 -3
- package/build/es/index.mjs +69 -70
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +23 -70
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +71 -13
- package/build/es/meta.mjs +18 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{ecom-v1-order-orders.universal-Dt_KjUcw.d.ts → ecom-v1-order-orders.universal-KCtJReRk.d.ts} +217 -914
- package/build/internal/cjs/index.d.ts +8 -3
- package/build/internal/cjs/index.js +70 -75
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +23 -75
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +71 -13
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{ecom-v1-order-orders.universal-Dt_KjUcw.d.mts → ecom-v1-order-orders.universal-KCtJReRk.d.mts} +217 -914
- package/build/internal/es/index.d.mts +8 -3
- package/build/internal/es/index.mjs +69 -70
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +23 -70
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +71 -13
- package/build/internal/es/meta.mjs +18 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cp as PreparePaymentCollectionRequest$1, b as PreparePaymentCollectionResponse$1, ct as GetPaymentCollectabilityStatusRequest$1, G as GetPaymentCollectabilityStatusResponse$1, cu as RecordManuallyCollectedPaymentRequest$1, cv as RecordManuallyCollectedPaymentResponse$1, cw as MarkOrderAsPaidRequest$1, cx as MarkOrderAsPaidResponse$1, cy as BulkMarkOrdersAsPaidRequest$1, cz as BulkMarkOrdersAsPaidResponse$1, cE as GetRefundabilityStatusRequest$1, cF as GetRefundabilityStatusResponse$1, cI as CreatePaymentGatewayOrderRequest$1, cK as CreatePaymentGatewayOrderResponse$1, cL as ChargeMembershipsRequest$1, cP as ChargeMembershipsResponse$1, cQ as TriggerRefundRequest$1, c_ as TriggerRefundResponse$1, dr as VoidAuthorizedPaymentsRequest$1, V as VoidAuthorizedPaymentsResponse$1, ds as CaptureAuthorizedPaymentsRequest$1, C as CaptureAuthorizedPaymentsResponse$1, d_ as GetOrderRequest$1, d$ as GetOrderResponse$1, eb as SearchOrdersRequest$1, S as SearchOrdersResponse$1, ef as CreateOrderRequest$1, ei as CreateOrderResponse$1, ej as UpdateOrderRequest$1, ek as UpdateOrderResponse$1, el as BulkUpdateOrdersRequest$1, l as BulkUpdateOrdersResponse$1, em as CommitDeltasRequest$1, eC as CommitDeltasResponse$1, f1 as UpdateOrderLineItemRequest$1, f2 as UpdateOrderLineItemResponse$1, ft as AddActivityRequest$1, fw as AddActivityResponse$1, fz as UpdateActivityRequest$1, fA as UpdateActivityResponse$1, fB as DeleteActivityRequest$1, fC as DeleteActivityResponse$1, fI as CancelOrderRequest$1, n as CancelOrderResponse$1, fK as UpdateOrderStatusRequest$1, fL as UpdateOrderStatusResponse$1, g9 as AggregateOrdersRequest$1, ga as AggregateOrdersResponse$1, ge as BulkUpdateOrderTagsRequest$1, q as BulkUpdateOrderTagsResponse$1 } from './ecom-v1-order-orders.universal-C73TYoI7.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Order {
|
|
@@ -2287,6 +2287,11 @@ interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetail
|
|
|
2287
2287
|
savedPaymentMethod?: boolean;
|
|
2288
2288
|
/** Authorization details. */
|
|
2289
2289
|
authorizationDetails?: AuthorizationDetails;
|
|
2290
|
+
/**
|
|
2291
|
+
* Record of chargebacks made by the buyer.
|
|
2292
|
+
* @maxSize 6
|
|
2293
|
+
*/
|
|
2294
|
+
chargebacks?: Chargeback[];
|
|
2290
2295
|
}
|
|
2291
2296
|
/** @oneof */
|
|
2292
2297
|
interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
|
|
@@ -2416,6 +2421,59 @@ declare enum ActionType {
|
|
|
2416
2421
|
}
|
|
2417
2422
|
/** @enumType */
|
|
2418
2423
|
type ActionTypeWithLiterals = ActionType | 'UNKNOWN_ACTION_TYPE' | 'VOID' | 'CAPTURE';
|
|
2424
|
+
interface Chargeback {
|
|
2425
|
+
/**
|
|
2426
|
+
* Chargeback ID.
|
|
2427
|
+
* @format GUID
|
|
2428
|
+
* @readonly
|
|
2429
|
+
* @immutable
|
|
2430
|
+
*/
|
|
2431
|
+
id?: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* Date and time the chargeback 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.
|
|
2434
|
+
* @readonly
|
|
2435
|
+
* @immutable
|
|
2436
|
+
*/
|
|
2437
|
+
createdDate?: Date | null;
|
|
2438
|
+
/**
|
|
2439
|
+
* Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
|
|
2440
|
+
* @readonly
|
|
2441
|
+
*/
|
|
2442
|
+
updatedDate?: Date | null;
|
|
2443
|
+
/**
|
|
2444
|
+
* Amount.
|
|
2445
|
+
* @readonly
|
|
2446
|
+
* @immutable
|
|
2447
|
+
*/
|
|
2448
|
+
amount?: Price;
|
|
2449
|
+
/**
|
|
2450
|
+
* Reversal amount. Present only when status is REVERSED.
|
|
2451
|
+
* @readonly
|
|
2452
|
+
*/
|
|
2453
|
+
reversalAmount?: Price;
|
|
2454
|
+
/**
|
|
2455
|
+
* Status.
|
|
2456
|
+
*
|
|
2457
|
+
* Default: `"APPROVED"`.
|
|
2458
|
+
*/
|
|
2459
|
+
status?: ChargebackStatusWithLiterals;
|
|
2460
|
+
/**
|
|
2461
|
+
* External chargeback ID.
|
|
2462
|
+
* @format GUID
|
|
2463
|
+
* @readonly
|
|
2464
|
+
* @immutable
|
|
2465
|
+
*/
|
|
2466
|
+
externalId?: string | null;
|
|
2467
|
+
}
|
|
2468
|
+
declare enum ChargebackStatus {
|
|
2469
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
2470
|
+
/** Chargeback was approved. */
|
|
2471
|
+
APPROVED = "APPROVED",
|
|
2472
|
+
/** Chargeback was reversed. */
|
|
2473
|
+
REVERSED = "REVERSED"
|
|
2474
|
+
}
|
|
2475
|
+
/** @enumType */
|
|
2476
|
+
type ChargebackStatusWithLiterals = ChargebackStatus | 'UNSPECIFIED' | 'APPROVED' | 'REVERSED';
|
|
2419
2477
|
interface GiftCardPaymentDetails {
|
|
2420
2478
|
/**
|
|
2421
2479
|
* Gift card payment ID.
|
|
@@ -2607,6 +2665,18 @@ interface CaptureAuthorizedPaymentsResponse {
|
|
|
2607
2665
|
/** All order's transactions after the capture was triggered */
|
|
2608
2666
|
orderTransactions?: OrderTransactions;
|
|
2609
2667
|
}
|
|
2668
|
+
interface GetOrderRequest {
|
|
2669
|
+
/**
|
|
2670
|
+
* ID of the order to retrieve.
|
|
2671
|
+
* @minLength 1
|
|
2672
|
+
* @maxLength 100
|
|
2673
|
+
*/
|
|
2674
|
+
id: string;
|
|
2675
|
+
}
|
|
2676
|
+
interface GetOrderResponse {
|
|
2677
|
+
/** The requested order. */
|
|
2678
|
+
order?: Order;
|
|
2679
|
+
}
|
|
2610
2680
|
interface Sorting {
|
|
2611
2681
|
/**
|
|
2612
2682
|
* Name of the field to sort by.
|
|
@@ -2649,18 +2719,6 @@ interface Cursors {
|
|
|
2649
2719
|
*/
|
|
2650
2720
|
prev?: string | null;
|
|
2651
2721
|
}
|
|
2652
|
-
interface GetOrderRequest {
|
|
2653
|
-
/**
|
|
2654
|
-
* ID of the order to retrieve.
|
|
2655
|
-
* @minLength 1
|
|
2656
|
-
* @maxLength 100
|
|
2657
|
-
*/
|
|
2658
|
-
id: string;
|
|
2659
|
-
}
|
|
2660
|
-
interface GetOrderResponse {
|
|
2661
|
-
/** The requested order. */
|
|
2662
|
-
order?: Order;
|
|
2663
|
-
}
|
|
2664
2722
|
interface SearchOrdersRequest {
|
|
2665
2723
|
/** Search options. */
|
|
2666
2724
|
search?: CursorSearch;
|
package/build/es/meta.mjs
CHANGED
|
@@ -345,6 +345,12 @@ function triggerRefund(payload) {
|
|
|
345
345
|
{
|
|
346
346
|
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
347
347
|
},
|
|
348
|
+
{
|
|
349
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
353
|
+
},
|
|
348
354
|
{ path: "orderTransactions.refunds.createdDate" }
|
|
349
355
|
]
|
|
350
356
|
}
|
|
@@ -385,6 +391,12 @@ function voidAuthorizedPayments(payload) {
|
|
|
385
391
|
{
|
|
386
392
|
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
387
393
|
},
|
|
394
|
+
{
|
|
395
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
399
|
+
},
|
|
388
400
|
{ path: "orderTransactions.refunds.createdDate" }
|
|
389
401
|
]
|
|
390
402
|
}
|
|
@@ -425,6 +437,12 @@ function captureAuthorizedPayments(payload) {
|
|
|
425
437
|
{
|
|
426
438
|
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
427
439
|
},
|
|
440
|
+
{
|
|
441
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
445
|
+
},
|
|
428
446
|
{ path: "orderTransactions.refunds.createdDate" }
|
|
429
447
|
]
|
|
430
448
|
}
|