@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.
@@ -1,13 +1,13 @@
1
1
  import { BeneficiaryStatus } from "./BeneficiaryStatus";
2
2
  import { TransferDestinationInfo } from "./TransferDestinationInfo";
3
3
  export interface BeneficiaryResponse {
4
- transferDestination?: TransferDestinationInfo;
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
- (value.transferDestination == undefined || TransferDestinationInfo.is(value.transferDestination)) &&
8
- (value.defaultReference == undefined || typeof value.defaultReference == "string") &&
9
- (value.status == undefined || BeneficiaryStatus.is(value.status)) &&
10
- (value.name == undefined || typeof value.name == "string") &&
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.beneficiaryId == undefined || typeof value.beneficiaryId == "string") &&
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,O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AM,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" && typeof value.providerAccountId == "string" && typeof value.balance == "number";
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,CAI7C;AAJD,WAAiB,6BAA6B;IAC7C,SAAgB,EAAE,CAAC,KAA0C;QAC5D,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAA;IAClH,CAAC;IAFe,gCAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,6BAA6B,KAA7B,6BAA6B,QAI7C"}
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?: TransferDestinationInfo
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
- (value.transferDestination == undefined || TransferDestinationInfo.is(value.transferDestination)) &&
20
- (value.defaultReference == undefined || typeof value.defaultReference == "string") &&
21
- (value.status == undefined || BeneficiaryStatus.is(value.status)) &&
22
- (value.name == undefined || typeof value.name == "string") &&
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.beneficiaryId == undefined || typeof value.beneficiaryId == "string") &&
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 typeof value == "object" && typeof value.providerAccountId == "string" && typeof value.balance == "number"
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",