@esolve/ng-esolve-connect 0.22.2 → 0.23.0
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/esm2020/lib/account/confirmation/esolve-account-confirmation-post-response-item.interface.mjs +2 -0
- package/esm2020/lib/account/confirmation/esolve-account-confirmation-result.model.mjs +10 -0
- package/esm2020/lib/account/confirmation/index.mjs +3 -0
- package/esm2020/lib/account/esolve-account.service.mjs +34 -1
- package/esm2020/lib/account/index.mjs +2 -1
- package/esm2020/lib/cart/esolve-checkout-response.interface.mjs +1 -1
- package/esm2020/lib/cart/esolve-checkout-result.model.mjs +2 -1
- package/esm2020/lib/payment/esolve-payment.service.mjs +6 -3
- package/esm2020/lib/payment/interfaces/esolve-payment-redirect-links.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-payment-set-body.interface.mjs +1 -1
- package/esm2020/lib/payment/interfaces/index.mjs +2 -1
- package/esm2020/lib/wishlist/esolve-wishlist.service.mjs +2 -2
- package/fesm2015/esolve-ng-esolve-connect.mjs +49 -3
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +48 -3
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/confirmation/esolve-account-confirmation-post-response-item.interface.d.ts +7 -0
- package/lib/account/confirmation/esolve-account-confirmation-result.model.d.ts +8 -0
- package/lib/account/confirmation/index.d.ts +2 -0
- package/lib/account/esolve-account.service.d.ts +10 -0
- package/lib/account/index.d.ts +1 -0
- package/lib/cart/esolve-checkout-response.interface.d.ts +1 -0
- package/lib/cart/esolve-checkout-result.model.d.ts +1 -0
- package/lib/payment/esolve-payment.service.d.ts +2 -2
- package/lib/payment/interfaces/esolve-payment-redirect-links.interface.d.ts +4 -0
- package/lib/payment/interfaces/esolve-payment-set-body.interface.d.ts +2 -0
- package/lib/payment/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EsolveResponseResult } from '../../shared/response';
|
|
2
|
+
import { EsolveAccountConfirmationPostResponseItem } from './esolve-account-confirmation-post-response-item.interface';
|
|
3
|
+
export declare class EsolveAccountConfirmationResult extends EsolveResponseResult {
|
|
4
|
+
user_id: number;
|
|
5
|
+
location_id: number;
|
|
6
|
+
recalculated_cart: boolean;
|
|
7
|
+
constructor(response: EsolveAccountConfirmationPostResponseItem);
|
|
8
|
+
}
|
|
@@ -11,6 +11,7 @@ import { EsolveAddress, EsolveAddressResult, EsolveAddressPostData } from './add
|
|
|
11
11
|
import { EsolveChangePasswordResult, EsolveResetPasswordResult } from './password';
|
|
12
12
|
import { EsolveTransaction, EsolveTransactionOptions, EsolveTransactionList } from './transaction';
|
|
13
13
|
import { EsolveUserAccount, EsolveUserAccountData, EsolveUserAccountResult } from './user-account';
|
|
14
|
+
import { EsolveAccountConfirmationResult } from './confirmation';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare class EsolveAccountService {
|
|
16
17
|
private config;
|
|
@@ -29,6 +30,15 @@ export declare class EsolveAccountService {
|
|
|
29
30
|
deleteAddress(id: number): Observable<EsolveResult>;
|
|
30
31
|
register(user_registration: EsolveRegistrationData): Observable<EsolveRegistrationResult>;
|
|
31
32
|
changePassword(password: string, confirm_password: string): Observable<EsolveChangePasswordResult>;
|
|
33
|
+
/**
|
|
34
|
+
* Submits the users confirmation key to the relevant backend server in order to
|
|
35
|
+
* confirm the accounts validity. The key was emailed to the user hence if he received
|
|
36
|
+
* it and enters the value, the email account can be seen as valid.
|
|
37
|
+
*
|
|
38
|
+
* @param key The key that was emailed to the registered user's email account.
|
|
39
|
+
* @returns An `Observable` that contains the result of the account confirmation request.
|
|
40
|
+
*/
|
|
41
|
+
accountConfirmationRequest(key: string): Observable<EsolveAccountConfirmationResult>;
|
|
32
42
|
sendForgotPasswordRequest(email: string): Observable<boolean>;
|
|
33
43
|
resetPassword(reset_key: string, password: string, confirm_password: string, auto_login?: boolean): Observable<EsolveResetPasswordResult>;
|
|
34
44
|
updateLocation(location_id: number): Observable<EsolveLocationUpdateResult>;
|
package/lib/account/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { EsolveResponseResult } from '../shared/response';
|
|
|
2
2
|
import { EsolveCheckoutResponse } from './esolve-checkout-response.interface';
|
|
3
3
|
export declare class EsolveCheckoutResult extends EsolveResponseResult {
|
|
4
4
|
id: number;
|
|
5
|
+
process_payment: boolean;
|
|
5
6
|
constructor(response: EsolveCheckoutResponse);
|
|
6
7
|
}
|
|
@@ -5,7 +5,7 @@ import { EsolveErrorHandlerService } from '../shared/errors/esolve-error-handler
|
|
|
5
5
|
import { EsolveResult } from '../shared/esolve-result.model';
|
|
6
6
|
import { EsolveResponseHandlerService } from '../shared/response';
|
|
7
7
|
import { EsolvePaymentMethod, EsolvePaymentResult, EsolveVaultItem, EsolveVaultItemResult } from './classes';
|
|
8
|
-
import { EsolveCardData, EsolvePaymentMethodOptions } from './interfaces';
|
|
8
|
+
import { EsolveCardData, EsolvePaymentMethodOptions, EsolvePaymentRedirectLinks } from './interfaces';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class EsolvePaymentService {
|
|
11
11
|
private config;
|
|
@@ -64,7 +64,7 @@ export declare class EsolvePaymentService {
|
|
|
64
64
|
*
|
|
65
65
|
* @returns An `Observable` with the result of the payment
|
|
66
66
|
*/
|
|
67
|
-
setPayment(transaction_id: number, payment_methods_id: number, card?: EsolveCardData | number): Observable<EsolvePaymentResult>;
|
|
67
|
+
setPayment(transaction_id: number, payment_methods_id: number, card?: EsolveCardData | number, links?: EsolvePaymentRedirectLinks): Observable<EsolvePaymentResult>;
|
|
68
68
|
/**
|
|
69
69
|
* Processes the eSolve payment method records.
|
|
70
70
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EsolvePaymentRedirectLinks } from './esolve-payment-redirect-links.interface';
|
|
1
2
|
export interface EsolvePaymentSetBody {
|
|
2
3
|
payment: {
|
|
3
4
|
cart_id: number;
|
|
@@ -10,4 +11,5 @@ export interface EsolvePaymentSetBody {
|
|
|
10
11
|
card_cvv: string;
|
|
11
12
|
card_expiry: string;
|
|
12
13
|
};
|
|
14
|
+
links?: EsolvePaymentRedirectLinks;
|
|
13
15
|
}
|
|
@@ -5,3 +5,4 @@ export * from './esolve-vault-record.interface';
|
|
|
5
5
|
export * from './esolve-payment-response.interface';
|
|
6
6
|
export * from './esolve-payment-method-options.interface';
|
|
7
7
|
export * from './esolve-payment-method-record.interface';
|
|
8
|
+
export * from './esolve-payment-redirect-links.interface';
|