@pax2pay/model-banking 0.1.167 → 0.1.168

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.
@@ -8,8 +8,8 @@ export namespace Transaction {
8
8
  export function from(transaction: ModelTransaction.Creatable): Transaction {
9
9
  return {
10
10
  ...transaction,
11
- amount: transaction.amount,
12
- original: { currency: transaction.currency, amount: transaction.amount },
11
+ amount: Math.abs(transaction.amount),
12
+ original: { currency: transaction.currency, amount: Math.abs(transaction.amount) },
13
13
  }
14
14
  }
15
15
  }
@@ -3,8 +3,8 @@ export var Transaction;
3
3
  function from(transaction) {
4
4
  return {
5
5
  ...transaction,
6
- amount: transaction.amount,
7
- original: { currency: transaction.currency, amount: transaction.amount },
6
+ amount: Math.abs(transaction.amount),
7
+ original: { currency: transaction.currency, amount: Math.abs(transaction.amount) },
8
8
  };
9
9
  }
10
10
  Transaction.from = from;
@@ -1 +1 @@
1
- {"version":3,"file":"Transaction.js","sourceRoot":"../","sources":["Rule/State/Transaction.ts"],"names":[],"mappings":"AAMA,MAAM,KAAW,WAAW,CAQ3B;AARD,WAAiB,WAAW;IAC3B,SAAgB,IAAI,CAAC,WAAuC;QAC3D,OAAO;YACN,GAAG,WAAW;YACd,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE;SACxE,CAAA;IACF,CAAC;IANe,gBAAI,OAMnB,CAAA;AACF,CAAC,EARgB,WAAW,KAAX,WAAW,QAQ3B"}
1
+ {"version":3,"file":"Transaction.js","sourceRoot":"../","sources":["Rule/State/Transaction.ts"],"names":[],"mappings":"AAMA,MAAM,KAAW,WAAW,CAQ3B;AARD,WAAiB,WAAW;IAC3B,SAAgB,IAAI,CAAC,WAAuC;QAC3D,OAAO;YACN,GAAG,WAAW;YACd,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC;YACpC,QAAQ,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;SAClF,CAAA;IACF,CAAC;IANe,gBAAI,OAMnB,CAAA;AACF,CAAC,EARgB,WAAW,KAAX,WAAW,QAQ3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.167",
3
+ "version": "0.1.168",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",