@pax2pay/client 0.3.41 → 0.3.42
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.
- package/dist/model/BeneficiaryResponse.d.ts +5 -5
- package/dist/model/BeneficiaryResponse.js +6 -6
- package/dist/model/BeneficiaryResponse.js.map +1 -1
- package/dist/model/FundingAccountSummaryResponse.js +4 -1
- package/dist/model/FundingAccountSummaryResponse.js.map +1 -1
- package/model/BeneficiaryResponse.ts +11 -11
- package/model/FundingAccountSummaryResponse.ts +6 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BeneficiaryStatus } from "./BeneficiaryStatus";
|
|
2
2
|
import { TransferDestinationInfo } from "./TransferDestinationInfo";
|
|
3
3
|
export interface BeneficiaryResponse {
|
|
4
|
-
transferDestination
|
|
4
|
+
transferDestination: TransferDestinationInfo;
|
|
5
|
+
status: BeneficiaryStatus;
|
|
6
|
+
name: string;
|
|
7
|
+
beneficiaryId: string;
|
|
8
|
+
createdOn: string;
|
|
5
9
|
defaultReference?: string;
|
|
6
|
-
status?: BeneficiaryStatus;
|
|
7
|
-
name?: string;
|
|
8
10
|
fullName?: string;
|
|
9
|
-
beneficiaryId?: string;
|
|
10
|
-
createdOn?: string;
|
|
11
11
|
history?: BeneficiaryResponse[];
|
|
12
12
|
}
|
|
13
13
|
export declare namespace BeneficiaryResponse {
|
|
@@ -4,13 +4,13 @@ export var BeneficiaryResponse;
|
|
|
4
4
|
(function (BeneficiaryResponse) {
|
|
5
5
|
function is(value) {
|
|
6
6
|
return (typeof value == "object" &&
|
|
7
|
-
|
|
8
|
-
(value.
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
TransferDestinationInfo.is(value.transferDestination) &&
|
|
8
|
+
BeneficiaryStatus.is(value.status) &&
|
|
9
|
+
typeof value.name == "string" &&
|
|
10
|
+
typeof value.beneficiaryId == "string" &&
|
|
11
|
+
typeof value.createdOn == "string" &&
|
|
11
12
|
(value.fullName == undefined || typeof value.fullName == "string") &&
|
|
12
|
-
(value.
|
|
13
|
-
(value.createdOn == undefined || typeof value.createdOn == "string") &&
|
|
13
|
+
(value.defaultReference == undefined || typeof value.defaultReference == "string") &&
|
|
14
14
|
(value.history == undefined || Array.isArray(value.history)));
|
|
15
15
|
}
|
|
16
16
|
BeneficiaryResponse.is = is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BeneficiaryResponse.js","sourceRoot":"../","sources":["model/BeneficiaryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAanE,MAAM,KAAW,mBAAmB,CAcnC;AAdD,WAAiB,mBAAmB;IACnC,SAAgB,EAAE,CAAC,KAAgC;QAClD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,
|
|
1
|
+
{"version":3,"file":"BeneficiaryResponse.js","sourceRoot":"../","sources":["model/BeneficiaryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAanE,MAAM,KAAW,mBAAmB,CAcnC;AAdD,WAAiB,mBAAmB;IACnC,SAAgB,EAAE,CAAC,KAAgC;QAClD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,uBAAuB,CAAC,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC;YACrD,iBAAiB,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;YAClC,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,OAAO,KAAK,CAAC,aAAa,IAAI,QAAQ;YACtC,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC;YAClE,CAAC,KAAK,CAAC,gBAAgB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ,CAAC;YAClF,CAAC,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAC5D,CAAA;IACF,CAAC;IAZe,sBAAE,KAYjB,CAAA;AACF,CAAC,EAdgB,mBAAmB,KAAnB,mBAAmB,QAcnC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export var FundingAccountSummaryResponse;
|
|
2
2
|
(function (FundingAccountSummaryResponse) {
|
|
3
3
|
function is(value) {
|
|
4
|
-
return typeof value == "object" &&
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
typeof value.providerAccountId == "string" &&
|
|
6
|
+
typeof value.balance == "number" &&
|
|
7
|
+
typeof value.friendlyName == "string");
|
|
5
8
|
}
|
|
6
9
|
FundingAccountSummaryResponse.is = is;
|
|
7
10
|
})(FundingAccountSummaryResponse || (FundingAccountSummaryResponse = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FundingAccountSummaryResponse.js","sourceRoot":"../","sources":["model/FundingAccountSummaryResponse.ts"],"names":[],"mappings":"AAMA,MAAM,KAAW,6BAA6B,
|
|
1
|
+
{"version":3,"file":"FundingAccountSummaryResponse.js","sourceRoot":"../","sources":["model/FundingAccountSummaryResponse.ts"],"names":[],"mappings":"AAMA,MAAM,KAAW,6BAA6B,CAS7C;AATD,WAAiB,6BAA6B;IAC7C,SAAgB,EAAE,CAAC,KAA0C;QAC5D,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ;YAC1C,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ,CACrC,CAAA;IACF,CAAC;IAPe,gCAAE,KAOjB,CAAA;AACF,CAAC,EATgB,6BAA6B,KAA7B,6BAA6B,QAS7C"}
|
|
@@ -2,13 +2,13 @@ import { BeneficiaryStatus } from "./BeneficiaryStatus"
|
|
|
2
2
|
import { TransferDestinationInfo } from "./TransferDestinationInfo"
|
|
3
3
|
|
|
4
4
|
export interface BeneficiaryResponse {
|
|
5
|
-
transferDestination
|
|
5
|
+
transferDestination: TransferDestinationInfo
|
|
6
|
+
status: BeneficiaryStatus
|
|
7
|
+
name: string
|
|
8
|
+
beneficiaryId: string
|
|
9
|
+
createdOn: string
|
|
6
10
|
defaultReference?: string
|
|
7
|
-
status?: BeneficiaryStatus
|
|
8
|
-
name?: string
|
|
9
11
|
fullName?: string
|
|
10
|
-
beneficiaryId?: string
|
|
11
|
-
createdOn?: string
|
|
12
12
|
history?: BeneficiaryResponse[]
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -16,13 +16,13 @@ export namespace BeneficiaryResponse {
|
|
|
16
16
|
export function is(value: BeneficiaryResponse | any): value is BeneficiaryResponse {
|
|
17
17
|
return (
|
|
18
18
|
typeof value == "object" &&
|
|
19
|
-
|
|
20
|
-
(value.
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
TransferDestinationInfo.is(value.transferDestination) &&
|
|
20
|
+
BeneficiaryStatus.is(value.status) &&
|
|
21
|
+
typeof value.name == "string" &&
|
|
22
|
+
typeof value.beneficiaryId == "string" &&
|
|
23
|
+
typeof value.createdOn == "string" &&
|
|
23
24
|
(value.fullName == undefined || typeof value.fullName == "string") &&
|
|
24
|
-
(value.
|
|
25
|
-
(value.createdOn == undefined || typeof value.createdOn == "string") &&
|
|
25
|
+
(value.defaultReference == undefined || typeof value.defaultReference == "string") &&
|
|
26
26
|
(value.history == undefined || Array.isArray(value.history)) //not checking same type because of risk of being slow
|
|
27
27
|
)
|
|
28
28
|
}
|
|
@@ -6,6 +6,11 @@ export interface FundingAccountSummaryResponse {
|
|
|
6
6
|
|
|
7
7
|
export namespace FundingAccountSummaryResponse {
|
|
8
8
|
export function is(value: FundingAccountSummaryResponse | any): value is FundingAccountSummaryResponse {
|
|
9
|
-
return
|
|
9
|
+
return (
|
|
10
|
+
typeof value == "object" &&
|
|
11
|
+
typeof value.providerAccountId == "string" &&
|
|
12
|
+
typeof value.balance == "number" &&
|
|
13
|
+
typeof value.friendlyName == "string"
|
|
14
|
+
)
|
|
10
15
|
}
|
|
11
16
|
}
|