@pax2pay/model-banking 0.1.572 → 0.1.573

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.
@@ -39,7 +39,7 @@ export namespace Charge {
39
39
  }),
40
40
  })
41
41
  }
42
- export type ChargeTransaction = PreTransaction.Incoming & { counterpart: Rail.Address.Internal }
42
+ export type ChargeTransaction = PreTransaction.Incoming & { account: Rail.Address.Internal }
43
43
  export function total(currency: isoly.Currency, charges: Charge): number {
44
44
  return isoly.Currency.add(currency, charges.fx?.amount ?? 0, charges.merchant?.amount ?? 0)
45
45
  }
@@ -28,7 +28,7 @@ export declare namespace Charge {
28
28
  const type: import("isly/dist/cjs/object").IslyObject<Merchant, object>;
29
29
  }
30
30
  type ChargeTransaction = PreTransaction.Incoming & {
31
- counterpart: Rail.Address.Internal;
31
+ account: Rail.Address.Internal;
32
32
  };
33
33
  function total(currency: isoly.Currency, charges: Charge): number;
34
34
  function toTransactions(charge: Charge, account: string, id: string, currency: isoly.Currency, fxCollectAccount: string): {
@@ -28,7 +28,7 @@ export declare namespace Charge {
28
28
  const type: import("isly/dist/cjs/object").IslyObject<Merchant, object>;
29
29
  }
30
30
  type ChargeTransaction = PreTransaction.Incoming & {
31
- counterpart: Rail.Address.Internal;
31
+ account: Rail.Address.Internal;
32
32
  };
33
33
  function total(currency: isoly.Currency, charges: Charge): number;
34
34
  function toTransactions(charge: Charge, account: string, id: string, currency: isoly.Currency, fxCollectAccount: string): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.572",
3
+ "version": "0.1.573",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",