@pax2pay/client 0.3.103 → 0.3.104

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.
@@ -1,8 +1,10 @@
1
1
  import { Currency } from "isoly";
2
+ import { isly } from "isly";
2
3
  import { AccountState } from "./AccountState";
3
4
  import { ProviderCode } from "./ProviderCode";
4
5
  export interface FundingAccountResponseV2Basic {
5
6
  friendlyName?: string;
7
+ id: string;
6
8
  providerAccountId: string;
7
9
  providerCode: ProviderCode;
8
10
  status: AccountState;
@@ -10,5 +12,6 @@ export interface FundingAccountResponseV2Basic {
10
12
  balance: number;
11
13
  }
12
14
  export declare namespace FundingAccountResponseV2Basic {
13
- function is(value: FundingAccountResponseV2Basic | any): value is FundingAccountResponseV2Basic;
15
+ const type: isly.object.ExtendableType<FundingAccountResponseV2Basic>;
16
+ const is: isly.Type.IsFunction<FundingAccountResponseV2Basic>;
14
17
  }
@@ -1,17 +1,18 @@
1
1
  import { Currency } from "isoly";
2
+ import { isly } from "isly";
2
3
  import { AccountState } from "./AccountState";
3
4
  import { ProviderCode } from "./ProviderCode";
4
5
  export var FundingAccountResponseV2Basic;
5
6
  (function (FundingAccountResponseV2Basic) {
6
- function is(value) {
7
- return (typeof value == "object" &&
8
- (value.friendlyName == undefined || typeof value.friendlyName == "string") &&
9
- typeof value.providerAccountId == "string" &&
10
- ProviderCode.is(value.providerCode) &&
11
- AccountState.is(value.status) &&
12
- Currency.is(value.currency) &&
13
- typeof value.balance == "number");
14
- }
15
- FundingAccountResponseV2Basic.is = is;
7
+ FundingAccountResponseV2Basic.type = isly.object({
8
+ friendlyName: isly.string().optional(),
9
+ id: isly.string(),
10
+ providerAccountId: isly.string(),
11
+ providerCode: isly.fromIs("ProviderCode", ProviderCode.is),
12
+ status: isly.fromIs("AccountState", AccountState.is),
13
+ currency: isly.fromIs("Currency", Currency.is),
14
+ balance: isly.number(),
15
+ });
16
+ FundingAccountResponseV2Basic.is = FundingAccountResponseV2Basic.type.is;
16
17
  })(FundingAccountResponseV2Basic || (FundingAccountResponseV2Basic = {}));
17
18
  //# sourceMappingURL=FundingAccountResponseV2Basic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FundingAccountResponseV2Basic.js","sourceRoot":"../","sources":["model/FundingAccountResponseV2Basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAU7C,MAAM,KAAW,6BAA6B,CAY7C;AAZD,WAAiB,6BAA6B;IAC7C,SAAgB,EAAE,CAAC,KAA0C;QAC5D,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,YAAY,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ,CAAC;YAC1E,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ;YAC1C,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YACnC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;YAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC3B,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAChC,CAAA;IACF,CAAC;IAVe,gCAAE,KAUjB,CAAA;AACF,CAAC,EAZgB,6BAA6B,KAA7B,6BAA6B,QAY7C"}
1
+ {"version":3,"file":"FundingAccountResponseV2Basic.js","sourceRoot":"../","sources":["model/FundingAccountResponseV2Basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAW7C,MAAM,KAAW,6BAA6B,CAW7C;AAXD,WAAiB,6BAA6B;IAChC,kCAAI,GAAG,IAAI,CAAC,MAAM,CAAgC;QAC9D,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACtC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,iBAAiB,EAAE,IAAI,CAAC,MAAM,EAAE;QAChC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,CAAC;QAC1D,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,CAAC;QACpD,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9C,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,gCAAE,GAAG,8BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAXgB,6BAA6B,KAA7B,6BAA6B,QAW7C"}
@@ -1,9 +1,11 @@
1
1
  import { Currency } from "isoly"
2
+ import { isly } from "isly"
2
3
  import { AccountState } from "./AccountState"
3
4
  import { ProviderCode } from "./ProviderCode"
4
5
 
5
6
  export interface FundingAccountResponseV2Basic {
6
7
  friendlyName?: string
8
+ id: string
7
9
  providerAccountId: string
8
10
  providerCode: ProviderCode
9
11
  status: AccountState
@@ -11,15 +13,14 @@ export interface FundingAccountResponseV2Basic {
11
13
  balance: number
12
14
  }
13
15
  export namespace FundingAccountResponseV2Basic {
14
- export function is(value: FundingAccountResponseV2Basic | any): value is FundingAccountResponseV2Basic {
15
- return (
16
- typeof value == "object" &&
17
- (value.friendlyName == undefined || typeof value.friendlyName == "string") &&
18
- typeof value.providerAccountId == "string" &&
19
- ProviderCode.is(value.providerCode) &&
20
- AccountState.is(value.status) &&
21
- Currency.is(value.currency) &&
22
- typeof value.balance == "number"
23
- )
24
- }
16
+ export const type = isly.object<FundingAccountResponseV2Basic>({
17
+ friendlyName: isly.string().optional(),
18
+ id: isly.string(),
19
+ providerAccountId: isly.string(),
20
+ providerCode: isly.fromIs("ProviderCode", ProviderCode.is),
21
+ status: isly.fromIs("AccountState", AccountState.is),
22
+ currency: isly.fromIs("Currency", Currency.is),
23
+ balance: isly.number(),
24
+ })
25
+ export const is = type.is
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.3.103",
3
+ "version": "0.3.104",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",