@esolve/ng-esolve-connect 0.76.0 → 0.77.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/payment/classes/esolve-account-payment.model.mjs +13 -0
- package/esm2022/lib/payment/classes/index.mjs +2 -1
- package/esm2022/lib/payment/esolve-payment.service.mjs +54 -5
- package/esm2022/lib/payment/interfaces/esolve-account-payment-options.interface.mjs +2 -0
- package/esm2022/lib/payment/interfaces/esolve-account-payment-record.interface.mjs +2 -0
- package/esm2022/lib/payment/interfaces/index.mjs +3 -1
- package/fesm2022/esolve-ng-esolve-connect.mjs +66 -4
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/payment/classes/esolve-account-payment.model.d.ts +12 -0
- package/lib/payment/classes/index.d.ts +1 -0
- package/lib/payment/esolve-payment.service.d.ts +18 -2
- package/lib/payment/interfaces/esolve-account-payment-options.interface.d.ts +4 -0
- package/lib/payment/interfaces/esolve-account-payment-record.interface.d.ts +10 -0
- package/lib/payment/interfaces/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EsolveAccountPaymentRecord } from "../interfaces";
|
|
2
|
+
export declare class EsolveAccountPayment {
|
|
3
|
+
id: number;
|
|
4
|
+
reference: string;
|
|
5
|
+
clients_id: number;
|
|
6
|
+
payment_transactions_id: number;
|
|
7
|
+
userid: number;
|
|
8
|
+
status: string;
|
|
9
|
+
amount_tendered: number;
|
|
10
|
+
txdate: Date;
|
|
11
|
+
constructor(record: EsolveAccountPaymentRecord);
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { EsolveResult } from '../shared';
|
|
3
|
-
import { EsolvePaymentMethod, EsolvePaymentResult, EsolveVaultItem, EsolveVaultItemResult } from './classes';
|
|
3
|
+
import { EsolveAccountPayment, EsolvePaymentMethod, EsolvePaymentResult, EsolveVaultItem, EsolveVaultItemResult } from './classes';
|
|
4
4
|
import { EsolveCardData, EsolvePaymentMethodOptions, EsolvePaymentRedirectLinks } from './interfaces';
|
|
5
5
|
import { EsolveStatementTransaction } from '../account/user-account';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -71,7 +71,15 @@ export declare class EsolvePaymentService {
|
|
|
71
71
|
*
|
|
72
72
|
* @returns An `Observable` with the result of the payment
|
|
73
73
|
*/
|
|
74
|
-
setAccountPayment(clients_id: number, payment_methods_id: number, transactions: EsolveStatementTransaction[], links
|
|
74
|
+
setAccountPayment(clients_id: number, payment_methods_id: number, transactions: EsolveStatementTransaction[], card?: EsolveCardData | number, links?: EsolvePaymentRedirectLinks): Observable<EsolvePaymentResult>;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves a list of account payments for a specified client
|
|
77
|
+
*
|
|
78
|
+
* @param options Filter options
|
|
79
|
+
*
|
|
80
|
+
* @returns An `Observable` with an array of payment methods
|
|
81
|
+
*/
|
|
82
|
+
getAccountPayments(options?: EsolvePaymentMethodOptions): Observable<EsolveAccountPayment[]>;
|
|
75
83
|
/**
|
|
76
84
|
* Processes the eSolve payment method records.
|
|
77
85
|
*
|
|
@@ -80,6 +88,14 @@ export declare class EsolvePaymentService {
|
|
|
80
88
|
* @returns An array of processed payment methods.
|
|
81
89
|
*/
|
|
82
90
|
private processPaymentMethods;
|
|
91
|
+
/**
|
|
92
|
+
* Processes the eSolve account payment records.
|
|
93
|
+
*
|
|
94
|
+
* @param records Records to process
|
|
95
|
+
*
|
|
96
|
+
* @returns An array of processed account payments
|
|
97
|
+
*/
|
|
98
|
+
private processAccountPayments;
|
|
83
99
|
/**
|
|
84
100
|
* Processes the eSolve vault records.
|
|
85
101
|
*
|
|
@@ -8,3 +8,5 @@ export * from './esolve-payment-method-record.interface';
|
|
|
8
8
|
export * from './esolve-payment-redirect-links.interface';
|
|
9
9
|
export * from './esolve-payment-set-body.interface';
|
|
10
10
|
export * from './esolve-payment-status.interface';
|
|
11
|
+
export * from './esolve-account-payment-options.interface';
|
|
12
|
+
export * from './esolve-account-payment-record.interface';
|