@pax2pay/model-banking 0.1.110 → 0.1.112

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.
@@ -4,9 +4,9 @@ import { isly } from "isly"
4
4
  export interface GB {
5
5
  countryCode: "GB"
6
6
  city: string
7
- zipCode: string
8
7
  street: string
9
8
  building: string
9
+ zipCode: string
10
10
  }
11
11
 
12
12
  export namespace GB {
@@ -2,7 +2,7 @@ import { isoly } from "isoly"
2
2
  import { isly } from "isly"
3
3
 
4
4
  export interface Default {
5
- countryCode: isoly.CountryCode.Alpha2
5
+ countryCode: Exclude<isoly.CountryCode.Alpha2, "GB" | "SE">
6
6
  state?: string
7
7
  county?: string
8
8
  city: string
@@ -12,7 +12,7 @@ export interface Default {
12
12
 
13
13
  export namespace Default {
14
14
  export const type = isly.object<Default>({
15
- countryCode: isly.string("GB"),
15
+ countryCode: isly.string(),
16
16
  state: isly.string().optional(),
17
17
  county: isly.string().optional(),
18
18
  city: isly.string(),
@@ -6,7 +6,7 @@ import { SE } from "./SE"
6
6
  export type Address = GB | SE | Default
7
7
 
8
8
  export namespace Address {
9
- export const type = isly.union<Address, GB, Default>(GB.type, Default.type)
9
+ export const type = isly.union(GB.type, SE.type, Default.type)
10
10
  export const is = type.is
11
11
  export const flaw = type.flaw
12
12
  }
package/Rule/index.ts CHANGED
@@ -17,6 +17,7 @@ export namespace Rule {
17
17
  export type Authorization = RuleState.Authorization
18
18
  export type Card = RuleState.Card
19
19
  export type Transaction = RuleState.Transaction
20
+ export type Partial = RuleState.Partial
20
21
  }
21
22
 
22
23
  export const type = ModelRule.type
@@ -2,9 +2,9 @@ import { isly } from "isly";
2
2
  export interface GB {
3
3
  countryCode: "GB";
4
4
  city: string;
5
- zipCode: string;
6
5
  street: string;
7
6
  building: string;
7
+ zipCode: string;
8
8
  }
9
9
  export declare namespace GB {
10
10
  const name: string;
@@ -1,7 +1,7 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
3
  export interface Default {
4
- countryCode: isoly.CountryCode.Alpha2;
4
+ countryCode: Exclude<isoly.CountryCode.Alpha2, "GB" | "SE">;
5
5
  state?: string;
6
6
  county?: string;
7
7
  city: string;
@@ -2,7 +2,7 @@ import { isly } from "isly";
2
2
  export var Default;
3
3
  (function (Default) {
4
4
  Default.type = isly.object({
5
- countryCode: isly.string("GB"),
5
+ countryCode: isly.string(),
6
6
  state: isly.string().optional(),
7
7
  county: isly.string().optional(),
8
8
  city: isly.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"General.js","sourceRoot":"../","sources":["Organization/Contact/Address/General.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,KAAW,OAAO,CAWvB;AAXD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAC9B,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,OAAO,KAAP,OAAO,QAWvB"}
1
+ {"version":3,"file":"General.js","sourceRoot":"../","sources":["Organization/Contact/Address/General.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,KAAW,OAAO,CAWvB;AAXD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,OAAO,KAAP,OAAO,QAWvB"}
@@ -4,7 +4,7 @@ import { Default } from "./General";
4
4
  import { SE } from "./SE";
5
5
  export type Address = GB | SE | Default;
6
6
  export declare namespace Address {
7
- const type: isly.Type<Address>;
8
- const is: isly.Type.IsFunction<Address>;
7
+ const type: isly.Type<GB | Default | SE>;
8
+ const is: isly.Type.IsFunction<GB | Default | SE>;
9
9
  const flaw: isly.Type.FlawFunction;
10
10
  }
@@ -1,9 +1,10 @@
1
1
  import { isly } from "isly";
2
2
  import { GB } from "./GB";
3
3
  import { Default } from "./General";
4
+ import { SE } from "./SE";
4
5
  export var Address;
5
6
  (function (Address) {
6
- Address.type = isly.union(GB.type, Default.type);
7
+ Address.type = isly.union(GB.type, SE.type, Default.type);
7
8
  Address.is = Address.type.is;
8
9
  Address.flaw = Address.type.flaw;
9
10
  })(Address || (Address = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Organization/Contact/Address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,MAAM,KAAW,OAAO,CAIvB;AAJD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,KAAK,CAAuB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9D,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAJgB,OAAO,KAAP,OAAO,QAIvB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Organization/Contact/Address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AAIzB,MAAM,KAAW,OAAO,CAIvB;AAJD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACjD,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAJgB,OAAO,KAAP,OAAO,QAIvB"}
@@ -14,6 +14,7 @@ export declare namespace Rule {
14
14
  type Authorization = RuleState.Authorization;
15
15
  type Card = RuleState.Card;
16
16
  type Transaction = RuleState.Transaction;
17
+ type Partial = RuleState.Partial;
17
18
  }
18
19
  const type: import("isly/dist/object").object.ExtendableType<ModelRule.Rule>;
19
20
  const is: import("isly/dist/Type").Type.IsFunction<ModelRule.Rule>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;A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,QAAQ,CAAA;AACnC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CAgCpB;AAhCD,WAAiB,IAAI;IACP,YAAO,GAAG,SAAS,CAAC,OAAO,CAAA;IAE3B,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IAGvB,UAAK,GAAG,SAAS,CAAA;IASjB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAA;IACrB,OAAE,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,CAAA;IACtB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;IAC1B,cAAS,GAAG,SAAS,CAAC,SAAS,CAAA;IAC5C,SAAgB,QAAQ,CACvB,KAAa,EACb,KAAY,EACZ,MAA+C;QAE/C,MAAM,MAAM,GAA2B,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;QAC3E,KAAK,CAAC,OAAO,CACZ,CAAC,CAAC,EAAE,CACH,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;YAC5F,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACzB,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IAZe,aAAQ,WAYvB,CAAA;AACF,CAAC,EAhCgB,IAAI,KAAJ,IAAI,QAgCpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.110",
3
+ "version": "0.1.112",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",