@esolve/ng-esolve-connect 0.113.0 → 0.115.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/esm2022/lib/account/user-account/classes/esolve-statement-transaction.model.mjs +3 -1
- package/esm2022/lib/account/user-account/interfaces/esolve-statement-transaction-record.interface.mjs +1 -1
- package/esm2022/lib/auth/interfaces/esolve-otp-options.interface.mjs +2 -0
- package/esm2022/lib/auth/interfaces/esolve-otp-record.interface.mjs +1 -1
- package/esm2022/lib/auth/interfaces/index.mjs +2 -1
- package/esm2022/lib/auth/models/esolve-otp.model.mjs +3 -1
- package/esm2022/lib/auth/services/esolve-otp.service.mjs +8 -5
- package/esm2022/lib/payment/classes/esolve-payment-method.model.mjs +1 -8
- package/esm2022/lib/payment/esolve-payment.service.mjs +9 -16
- package/esm2022/lib/payment/interfaces/esolve-card-data.interface.mjs +1 -1
- package/esm2022/lib/payment/interfaces/esolve-payment-method-record.interface.mjs +1 -1
- package/esm2022/lib/payment/interfaces/esolve-payment-set-body.interface.mjs +1 -1
- package/esm2022/lib/payment/types/esolve-service-provider.type.mjs +1 -1
- package/fesm2022/esolve-ng-esolve-connect.mjs +19 -26
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/user-account/classes/esolve-statement-transaction.model.d.ts +2 -0
- package/lib/account/user-account/interfaces/esolve-statement-transaction-record.interface.d.ts +2 -0
- package/lib/auth/interfaces/esolve-otp-options.interface.d.ts +4 -0
- package/lib/auth/interfaces/esolve-otp-record.interface.d.ts +1 -0
- package/lib/auth/interfaces/index.d.ts +1 -0
- package/lib/auth/models/esolve-otp.model.d.ts +1 -0
- package/lib/auth/services/esolve-otp.service.d.ts +3 -2
- package/lib/payment/classes/esolve-payment-method.model.d.ts +0 -6
- package/lib/payment/esolve-payment.service.d.ts +0 -8
- package/lib/payment/interfaces/esolve-card-data.interface.d.ts +1 -0
- package/lib/payment/interfaces/esolve-payment-method-record.interface.d.ts +0 -6
- package/lib/payment/interfaces/esolve-payment-set-body.interface.d.ts +3 -1
- package/lib/payment/types/esolve-service-provider.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EsolveStatementTransactionRecord } from '../interfaces';
|
|
2
2
|
export declare class EsolveStatementTransaction {
|
|
3
3
|
document_date?: string;
|
|
4
|
+
document_type?: string;
|
|
4
5
|
order_number?: string;
|
|
5
6
|
comment?: string;
|
|
6
7
|
account?: string;
|
|
@@ -8,5 +9,6 @@ export declare class EsolveStatementTransaction {
|
|
|
8
9
|
total?: number;
|
|
9
10
|
amount_due?: number;
|
|
10
11
|
is_debit?: boolean;
|
|
12
|
+
is_credit?: boolean;
|
|
11
13
|
constructor(record?: Partial<EsolveStatementTransactionRecord>);
|
|
12
14
|
}
|
package/lib/account/user-account/interfaces/esolve-statement-transaction-record.interface.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface EsolveStatementTransactionRecord {
|
|
2
2
|
document_date: string;
|
|
3
|
+
document_type: string;
|
|
3
4
|
order_number: string;
|
|
4
5
|
comment: string;
|
|
5
6
|
account: string;
|
|
@@ -7,4 +8,5 @@ export interface EsolveStatementTransactionRecord {
|
|
|
7
8
|
total: number;
|
|
8
9
|
amount_due: number;
|
|
9
10
|
is_debit: boolean;
|
|
11
|
+
is_credit: boolean;
|
|
10
12
|
}
|
|
@@ -3,5 +3,6 @@ export * from './esolve-auth-data.interface';
|
|
|
3
3
|
export * from './esolve-auth-get-data.interface';
|
|
4
4
|
export * from './esolve-auth-response.interface';
|
|
5
5
|
export * from './esolve-login-post-response-item.interface';
|
|
6
|
+
export * from './esolve-otp-options.interface';
|
|
6
7
|
export * from './esolve-otp-record.interface';
|
|
7
8
|
export * from './esolve-otp-validation-record.interface';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { EsolveCaptchaOptions } from '../../captcha';
|
|
3
3
|
import { EsolveOtpAction } from '../types';
|
|
4
|
+
import { EsolveOtpOptions } from '../interfaces';
|
|
4
5
|
import { EsolveOtp, EsolveOtpValidation } from '../models';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class EsolveOtpService {
|
|
7
8
|
private readonly config;
|
|
8
9
|
private readonly http;
|
|
9
10
|
private readonly auth;
|
|
10
|
-
getOtp(
|
|
11
|
-
getValidateOtp(otp_key: string, otp_code: string, otp_action?: EsolveOtpAction
|
|
11
|
+
getOtp(options?: EsolveOtpOptions, captcha_options?: EsolveCaptchaOptions): Observable<EsolveOtp>;
|
|
12
|
+
getValidateOtp(otp_key: string, otp_code: string, otp_action?: EsolveOtpAction): Observable<EsolveOtpValidation>;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveOtpService, never>;
|
|
13
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveOtpService>;
|
|
14
15
|
}
|
|
@@ -8,19 +8,13 @@ export declare class EsolvePaymentMethod {
|
|
|
8
8
|
description: string;
|
|
9
9
|
display_banking_details: boolean;
|
|
10
10
|
currency_code: string;
|
|
11
|
-
merchant_id: string;
|
|
12
|
-
application_id: string;
|
|
13
|
-
api_signature: string;
|
|
14
11
|
is_gateway: boolean;
|
|
15
12
|
must_store_card_details: boolean;
|
|
16
13
|
allow_budget: boolean;
|
|
17
14
|
allow_cart_payments: boolean;
|
|
18
15
|
allow_account_payments: boolean;
|
|
19
16
|
integration_type: EsolveIntegrationType;
|
|
20
|
-
bank_gateway_id: string;
|
|
21
17
|
accepted_card_types: string[];
|
|
22
|
-
post_transactions_to_gateway: boolean;
|
|
23
|
-
three_d_secure_url: string;
|
|
24
18
|
gateway_url: string;
|
|
25
19
|
generate_token_url: string;
|
|
26
20
|
widget_url: string;
|
|
@@ -104,14 +104,6 @@ export declare class EsolvePaymentService {
|
|
|
104
104
|
* @returns An array of processed vault items (a.k.a. cards)
|
|
105
105
|
*/
|
|
106
106
|
private processVaultItems;
|
|
107
|
-
/**
|
|
108
|
-
* Generate a concatenated string with the expiry month and year
|
|
109
|
-
*
|
|
110
|
-
* @param card_data Credit card data
|
|
111
|
-
*
|
|
112
|
-
* @returns Expiry string
|
|
113
|
-
*/
|
|
114
|
-
private generateExpiry;
|
|
115
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolvePaymentService, never>;
|
|
116
108
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolvePaymentService>;
|
|
117
109
|
}
|
|
@@ -12,19 +12,13 @@ export interface EsolvePaymentMethodRecord {
|
|
|
12
12
|
swift_number: string;
|
|
13
13
|
branch_code: string;
|
|
14
14
|
currency_code: string;
|
|
15
|
-
merchant_id: string;
|
|
16
|
-
application_id: string;
|
|
17
|
-
api_signature: string;
|
|
18
15
|
is_gateway: boolean;
|
|
19
16
|
must_store_card_details: boolean;
|
|
20
17
|
allow_budget: boolean;
|
|
21
18
|
allow_cart_payments: boolean;
|
|
22
19
|
allow_account_payments: boolean;
|
|
23
20
|
integration_type: EsolveIntegrationType;
|
|
24
|
-
bank_gateway_id: string;
|
|
25
21
|
accepted_card_types: string[];
|
|
26
|
-
post_transactions_to_gateway: boolean;
|
|
27
|
-
three_d_secure_url: string;
|
|
28
22
|
gateway_url: string;
|
|
29
23
|
generate_token_url: string;
|
|
30
24
|
widget_url: string;
|
|
@@ -12,7 +12,9 @@ export interface EsolvePaymentSetBody {
|
|
|
12
12
|
card_number: string;
|
|
13
13
|
card_name: string;
|
|
14
14
|
card_cvv: string;
|
|
15
|
-
|
|
15
|
+
card_expiry_month: string;
|
|
16
|
+
card_expiry_year: string;
|
|
17
|
+
save_card?: boolean;
|
|
16
18
|
};
|
|
17
19
|
links?: EsolvePaymentRedirectLinks;
|
|
18
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type EsolveServiceProvider = 'paygate' | 'payfast' | 'payflex' | 'snapscan' | 'ozow' | 'my_gate' | 'fnb' | 'walletdoc';
|
|
1
|
+
export type EsolveServiceProvider = 'paygate' | 'payfast' | 'payflex' | 'snapscan' | 'ozow' | 'my_gate' | 'fnb' | 'adumo' | 'walletdoc';
|