@ikas/storefront 0.0.168-alpha.13 → 0.0.168-alpha.14
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 +37 -24
- package/build/api/brand/__generated__/listProductBrand.d.ts +7 -0
- package/build/api/cart/__generated__/saveItemToCart.d.ts +6 -0
- package/build/api/category/__generated__/listCategory.d.ts +7 -0
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +8 -2
- package/build/api/checkout/__generated__/getOrder.d.ts +2 -2
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -0
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +3 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +2 -2
- package/build/api/customer/__generated__/customerLogin.d.ts +1 -1
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +2 -2
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +1 -1
- package/build/api/customer/__generated__/getMyCustomer.d.ts +1 -1
- package/build/api/customer/__generated__/registerCustomer.d.ts +1 -1
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +1 -1
- package/build/api/storefront/__generated__/getStorefront.d.ts +1 -1
- package/build/index.es.js +28 -12
- package/build/index.js +28 -12
- package/build/models/data/payment-gateway/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -75,6 +75,7 @@ export declare enum CheckoutRequirementEnum {
|
|
|
75
75
|
*/
|
|
76
76
|
export declare enum CheckoutStatusEnum {
|
|
77
77
|
COMPLETED = "COMPLETED",
|
|
78
|
+
KILLED = "KILLED",
|
|
78
79
|
OPEN = "OPEN"
|
|
79
80
|
}
|
|
80
81
|
/**
|
|
@@ -184,6 +185,11 @@ export declare enum PaymentGatewayTransactionFeeTypeEnum {
|
|
|
184
185
|
AMOUNT = "AMOUNT",
|
|
185
186
|
RATIO = "RATIO"
|
|
186
187
|
}
|
|
188
|
+
export declare enum PaymentGatewayTypeEnum {
|
|
189
|
+
EXTERNAL = "EXTERNAL",
|
|
190
|
+
INTERNAL = "INTERNAL",
|
|
191
|
+
THIRD_PARTY = "THIRD_PARTY"
|
|
192
|
+
}
|
|
187
193
|
export declare enum PaymentMethodEnum {
|
|
188
194
|
APP_PAYMENT = "APP_PAYMENT",
|
|
189
195
|
BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
|
|
@@ -205,6 +211,7 @@ export declare enum ProductAttributeTypeEnum {
|
|
|
205
211
|
HTML = "HTML",
|
|
206
212
|
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
207
213
|
NUMERIC = "NUMERIC",
|
|
214
|
+
PRODUCT = "PRODUCT",
|
|
208
215
|
TABLE = "TABLE",
|
|
209
216
|
TEXT = "TEXT"
|
|
210
217
|
}
|
|
@@ -327,6 +334,11 @@ export interface CartLineItemInput {
|
|
|
327
334
|
quantity: number;
|
|
328
335
|
variant: CartLineVariantInput;
|
|
329
336
|
}
|
|
337
|
+
export interface CartLineOptionInput {
|
|
338
|
+
productOptionId: string;
|
|
339
|
+
productOptionsSetId: string;
|
|
340
|
+
values: string[];
|
|
341
|
+
}
|
|
330
342
|
export interface CartLineVariantInput {
|
|
331
343
|
id?: string | null;
|
|
332
344
|
name?: string | null;
|
|
@@ -369,28 +381,6 @@ export interface CustomerAddressDistrictInput {
|
|
|
369
381
|
id?: string | null;
|
|
370
382
|
name?: string | null;
|
|
371
383
|
}
|
|
372
|
-
export interface CustomerAddressInput {
|
|
373
|
-
addressLine1: string;
|
|
374
|
-
addressLine2?: string | null;
|
|
375
|
-
city: CustomerAddressCityInput;
|
|
376
|
-
company?: string | null;
|
|
377
|
-
country: CustomerAddressCountryInput;
|
|
378
|
-
createdAt?: any | null;
|
|
379
|
-
deleted?: boolean | null;
|
|
380
|
-
district?: CustomerAddressDistrictInput | null;
|
|
381
|
-
firstName: string;
|
|
382
|
-
id?: string | null;
|
|
383
|
-
identityNumber?: string | null;
|
|
384
|
-
isDefault?: boolean | null;
|
|
385
|
-
lastName: string;
|
|
386
|
-
phone?: string | null;
|
|
387
|
-
postalCode: string;
|
|
388
|
-
state?: CustomerAddressStateInput | null;
|
|
389
|
-
taxNumber?: string | null;
|
|
390
|
-
taxOffice?: string | null;
|
|
391
|
-
title: string;
|
|
392
|
-
updatedAt?: any | null;
|
|
393
|
-
}
|
|
394
384
|
export interface CustomerAddressStateInput {
|
|
395
385
|
code?: string | null;
|
|
396
386
|
id?: string | null;
|
|
@@ -428,7 +418,7 @@ export interface OrderAddressInput {
|
|
|
428
418
|
isDefault: boolean;
|
|
429
419
|
lastName: string;
|
|
430
420
|
phone?: string | null;
|
|
431
|
-
postalCode
|
|
421
|
+
postalCode?: string | null;
|
|
432
422
|
state?: OrderAddressStateInput | null;
|
|
433
423
|
taxNumber?: string | null;
|
|
434
424
|
taxOffice?: string | null;
|
|
@@ -512,14 +502,37 @@ export interface SaveItemToCartInput {
|
|
|
512
502
|
cartId?: string | null;
|
|
513
503
|
customerId?: string | null;
|
|
514
504
|
item: CartLineItemInput;
|
|
505
|
+
options?: CartLineOptionInput[] | null;
|
|
515
506
|
priceListId?: string | null;
|
|
516
507
|
salesChannelId: string;
|
|
517
508
|
storefrontId: string;
|
|
518
509
|
storefrontRoutingId: string;
|
|
519
510
|
storefrontThemeId: string;
|
|
520
511
|
}
|
|
512
|
+
export interface SaveMyCustomerAddressInput {
|
|
513
|
+
addressLine1: string;
|
|
514
|
+
addressLine2?: string | null;
|
|
515
|
+
city: CustomerAddressCityInput;
|
|
516
|
+
company?: string | null;
|
|
517
|
+
country: CustomerAddressCountryInput;
|
|
518
|
+
createdAt?: any | null;
|
|
519
|
+
deleted?: boolean | null;
|
|
520
|
+
district?: CustomerAddressDistrictInput | null;
|
|
521
|
+
firstName: string;
|
|
522
|
+
id?: string | null;
|
|
523
|
+
identityNumber?: string | null;
|
|
524
|
+
isDefault?: boolean | null;
|
|
525
|
+
lastName: string;
|
|
526
|
+
phone?: string | null;
|
|
527
|
+
postalCode?: string | null;
|
|
528
|
+
state?: CustomerAddressStateInput | null;
|
|
529
|
+
taxNumber?: string | null;
|
|
530
|
+
taxOffice?: string | null;
|
|
531
|
+
title: string;
|
|
532
|
+
updatedAt?: any | null;
|
|
533
|
+
}
|
|
521
534
|
export interface SaveMyCustomerInput {
|
|
522
|
-
addresses?:
|
|
535
|
+
addresses?: SaveMyCustomerAddressInput[] | null;
|
|
523
536
|
firstName: string;
|
|
524
537
|
lastName: string;
|
|
525
538
|
phone?: string | null;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { StringFilterInput, PaginationInput, CategoryProductsOrderTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listProductBrand_listProductBrand_data_metaData_translations {
|
|
3
|
+
__typename: "HTMLMetaDataTranslation";
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
pageTitle: string | null;
|
|
7
|
+
}
|
|
2
8
|
export interface listProductBrand_listProductBrand_data_metaData {
|
|
3
9
|
__typename: "HTMLMetaData";
|
|
4
10
|
slug: string;
|
|
@@ -7,6 +13,7 @@ export interface listProductBrand_listProductBrand_data_metaData {
|
|
|
7
13
|
targetId: string | null;
|
|
8
14
|
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
9
15
|
redirectTo: string | null;
|
|
16
|
+
translations: listProductBrand_listProductBrand_data_metaData_translations[] | null;
|
|
10
17
|
}
|
|
11
18
|
export interface listProductBrand_listProductBrand_data_translations {
|
|
12
19
|
__typename: "ProductBrandTranslation";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { SaveItemToCartInput, AmountTypeEnum, OrderLineItemStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface saveItemToCart_saveItemToCart_taxLines {
|
|
3
|
+
__typename: "OrderTaxLine";
|
|
4
|
+
price: number;
|
|
5
|
+
rate: number;
|
|
6
|
+
}
|
|
2
7
|
export interface saveItemToCart_saveItemToCart_items_discount {
|
|
3
8
|
__typename: "OrderLineDiscount";
|
|
4
9
|
amount: number;
|
|
@@ -58,6 +63,7 @@ export interface saveItemToCart_saveItemToCart {
|
|
|
58
63
|
storefrontId: string | null;
|
|
59
64
|
storefrontRoutingId: string | null;
|
|
60
65
|
storefrontThemeId: string | null;
|
|
66
|
+
taxLines: saveItemToCart_saveItemToCart_taxLines[] | null;
|
|
61
67
|
items: saveItemToCart_saveItemToCart_items[];
|
|
62
68
|
}
|
|
63
69
|
export interface saveItemToCart {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { StringFilterInput, PaginationInput, CategoryProductsOrderTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listCategory_listCategory_data_metaData_translations {
|
|
3
|
+
__typename: "HTMLMetaDataTranslation";
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
pageTitle: string | null;
|
|
7
|
+
}
|
|
2
8
|
export interface listCategory_listCategory_data_metaData {
|
|
3
9
|
__typename: "HTMLMetaData";
|
|
4
10
|
slug: string;
|
|
@@ -7,6 +13,7 @@ export interface listCategory_listCategory_data_metaData {
|
|
|
7
13
|
targetId: string | null;
|
|
8
14
|
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
9
15
|
redirectTo: string | null;
|
|
16
|
+
translations: listCategory_listCategory_data_metaData_translations[] | null;
|
|
10
17
|
}
|
|
11
18
|
export interface listCategory_listCategory_data_translations {
|
|
12
19
|
__typename: "CategoryTranslation";
|
|
@@ -45,7 +45,7 @@ export interface getCheckoutById_getCheckoutById_billingAddress {
|
|
|
45
45
|
isDefault: boolean;
|
|
46
46
|
lastName: string;
|
|
47
47
|
phone: string | null;
|
|
48
|
-
postalCode: string;
|
|
48
|
+
postalCode: string | null;
|
|
49
49
|
state: getCheckoutById_getCheckoutById_billingAddress_state | null;
|
|
50
50
|
taxNumber: string | null;
|
|
51
51
|
taxOffice: string | null;
|
|
@@ -95,7 +95,7 @@ export interface getCheckoutById_getCheckoutById_shippingAddress {
|
|
|
95
95
|
isDefault: boolean;
|
|
96
96
|
lastName: string;
|
|
97
97
|
phone: string | null;
|
|
98
|
-
postalCode: string;
|
|
98
|
+
postalCode: string | null;
|
|
99
99
|
state: getCheckoutById_getCheckoutById_shippingAddress_state | null;
|
|
100
100
|
taxNumber: string | null;
|
|
101
101
|
taxOffice: string | null;
|
|
@@ -108,6 +108,11 @@ export interface getCheckoutById_getCheckoutById_shippingLines {
|
|
|
108
108
|
shippingSettingsId: string | null;
|
|
109
109
|
shippingZoneRateId: string | null;
|
|
110
110
|
}
|
|
111
|
+
export interface getCheckoutById_getCheckoutById_cart_taxLines {
|
|
112
|
+
__typename: "OrderTaxLine";
|
|
113
|
+
price: number;
|
|
114
|
+
rate: number;
|
|
115
|
+
}
|
|
111
116
|
export interface getCheckoutById_getCheckoutById_cart_items_discount {
|
|
112
117
|
__typename: "OrderLineDiscount";
|
|
113
118
|
amount: number;
|
|
@@ -160,6 +165,7 @@ export interface getCheckoutById_getCheckoutById_cart {
|
|
|
160
165
|
dueDate: any;
|
|
161
166
|
id: string;
|
|
162
167
|
itemCount: number;
|
|
168
|
+
taxLines: getCheckoutById_getCheckoutById_cart_taxLines[] | null;
|
|
163
169
|
items: getCheckoutById_getCheckoutById_cart_items[];
|
|
164
170
|
merchantId: string;
|
|
165
171
|
status: CartStatusEnum;
|
|
@@ -36,7 +36,7 @@ export interface getOrder_getOrder_billingAddress {
|
|
|
36
36
|
isDefault: boolean;
|
|
37
37
|
lastName: string;
|
|
38
38
|
phone: string | null;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: getOrder_getOrder_billingAddress_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -153,7 +153,7 @@ export interface getOrder_getOrder_shippingAddress {
|
|
|
153
153
|
taxOffice: string | null;
|
|
154
154
|
taxNumber: string | null;
|
|
155
155
|
state: getOrder_getOrder_shippingAddress_state | null;
|
|
156
|
-
postalCode: string;
|
|
156
|
+
postalCode: string | null;
|
|
157
157
|
phone: string | null;
|
|
158
158
|
lastName: string;
|
|
159
159
|
isDefault: boolean;
|
|
@@ -24,6 +24,7 @@ export interface listCheckoutSettings_listCheckoutSettings {
|
|
|
24
24
|
updatedAt: any | null;
|
|
25
25
|
isGiftPackageEnabled: boolean | null;
|
|
26
26
|
giftPackagePriceList: listCheckoutSettings_listCheckoutSettings_giftPackagePriceList[] | null;
|
|
27
|
+
isShowPostalCode: boolean | null;
|
|
27
28
|
}
|
|
28
29
|
export interface listCheckoutSettings {
|
|
29
30
|
listCheckoutSettings: listCheckoutSettings_listCheckoutSettings[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringFilterInput, PaymentMethodEnum, PaymentGatewayTransactionFeeTypeEnum, PaymentGatewayAdditionalPriceTypeEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { StringFilterInput, PaymentMethodEnum, PaymentGatewayTypeEnum, PaymentGatewayTransactionFeeTypeEnum, PaymentGatewayAdditionalPriceTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listPaymentGateway_listPaymentGateway_paymentMethods {
|
|
3
3
|
__typename: "PaymentGatewayPaymentMethod";
|
|
4
4
|
name: string;
|
|
@@ -26,6 +26,8 @@ export interface listPaymentGateway_listPaymentGateway {
|
|
|
26
26
|
description: string | null;
|
|
27
27
|
testMode: boolean | null;
|
|
28
28
|
code: string;
|
|
29
|
+
type: PaymentGatewayTypeEnum;
|
|
30
|
+
logoUrl: string | null;
|
|
29
31
|
additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
|
|
30
32
|
translations: listPaymentGateway_listPaymentGateway_translations[] | null;
|
|
31
33
|
}
|
|
@@ -36,7 +36,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest_billingAddres
|
|
|
36
36
|
isDefault: boolean;
|
|
37
37
|
lastName: string;
|
|
38
38
|
phone: string | null;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: createOrderRefundRequest_createOrderRefundRequest_billingAddress_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -153,7 +153,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddre
|
|
|
153
153
|
taxOffice: string | null;
|
|
154
154
|
taxNumber: string | null;
|
|
155
155
|
state: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_state | null;
|
|
156
|
-
postalCode: string;
|
|
156
|
+
postalCode: string | null;
|
|
157
157
|
phone: string | null;
|
|
158
158
|
lastName: string;
|
|
159
159
|
isDefault: boolean;
|
|
@@ -36,7 +36,7 @@ export interface customerLogin_customerLogin_customer_addresses {
|
|
|
36
36
|
firstName: string;
|
|
37
37
|
isDefault: boolean | null;
|
|
38
38
|
lastName: string;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: customerLogin_customerLogin_customer_addresses_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -36,7 +36,7 @@ export interface getCustomerOrders_getCustomerOrders_billingAddress {
|
|
|
36
36
|
isDefault: boolean;
|
|
37
37
|
lastName: string;
|
|
38
38
|
phone: string | null;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: getCustomerOrders_getCustomerOrders_billingAddress_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -153,7 +153,7 @@ export interface getCustomerOrders_getCustomerOrders_shippingAddress {
|
|
|
153
153
|
taxOffice: string | null;
|
|
154
154
|
taxNumber: string | null;
|
|
155
155
|
state: getCustomerOrders_getCustomerOrders_shippingAddress_state | null;
|
|
156
|
-
postalCode: string;
|
|
156
|
+
postalCode: string | null;
|
|
157
157
|
phone: string | null;
|
|
158
158
|
lastName: string;
|
|
159
159
|
isDefault: boolean;
|
|
@@ -8,7 +8,7 @@ export interface getLastViewedProducts_getLastViewedProducts {
|
|
|
8
8
|
products: getLastViewedProducts_getLastViewedProducts_products[];
|
|
9
9
|
}
|
|
10
10
|
export interface getLastViewedProducts {
|
|
11
|
-
getLastViewedProducts: getLastViewedProducts_getLastViewedProducts;
|
|
11
|
+
getLastViewedProducts: getLastViewedProducts_getLastViewedProducts | null;
|
|
12
12
|
}
|
|
13
13
|
export interface getLastViewedProductsVariables {
|
|
14
14
|
customerId?: string | null;
|
|
@@ -35,7 +35,7 @@ export interface getMyCustomer_getMyCustomer_addresses {
|
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
38
|
-
postalCode: string;
|
|
38
|
+
postalCode: string | null;
|
|
39
39
|
state: getMyCustomer_getMyCustomer_addresses_state | null;
|
|
40
40
|
taxNumber: string | null;
|
|
41
41
|
taxOffice: string | null;
|
|
@@ -35,7 +35,7 @@ export interface registerCustomer_registerCustomer_customer_addresses {
|
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
38
|
-
postalCode: string;
|
|
38
|
+
postalCode: string | null;
|
|
39
39
|
state: registerCustomer_registerCustomer_customer_addresses_state | null;
|
|
40
40
|
taxNumber: string | null;
|
|
41
41
|
taxOffice: string | null;
|
|
@@ -35,7 +35,7 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
|
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
38
|
-
postalCode: string;
|
|
38
|
+
postalCode: string | null;
|
|
39
39
|
state: saveMyCustomer_saveMyCustomer_addresses_state | null;
|
|
40
40
|
identityNumber: string | null;
|
|
41
41
|
taxNumber: string | null;
|
|
@@ -45,7 +45,7 @@ export interface getStorefront_getStorefront {
|
|
|
45
45
|
themes: getStorefront_getStorefront_themes[];
|
|
46
46
|
}
|
|
47
47
|
export interface getStorefront {
|
|
48
|
-
getStorefront: getStorefront_getStorefront;
|
|
48
|
+
getStorefront: getStorefront_getStorefront | null;
|
|
49
49
|
}
|
|
50
50
|
export interface getStorefrontVariables {
|
|
51
51
|
id: string;
|
package/build/index.es.js
CHANGED
|
@@ -19827,6 +19827,8 @@ var IkasPaymentGateway = /** @class */ (function () {
|
|
|
19827
19827
|
this.id = data.id || null;
|
|
19828
19828
|
this.name = data.name || "";
|
|
19829
19829
|
this.code = data.code || "";
|
|
19830
|
+
this.type = data.type || IkasPaymentGatewayType.INTERNAL;
|
|
19831
|
+
this.logoUrl = data.logoUrl || null;
|
|
19830
19832
|
this.testMode = data.testMode || null;
|
|
19831
19833
|
this.description = data.description || null;
|
|
19832
19834
|
this.additionalPrices =
|
|
@@ -19904,7 +19906,12 @@ var IkasPaymentGatewayAdditionalPriceAmountType;
|
|
|
19904
19906
|
(function (IkasPaymentGatewayAdditionalPriceAmountType) {
|
|
19905
19907
|
IkasPaymentGatewayAdditionalPriceAmountType["AMOUNT"] = "AMOUNT";
|
|
19906
19908
|
IkasPaymentGatewayAdditionalPriceAmountType["RATIO"] = "RATIO";
|
|
19907
|
-
})(IkasPaymentGatewayAdditionalPriceAmountType || (IkasPaymentGatewayAdditionalPriceAmountType = {}));
|
|
19909
|
+
})(IkasPaymentGatewayAdditionalPriceAmountType || (IkasPaymentGatewayAdditionalPriceAmountType = {}));
|
|
19910
|
+
var IkasPaymentGatewayType;
|
|
19911
|
+
(function (IkasPaymentGatewayType) {
|
|
19912
|
+
IkasPaymentGatewayType["EXTERNAL"] = "EXTERNAL";
|
|
19913
|
+
IkasPaymentGatewayType["INTERNAL"] = "INTERNAL";
|
|
19914
|
+
})(IkasPaymentGatewayType || (IkasPaymentGatewayType = {}));
|
|
19908
19915
|
|
|
19909
19916
|
var IkasCheckout = /** @class */ (function () {
|
|
19910
19917
|
function IkasCheckout(data) {
|
|
@@ -24381,15 +24388,16 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24381
24388
|
});
|
|
24382
24389
|
Object.defineProperty(CheckoutViewModel.prototype, "canPerformPayment", {
|
|
24383
24390
|
get: function () {
|
|
24384
|
-
var _a, _b
|
|
24391
|
+
var _a, _b;
|
|
24385
24392
|
if (this.checkoutSettings.showTermsAndConditionsCheckbox &&
|
|
24386
24393
|
!this.isTermsAndConditionsChecked)
|
|
24387
24394
|
return false;
|
|
24395
|
+
var pg = this.checkout.selectedPaymentGateway;
|
|
24388
24396
|
return (this.canProceedToShipping &&
|
|
24389
24397
|
!!((_a = this.checkout.billingAddress) === null || _a === void 0 ? void 0 : _a.isValid) &&
|
|
24390
|
-
((
|
|
24391
|
-
|
|
24392
|
-
? (
|
|
24398
|
+
((pg === null || pg === void 0 ? void 0 : pg.paymentMethodType) === IkasPaymentMethodType.CREDIT_CARD &&
|
|
24399
|
+
pg.type === IkasPaymentGatewayType.INTERNAL
|
|
24400
|
+
? (_b = this.cardData) === null || _b === void 0 ? void 0 : _b.isValid : true));
|
|
24393
24401
|
},
|
|
24394
24402
|
enumerable: false,
|
|
24395
24403
|
configurable: true
|
|
@@ -37643,6 +37651,7 @@ var CheckoutRequirementEnum;
|
|
|
37643
37651
|
var CheckoutStatusEnum;
|
|
37644
37652
|
(function (CheckoutStatusEnum) {
|
|
37645
37653
|
CheckoutStatusEnum["COMPLETED"] = "COMPLETED";
|
|
37654
|
+
CheckoutStatusEnum["KILLED"] = "KILLED";
|
|
37646
37655
|
CheckoutStatusEnum["OPEN"] = "OPEN";
|
|
37647
37656
|
})(CheckoutStatusEnum || (CheckoutStatusEnum = {}));
|
|
37648
37657
|
/**
|
|
@@ -37762,6 +37771,12 @@ var PaymentGatewayTransactionFeeTypeEnum;
|
|
|
37762
37771
|
PaymentGatewayTransactionFeeTypeEnum["AMOUNT"] = "AMOUNT";
|
|
37763
37772
|
PaymentGatewayTransactionFeeTypeEnum["RATIO"] = "RATIO";
|
|
37764
37773
|
})(PaymentGatewayTransactionFeeTypeEnum || (PaymentGatewayTransactionFeeTypeEnum = {}));
|
|
37774
|
+
var PaymentGatewayTypeEnum;
|
|
37775
|
+
(function (PaymentGatewayTypeEnum) {
|
|
37776
|
+
PaymentGatewayTypeEnum["EXTERNAL"] = "EXTERNAL";
|
|
37777
|
+
PaymentGatewayTypeEnum["INTERNAL"] = "INTERNAL";
|
|
37778
|
+
PaymentGatewayTypeEnum["THIRD_PARTY"] = "THIRD_PARTY";
|
|
37779
|
+
})(PaymentGatewayTypeEnum || (PaymentGatewayTypeEnum = {}));
|
|
37765
37780
|
var PaymentMethodEnum;
|
|
37766
37781
|
(function (PaymentMethodEnum) {
|
|
37767
37782
|
PaymentMethodEnum["APP_PAYMENT"] = "APP_PAYMENT";
|
|
@@ -37785,6 +37800,7 @@ var ProductAttributeTypeEnum;
|
|
|
37785
37800
|
ProductAttributeTypeEnum["HTML"] = "HTML";
|
|
37786
37801
|
ProductAttributeTypeEnum["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
|
|
37787
37802
|
ProductAttributeTypeEnum["NUMERIC"] = "NUMERIC";
|
|
37803
|
+
ProductAttributeTypeEnum["PRODUCT"] = "PRODUCT";
|
|
37788
37804
|
ProductAttributeTypeEnum["TABLE"] = "TABLE";
|
|
37789
37805
|
ProductAttributeTypeEnum["TEXT"] = "TEXT";
|
|
37790
37806
|
})(ProductAttributeTypeEnum || (ProductAttributeTypeEnum = {}));
|
|
@@ -41461,7 +41477,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
41461
41477
|
return __generator(this, function (_b) {
|
|
41462
41478
|
switch (_b.label) {
|
|
41463
41479
|
case 0:
|
|
41464
|
-
QUERY = src(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "], ["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "])));
|
|
41480
|
+
QUERY = src(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "], ["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "])));
|
|
41465
41481
|
_b.label = 1;
|
|
41466
41482
|
case 1:
|
|
41467
41483
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -69510,12 +69526,12 @@ var PaymentGateways = observer(function (_a) {
|
|
|
69510
69526
|
};
|
|
69511
69527
|
return (createElement(Fragment$1, null, vm.paymentGateways.map(function (pg, index) {
|
|
69512
69528
|
var _a;
|
|
69513
|
-
return (createElement(SelectBox$1, { key: pg.id, label: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD
|
|
69529
|
+
return (createElement(SelectBox$1, { key: pg.id, label: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD &&
|
|
69530
|
+
pg.type === IkasPaymentGatewayType.INTERNAL
|
|
69514
69531
|
? t("checkout-page:creditCard")
|
|
69515
|
-
: pg.name, isSelected: vm.selectedPaymentGatewayIndex === index, rightContent: ((_a = pg.additionalPrices) === null || _a === void 0 ? void 0 : _a.length) ? (createElement(PaymentMethodAdjustment, null, getAdditionalPriceText(pg.additionalPrices[0]))) : (createElement(PaymentMethodLogos, null, pg.
|
|
69516
|
-
|
|
69517
|
-
|
|
69518
|
-
}))), bottomContent: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD ? (createElement("div", null,
|
|
69532
|
+
: pg.name, isSelected: vm.selectedPaymentGatewayIndex === index, rightContent: ((_a = pg.additionalPrices) === null || _a === void 0 ? void 0 : _a.length) ? (createElement(PaymentMethodAdjustment, null, getAdditionalPriceText(pg.additionalPrices[0]))) : (createElement(PaymentMethodLogos, null, !!pg.logoUrl && (createElement("div", { className: styles$b.PaymentLogoContainer },
|
|
69533
|
+
createElement("img", { src: pg.logoUrl }))))), bottomContent: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD &&
|
|
69534
|
+
pg.type === IkasPaymentGatewayType.INTERNAL ? (createElement("div", null,
|
|
69519
69535
|
createElement(CreditCardForm, { vm: vm }),
|
|
69520
69536
|
vm.installmentInfo && createElement(Installments, { vm: vm }))) : pg.description ? (createElement("div", { dangerouslySetInnerHTML: { __html: pg.description } })) : undefined, onClick: function () {
|
|
69521
69537
|
return vm.selectedPaymentGatewayIndex !== index &&
|
|
@@ -70196,7 +70212,7 @@ var Image = function (_a) {
|
|
|
70196
70212
|
});
|
|
70197
70213
|
return image.getSrc(closest);
|
|
70198
70214
|
};
|
|
70199
|
-
return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image" })));
|
|
70215
|
+
return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: "blur", blurDataURL: image.getSrc(180) })));
|
|
70200
70216
|
};
|
|
70201
70217
|
|
|
70202
70218
|
var styles$k = {"StepContainer":"style-module_StepContainer__1O2dD","Step":"style-module_Step__1iOYA","StepTitleContainer":"style-module_StepTitleContainer__2GUg2","First":"style-module_First__cAzdJ","StepTitleTop":"style-module_StepTitleTop__3zfsj","WithRightContent":"style-module_WithRightContent__2fqb1","StepCircle":"style-module_StepCircle__36A5q","Selected":"style-module_Selected__3j91L","StepTitle":"style-module_StepTitle__10YDP","Light":"style-module_Light__15wSX","StepTitleRightContent":"style-module_StepTitleRightContent__2Q43m","StepContent":"style-module_StepContent__20QIi"};
|
package/build/index.js
CHANGED
|
@@ -19842,6 +19842,8 @@ var IkasPaymentGateway = /** @class */ (function () {
|
|
|
19842
19842
|
this.id = data.id || null;
|
|
19843
19843
|
this.name = data.name || "";
|
|
19844
19844
|
this.code = data.code || "";
|
|
19845
|
+
this.type = data.type || IkasPaymentGatewayType.INTERNAL;
|
|
19846
|
+
this.logoUrl = data.logoUrl || null;
|
|
19845
19847
|
this.testMode = data.testMode || null;
|
|
19846
19848
|
this.description = data.description || null;
|
|
19847
19849
|
this.additionalPrices =
|
|
@@ -19919,7 +19921,12 @@ var IkasPaymentGatewayAdditionalPriceAmountType;
|
|
|
19919
19921
|
(function (IkasPaymentGatewayAdditionalPriceAmountType) {
|
|
19920
19922
|
IkasPaymentGatewayAdditionalPriceAmountType["AMOUNT"] = "AMOUNT";
|
|
19921
19923
|
IkasPaymentGatewayAdditionalPriceAmountType["RATIO"] = "RATIO";
|
|
19922
|
-
})(IkasPaymentGatewayAdditionalPriceAmountType || (IkasPaymentGatewayAdditionalPriceAmountType = {}));
|
|
19924
|
+
})(IkasPaymentGatewayAdditionalPriceAmountType || (IkasPaymentGatewayAdditionalPriceAmountType = {}));
|
|
19925
|
+
var IkasPaymentGatewayType;
|
|
19926
|
+
(function (IkasPaymentGatewayType) {
|
|
19927
|
+
IkasPaymentGatewayType["EXTERNAL"] = "EXTERNAL";
|
|
19928
|
+
IkasPaymentGatewayType["INTERNAL"] = "INTERNAL";
|
|
19929
|
+
})(IkasPaymentGatewayType || (IkasPaymentGatewayType = {}));
|
|
19923
19930
|
|
|
19924
19931
|
var IkasCheckout = /** @class */ (function () {
|
|
19925
19932
|
function IkasCheckout(data) {
|
|
@@ -24388,15 +24395,16 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24388
24395
|
});
|
|
24389
24396
|
Object.defineProperty(CheckoutViewModel.prototype, "canPerformPayment", {
|
|
24390
24397
|
get: function () {
|
|
24391
|
-
var _a, _b
|
|
24398
|
+
var _a, _b;
|
|
24392
24399
|
if (this.checkoutSettings.showTermsAndConditionsCheckbox &&
|
|
24393
24400
|
!this.isTermsAndConditionsChecked)
|
|
24394
24401
|
return false;
|
|
24402
|
+
var pg = this.checkout.selectedPaymentGateway;
|
|
24395
24403
|
return (this.canProceedToShipping &&
|
|
24396
24404
|
!!((_a = this.checkout.billingAddress) === null || _a === void 0 ? void 0 : _a.isValid) &&
|
|
24397
|
-
((
|
|
24398
|
-
|
|
24399
|
-
? (
|
|
24405
|
+
((pg === null || pg === void 0 ? void 0 : pg.paymentMethodType) === IkasPaymentMethodType.CREDIT_CARD &&
|
|
24406
|
+
pg.type === IkasPaymentGatewayType.INTERNAL
|
|
24407
|
+
? (_b = this.cardData) === null || _b === void 0 ? void 0 : _b.isValid : true));
|
|
24400
24408
|
},
|
|
24401
24409
|
enumerable: false,
|
|
24402
24410
|
configurable: true
|
|
@@ -37625,6 +37633,7 @@ var CheckoutRequirementEnum;
|
|
|
37625
37633
|
var CheckoutStatusEnum;
|
|
37626
37634
|
(function (CheckoutStatusEnum) {
|
|
37627
37635
|
CheckoutStatusEnum["COMPLETED"] = "COMPLETED";
|
|
37636
|
+
CheckoutStatusEnum["KILLED"] = "KILLED";
|
|
37628
37637
|
CheckoutStatusEnum["OPEN"] = "OPEN";
|
|
37629
37638
|
})(CheckoutStatusEnum || (CheckoutStatusEnum = {}));
|
|
37630
37639
|
/**
|
|
@@ -37744,6 +37753,12 @@ var PaymentGatewayTransactionFeeTypeEnum;
|
|
|
37744
37753
|
PaymentGatewayTransactionFeeTypeEnum["AMOUNT"] = "AMOUNT";
|
|
37745
37754
|
PaymentGatewayTransactionFeeTypeEnum["RATIO"] = "RATIO";
|
|
37746
37755
|
})(PaymentGatewayTransactionFeeTypeEnum || (PaymentGatewayTransactionFeeTypeEnum = {}));
|
|
37756
|
+
var PaymentGatewayTypeEnum;
|
|
37757
|
+
(function (PaymentGatewayTypeEnum) {
|
|
37758
|
+
PaymentGatewayTypeEnum["EXTERNAL"] = "EXTERNAL";
|
|
37759
|
+
PaymentGatewayTypeEnum["INTERNAL"] = "INTERNAL";
|
|
37760
|
+
PaymentGatewayTypeEnum["THIRD_PARTY"] = "THIRD_PARTY";
|
|
37761
|
+
})(PaymentGatewayTypeEnum || (PaymentGatewayTypeEnum = {}));
|
|
37747
37762
|
var PaymentMethodEnum;
|
|
37748
37763
|
(function (PaymentMethodEnum) {
|
|
37749
37764
|
PaymentMethodEnum["APP_PAYMENT"] = "APP_PAYMENT";
|
|
@@ -37767,6 +37782,7 @@ var ProductAttributeTypeEnum;
|
|
|
37767
37782
|
ProductAttributeTypeEnum["HTML"] = "HTML";
|
|
37768
37783
|
ProductAttributeTypeEnum["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
|
|
37769
37784
|
ProductAttributeTypeEnum["NUMERIC"] = "NUMERIC";
|
|
37785
|
+
ProductAttributeTypeEnum["PRODUCT"] = "PRODUCT";
|
|
37770
37786
|
ProductAttributeTypeEnum["TABLE"] = "TABLE";
|
|
37771
37787
|
ProductAttributeTypeEnum["TEXT"] = "TEXT";
|
|
37772
37788
|
})(ProductAttributeTypeEnum || (ProductAttributeTypeEnum = {}));
|
|
@@ -41440,7 +41456,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
41440
41456
|
return __generator(this, function (_b) {
|
|
41441
41457
|
switch (_b.label) {
|
|
41442
41458
|
case 0:
|
|
41443
|
-
QUERY = src(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "], ["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "])));
|
|
41459
|
+
QUERY = src(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "], ["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n }\n }\n "])));
|
|
41444
41460
|
_b.label = 1;
|
|
41445
41461
|
case 1:
|
|
41446
41462
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -69489,12 +69505,12 @@ var PaymentGateways = mobxReactLite.observer(function (_a) {
|
|
|
69489
69505
|
};
|
|
69490
69506
|
return (React.createElement(React.Fragment, null, vm.paymentGateways.map(function (pg, index) {
|
|
69491
69507
|
var _a;
|
|
69492
|
-
return (React.createElement(SelectBox$1, { key: pg.id, label: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD
|
|
69508
|
+
return (React.createElement(SelectBox$1, { key: pg.id, label: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD &&
|
|
69509
|
+
pg.type === IkasPaymentGatewayType.INTERNAL
|
|
69493
69510
|
? t("checkout-page:creditCard")
|
|
69494
|
-
: pg.name, isSelected: vm.selectedPaymentGatewayIndex === index, rightContent: ((_a = pg.additionalPrices) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement(PaymentMethodAdjustment, null, getAdditionalPriceText(pg.additionalPrices[0]))) : (React.createElement(PaymentMethodLogos, null, pg.
|
|
69495
|
-
|
|
69496
|
-
|
|
69497
|
-
}))), bottomContent: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD ? (React.createElement("div", null,
|
|
69511
|
+
: pg.name, isSelected: vm.selectedPaymentGatewayIndex === index, rightContent: ((_a = pg.additionalPrices) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement(PaymentMethodAdjustment, null, getAdditionalPriceText(pg.additionalPrices[0]))) : (React.createElement(PaymentMethodLogos, null, !!pg.logoUrl && (React.createElement("div", { className: styles$b.PaymentLogoContainer },
|
|
69512
|
+
React.createElement("img", { src: pg.logoUrl }))))), bottomContent: pg.paymentMethodType === IkasPaymentMethodType.CREDIT_CARD &&
|
|
69513
|
+
pg.type === IkasPaymentGatewayType.INTERNAL ? (React.createElement("div", null,
|
|
69498
69514
|
React.createElement(CreditCardForm, { vm: vm }),
|
|
69499
69515
|
vm.installmentInfo && React.createElement(Installments, { vm: vm }))) : pg.description ? (React.createElement("div", { dangerouslySetInnerHTML: { __html: pg.description } })) : undefined, onClick: function () {
|
|
69500
69516
|
return vm.selectedPaymentGatewayIndex !== index &&
|
|
@@ -70175,7 +70191,7 @@ var Image = function (_a) {
|
|
|
70175
70191
|
});
|
|
70176
70192
|
return image.getSrc(closest);
|
|
70177
70193
|
};
|
|
70178
|
-
return (React.createElement(NextImage__default['default'], __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image" })));
|
|
70194
|
+
return (React.createElement(NextImage__default['default'], __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: "blur", blurDataURL: image.getSrc(180) })));
|
|
70179
70195
|
};
|
|
70180
70196
|
|
|
70181
70197
|
var styles$k = {"StepContainer":"style-module_StepContainer__1O2dD","Step":"style-module_Step__1iOYA","StepTitleContainer":"style-module_StepTitleContainer__2GUg2","First":"style-module_First__cAzdJ","StepTitleTop":"style-module_StepTitleTop__3zfsj","WithRightContent":"style-module_WithRightContent__2fqb1","StepCircle":"style-module_StepCircle__36A5q","Selected":"style-module_Selected__3j91L","StepTitle":"style-module_StepTitle__10YDP","Light":"style-module_Light__15wSX","StepTitleRightContent":"style-module_StepTitleRightContent__2Q43m","StepContent":"style-module_StepContent__20QIi"};
|
|
@@ -5,6 +5,8 @@ export declare class IkasPaymentGateway {
|
|
|
5
5
|
id: string | null;
|
|
6
6
|
name: string;
|
|
7
7
|
code: string;
|
|
8
|
+
type: IkasPaymentGatewayType;
|
|
9
|
+
logoUrl: string | null;
|
|
8
10
|
testMode: boolean | null;
|
|
9
11
|
description: string | null;
|
|
10
12
|
additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;
|
|
@@ -45,6 +47,10 @@ export declare enum IkasPaymentGatewayAdditionalPriceAmountType {
|
|
|
45
47
|
AMOUNT = "AMOUNT",
|
|
46
48
|
RATIO = "RATIO"
|
|
47
49
|
}
|
|
50
|
+
export declare enum IkasPaymentGatewayType {
|
|
51
|
+
EXTERNAL = "EXTERNAL",
|
|
52
|
+
INTERNAL = "INTERNAL"
|
|
53
|
+
}
|
|
48
54
|
declare type IkasPaymentGatewayTranslation = {
|
|
49
55
|
description: string | null;
|
|
50
56
|
locale: string;
|