@ikas/storefront 0.0.162-alpha.9 → 0.0.163-alpha.1
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/__generated__/global-types.d.ts +12 -29
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +10 -0
- package/build/api/checkout/__generated__/getOrder.d.ts +215 -0
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +7 -0
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +2 -0
- package/build/api/checkout/index.d.ts +2 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +2 -2
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +2 -2
- package/build/api/customer/index.d.ts +2 -2
- package/build/assets/translations/checkout/en.js +161 -0
- package/build/assets/translations/checkout/tr.js +161 -0
- package/build/components/checkout/components/address-form/index.d.ts +2 -14
- package/build/components/checkout/components/address-form/model.d.ts +39 -12
- package/build/components/checkout/components/button/index.d.ts +1 -0
- package/build/components/checkout/components/cart-summary/gift.d.ts +7 -0
- package/build/components/checkout/components/checkbox/index.d.ts +1 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
- package/build/components/checkout/components/cross.d.ts +2 -2
- package/build/components/checkout/components/customer-addresses/index.d.ts +15 -0
- package/build/components/checkout/components/customer-addresses/model.d.ts +21 -0
- package/build/components/checkout/components/{error-container → error}/customer-login-required-error/index.d.ts +2 -0
- package/build/components/checkout/components/error/index.d.ts +7 -0
- package/build/components/checkout/components/{error-container → error}/no-shipping-error/index.d.ts +0 -0
- package/build/components/checkout/components/{error-container → error}/payment-error/index.d.ts +0 -0
- package/build/components/checkout/components/{error-container → error}/stock-error/index.d.ts +2 -2
- package/build/components/checkout/components/{error-container → error}/unknown-error/index.d.ts +0 -0
- package/build/components/checkout/components/expandable-section/index.d.ts +6 -0
- package/build/components/checkout/components/form-item/model.d.ts +14 -0
- package/build/components/checkout/components/ikas.d.ts +6 -0
- package/build/components/checkout/components/input-with-button/index.d.ts +11 -0
- package/build/components/checkout/components/lock.d.ts +6 -0
- package/build/components/checkout/components/{policy-modal → modal}/index.d.ts +2 -2
- package/build/components/checkout/components/notification-box/index.d.ts +9 -0
- package/build/components/checkout/components/select-box/index.d.ts +11 -0
- package/build/components/checkout/components/step-container/index.d.ts +15 -0
- package/build/components/checkout/components/success-circle.d.ts +6 -0
- package/build/components/checkout/components/toggle/index.d.ts +3 -0
- package/build/components/checkout/components/tooltip/index.d.ts +8 -0
- package/build/components/checkout/components/warning.d.ts +6 -0
- package/build/components/checkout/index.d.ts +22 -3
- package/build/components/checkout/model.d.ts +19 -8
- package/build/components/checkout/steps/step-info/index.d.ts +2 -2
- package/build/components/index.d.ts +0 -1
- package/build/index.es.js +38738 -15007
- package/build/index.js +38290 -14558
- package/build/models/data/checkout/index.d.ts +10 -1
- package/build/models/data/checkout-settings/index.d.ts +6 -0
- package/build/models/data/customer/address/index.d.ts +6 -0
- package/build/models/data/order/address/index.d.ts +2 -0
- package/build/models/data/order/gift-line/index.d.ts +4 -0
- package/build/models/data/order/line-item/index.d.ts +1 -0
- package/build/models/data/order-transaction/index.d.ts +6 -5
- package/build/models/data/payment-gateway/index.d.ts +2 -0
- package/build/models/theme/page/index.d.ts +2 -1
- package/build/models/theme/theme.d.ts +2 -0
- package/build/pages/checkout/[id].d.ts +2 -0
- package/build/store/base.d.ts +1 -0
- package/build/store/customer.d.ts +1 -0
- package/build/storefront/index.d.ts +2 -0
- package/build/utils/helper.d.ts +1 -0
- package/build/utils/i18n.d.ts +8 -1
- package/build/utils/providers/prop-value/checkout.d.ts +4 -0
- package/package.json +5 -2
- package/build/components/checkout/components/breadcrumbs/index.d.ts +0 -7
- package/build/components/checkout/components/error-container/index.d.ts +0 -6
- package/build/components/checkout/components/expandable-list/index.d.ts +0 -13
- package/build/components/checkout/components/info-box/index.d.ts +0 -8
- package/build/components/checkout/components/step-action-buttons/index.d.ts +0 -10
- package/build/components/checkout/components/text-button/index.d.ts +0 -7
|
@@ -155,6 +155,14 @@ export declare enum OrderPackageStatusEnum {
|
|
|
155
155
|
UNABLE_TO_DELIVER = "UNABLE_TO_DELIVER",
|
|
156
156
|
UNFULFILLED = "UNFULFILLED"
|
|
157
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* Order Payment Status Enum
|
|
160
|
+
*/
|
|
161
|
+
export declare enum OrderPaymentStatusEnum {
|
|
162
|
+
PAID = "PAID",
|
|
163
|
+
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
164
|
+
WAITING = "WAITING"
|
|
165
|
+
}
|
|
158
166
|
/**
|
|
159
167
|
* Order Status Enum
|
|
160
168
|
*/
|
|
@@ -168,23 +176,14 @@ export declare enum OrderStatusEnum {
|
|
|
168
176
|
REFUND_REJECTED = "REFUND_REJECTED",
|
|
169
177
|
REFUND_REQUESTED = "REFUND_REQUESTED"
|
|
170
178
|
}
|
|
171
|
-
/**
|
|
172
|
-
* Payment Gateway Additional Price Type Enum
|
|
173
|
-
*/
|
|
174
179
|
export declare enum PaymentGatewayAdditionalPriceTypeEnum {
|
|
175
180
|
DECREMENT = "DECREMENT",
|
|
176
181
|
INCREMENT = "INCREMENT"
|
|
177
182
|
}
|
|
178
|
-
/**
|
|
179
|
-
* Payment Gateway Transaction Fee Type Enum
|
|
180
|
-
*/
|
|
181
183
|
export declare enum PaymentGatewayTransactionFeeTypeEnum {
|
|
182
184
|
AMOUNT = "AMOUNT",
|
|
183
185
|
RATIO = "RATIO"
|
|
184
186
|
}
|
|
185
|
-
/**
|
|
186
|
-
* Payment Method Enum
|
|
187
|
-
*/
|
|
188
187
|
export declare enum PaymentMethodEnum {
|
|
189
188
|
APP_PAYMENT = "APP_PAYMENT",
|
|
190
189
|
BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
|
|
@@ -196,14 +195,6 @@ export declare enum PaymentMethodEnum {
|
|
|
196
195
|
MONEY_ORDER = "MONEY_ORDER",
|
|
197
196
|
OTHER = "OTHER"
|
|
198
197
|
}
|
|
199
|
-
/**
|
|
200
|
-
* Payment Status Enum
|
|
201
|
-
*/
|
|
202
|
-
export declare enum PaymentStatusEnum {
|
|
203
|
-
PAID = "PAID",
|
|
204
|
-
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
205
|
-
WAITING = "WAITING"
|
|
206
|
-
}
|
|
207
198
|
/**
|
|
208
199
|
* ProductAttribute Types
|
|
209
200
|
*/
|
|
@@ -298,35 +289,23 @@ export declare enum StorefrontThemeStatus {
|
|
|
298
289
|
READY = "READY",
|
|
299
290
|
WAITING = "WAITING"
|
|
300
291
|
}
|
|
301
|
-
/**
|
|
302
|
-
* Transaction Card Association Enum
|
|
303
|
-
*/
|
|
304
292
|
export declare enum TransactionCardAssociationEnum {
|
|
305
293
|
AMERICAN_EXPRESS = "AMERICAN_EXPRESS",
|
|
306
294
|
MASTER_CARD = "MASTER_CARD",
|
|
307
295
|
TROY = "TROY",
|
|
308
296
|
VISA = "VISA"
|
|
309
297
|
}
|
|
310
|
-
/**
|
|
311
|
-
* Transaction Card Type Enum
|
|
312
|
-
*/
|
|
313
298
|
export declare enum TransactionCardTypeEnum {
|
|
314
299
|
CREDIT = "CREDIT",
|
|
315
300
|
DEBIT = "DEBIT",
|
|
316
301
|
PREPAID = "PREPAID"
|
|
317
302
|
}
|
|
318
|
-
/**
|
|
319
|
-
* Transaction Status Enum
|
|
320
|
-
*/
|
|
321
303
|
export declare enum TransactionStatusEnum {
|
|
322
304
|
AUTHORIZED = "AUTHORIZED",
|
|
323
305
|
FAILED = "FAILED",
|
|
324
306
|
PENDING = "PENDING",
|
|
325
307
|
SUCCESS = "SUCCESS"
|
|
326
308
|
}
|
|
327
|
-
/**
|
|
328
|
-
* Transaction Type Enum
|
|
329
|
-
*/
|
|
330
309
|
export declare enum TransactionTypeEnum {
|
|
331
310
|
REFUND = "REFUND",
|
|
332
311
|
SALE = "SALE",
|
|
@@ -444,6 +423,7 @@ export interface OrderAddressInput {
|
|
|
444
423
|
country: OrderAddressCountryInput;
|
|
445
424
|
district?: OrderAddressDistrictInput | null;
|
|
446
425
|
firstName: string;
|
|
426
|
+
id?: string | null;
|
|
447
427
|
identityNumber?: string | null;
|
|
448
428
|
isDefault: boolean;
|
|
449
429
|
lastName: string;
|
|
@@ -518,7 +498,9 @@ export interface SaveCheckoutInput {
|
|
|
518
498
|
createdAt?: any | null;
|
|
519
499
|
customer?: CheckoutCustomerInput | null;
|
|
520
500
|
deleted?: boolean | null;
|
|
501
|
+
giftPackageNote?: string | null;
|
|
521
502
|
id?: string | null;
|
|
503
|
+
isGiftPackage?: boolean | null;
|
|
522
504
|
note?: string | null;
|
|
523
505
|
shippingAddress?: OrderAddressInput | null;
|
|
524
506
|
shippingMethod: ShippingMethodEnum;
|
|
@@ -547,6 +529,7 @@ export interface SearchInput {
|
|
|
547
529
|
categoryIdList?: string[] | null;
|
|
548
530
|
facetList?: SearchInputFacetListInput[] | null;
|
|
549
531
|
filterList?: SearchInputFilterListInput[] | null;
|
|
532
|
+
locale?: string | null;
|
|
550
533
|
order?: SearchInputOrderByInput[] | null;
|
|
551
534
|
page?: number | null;
|
|
552
535
|
perPage?: number | null;
|
|
@@ -33,6 +33,7 @@ export interface getCheckoutById_getCheckoutById_billingAddress_state {
|
|
|
33
33
|
}
|
|
34
34
|
export interface getCheckoutById_getCheckoutById_billingAddress {
|
|
35
35
|
__typename: "OrderAddress";
|
|
36
|
+
id: string | null;
|
|
36
37
|
addressLine1: string;
|
|
37
38
|
addressLine2: string | null;
|
|
38
39
|
city: getCheckoutById_getCheckoutById_billingAddress_city;
|
|
@@ -82,6 +83,7 @@ export interface getCheckoutById_getCheckoutById_shippingAddress_state {
|
|
|
82
83
|
}
|
|
83
84
|
export interface getCheckoutById_getCheckoutById_shippingAddress {
|
|
84
85
|
__typename: "OrderAddress";
|
|
86
|
+
id: string | null;
|
|
85
87
|
addressLine1: string;
|
|
86
88
|
addressLine2: string | null;
|
|
87
89
|
city: getCheckoutById_getCheckoutById_shippingAddress_city;
|
|
@@ -172,6 +174,11 @@ export interface getCheckoutById_getCheckoutById_adjustments {
|
|
|
172
174
|
type: AdjustmentEnum;
|
|
173
175
|
couponId: string | null;
|
|
174
176
|
}
|
|
177
|
+
export interface getCheckoutById_getCheckoutById_giftPackageLines {
|
|
178
|
+
__typename: "OrderGiftPackageLine";
|
|
179
|
+
price: number;
|
|
180
|
+
taxValue: number | null;
|
|
181
|
+
}
|
|
175
182
|
export interface getCheckoutById_getCheckoutById {
|
|
176
183
|
__typename: "Checkout";
|
|
177
184
|
totalFinalPrice: number;
|
|
@@ -198,6 +205,9 @@ export interface getCheckoutById_getCheckoutById {
|
|
|
198
205
|
updatedAt: any | null;
|
|
199
206
|
cart: getCheckoutById_getCheckoutById_cart | null;
|
|
200
207
|
adjustments: getCheckoutById_getCheckoutById_adjustments[] | null;
|
|
208
|
+
giftPackageLines: getCheckoutById_getCheckoutById_giftPackageLines[] | null;
|
|
209
|
+
isGiftPackage: boolean | null;
|
|
210
|
+
giftPackageNote: string | null;
|
|
201
211
|
}
|
|
202
212
|
export interface getCheckoutById {
|
|
203
213
|
getCheckoutById: getCheckoutById_getCheckoutById;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum, OrderPaymentStatusEnum, ShippingMethodEnum, OrderStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface getOrder_getOrder_billingAddress_city {
|
|
3
|
+
__typename: "OrderAddressCity";
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface getOrder_getOrder_billingAddress_country {
|
|
9
|
+
__typename: "OrderAddressCountry";
|
|
10
|
+
name: string;
|
|
11
|
+
id: string | null;
|
|
12
|
+
code: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface getOrder_getOrder_billingAddress_district {
|
|
15
|
+
__typename: "OrderAddressDistrict";
|
|
16
|
+
name: string | null;
|
|
17
|
+
id: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface getOrder_getOrder_billingAddress_state {
|
|
21
|
+
__typename: "OrderAddressState";
|
|
22
|
+
name: string | null;
|
|
23
|
+
id: string | null;
|
|
24
|
+
code: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface getOrder_getOrder_billingAddress {
|
|
27
|
+
__typename: "OrderAddress";
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2: string | null;
|
|
30
|
+
city: getOrder_getOrder_billingAddress_city;
|
|
31
|
+
company: string | null;
|
|
32
|
+
country: getOrder_getOrder_billingAddress_country;
|
|
33
|
+
district: getOrder_getOrder_billingAddress_district | null;
|
|
34
|
+
firstName: string;
|
|
35
|
+
identityNumber: string | null;
|
|
36
|
+
isDefault: boolean;
|
|
37
|
+
lastName: string;
|
|
38
|
+
phone: string | null;
|
|
39
|
+
postalCode: string;
|
|
40
|
+
state: getOrder_getOrder_billingAddress_state | null;
|
|
41
|
+
taxNumber: string | null;
|
|
42
|
+
taxOffice: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface getOrder_getOrder_currencyRates {
|
|
45
|
+
__typename: "OrderCurrencyRate";
|
|
46
|
+
rate: number;
|
|
47
|
+
originalRate: number;
|
|
48
|
+
code: string;
|
|
49
|
+
}
|
|
50
|
+
export interface getOrder_getOrder_customer {
|
|
51
|
+
__typename: "OrderCustomer";
|
|
52
|
+
lastName: string | null;
|
|
53
|
+
firstName: string | null;
|
|
54
|
+
email: string | null;
|
|
55
|
+
id: string | null;
|
|
56
|
+
}
|
|
57
|
+
export interface getOrder_getOrder_orderAdjustments {
|
|
58
|
+
__typename: "OrderAdjustment";
|
|
59
|
+
type: AdjustmentEnum;
|
|
60
|
+
order: number;
|
|
61
|
+
name: string;
|
|
62
|
+
amountType: AmountTypeEnum;
|
|
63
|
+
amount: number;
|
|
64
|
+
}
|
|
65
|
+
export interface getOrder_getOrder_orderLineItems_discount {
|
|
66
|
+
__typename: "OrderLineDiscount";
|
|
67
|
+
reason: string | null;
|
|
68
|
+
amountType: AmountTypeEnum;
|
|
69
|
+
amount: number;
|
|
70
|
+
}
|
|
71
|
+
export interface getOrder_getOrder_orderLineItems_variant_variantValues {
|
|
72
|
+
__typename: "OrderLineVariantVariantValues";
|
|
73
|
+
variantValueName: string;
|
|
74
|
+
variantValueId: string;
|
|
75
|
+
variantTypeName: string;
|
|
76
|
+
variantTypeId: string;
|
|
77
|
+
order: number;
|
|
78
|
+
}
|
|
79
|
+
export interface getOrder_getOrder_orderLineItems_variant {
|
|
80
|
+
__typename: "OrderLineVariant";
|
|
81
|
+
barcodeList: string[] | null;
|
|
82
|
+
id: string | null;
|
|
83
|
+
mainImageId: string | null;
|
|
84
|
+
name: string;
|
|
85
|
+
productId: string | null;
|
|
86
|
+
sku: string | null;
|
|
87
|
+
variantValues: getOrder_getOrder_orderLineItems_variant_variantValues[] | null;
|
|
88
|
+
}
|
|
89
|
+
export interface getOrder_getOrder_orderLineItems {
|
|
90
|
+
__typename: "OrderLineItem";
|
|
91
|
+
createdAt: any | null;
|
|
92
|
+
currencyCode: string | null;
|
|
93
|
+
deleted: boolean | null;
|
|
94
|
+
discount: getOrder_getOrder_orderLineItems_discount | null;
|
|
95
|
+
discountPrice: number | null;
|
|
96
|
+
finalPrice: number | null;
|
|
97
|
+
id: string;
|
|
98
|
+
originalOrderLineItemId: string | null;
|
|
99
|
+
price: number;
|
|
100
|
+
quantity: number;
|
|
101
|
+
status: OrderLineItemStatusEnum;
|
|
102
|
+
statusUpdatedAt: any | null;
|
|
103
|
+
stockLocationId: string | null;
|
|
104
|
+
taxValue: number | null;
|
|
105
|
+
updatedAt: any | null;
|
|
106
|
+
variant: getOrder_getOrder_orderLineItems_variant;
|
|
107
|
+
}
|
|
108
|
+
export interface getOrder_getOrder_orderPackages_trackingInfo {
|
|
109
|
+
__typename: "TrackingInfo";
|
|
110
|
+
trackingNumber: string | null;
|
|
111
|
+
trackingLink: string | null;
|
|
112
|
+
isSendNotification: boolean | null;
|
|
113
|
+
cargoCompany: string | null;
|
|
114
|
+
}
|
|
115
|
+
export interface getOrder_getOrder_orderPackages {
|
|
116
|
+
__typename: "OrderPackage";
|
|
117
|
+
updatedAt: any | null;
|
|
118
|
+
trackingInfo: getOrder_getOrder_orderPackages_trackingInfo | null;
|
|
119
|
+
stockLocationId: string;
|
|
120
|
+
orderPackageNumber: string;
|
|
121
|
+
orderPackageFulfillStatus: OrderPackageFulfillStatusEnum;
|
|
122
|
+
orderLineItemIds: string[];
|
|
123
|
+
id: string;
|
|
124
|
+
deleted: boolean | null;
|
|
125
|
+
createdAt: any | null;
|
|
126
|
+
}
|
|
127
|
+
export interface getOrder_getOrder_shippingAddress_state {
|
|
128
|
+
__typename: "OrderAddressState";
|
|
129
|
+
name: string | null;
|
|
130
|
+
id: string | null;
|
|
131
|
+
code: string | null;
|
|
132
|
+
}
|
|
133
|
+
export interface getOrder_getOrder_shippingAddress_district {
|
|
134
|
+
__typename: "OrderAddressDistrict";
|
|
135
|
+
name: string | null;
|
|
136
|
+
id: string | null;
|
|
137
|
+
code: string | null;
|
|
138
|
+
}
|
|
139
|
+
export interface getOrder_getOrder_shippingAddress_country {
|
|
140
|
+
__typename: "OrderAddressCountry";
|
|
141
|
+
name: string;
|
|
142
|
+
id: string | null;
|
|
143
|
+
code: string | null;
|
|
144
|
+
}
|
|
145
|
+
export interface getOrder_getOrder_shippingAddress_city {
|
|
146
|
+
__typename: "OrderAddressCity";
|
|
147
|
+
id: string | null;
|
|
148
|
+
code: string | null;
|
|
149
|
+
name: string;
|
|
150
|
+
}
|
|
151
|
+
export interface getOrder_getOrder_shippingAddress {
|
|
152
|
+
__typename: "OrderAddress";
|
|
153
|
+
taxOffice: string | null;
|
|
154
|
+
taxNumber: string | null;
|
|
155
|
+
state: getOrder_getOrder_shippingAddress_state | null;
|
|
156
|
+
postalCode: string;
|
|
157
|
+
phone: string | null;
|
|
158
|
+
lastName: string;
|
|
159
|
+
isDefault: boolean;
|
|
160
|
+
identityNumber: string | null;
|
|
161
|
+
firstName: string;
|
|
162
|
+
district: getOrder_getOrder_shippingAddress_district | null;
|
|
163
|
+
country: getOrder_getOrder_shippingAddress_country;
|
|
164
|
+
company: string | null;
|
|
165
|
+
city: getOrder_getOrder_shippingAddress_city;
|
|
166
|
+
addressLine2: string | null;
|
|
167
|
+
addressLine1: string;
|
|
168
|
+
}
|
|
169
|
+
export interface getOrder_getOrder_shippingLines {
|
|
170
|
+
__typename: "OrderShippingLine";
|
|
171
|
+
title: string;
|
|
172
|
+
taxValue: number | null;
|
|
173
|
+
price: number;
|
|
174
|
+
}
|
|
175
|
+
export interface getOrder_getOrder_taxLines {
|
|
176
|
+
__typename: "OrderTaxLine";
|
|
177
|
+
rate: number;
|
|
178
|
+
price: number;
|
|
179
|
+
}
|
|
180
|
+
export interface getOrder_getOrder {
|
|
181
|
+
__typename: "Order";
|
|
182
|
+
billingAddress: getOrder_getOrder_billingAddress | null;
|
|
183
|
+
cancelledAt: any | null;
|
|
184
|
+
cancelReason: CancelledReasonEnum | null;
|
|
185
|
+
createdAt: any | null;
|
|
186
|
+
currencyCode: string;
|
|
187
|
+
currencyRates: getOrder_getOrder_currencyRates[];
|
|
188
|
+
customer: getOrder_getOrder_customer | null;
|
|
189
|
+
deleted: boolean | null;
|
|
190
|
+
id: string;
|
|
191
|
+
merchantId: string;
|
|
192
|
+
note: string | null;
|
|
193
|
+
orderedAt: any | null;
|
|
194
|
+
orderAdjustments: getOrder_getOrder_orderAdjustments[] | null;
|
|
195
|
+
orderLineItems: getOrder_getOrder_orderLineItems[];
|
|
196
|
+
orderNumber: string | null;
|
|
197
|
+
orderPackages: getOrder_getOrder_orderPackages[] | null;
|
|
198
|
+
orderPackageStatus: OrderPackageStatusEnum | null;
|
|
199
|
+
orderPaymentStatus: OrderPaymentStatusEnum | null;
|
|
200
|
+
orderTagIds: string[] | null;
|
|
201
|
+
shippingAddress: getOrder_getOrder_shippingAddress | null;
|
|
202
|
+
shippingLines: getOrder_getOrder_shippingLines[] | null;
|
|
203
|
+
shippingMethod: ShippingMethodEnum;
|
|
204
|
+
status: OrderStatusEnum;
|
|
205
|
+
taxLines: getOrder_getOrder_taxLines[] | null;
|
|
206
|
+
totalFinalPrice: number;
|
|
207
|
+
totalPrice: number;
|
|
208
|
+
updatedAt: any | null;
|
|
209
|
+
}
|
|
210
|
+
export interface getOrder {
|
|
211
|
+
getOrder: getOrder_getOrder;
|
|
212
|
+
}
|
|
213
|
+
export interface getOrderVariables {
|
|
214
|
+
orderId?: string | null;
|
|
215
|
+
}
|
|
@@ -4,6 +4,11 @@ export interface listCheckoutSettings_listCheckoutSettings_options {
|
|
|
4
4
|
name: string;
|
|
5
5
|
required: boolean;
|
|
6
6
|
}
|
|
7
|
+
export interface listCheckoutSettings_listCheckoutSettings_giftPackagePriceList {
|
|
8
|
+
__typename: "CheckoutSettingsPrice";
|
|
9
|
+
currencyCode: string;
|
|
10
|
+
price: number;
|
|
11
|
+
}
|
|
7
12
|
export interface listCheckoutSettings_listCheckoutSettings {
|
|
8
13
|
__typename: "CheckoutSettings";
|
|
9
14
|
createdAt: any | null;
|
|
@@ -17,6 +22,8 @@ export interface listCheckoutSettings_listCheckoutSettings {
|
|
|
17
22
|
showTermsAndConditionsCheckbox: boolean;
|
|
18
23
|
storefrontId: string;
|
|
19
24
|
updatedAt: any | null;
|
|
25
|
+
isGiftPackageEnabled: boolean | null;
|
|
26
|
+
giftPackagePriceList: listCheckoutSettings_listCheckoutSettings_giftPackagePriceList[] | null;
|
|
20
27
|
}
|
|
21
28
|
export interface listCheckoutSettings {
|
|
22
29
|
listCheckoutSettings: listCheckoutSettings_listCheckoutSettings[];
|
|
@@ -19,6 +19,7 @@ export interface listPaymentGateway_listPaymentGateway {
|
|
|
19
19
|
name: string;
|
|
20
20
|
description: string | null;
|
|
21
21
|
testMode: boolean | null;
|
|
22
|
+
code: string;
|
|
22
23
|
additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
|
|
23
24
|
}
|
|
24
25
|
export interface listPaymentGateway {
|
|
@@ -26,4 +27,5 @@ export interface listPaymentGateway {
|
|
|
26
27
|
}
|
|
27
28
|
export interface listPaymentGatewayVariables {
|
|
28
29
|
id?: StringFilterInput | null;
|
|
30
|
+
locale?: string | null;
|
|
29
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasCheckout, IkasPaymentMethodDetail, IkasInstallmentInfo, IkasInstallmentInfoInput } from "../../models/index";
|
|
1
|
+
import { IkasCheckout, IkasPaymentMethodDetail, IkasInstallmentInfo, IkasInstallmentInfoInput, IkasOrder } from "../../models/index";
|
|
2
2
|
import * as SaleTransactionTypes from "./__generated__/createSaleTransactionWithCheckout";
|
|
3
3
|
import * as CheckStocksTypes from "./__generated__/checkStocks";
|
|
4
4
|
import { IkasPaymentGateway } from "../../models/data/payment-gateway/index";
|
|
@@ -7,6 +7,7 @@ import { GraphQLError } from "graphql";
|
|
|
7
7
|
export declare class IkasCheckoutAPI {
|
|
8
8
|
static getCheckoutId(cartId: string): Promise<string | undefined>;
|
|
9
9
|
static getCheckoutById(id: string): Promise<IkasCheckout | undefined>;
|
|
10
|
+
static getOrder(orderId: string): Promise<IkasOrder | undefined>;
|
|
10
11
|
static saveCheckout(checkout: IkasCheckout): Promise<SaveCheckoutResponse | undefined>;
|
|
11
12
|
static createSaleTransactionWithCheckout(checkoutId: string, paymentGatewayId: string, paymentMethodDetail?: IkasPaymentMethodDetail): Promise<SaleTransactionTypes.createSaleTransactionWithCheckout_createSaleTransactionWithCheckout | undefined>;
|
|
12
13
|
static listPaymentGateway(idList?: string[]): Promise<IkasPaymentGateway[] | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrderRefundRequestInput, CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum,
|
|
1
|
+
import { OrderRefundRequestInput, CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum, OrderPaymentStatusEnum, ShippingMethodEnum, OrderStatusEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_city {
|
|
3
3
|
__typename: "OrderAddressCity";
|
|
4
4
|
code: string | null;
|
|
@@ -196,7 +196,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest {
|
|
|
196
196
|
orderNumber: string | null;
|
|
197
197
|
orderPackages: createOrderRefundRequest_createOrderRefundRequest_orderPackages[] | null;
|
|
198
198
|
orderPackageStatus: OrderPackageStatusEnum | null;
|
|
199
|
-
orderPaymentStatus:
|
|
199
|
+
orderPaymentStatus: OrderPaymentStatusEnum | null;
|
|
200
200
|
orderTagIds: string[] | null;
|
|
201
201
|
shippingAddress: createOrderRefundRequest_createOrderRefundRequest_shippingAddress | null;
|
|
202
202
|
shippingLines: createOrderRefundRequest_createOrderRefundRequest_shippingLines[] | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum,
|
|
1
|
+
import { CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum, OrderPaymentStatusEnum, ShippingMethodEnum, OrderStatusEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface getCustomerOrders_getCustomerOrders_billingAddress_city {
|
|
3
3
|
__typename: "OrderAddressCity";
|
|
4
4
|
code: string | null;
|
|
@@ -196,7 +196,7 @@ export interface getCustomerOrders_getCustomerOrders {
|
|
|
196
196
|
orderNumber: string | null;
|
|
197
197
|
orderPackages: getCustomerOrders_getCustomerOrders_orderPackages[] | null;
|
|
198
198
|
orderPackageStatus: OrderPackageStatusEnum | null;
|
|
199
|
-
orderPaymentStatus:
|
|
199
|
+
orderPaymentStatus: OrderPaymentStatusEnum | null;
|
|
200
200
|
orderTagIds: string[] | null;
|
|
201
201
|
shippingAddress: getCustomerOrders_getCustomerOrders_shippingAddress | null;
|
|
202
202
|
shippingLines: getCustomerOrders_getCustomerOrders_shippingLines[] | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasCustomer, IkasOrder, IkasOrderRefundSettings } from "../../models/index";
|
|
1
|
+
import { IkasCustomer, IkasOrder, IkasOrderRefundSettings, IkasOrderTransaction } from "../../models/index";
|
|
2
2
|
import { IkasRefund } from "../../models/data/order/refund/index";
|
|
3
3
|
import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
|
|
4
4
|
import * as GetLastViewedProductsTypes from "./__generated__/getLastViewedProducts";
|
|
@@ -26,7 +26,7 @@ export declare class IkasCustomerAPI {
|
|
|
26
26
|
checkoutId?: string;
|
|
27
27
|
id?: string;
|
|
28
28
|
orderId?: string;
|
|
29
|
-
}): Promise<
|
|
29
|
+
}): Promise<IkasOrderTransaction[]>;
|
|
30
30
|
static saveIkasOrderRefund(input: IkasRefund): Promise<IkasOrder | undefined>;
|
|
31
31
|
static createCustomerEmailSubscription(email: string): Promise<boolean>;
|
|
32
32
|
static getLastViewedProducts(customerId: string): Promise<GetLastViewedProductsTypes.getLastViewedProducts_getLastViewedProducts_products[]>;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
actions: {
|
|
3
|
+
login: "Login",
|
|
4
|
+
edit: "Edit",
|
|
5
|
+
apply: "Apply",
|
|
6
|
+
close: "Close",
|
|
7
|
+
cancel: "Cancel",
|
|
8
|
+
save: "Save",
|
|
9
|
+
continue: "Continue",
|
|
10
|
+
show: "Show",
|
|
11
|
+
hide: "Hide",
|
|
12
|
+
sendMessage: "Send Message",
|
|
13
|
+
continueWithShipping: "Continue with Shipping",
|
|
14
|
+
continueWithPayment: "Continue with Payment",
|
|
15
|
+
completeOrder: "Complete the Order",
|
|
16
|
+
backToShopping: "Back to Shopping",
|
|
17
|
+
backToCart: "Back to Cart",
|
|
18
|
+
},
|
|
19
|
+
securePayment: "Secure Payment",
|
|
20
|
+
alreadyHaveAnAccount: "Already have an account?",
|
|
21
|
+
|
|
22
|
+
address: "Address",
|
|
23
|
+
addressError: "Enter address",
|
|
24
|
+
editAddress: "Edit Address",
|
|
25
|
+
deleteAddress: "Delete Address",
|
|
26
|
+
saveAddressCta: "Save this address for future purchases",
|
|
27
|
+
firstName: "Name",
|
|
28
|
+
firstNameError: "Enter name",
|
|
29
|
+
lastName: "Surname",
|
|
30
|
+
lastNameError: "Enter surname",
|
|
31
|
+
identityNumber: "Identity Number",
|
|
32
|
+
identityNumberError: "Enter identity number",
|
|
33
|
+
addressTitle: "Adress Title",
|
|
34
|
+
adressTitleError: "Enter address title",
|
|
35
|
+
addressLine2: "Address Second Line",
|
|
36
|
+
postalCode: "Postal Code",
|
|
37
|
+
postalCodeError: "Enter postal code",
|
|
38
|
+
country: "Country",
|
|
39
|
+
countryError: "Select country",
|
|
40
|
+
state: "State",
|
|
41
|
+
stateError: "Select state",
|
|
42
|
+
city: "City",
|
|
43
|
+
cityError: "Select city",
|
|
44
|
+
district: "District",
|
|
45
|
+
districtError: "Select district",
|
|
46
|
+
phone: "Phone",
|
|
47
|
+
phoneError: "Enter a valid phone number",
|
|
48
|
+
companyName: "Company Name",
|
|
49
|
+
taxOffice: "Tax Office",
|
|
50
|
+
taxNumber: "Tax Number",
|
|
51
|
+
|
|
52
|
+
shipping: "Shipping",
|
|
53
|
+
payment: "Payment",
|
|
54
|
+
|
|
55
|
+
free: "Free",
|
|
56
|
+
standartShipping: "Standart Shipping",
|
|
57
|
+
returnPolicy: "Return Policy",
|
|
58
|
+
privacyPolicy: "Privacy Policy",
|
|
59
|
+
termsOfService: "Terms of Service",
|
|
60
|
+
newAddress: "New Address",
|
|
61
|
+
billingAddress: "Billing Address",
|
|
62
|
+
shippingAddress: "Shipping Address",
|
|
63
|
+
corporateInvoice: "Corporate invoice",
|
|
64
|
+
contactInfo: "Contact Information",
|
|
65
|
+
email: "E-Mail",
|
|
66
|
+
emailError: "Enter a valid e-mail",
|
|
67
|
+
guestEmailTooltip:
|
|
68
|
+
"Your order information will be sent to this e-mail address",
|
|
69
|
+
customerConsentCta: "Contact me about the news and promotions",
|
|
70
|
+
useShippingForBilling: "Use shipping address for billing",
|
|
71
|
+
installmentOptions: "Installment Options",
|
|
72
|
+
singleInstallment: "Single Payment",
|
|
73
|
+
installments: "Installments",
|
|
74
|
+
creditCard: "Credit Card",
|
|
75
|
+
|
|
76
|
+
ackPrivacyPolicy: "Privacy Policy",
|
|
77
|
+
ackTermsOfService: "Terms of Service",
|
|
78
|
+
ackPoliciesSentence:
|
|
79
|
+
"I acknowledge the {{ ackPrivacyPolicy }} and {{ ackTermsOfService }}.",
|
|
80
|
+
|
|
81
|
+
securePaymentTooltip: "All payments are secure and encrypted",
|
|
82
|
+
giftPackage: "Gift Package",
|
|
83
|
+
giftPackageCta: "Gift package cta",
|
|
84
|
+
giftPackageCtaPlaceholder: "Enter your gift message",
|
|
85
|
+
|
|
86
|
+
paymentMethod: "Payment Method",
|
|
87
|
+
paymentMethods: {
|
|
88
|
+
storePickup: "Store Pickup",
|
|
89
|
+
cashOnDelivery: "Cash on Delivery",
|
|
90
|
+
creditCardOnDelivery: "Credit Card on Delivery",
|
|
91
|
+
moneyOrder: "Money Order",
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
orderSuccessTitle: "Thank you for your order!",
|
|
95
|
+
orderSuccessDescription:
|
|
96
|
+
"Dear {{ customerName }}, we have received your order. We will notify you when your order is shipped.",
|
|
97
|
+
orderNoAndDate: "Order Number / Date",
|
|
98
|
+
paymentSummary: "Payment Summary",
|
|
99
|
+
shippingSummary: "Shipping Summary",
|
|
100
|
+
helpCtaQuestion: "Do you need help?",
|
|
101
|
+
helpCta: "Contact us",
|
|
102
|
+
|
|
103
|
+
contactForm: "Contact Form",
|
|
104
|
+
contactFormSent: "Message sent successfully",
|
|
105
|
+
contactFormDescription: "We will respond to your message as soon as possible",
|
|
106
|
+
contactFormCta: "Type your message",
|
|
107
|
+
|
|
108
|
+
orderPackageStatus: {
|
|
109
|
+
unfulfilled: "Unfulfilled",
|
|
110
|
+
readyForShipment: "Ready For Shipment",
|
|
111
|
+
fulfilled: "Fulfilled",
|
|
112
|
+
partiallyFulfilled: "Partially Fulfilled",
|
|
113
|
+
delivered: "Delivered",
|
|
114
|
+
unableToDeliver: "Unable to Deliver",
|
|
115
|
+
cancelled: "Cancelled",
|
|
116
|
+
cancelRejected: "Cancel Rejected",
|
|
117
|
+
cancelRequested: "Cancel Requested",
|
|
118
|
+
refunded: "Refunded",
|
|
119
|
+
refundRequestAccepted: "Refund Request Accepted",
|
|
120
|
+
refundRejected: "Refund Rejected",
|
|
121
|
+
refundRequested: "Refund Requested",
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
quantity: "Quantity",
|
|
125
|
+
cartItemProduct: "product",
|
|
126
|
+
giftCodeErrorTitle: "Gift Code Error",
|
|
127
|
+
giftCodeErrorDescription:
|
|
128
|
+
"The gift code you entered is not valid or not applicable to the products in your cart. Please check your code and try again.",
|
|
129
|
+
subtotal: "Subtotal",
|
|
130
|
+
total: "Total",
|
|
131
|
+
subtotalTooltip:
|
|
132
|
+
"Subtotal reflects the total for your cart before the discounts and does not include the shipping fees.",
|
|
133
|
+
cartShippingTitle: "Delivery / Shipping",
|
|
134
|
+
cartTaxTitle: "Tax",
|
|
135
|
+
cartInterest: "Interest",
|
|
136
|
+
couponCode: "Coupon Code",
|
|
137
|
+
addCouponCode: "Add coupon code",
|
|
138
|
+
addOrderNote: "Add order note",
|
|
139
|
+
orderNote: "Order Note",
|
|
140
|
+
enterPhoneNumber: "Enter phone number",
|
|
141
|
+
|
|
142
|
+
cardNumber: "Card Number",
|
|
143
|
+
cardNumberError: "Please enter a valid card number",
|
|
144
|
+
cardHolderName: "Cardholder Name",
|
|
145
|
+
cardHolderError: "Enter cardholder name",
|
|
146
|
+
cardExpiry: "Month / Year",
|
|
147
|
+
cardExpiryError: "Enter a valid date",
|
|
148
|
+
cardCVC: "CVC",
|
|
149
|
+
cardCVCError: "Enter a valid CVC",
|
|
150
|
+
cardCVCTooltip: "CVC is the 3 digit number behind your card",
|
|
151
|
+
|
|
152
|
+
errorCustomerRequired:
|
|
153
|
+
"This e-mail address belongs to a registered user. Please login to your account.",
|
|
154
|
+
errorNoShipping: "Your region is not available for shipping.",
|
|
155
|
+
errorPayment:
|
|
156
|
+
"Your payment could not be received. Please check your information and try again.",
|
|
157
|
+
errorStockTitle: "Stock Update!",
|
|
158
|
+
errorStockDescription:
|
|
159
|
+
"Some items in your cart are out of stock. Would you like to continue by removing these products from your cart?",
|
|
160
|
+
errorUnknown: "An unexpected error has occurred. Please try again.",
|
|
161
|
+
};
|