@pax2pay/model-banking 0.1.380 → 0.1.381

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,15 @@
1
+ import { isly } from "isly"
2
+
3
+ export interface Base {
4
+ type: string
5
+ resource: string
6
+ value?: number
7
+ }
8
+
9
+ export namespace Base {
10
+ export const type = isly.object<Base>({
11
+ type: isly.string(),
12
+ resource: isly.string(),
13
+ value: isly.number().optional(),
14
+ })
15
+ }
package/Warning/index.ts CHANGED
@@ -1,15 +1,9 @@
1
- import { isly } from "isly"
1
+ import { Base as WarningBase } from "./Base"
2
+ // import { Snapshot as WarningSnapshot } from "./Snapshot"
2
3
 
3
- export interface Warning {
4
- type: string
5
- entity: string
6
- value?: number
7
- }
4
+ // export type Warning = Warning.Snapshot //| Settlement
8
5
 
9
6
  export namespace Warning {
10
- export const type = isly.object<Warning>({
11
- type: isly.string(),
12
- entity: isly.string(),
13
- value: isly.number().optional(),
14
- })
7
+ // export import Snapshot = WarningSnapshot
8
+ export import Base = WarningBase
15
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.380",
3
+ "version": "0.1.381",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",