@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cT as PreparePaymentCollectionRequest$1, b as PreparePaymentCollectionResponse$1, cX as GetPaymentCollectabilityStatusRequest$1, G as GetPaymentCollectabilityStatusResponse$1, cY as RecordManuallyCollectedPaymentRequest$1, cZ as RecordManuallyCollectedPaymentResponse$1, c_ as MarkOrderAsPaidRequest$1, M as MarkOrderAsPaidResponse$1, c$ as BulkMarkOrdersAsPaidRequest$1, B as BulkMarkOrdersAsPaidResponse$1, d4 as GetRefundabilityStatusRequest$1, e as GetRefundabilityStatusResponse$1, d7 as CreatePaymentGatewayOrderRequest$1, C as CreatePaymentGatewayOrderResponse$1, d9 as ChargeMembershipsRequest$1, dd as ChargeMembershipsResponse$1, de as TriggerRefundRequest$1, j as TriggerRefundResponse$1, dP as VoidAuthorizedPaymentsRequest$1, V as VoidAuthorizedPaymentsResponse$1, dQ as CaptureAuthorizedPaymentsRequest$1, n as CaptureAuthorizedPaymentsResponse$1, em as GetOrderRequest$1, en as GetOrderResponse$1, ez as SearchOrdersRequest$1, S as SearchOrdersResponse$1, eD as CreateOrderRequest$1, eG as CreateOrderResponse$1, eH as UpdateOrderRequest$1, eI as UpdateOrderResponse$1, eJ as BulkUpdateOrdersRequest$1, w as BulkUpdateOrdersResponse$1, eK as CommitDeltasRequest$1, y as CommitDeltasResponse$1, fo as UpdateOrderLineItemRequest$1, E as UpdateOrderLineItemResponse$1, fP as AddActivityRequest$1, H as AddActivityResponse$1, fT as UpdateActivityRequest$1, J as UpdateActivityResponse$1, fU as DeleteActivityRequest$1, L as DeleteActivityResponse$1, f_ as CancelOrderRequest$1, Q as CancelOrderResponse$1, g0 as UpdateOrderStatusRequest$1, Y as UpdateOrderStatusResponse$1, gq as AggregateOrdersRequest$1, $ as AggregateOrdersResponse$1, gu as BulkUpdateOrderTagsRequest$1, a1 as BulkUpdateOrderTagsResponse$1 } from './ecom-v1-order-orders.universal-KCtJReRk.js';
|
|
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;
|
|
@@ -395,6 +395,12 @@ function triggerRefund(payload) {
|
|
|
395
395
|
{
|
|
396
396
|
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
397
397
|
},
|
|
398
|
+
{
|
|
399
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
403
|
+
},
|
|
398
404
|
{ path: "orderTransactions.refunds.createdDate" }
|
|
399
405
|
]
|
|
400
406
|
}
|
|
@@ -435,6 +441,12 @@ function voidAuthorizedPayments(payload) {
|
|
|
435
441
|
{
|
|
436
442
|
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
437
443
|
},
|
|
444
|
+
{
|
|
445
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
449
|
+
},
|
|
438
450
|
{ path: "orderTransactions.refunds.createdDate" }
|
|
439
451
|
]
|
|
440
452
|
}
|
|
@@ -475,6 +487,12 @@ function captureAuthorizedPayments(payload) {
|
|
|
475
487
|
{
|
|
476
488
|
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
477
489
|
},
|
|
490
|
+
{
|
|
491
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
495
|
+
},
|
|
478
496
|
{ path: "orderTransactions.refunds.createdDate" }
|
|
479
497
|
]
|
|
480
498
|
}
|