@pax2pay/client 0.2.14 → 0.2.15
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,8 @@
|
|
|
1
1
|
import { OrganisationBalanceLimitResponse } from "./OrganisationBalanceLimitResponse";
|
|
2
2
|
export interface OrganisationResponse {
|
|
3
|
-
code
|
|
4
|
-
name
|
|
5
|
-
status
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
status: "ACTIVE" | "DELETED";
|
|
6
6
|
limitResponse?: OrganisationBalanceLimitResponse;
|
|
7
7
|
}
|
|
8
8
|
export declare namespace OrganisationResponse {
|
|
@@ -3,9 +3,9 @@ export var OrganisationResponse;
|
|
|
3
3
|
(function (OrganisationResponse) {
|
|
4
4
|
function is(value) {
|
|
5
5
|
return (typeof value == "object" &&
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
(value.status ==
|
|
6
|
+
typeof value.code == "string" &&
|
|
7
|
+
typeof value.name == "string" &&
|
|
8
|
+
(value.status == "ACTIVE" || value.status == "DELETED") &&
|
|
9
9
|
(value.limitResponse == undefined || OrganisationBalanceLimitResponse.is(value.limitResponse)));
|
|
10
10
|
}
|
|
11
11
|
OrganisationResponse.is = is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganisationResponse.js","sourceRoot":"../","sources":["model/OrganisationResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAYrF,MAAM,KAAW,oBAAoB,CAUpC;AAVD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,
|
|
1
|
+
{"version":3,"file":"OrganisationResponse.js","sourceRoot":"../","sources":["model/OrganisationResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAYrF,MAAM,KAAW,oBAAoB,CAUpC;AAVD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,CAAC,KAAK,CAAC,MAAM,IAAI,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC;YACvD,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS,IAAI,gCAAgC,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAC9F,CAAA;IACF,CAAC;IARe,uBAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,oBAAoB,KAApB,oBAAoB,QAUpC"}
|
|
@@ -4,9 +4,9 @@ import { OrganisationBalanceLimitResponse } from "./OrganisationBalanceLimitResp
|
|
|
4
4
|
* Organisation information of the creating user
|
|
5
5
|
*/
|
|
6
6
|
export interface OrganisationResponse {
|
|
7
|
-
code
|
|
8
|
-
name
|
|
9
|
-
status
|
|
7
|
+
code: string
|
|
8
|
+
name: string
|
|
9
|
+
status: "ACTIVE" | "DELETED"
|
|
10
10
|
limitResponse?: OrganisationBalanceLimitResponse
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -14,9 +14,9 @@ export namespace OrganisationResponse {
|
|
|
14
14
|
export function is(value: OrganisationResponse | any): value is OrganisationResponse {
|
|
15
15
|
return (
|
|
16
16
|
typeof value == "object" &&
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(value.status ==
|
|
17
|
+
typeof value.code == "string" &&
|
|
18
|
+
typeof value.name == "string" &&
|
|
19
|
+
(value.status == "ACTIVE" || value.status == "DELETED") &&
|
|
20
20
|
(value.limitResponse == undefined || OrganisationBalanceLimitResponse.is(value.limitResponse))
|
|
21
21
|
)
|
|
22
22
|
}
|