simpo-component-library 3.8.23 → 3.8.24
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/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +78 -16
- package/esm2022/lib/ecommerce/sections/passbook-redemption/passbook-redemption.component.mjs +19 -3
- package/esm2022/lib/services/rest.service.mjs +8 -2
- package/fesm2022/simpo-component-library.mjs +102 -18
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +12 -1
- package/lib/ecommerce/sections/passbook-redemption/passbook-redemption.component.d.ts +5 -0
- package/lib/services/rest.service.d.ts +1 -0
- package/package.json +1 -1
- package/simpo-component-library-3.8.24.tgz +0 -0
- package/simpo-component-library-3.8.23.tgz +0 -0
|
@@ -110,7 +110,8 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
110
110
|
addToCart(item: OrderedItems, quantity: number): void;
|
|
111
111
|
cartId: any;
|
|
112
112
|
placeOrderLoader: boolean;
|
|
113
|
-
proceedToPayment():
|
|
113
|
+
proceedToPayment(): void;
|
|
114
|
+
continueProceedToPayment(): Promise<void>;
|
|
114
115
|
/** Backend already corrected the cart's stored prices to the live catalog before rejecting the
|
|
115
116
|
* placement attempt - refresh local cart state from the server first so the displayed total (and
|
|
116
117
|
* whatever onContinue resubmits) reflects that correction instead of the stale local values. */
|
|
@@ -177,7 +178,15 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
177
178
|
showReedemError: boolean;
|
|
178
179
|
vaildAmount: number;
|
|
179
180
|
redeemScheme(scheme: any, action: boolean): void;
|
|
181
|
+
selectedPassbookScheme: {
|
|
182
|
+
passbookId: string;
|
|
183
|
+
schemeName: string;
|
|
184
|
+
appliedAmount: number;
|
|
185
|
+
} | null;
|
|
180
186
|
selectPassbookScheme(): void;
|
|
187
|
+
clearSelectedPassbookScheme(): void;
|
|
188
|
+
private verifyAndApplyPassbookScheme;
|
|
189
|
+
private applyPassbookRedemptionAndContinue;
|
|
181
190
|
removePassbookRedemption(): void;
|
|
182
191
|
getUrl(): boolean;
|
|
183
192
|
get fontColor(): string;
|
|
@@ -190,7 +199,9 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
190
199
|
redemptionPoints: any;
|
|
191
200
|
checkAppInstalled(): void;
|
|
192
201
|
passbookAppInstalled: boolean;
|
|
202
|
+
passbookOtpRequired: boolean;
|
|
193
203
|
checkPassbookAppInstalled(): void;
|
|
204
|
+
checkPassbookOtpRequired(): void;
|
|
194
205
|
totalSavingAmt: number;
|
|
195
206
|
totalSavingPoints: number;
|
|
196
207
|
pointsConverted: number;
|
|
@@ -10,6 +10,8 @@ export declare class PassbookRedemptionComponent implements OnInit {
|
|
|
10
10
|
businessId: string;
|
|
11
11
|
userId: string;
|
|
12
12
|
cartTotal: number;
|
|
13
|
+
mode?: 'select' | 'verify';
|
|
14
|
+
scheme?: any;
|
|
13
15
|
};
|
|
14
16
|
private readonly restService;
|
|
15
17
|
private readonly storageService;
|
|
@@ -25,6 +27,8 @@ export declare class PassbookRedemptionComponent implements OnInit {
|
|
|
25
27
|
businessId: string;
|
|
26
28
|
userId: string;
|
|
27
29
|
cartTotal: number;
|
|
30
|
+
mode?: 'select' | 'verify';
|
|
31
|
+
scheme?: any;
|
|
28
32
|
}, restService: RestService, storageService: StorageServiceService, router: Router);
|
|
29
33
|
get isLoggedIn(): boolean;
|
|
30
34
|
ngOnInit(): void;
|
|
@@ -33,6 +37,7 @@ export declare class PassbookRedemptionComponent implements OnInit {
|
|
|
33
37
|
goToAllSchemes(): void;
|
|
34
38
|
goToLogin(): void;
|
|
35
39
|
get appliedAmount(): number;
|
|
40
|
+
useScheme(): void;
|
|
36
41
|
sendOtp(): void;
|
|
37
42
|
goBackToList(): void;
|
|
38
43
|
close(): void;
|
|
@@ -175,6 +175,7 @@ export declare class RestService implements OnDestroy {
|
|
|
175
175
|
getSchemeDetails(schemeId: any): Observable<Object>;
|
|
176
176
|
getMetalPrice(storeId: any): Observable<Object>;
|
|
177
177
|
getCheckoutRedemptionEligibleSchemes(businessId: any, userId: any): Observable<Object>;
|
|
178
|
+
checkoutRedemptionOtpRequired(businessId: any): Observable<Object>;
|
|
178
179
|
getCheckoutRedemptionQuote(passbookId: any): Observable<Object>;
|
|
179
180
|
requestCheckoutRedemptionOtp(passbookId: any): Observable<Object>;
|
|
180
181
|
applyPassbookRedemption(cartId: any, passbookId: any, otp: any): Observable<Object>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|