ng-easycommerce 0.0.634 → 0.0.636
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/README.md +8 -0
- package/assets/ec-i18n/ct.json +2 -1
- package/assets/ec-i18n/en.json +2 -1
- package/assets/ec-i18n/es.json +2 -1
- package/assets/ec-i18n/fr.json +2 -1
- package/assets/ec-i18n/gl.json +2 -1
- package/assets/ec-i18n/pr.json +2 -1
- package/bundles/ng-easycommerce.umd.js +63 -17
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/account-ec/order-ec/order-ec.component.js +3 -3
- package/esm2015/lib/ec-component/checkout-ec/dataform-ec/dataform-ec.component.js +7 -2
- package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +4 -2
- package/esm2015/lib/services/cart.service.js +12 -3
- package/esm2015/lib/services/checkout/addressing.service.js +32 -5
- package/esm2015/lib/services/products/product-detail.service.js +11 -7
- package/esm5/lib/ec-component/account-ec/order-ec/order-ec.component.js +3 -3
- package/esm5/lib/ec-component/checkout-ec/dataform-ec/dataform-ec.component.js +8 -3
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +4 -2
- package/esm5/lib/services/cart.service.js +12 -3
- package/esm5/lib/services/checkout/addressing.service.js +32 -5
- package/esm5/lib/services/products/product-detail.service.js +11 -7
- package/fesm2015/ng-easycommerce.js +62 -16
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +63 -17
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +1 -0
- package/lib/services/cart.service.d.ts +1 -1
- package/lib/services/checkout/addressing.service.d.ts +4 -1
- package/lib/services/products/product-detail.service.d.ts +2 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -90,7 +90,7 @@ export declare class CartService {
|
|
|
90
90
|
* @public
|
|
91
91
|
* CART CRUD
|
|
92
92
|
*/
|
|
93
|
-
addToCart: (product: Product, quantity: number, variant_id: any) => void;
|
|
93
|
+
addToCart: (product: Product, quantity: number, variant_id: any, comments?: string) => void;
|
|
94
94
|
addToLot: (product: Product, quantity: number, variant_id: any, id?: any, order_item_id?: any, lot_quantity?: any, unit_price?: any, unit_total?: any, ajustement_total?: any, total_lot?: any, lot_status?: any, date_request?: any, notes?: any, shipping_address_id?: any, shipping_address_name?: any, action?: any) => void;
|
|
95
95
|
addToCartPromise: (product: Product, quantity: number, variant_id: any) => Promise<{
|
|
96
96
|
error: boolean;
|
|
@@ -5,6 +5,7 @@ import { CheckoutService } from './checkout.service';
|
|
|
5
5
|
import { StepService } from '../../classes/checkout/step-service';
|
|
6
6
|
import { AnalyticsService } from '../analytics.service';
|
|
7
7
|
import { Validators } from '@angular/forms';
|
|
8
|
+
import { ChannelConfigService } from '../channel-config.service';
|
|
8
9
|
declare type typeForms = 'EUR' | 'ARG';
|
|
9
10
|
declare type typeSelectAddress = 'ONLY_LOAD_ADDRESS' | 'ONLY_ADDRESS_SELECTION' | 'LOAD_ADDRESS_AND_SELECTION';
|
|
10
11
|
export declare class AddressingService extends StepService {
|
|
@@ -13,6 +14,7 @@ export declare class AddressingService extends StepService {
|
|
|
13
14
|
private cartService;
|
|
14
15
|
private checkoutService;
|
|
15
16
|
private analyticsService;
|
|
17
|
+
private channelConfig;
|
|
16
18
|
baseApi: () => string;
|
|
17
19
|
countriesApi: () => string;
|
|
18
20
|
zonesApi: () => string;
|
|
@@ -25,7 +27,8 @@ export declare class AddressingService extends StepService {
|
|
|
25
27
|
countriesList: any[];
|
|
26
28
|
documentTypes: any[];
|
|
27
29
|
provinceList: any[];
|
|
28
|
-
|
|
30
|
+
checkoutNotesField: 'show' | 'required' | 'hide' | undefined;
|
|
31
|
+
constructor(connection: ConnectionService, consts: Constants, cartService: CartService, checkoutService: CheckoutService, analyticsService: AnalyticsService, channelConfig: ChannelConfigService);
|
|
29
32
|
ngOnInit(): void;
|
|
30
33
|
getAddressingData: () => Promise<any>;
|
|
31
34
|
getAddressBook: () => Promise<any>;
|
|
@@ -49,9 +49,10 @@ export declare class ProductDetailService {
|
|
|
49
49
|
* @description agrega/actualiza un item en el carrito
|
|
50
50
|
* @param quantity cantidad a agregar
|
|
51
51
|
* @param variant_code **(opcional)** codigo de la variante seleccionada del producto.
|
|
52
|
+
* @param comments **(opcional)** comentario personalizado del cliente.
|
|
52
53
|
* @returns
|
|
53
54
|
*/
|
|
54
|
-
addToCart(quantity: any, variant_code?: string): void;
|
|
55
|
+
addToCart(quantity: any, variant_code?: string, comments?: string): void;
|
|
55
56
|
addToCartPromise: (quantity: any) => Promise<boolean | {
|
|
56
57
|
error: boolean;
|
|
57
58
|
message: string;
|