@open-tender/types 0.2.21 → 0.2.22
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
2
|
import { CardType, CardTypeName, DeviceType, DiscountType, Money, OrderType, PrepType, ServiceType, TenderType } from '../global';
|
|
3
|
-
import {
|
|
3
|
+
import { CheckoutErrorParams } from '../request';
|
|
4
4
|
import { Cart } from './cart';
|
|
5
5
|
import { Address, Customer } from './customer';
|
|
6
6
|
import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
|
|
@@ -85,7 +85,7 @@ export interface CheckoutConfig {
|
|
|
85
85
|
export interface CheckoutCheck extends Omit<Order, 'customer'> {
|
|
86
86
|
config: CheckoutConfig;
|
|
87
87
|
customer: OrderCustomer | null;
|
|
88
|
-
errors:
|
|
88
|
+
errors: CheckoutErrorParams;
|
|
89
89
|
}
|
|
90
90
|
export interface OrderCreateDetails {
|
|
91
91
|
cart_id?: number | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
2
|
import { CardType, CardTypeName, DeviceType, DiscountType, Money, OrderType, PrepType, ServiceType, TenderType } from '../global';
|
|
3
|
-
import {
|
|
3
|
+
import { CheckoutErrorParams } from '../request';
|
|
4
4
|
import { Cart } from './cart';
|
|
5
5
|
import { Address, Customer } from './customer';
|
|
6
6
|
import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
|
|
@@ -85,7 +85,7 @@ export interface CheckoutConfig {
|
|
|
85
85
|
export interface CheckoutCheck extends Omit<Order, 'customer'> {
|
|
86
86
|
config: CheckoutConfig;
|
|
87
87
|
customer: OrderCustomer | null;
|
|
88
|
-
errors:
|
|
88
|
+
errors: CheckoutErrorParams;
|
|
89
89
|
}
|
|
90
90
|
export interface OrderCreateDetails {
|
|
91
91
|
cart_id?: number | null;
|
package/package.json
CHANGED