@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.
Files changed (29) hide show
  1. package/esm2022/lib/account/user-account/classes/esolve-statement-transaction.model.mjs +3 -1
  2. package/esm2022/lib/account/user-account/interfaces/esolve-statement-transaction-record.interface.mjs +1 -1
  3. package/esm2022/lib/auth/interfaces/esolve-otp-options.interface.mjs +2 -0
  4. package/esm2022/lib/auth/interfaces/esolve-otp-record.interface.mjs +1 -1
  5. package/esm2022/lib/auth/interfaces/index.mjs +2 -1
  6. package/esm2022/lib/auth/models/esolve-otp.model.mjs +3 -1
  7. package/esm2022/lib/auth/services/esolve-otp.service.mjs +8 -5
  8. package/esm2022/lib/payment/classes/esolve-payment-method.model.mjs +1 -8
  9. package/esm2022/lib/payment/esolve-payment.service.mjs +9 -16
  10. package/esm2022/lib/payment/interfaces/esolve-card-data.interface.mjs +1 -1
  11. package/esm2022/lib/payment/interfaces/esolve-payment-method-record.interface.mjs +1 -1
  12. package/esm2022/lib/payment/interfaces/esolve-payment-set-body.interface.mjs +1 -1
  13. package/esm2022/lib/payment/types/esolve-service-provider.type.mjs +1 -1
  14. package/fesm2022/esolve-ng-esolve-connect.mjs +19 -26
  15. package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
  16. package/lib/account/user-account/classes/esolve-statement-transaction.model.d.ts +2 -0
  17. package/lib/account/user-account/interfaces/esolve-statement-transaction-record.interface.d.ts +2 -0
  18. package/lib/auth/interfaces/esolve-otp-options.interface.d.ts +4 -0
  19. package/lib/auth/interfaces/esolve-otp-record.interface.d.ts +1 -0
  20. package/lib/auth/interfaces/index.d.ts +1 -0
  21. package/lib/auth/models/esolve-otp.model.d.ts +1 -0
  22. package/lib/auth/services/esolve-otp.service.d.ts +3 -2
  23. package/lib/payment/classes/esolve-payment-method.model.d.ts +0 -6
  24. package/lib/payment/esolve-payment.service.d.ts +0 -8
  25. package/lib/payment/interfaces/esolve-card-data.interface.d.ts +1 -0
  26. package/lib/payment/interfaces/esolve-payment-method-record.interface.d.ts +0 -6
  27. package/lib/payment/interfaces/esolve-payment-set-body.interface.d.ts +3 -1
  28. package/lib/payment/types/esolve-service-provider.type.d.ts +1 -1
  29. 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
  }
@@ -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
  }
@@ -0,0 +1,4 @@
1
+ export interface EsolveOtpOptions {
2
+ recipient_number?: string;
3
+ recipient_email?: string;
4
+ }
@@ -2,6 +2,7 @@ export interface EsolveOtpRecord {
2
2
  otp_generated: boolean;
3
3
  otp_key: string;
4
4
  otp_sms_sent: boolean;
5
+ otp_email_sent: boolean;
5
6
  otp_expiry: number;
6
7
  sms_response: string;
7
8
  }
@@ -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';
@@ -3,6 +3,7 @@ export declare class EsolveOtp {
3
3
  otp_generated: boolean;
4
4
  otp_key: string;
5
5
  otp_sms_sent: boolean;
6
+ otp_email_sent: boolean;
6
7
  otp_expiry?: Date;
7
8
  sms_response: string;
8
9
  constructor(record: EsolveOtpRecord);
@@ -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(recipient_number?: string, captcha_options?: EsolveCaptchaOptions): Observable<EsolveOtp>;
11
- getValidateOtp(otp_key: string, otp_code: string, otp_action?: EsolveOtpAction, email?: string, cellnumber?: string): Observable<EsolveOtpValidation>;
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
  }
@@ -4,4 +4,5 @@ export interface EsolveCardData {
4
4
  cvv: string;
5
5
  expiry_month: string;
6
6
  expiry_year: string;
7
+ save_card?: boolean;
7
8
  }
@@ -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
- card_expiry: string;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.113.0",
3
+ "version": "0.115.0",
4
4
  "homepage": "https://www.esolve.co.za/",
5
5
  "description": "An Angular library that speaks to an eSolve instance's API",
6
6
  "peerDependencies": {