@fiado/type-kit 3.668.0 → 3.670.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.
@@ -0,0 +1,16 @@
1
+ import 'reflect-metadata';
2
+ import * as Reconciliation from '../../../src/reconciliation';
3
+ import { OperationEnum, TransactionStatusEnum } from '../../../src/transaction';
4
+
5
+ describe('movimiento ejecutado del detalle en vivo', () => {
6
+ it('el detalle en vivo acepta el movimiento de FSA con todos sus campos opcionales', () => {
7
+ const executedTransaction: Reconciliation.ReconciliationExecutedTransaction = {
8
+ transactionNumber: 'PCF-1', status: TransactionStatusEnum.COMPLETED, operation: OperationEnum.SUBSTRACT, walletId: 'acc-1', description: 'SUREKEEP_COLLECTION',
9
+ };
10
+ const detail: Reconciliation.ReconciliationItemLiveDetail = { creditId: 'cr-1', executedTransaction };
11
+ const empty: Reconciliation.ReconciliationExecutedTransaction = {};
12
+
13
+ expect(detail.executedTransaction).toEqual(executedTransaction);
14
+ expect(empty).toEqual({});
15
+ });
16
+ });
@@ -1,4 +1,5 @@
1
1
  import { CurrencyId } from '../../currency/enums/CurrencyId';
2
+ import { OperationEnum, TransactionStatusEnum } from '../../transaction';
2
3
  import { ReconciliationFeedConceptEnum } from '../enums/ReconciliationFeedConceptEnum';
3
4
  import { ReconciliationItemStateEnum } from '../enums/ReconciliationItemStateEnum';
4
5
  import { ReconciliationLayerEnum } from '../enums/ReconciliationLayerEnum';
@@ -74,4 +75,15 @@ export interface ReconciliationItemLiveDetail {
74
75
  amountCents?: number;
75
76
  productModel?: string;
76
77
  sellerName?: string;
78
+ /** Movimiento de FSA del lado ejecutado; se omite si la partida no lo trae o la lectura falla. */
79
+ executedTransaction?: ReconciliationExecutedTransaction;
80
+ }
81
+ /** Datos del movimiento del ledger (FiadoTx) leídos en vivo; el que no llega se omite. */
82
+ export interface ReconciliationExecutedTransaction {
83
+ transactionNumber?: string;
84
+ status?: TransactionStatusEnum;
85
+ operation?: OperationEnum;
86
+ walletId?: string;
87
+ /** Código de catálogo del producto (por ejemplo `SUREKEEP_COLLECTION`) o, si no viene, la descripción del detalle. */
88
+ description?: string;
77
89
  }
@@ -65,6 +65,8 @@ export interface TransferNoteSummary {
65
65
  itemCount: number;
66
66
  issuedAt?: string;
67
67
  dueAt?: string;
68
+ /** Conceptos de los subtotales de la nota, sin repetir. */
69
+ concepts?: TransferNoteConceptEnum[];
68
70
  }
69
71
  /** Detalle de una nota. */
70
72
  export interface TransferNote extends TransferNoteSummary {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.668.0",
3
+ "version": "3.670.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,5 @@
1
1
  import { CurrencyId } from '../../currency/enums/CurrencyId';
2
+ import { OperationEnum, TransactionStatusEnum } from '../../transaction';
2
3
  import { ReconciliationFeedConceptEnum } from '../enums/ReconciliationFeedConceptEnum';
3
4
  import { ReconciliationItemStateEnum } from '../enums/ReconciliationItemStateEnum';
4
5
  import { ReconciliationLayerEnum } from '../enums/ReconciliationLayerEnum';
@@ -81,4 +82,16 @@ export interface ReconciliationItemLiveDetail {
81
82
  amountCents?: number;
82
83
  productModel?: string;
83
84
  sellerName?: string;
85
+ /** Movimiento de FSA del lado ejecutado; se omite si la partida no lo trae o la lectura falla. */
86
+ executedTransaction?: ReconciliationExecutedTransaction;
87
+ }
88
+
89
+ /** Datos del movimiento del ledger (FiadoTx) leídos en vivo; el que no llega se omite. */
90
+ export interface ReconciliationExecutedTransaction {
91
+ transactionNumber?: string;
92
+ status?: TransactionStatusEnum;
93
+ operation?: OperationEnum;
94
+ walletId?: string;
95
+ /** Código de catálogo del producto (por ejemplo `SUREKEEP_COLLECTION`) o, si no viene, la descripción del detalle. */
96
+ description?: string;
84
97
  }
@@ -72,6 +72,8 @@ export interface TransferNoteSummary {
72
72
  itemCount: number;
73
73
  issuedAt?: string;
74
74
  dueAt?: string;
75
+ /** Conceptos de los subtotales de la nota, sin repetir. */
76
+ concepts?: TransferNoteConceptEnum[];
75
77
  }
76
78
 
77
79
  /** Detalle de una nota. */