@nicefer/types 1.0.153 → 1.0.155
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.
|
@@ -18,19 +18,29 @@ export interface RadarItem {
|
|
|
18
18
|
amountUsed: number;
|
|
19
19
|
createdAt: string;
|
|
20
20
|
}
|
|
21
|
+
export interface DonationCharges {
|
|
22
|
+
subtotal: number;
|
|
23
|
+
fees: number;
|
|
24
|
+
total: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* La donación se puede recibir en HNL, USD o EUR,
|
|
28
|
+
* pero se deberá convertir a lempiras antes de ser usada.
|
|
29
|
+
*/
|
|
21
30
|
export interface Donation {
|
|
22
31
|
id: string;
|
|
23
32
|
donorId: string;
|
|
24
33
|
fullname: string;
|
|
25
34
|
anonymous: boolean;
|
|
26
|
-
charges:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
charges: DonationCharges;
|
|
36
|
+
/**
|
|
37
|
+
* Cuándo se reciba en una moneda distinta de HNL, se convertirá a HNL.
|
|
38
|
+
* De lo contrario será `undefined`
|
|
39
|
+
*/
|
|
40
|
+
chargesInHNL?: DonationCharges;
|
|
31
41
|
status: DonationStatus;
|
|
32
42
|
paymentStatus?: PaymentIntent.Status;
|
|
33
|
-
|
|
43
|
+
mainCcy: Currency;
|
|
34
44
|
radar?: {
|
|
35
45
|
[itemId: string]: RadarItem;
|
|
36
46
|
};
|