simpo-component-library 1.6.103 → 1.6.105

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,15 @@ import { OrderedItems } from '../../styles/OrderedItems.modal';
11
11
  import { MessageService } from 'primeng/api';
12
12
  import { MatBottomSheet } from '@angular/material/bottom-sheet';
13
13
  import * as i0 from "@angular/core";
14
+ interface Coupon {
15
+ discountType: string;
16
+ discountName: string;
17
+ discountDescription: string;
18
+ applicable: boolean;
19
+ status: boolean;
20
+ validFrom: Date;
21
+ validTo: Date;
22
+ }
14
23
  export declare class CartComponent extends BaseSection implements OnInit {
15
24
  private readonly _eventService;
16
25
  private readonly cartService;
@@ -35,8 +44,12 @@ export declare class CartComponent extends BaseSection implements OnInit {
35
44
  private userDetails;
36
45
  private USER_CART_ITEMS;
37
46
  selectedAddressIdx: number;
47
+ enteredCouponCode: string;
48
+ couponList: Coupon[];
38
49
  cartInfo: any;
39
50
  ngOnInit(): void;
51
+ getCouponList(): void;
52
+ removeCoupon(): void;
40
53
  getIndexDBData(): void;
41
54
  proceedToCheckout(): void;
42
55
  goToProductDetails(product: OrderedItems): void;
@@ -51,9 +64,14 @@ export declare class CartComponent extends BaseSection implements OnInit {
51
64
  getKeys(object: Object): string[];
52
65
  editSection(): void;
53
66
  closeWindow(): void;
67
+ openDialog(container: any): void;
68
+ searchIfApplicable(): void;
69
+ applyCoupon(coupon: any): void;
70
+ calculateCart(): void;
54
71
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
55
72
  get isMobile(): boolean;
56
73
  get currency(): string;
57
74
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
58
75
  static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
59
76
  }
77
+ export {};
@@ -1,13 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { CustomerReviewModel } from './customer-review.model';
3
2
  import { ActivatedRoute } from '@angular/router';
4
3
  import { RestService } from '../../../services/rest.service';
5
4
  import { Review } from '../../styles/review.modal';
5
+ import { ProductDescModal } from '../product-desc/product-desc.modal';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class CustomerReviewComponent implements OnInit {
8
8
  private readonly activatedRoute;
9
9
  private readonly restService;
10
- data?: CustomerReviewModel;
10
+ data?: ProductDescModal;
11
11
  index?: number;
12
12
  edit?: boolean;
13
13
  delete?: boolean;
@@ -36,6 +36,8 @@ export declare class RestService implements OnDestroy {
36
36
  generateOTP(mobile: string, countryCode: string): Observable<Object>;
37
37
  verifyOTP(mobile: string, otp: string, deviceInfo: DeviceInfo): Observable<Object>;
38
38
  resendOTP(mobile: string, countryCode: string): Observable<Object>;
39
+ applicableDiscountList(cartId: string): Observable<Object>;
40
+ removeDiscountFromCart(cartId: string): Observable<Object>;
39
41
  addItemToDB(userCart: any): Observable<Object>;
40
42
  getUserItems(userId: string, cartType: 'CART' | 'WISHLIST'): Observable<Object>;
41
43
  placeOrder(cartId: string): Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.6.103",
3
+ "version": "1.6.105",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file