@open-tender/types 0.2.19 → 0.2.21
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/dist/cjs/types/api/checkout.d.ts +2 -2
- package/dist/cjs/types/api/creditCards.d.ts +4 -1
- package/dist/cjs/types/api/customer/groupOrders.d.ts +13 -1
- package/dist/cjs/types/request.d.ts +8 -2
- package/dist/esm/types/api/checkout.d.ts +2 -2
- package/dist/esm/types/api/creditCards.d.ts +4 -1
- package/dist/esm/types/api/customer/groupOrders.d.ts +13 -1
- package/dist/esm/types/request.d.ts +8 -2
- package/package.json +1 -1
|
@@ -144,7 +144,7 @@ export interface CheckoutTenderCreditGuest {
|
|
|
144
144
|
amount: Money;
|
|
145
145
|
card_type_name: CardTypeName;
|
|
146
146
|
exp: string;
|
|
147
|
-
is_default:
|
|
147
|
+
is_default: boolean;
|
|
148
148
|
last4: string;
|
|
149
149
|
masked: string;
|
|
150
150
|
tender_type: TenderType;
|
|
@@ -158,7 +158,7 @@ export interface CheckoutTenderCreditCustomer {
|
|
|
158
158
|
customer_card_id: number;
|
|
159
159
|
last4: string;
|
|
160
160
|
masked: string;
|
|
161
|
-
is_default:
|
|
161
|
+
is_default: boolean;
|
|
162
162
|
}
|
|
163
163
|
export interface CheckoutTenderGiftCard {
|
|
164
164
|
amount: Money;
|
|
@@ -4,7 +4,7 @@ export interface CreditCard {
|
|
|
4
4
|
card_type_name: CardTypeName;
|
|
5
5
|
customer_card_id: number;
|
|
6
6
|
has_profile?: boolean;
|
|
7
|
-
is_default
|
|
7
|
+
is_default: boolean;
|
|
8
8
|
last4: string;
|
|
9
9
|
masked: string;
|
|
10
10
|
}
|
|
@@ -21,6 +21,9 @@ export interface CreditCardData {
|
|
|
21
21
|
is_default?: boolean;
|
|
22
22
|
token?: string;
|
|
23
23
|
}
|
|
24
|
+
export interface CreditCardUpdate {
|
|
25
|
+
is_default: boolean;
|
|
26
|
+
}
|
|
24
27
|
export interface CreditCardErrors extends Record<string, string | undefined> {
|
|
25
28
|
acct?: string;
|
|
26
29
|
exp?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ISOString, RequestedAt } from '../../datetimes';
|
|
1
|
+
import { ISOString, RequestedAt, TimezonePython } from '../../datetimes';
|
|
2
2
|
import { ServiceType } from '../../global';
|
|
3
3
|
import { SimpleCart } from '../checkout';
|
|
4
|
+
import { RevenueCenterType } from '../revenueCenter';
|
|
4
5
|
import { Address } from './addresses';
|
|
5
6
|
export interface CartOwner {
|
|
6
7
|
customer_id: number;
|
|
@@ -16,6 +17,13 @@ export interface GroupOrderGuest extends GroupOrderGuestCreate {
|
|
|
16
17
|
cart_guest_id: number;
|
|
17
18
|
}
|
|
18
19
|
export declare type GroupOrderGuests = GroupOrderGuest[];
|
|
20
|
+
export interface GroupOrderRevenueCenter {
|
|
21
|
+
is_outpost: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
revenue_center_id: number;
|
|
24
|
+
revenue_center_type: RevenueCenterType;
|
|
25
|
+
timezone: TimezonePython;
|
|
26
|
+
}
|
|
19
27
|
export interface GroupOrder {
|
|
20
28
|
address: Address | null;
|
|
21
29
|
cart: SimpleCart;
|
|
@@ -33,6 +41,10 @@ export interface GroupOrder {
|
|
|
33
41
|
token: string;
|
|
34
42
|
}
|
|
35
43
|
export declare type GroupOrders = GroupOrder[];
|
|
44
|
+
export interface GroupOrderExpanded extends GroupOrder {
|
|
45
|
+
revenue_center: GroupOrderRevenueCenter;
|
|
46
|
+
}
|
|
47
|
+
export declare type GroupOrdersExpanded = GroupOrderExpanded[];
|
|
36
48
|
export interface GroupOrderTime {
|
|
37
49
|
isAdjusted: boolean;
|
|
38
50
|
firstIso: ISOString;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare type Version = number | null;
|
|
2
|
+
export declare type RequestStatus = 'idle' | 'pending';
|
|
1
3
|
export interface IndexedError {
|
|
2
4
|
index: any;
|
|
3
5
|
[x: string]: string;
|
|
@@ -14,5 +16,9 @@ export interface RequestErrorAPI extends RequestErrorMessage {
|
|
|
14
16
|
params?: RequestErrorParams;
|
|
15
17
|
}
|
|
16
18
|
export declare type RequestError = RequestErrorAPI | null | undefined;
|
|
17
|
-
export declare type
|
|
18
|
-
export
|
|
19
|
+
export declare type CheckoutErrorParams = Record<string, RequestErrorMessage>;
|
|
20
|
+
export interface CheckoutErrorAPI extends RequestErrorMessage {
|
|
21
|
+
status: number;
|
|
22
|
+
params?: CheckoutErrorParams;
|
|
23
|
+
}
|
|
24
|
+
export declare type CheckoutError = CheckoutErrorAPI | null | undefined;
|
|
@@ -144,7 +144,7 @@ export interface CheckoutTenderCreditGuest {
|
|
|
144
144
|
amount: Money;
|
|
145
145
|
card_type_name: CardTypeName;
|
|
146
146
|
exp: string;
|
|
147
|
-
is_default:
|
|
147
|
+
is_default: boolean;
|
|
148
148
|
last4: string;
|
|
149
149
|
masked: string;
|
|
150
150
|
tender_type: TenderType;
|
|
@@ -158,7 +158,7 @@ export interface CheckoutTenderCreditCustomer {
|
|
|
158
158
|
customer_card_id: number;
|
|
159
159
|
last4: string;
|
|
160
160
|
masked: string;
|
|
161
|
-
is_default:
|
|
161
|
+
is_default: boolean;
|
|
162
162
|
}
|
|
163
163
|
export interface CheckoutTenderGiftCard {
|
|
164
164
|
amount: Money;
|
|
@@ -4,7 +4,7 @@ export interface CreditCard {
|
|
|
4
4
|
card_type_name: CardTypeName;
|
|
5
5
|
customer_card_id: number;
|
|
6
6
|
has_profile?: boolean;
|
|
7
|
-
is_default
|
|
7
|
+
is_default: boolean;
|
|
8
8
|
last4: string;
|
|
9
9
|
masked: string;
|
|
10
10
|
}
|
|
@@ -21,6 +21,9 @@ export interface CreditCardData {
|
|
|
21
21
|
is_default?: boolean;
|
|
22
22
|
token?: string;
|
|
23
23
|
}
|
|
24
|
+
export interface CreditCardUpdate {
|
|
25
|
+
is_default: boolean;
|
|
26
|
+
}
|
|
24
27
|
export interface CreditCardErrors extends Record<string, string | undefined> {
|
|
25
28
|
acct?: string;
|
|
26
29
|
exp?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ISOString, RequestedAt } from '../../datetimes';
|
|
1
|
+
import { ISOString, RequestedAt, TimezonePython } from '../../datetimes';
|
|
2
2
|
import { ServiceType } from '../../global';
|
|
3
3
|
import { SimpleCart } from '../checkout';
|
|
4
|
+
import { RevenueCenterType } from '../revenueCenter';
|
|
4
5
|
import { Address } from './addresses';
|
|
5
6
|
export interface CartOwner {
|
|
6
7
|
customer_id: number;
|
|
@@ -16,6 +17,13 @@ export interface GroupOrderGuest extends GroupOrderGuestCreate {
|
|
|
16
17
|
cart_guest_id: number;
|
|
17
18
|
}
|
|
18
19
|
export declare type GroupOrderGuests = GroupOrderGuest[];
|
|
20
|
+
export interface GroupOrderRevenueCenter {
|
|
21
|
+
is_outpost: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
revenue_center_id: number;
|
|
24
|
+
revenue_center_type: RevenueCenterType;
|
|
25
|
+
timezone: TimezonePython;
|
|
26
|
+
}
|
|
19
27
|
export interface GroupOrder {
|
|
20
28
|
address: Address | null;
|
|
21
29
|
cart: SimpleCart;
|
|
@@ -33,6 +41,10 @@ export interface GroupOrder {
|
|
|
33
41
|
token: string;
|
|
34
42
|
}
|
|
35
43
|
export declare type GroupOrders = GroupOrder[];
|
|
44
|
+
export interface GroupOrderExpanded extends GroupOrder {
|
|
45
|
+
revenue_center: GroupOrderRevenueCenter;
|
|
46
|
+
}
|
|
47
|
+
export declare type GroupOrdersExpanded = GroupOrderExpanded[];
|
|
36
48
|
export interface GroupOrderTime {
|
|
37
49
|
isAdjusted: boolean;
|
|
38
50
|
firstIso: ISOString;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare type Version = number | null;
|
|
2
|
+
export declare type RequestStatus = 'idle' | 'pending';
|
|
1
3
|
export interface IndexedError {
|
|
2
4
|
index: any;
|
|
3
5
|
[x: string]: string;
|
|
@@ -14,5 +16,9 @@ export interface RequestErrorAPI extends RequestErrorMessage {
|
|
|
14
16
|
params?: RequestErrorParams;
|
|
15
17
|
}
|
|
16
18
|
export declare type RequestError = RequestErrorAPI | null | undefined;
|
|
17
|
-
export declare type
|
|
18
|
-
export
|
|
19
|
+
export declare type CheckoutErrorParams = Record<string, RequestErrorMessage>;
|
|
20
|
+
export interface CheckoutErrorAPI extends RequestErrorMessage {
|
|
21
|
+
status: number;
|
|
22
|
+
params?: CheckoutErrorParams;
|
|
23
|
+
}
|
|
24
|
+
export declare type CheckoutError = CheckoutErrorAPI | null | undefined;
|
package/package.json
CHANGED