@pax2pay/client 0.6.16 → 0.6.18
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/AccountState.d.ts +6 -4
- package/dist/model/AccountState.js +32 -4
- package/dist/model/AccountState.js.map +1 -1
- package/dist/model/ConfirmationOfPayeeRequest.d.ts +4 -3
- package/dist/model/ConfirmationOfPayeeRequest.js +4 -3
- package/dist/model/ConfirmationOfPayeeRequest.js.map +1 -1
- package/dist/model/ConfirmationOfPayeeResponse.d.ts +1 -0
- package/dist/model/ConfirmationOfPayeeResponse.js +1 -0
- package/dist/model/ConfirmationOfPayeeResponse.js.map +1 -1
- package/dist/model/TransferRequest.d.ts +7 -3
- package/model/AccountState.ts +32 -4
- package/model/ConfirmationOfPayeeRequest.ts +8 -6
- package/model/ConfirmationOfPayeeResponse.ts +2 -0
- package/model/TransferRequest.ts +7 -3
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export type AccountState = typeof
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export type AccountState = typeof AccountState.values[number];
|
|
3
3
|
export declare namespace AccountState {
|
|
4
|
-
|
|
4
|
+
const values: readonly ["ACTIVE", "INACTIVE", "DELETED", "EXPIRED", "PENDING", "APPROVED", "DECLINED", "ARCHIVED"];
|
|
5
|
+
const type: isly.Type<"ACTIVE" | "INACTIVE" | "DELETED" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED" | "ARCHIVED">;
|
|
6
|
+
const is: (value: any | ("ACTIVE" | "INACTIVE" | "DELETED" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED" | "ARCHIVED")) => value is "ACTIVE" | "INACTIVE" | "DELETED" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED" | "ARCHIVED";
|
|
7
|
+
function toDisplay(value: AccountState): string;
|
|
5
8
|
}
|
|
6
|
-
export {};
|
|
@@ -1,9 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly";
|
|
2
2
|
export var AccountState;
|
|
3
3
|
(function (AccountState) {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
AccountState.values = [
|
|
5
|
+
"ACTIVE",
|
|
6
|
+
"INACTIVE",
|
|
7
|
+
"DELETED",
|
|
8
|
+
"EXPIRED",
|
|
9
|
+
"PENDING",
|
|
10
|
+
"APPROVED",
|
|
11
|
+
"DECLINED",
|
|
12
|
+
"ARCHIVED",
|
|
13
|
+
];
|
|
14
|
+
AccountState.type = isly.string(AccountState.values);
|
|
15
|
+
AccountState.is = AccountState.type.is;
|
|
16
|
+
function toDisplay(value) {
|
|
17
|
+
if (value == "ACTIVE")
|
|
18
|
+
return "active";
|
|
19
|
+
if (value == "INACTIVE")
|
|
20
|
+
return "frozen";
|
|
21
|
+
if (value == "DELETED")
|
|
22
|
+
return "closed";
|
|
23
|
+
if (value == "EXPIRED")
|
|
24
|
+
return "expired";
|
|
25
|
+
if (value == "PENDING")
|
|
26
|
+
return "pending";
|
|
27
|
+
if (value == "APPROVED")
|
|
28
|
+
return "approved";
|
|
29
|
+
if (value == "DECLINED")
|
|
30
|
+
return "declined";
|
|
31
|
+
if (value == "ARCHIVED")
|
|
32
|
+
return "archived";
|
|
33
|
+
return value;
|
|
6
34
|
}
|
|
7
|
-
AccountState.
|
|
35
|
+
AccountState.toDisplay = toDisplay;
|
|
8
36
|
})(AccountState || (AccountState = {}));
|
|
9
37
|
//# sourceMappingURL=AccountState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountState.js","sourceRoot":"../","sources":["model/AccountState.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"AccountState.js","sourceRoot":"../","sources":["model/AccountState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,YAAY,CAgC5B;AAhCD,WAAiB,YAAY;IACf,mBAAM,GAAG;QACrB,QAAQ;QACR,UAAU;QACV,SAAS;QACT,SAAS;QACT,SAAS;QACT,UAAU;QACV,UAAU;QACV,UAAU;KACD,CAAA;IACG,iBAAI,GAAG,IAAI,CAAC,MAAM,CAAe,aAAA,MAAM,CAAC,CAAA;IACxC,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;IACzB,SAAgB,SAAS,CAAC,KAAmB;QAC5C,IAAI,KAAK,IAAI,QAAQ;YACpB,OAAO,QAAQ,CAAA;QAChB,IAAI,KAAK,IAAI,UAAU;YACtB,OAAO,QAAQ,CAAA;QAChB,IAAI,KAAK,IAAI,SAAS;YACrB,OAAO,QAAQ,CAAA;QAChB,IAAI,KAAK,IAAI,SAAS;YACrB,OAAO,SAAS,CAAA;QACjB,IAAI,KAAK,IAAI,SAAS;YACrB,OAAO,SAAS,CAAA;QACjB,IAAI,KAAK,IAAI,UAAU;YACtB,OAAO,UAAU,CAAA;QAClB,IAAI,KAAK,IAAI,UAAU;YACtB,OAAO,UAAU,CAAA;QAClB,IAAI,KAAK,IAAI,UAAU;YACtB,OAAO,UAAU,CAAA;QAClB,OAAO,KAAK,CAAA;IACb,CAAC;IAlBe,sBAAS,YAkBxB,CAAA;AACF,CAAC,EAhCgB,YAAY,KAAZ,YAAY,QAgC5B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ConfirmationOfPayeeAccountType } from "./ConfirmationOfPayeeAccountType";
|
|
2
2
|
export interface ConfirmationOfPayeeRequest {
|
|
3
|
-
accountNumber
|
|
4
|
-
sortCode
|
|
3
|
+
accountNumber?: string;
|
|
4
|
+
sortCode?: string;
|
|
5
|
+
iban?: string;
|
|
5
6
|
payeeName: string;
|
|
6
|
-
accountType
|
|
7
|
+
accountType?: ConfirmationOfPayeeAccountType;
|
|
7
8
|
secondaryAccountId?: string;
|
|
8
9
|
sourceAccountId?: string;
|
|
9
10
|
}
|
|
@@ -3,11 +3,12 @@ import { ConfirmationOfPayeeAccountType } from "./ConfirmationOfPayeeAccountType
|
|
|
3
3
|
export var ConfirmationOfPayeeRequest;
|
|
4
4
|
(function (ConfirmationOfPayeeRequest) {
|
|
5
5
|
ConfirmationOfPayeeRequest.type = isly.object({
|
|
6
|
-
accountNumber: isly.string(),
|
|
7
|
-
sortCode: isly.string(),
|
|
6
|
+
accountNumber: isly.string().optional(),
|
|
7
|
+
sortCode: isly.string().optional(),
|
|
8
|
+
iban: isly.string().optional(),
|
|
8
9
|
payeeName: isly.string(),
|
|
9
10
|
secondaryAccountId: isly.string().optional(),
|
|
10
|
-
accountType: ConfirmationOfPayeeAccountType.type,
|
|
11
|
+
accountType: ConfirmationOfPayeeAccountType.type.optional(),
|
|
11
12
|
sourceAccountId: isly.string().optional(),
|
|
12
13
|
});
|
|
13
14
|
ConfirmationOfPayeeRequest.is = ConfirmationOfPayeeRequest.type.is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationOfPayeeRequest.js","sourceRoot":"../","sources":["model/ConfirmationOfPayeeRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"ConfirmationOfPayeeRequest.js","sourceRoot":"../","sources":["model/ConfirmationOfPayeeRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAWjF,MAAM,KAAW,0BAA0B,CAW1C;AAXD,WAAiB,0BAA0B;IAC7B,+BAAI,GAAG,IAAI,CAAC,MAAM,CAA6B;QAC3D,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACvC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,kBAAkB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5C,WAAW,EAAE,8BAA8B,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC3D,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACzC,CAAC,CAAA;IACW,6BAAE,GAAG,2BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAXgB,0BAA0B,KAA1B,0BAA0B,QAW1C"}
|
|
@@ -9,6 +9,7 @@ export interface ConfirmationOfPayeeResponse {
|
|
|
9
9
|
accountType?: ConfirmationOfPayeeAccountType;
|
|
10
10
|
secondaryAccountId?: string;
|
|
11
11
|
acceptId?: string;
|
|
12
|
+
verificationOfPayeeId?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare namespace ConfirmationOfPayeeResponse {
|
|
14
15
|
const type: import("isly/dist/cjs/object").IslyObject<ConfirmationOfPayeeResponse, object>;
|
|
@@ -12,6 +12,7 @@ export var ConfirmationOfPayeeResponse;
|
|
|
12
12
|
accountType: ConfirmationOfPayeeAccountType.type.optional(),
|
|
13
13
|
secondaryAccountId: isly.string().optional(),
|
|
14
14
|
acceptId: isly.string().optional(),
|
|
15
|
+
verificationOfPayeeId: isly.string().optional(),
|
|
15
16
|
});
|
|
16
17
|
ConfirmationOfPayeeResponse.is = ConfirmationOfPayeeResponse.type.is;
|
|
17
18
|
})(ConfirmationOfPayeeResponse || (ConfirmationOfPayeeResponse = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationOfPayeeResponse.js","sourceRoot":"../","sources":["model/ConfirmationOfPayeeResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"ConfirmationOfPayeeResponse.js","sourceRoot":"../","sources":["model/ConfirmationOfPayeeResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AAavF,MAAM,KAAW,2BAA2B,CAa3C;AAbD,WAAiB,2BAA2B;IAC9B,gCAAI,GAAG,IAAI,CAAC,MAAM,CAA8B;QAC5D,MAAM,EAAE,iCAAiC,CAAC,IAAI;QAC9C,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACxC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACnC,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACxC,WAAW,EAAE,8BAA8B,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC3D,kBAAkB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5C,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,qBAAqB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAA;IACW,8BAAE,GAAG,4BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAbgB,2BAA2B,KAA3B,2BAA2B,QAa3C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MetadataRequest } from "./MetadataRequest";
|
|
2
|
+
import { PaymentDeliveryRequest } from "./PaymentDeliveryRequest";
|
|
2
3
|
import { ProviderCode } from "./ProviderCode";
|
|
3
4
|
import { TransferDestinationRequest } from "./TransferDestinationRequest";
|
|
4
5
|
export interface TransferRequest {
|
|
@@ -6,11 +7,14 @@ export interface TransferRequest {
|
|
|
6
7
|
providerSourceAccountId: string;
|
|
7
8
|
beneficiaryId?: string;
|
|
8
9
|
destination?: TransferDestinationRequest;
|
|
9
|
-
destinationProviderAccountId?: string;
|
|
10
10
|
destinationProviderCode?: ProviderCode;
|
|
11
|
+
destinationProviderAccountId?: string;
|
|
11
12
|
amount: number;
|
|
12
13
|
currency?: string;
|
|
13
14
|
reference?: string;
|
|
14
15
|
paymentDate?: string;
|
|
15
|
-
|
|
16
|
+
metadata?: MetadataRequest;
|
|
17
|
+
delivery?: PaymentDeliveryRequest;
|
|
18
|
+
batchId?: string;
|
|
19
|
+
verificationOfPayeeId?: string;
|
|
16
20
|
}
|
package/model/AccountState.ts
CHANGED
|
@@ -1,9 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type AccountState = typeof
|
|
3
|
+
export type AccountState = typeof AccountState.values[number]
|
|
4
4
|
|
|
5
5
|
export namespace AccountState {
|
|
6
|
-
export
|
|
7
|
-
|
|
6
|
+
export const values = [
|
|
7
|
+
"ACTIVE",
|
|
8
|
+
"INACTIVE",
|
|
9
|
+
"DELETED",
|
|
10
|
+
"EXPIRED",
|
|
11
|
+
"PENDING",
|
|
12
|
+
"APPROVED",
|
|
13
|
+
"DECLINED",
|
|
14
|
+
"ARCHIVED",
|
|
15
|
+
] as const
|
|
16
|
+
export const type = isly.string<AccountState>(values)
|
|
17
|
+
export const is = type.is
|
|
18
|
+
export function toDisplay(value: AccountState): string {
|
|
19
|
+
if (value == "ACTIVE")
|
|
20
|
+
return "active"
|
|
21
|
+
if (value == "INACTIVE")
|
|
22
|
+
return "frozen"
|
|
23
|
+
if (value == "DELETED")
|
|
24
|
+
return "closed"
|
|
25
|
+
if (value == "EXPIRED")
|
|
26
|
+
return "expired"
|
|
27
|
+
if (value == "PENDING")
|
|
28
|
+
return "pending"
|
|
29
|
+
if (value == "APPROVED")
|
|
30
|
+
return "approved"
|
|
31
|
+
if (value == "DECLINED")
|
|
32
|
+
return "declined"
|
|
33
|
+
if (value == "ARCHIVED")
|
|
34
|
+
return "archived"
|
|
35
|
+
return value
|
|
8
36
|
}
|
|
9
37
|
}
|
|
@@ -2,20 +2,22 @@ import { isly } from "isly"
|
|
|
2
2
|
import { ConfirmationOfPayeeAccountType } from "./ConfirmationOfPayeeAccountType"
|
|
3
3
|
|
|
4
4
|
export interface ConfirmationOfPayeeRequest {
|
|
5
|
-
accountNumber
|
|
6
|
-
sortCode
|
|
5
|
+
accountNumber?: string
|
|
6
|
+
sortCode?: string
|
|
7
|
+
iban?: string
|
|
7
8
|
payeeName: string
|
|
8
|
-
accountType
|
|
9
|
+
accountType?: ConfirmationOfPayeeAccountType
|
|
9
10
|
secondaryAccountId?: string
|
|
10
11
|
sourceAccountId?: string
|
|
11
12
|
}
|
|
12
13
|
export namespace ConfirmationOfPayeeRequest {
|
|
13
14
|
export const type = isly.object<ConfirmationOfPayeeRequest>({
|
|
14
|
-
accountNumber: isly.string(),
|
|
15
|
-
sortCode: isly.string(),
|
|
15
|
+
accountNumber: isly.string().optional(),
|
|
16
|
+
sortCode: isly.string().optional(),
|
|
17
|
+
iban: isly.string().optional(),
|
|
16
18
|
payeeName: isly.string(),
|
|
17
19
|
secondaryAccountId: isly.string().optional(),
|
|
18
|
-
accountType: ConfirmationOfPayeeAccountType.type,
|
|
20
|
+
accountType: ConfirmationOfPayeeAccountType.type.optional(),
|
|
19
21
|
sourceAccountId: isly.string().optional(),
|
|
20
22
|
})
|
|
21
23
|
export const is = type.is
|
|
@@ -11,6 +11,7 @@ export interface ConfirmationOfPayeeResponse {
|
|
|
11
11
|
accountType?: ConfirmationOfPayeeAccountType
|
|
12
12
|
secondaryAccountId?: string
|
|
13
13
|
acceptId?: string
|
|
14
|
+
verificationOfPayeeId?: string
|
|
14
15
|
}
|
|
15
16
|
export namespace ConfirmationOfPayeeResponse {
|
|
16
17
|
export const type = isly.object<ConfirmationOfPayeeResponse>({
|
|
@@ -22,6 +23,7 @@ export namespace ConfirmationOfPayeeResponse {
|
|
|
22
23
|
accountType: ConfirmationOfPayeeAccountType.type.optional(),
|
|
23
24
|
secondaryAccountId: isly.string().optional(),
|
|
24
25
|
acceptId: isly.string().optional(),
|
|
26
|
+
verificationOfPayeeId: isly.string().optional(),
|
|
25
27
|
})
|
|
26
28
|
export const is = type.is
|
|
27
29
|
}
|
package/model/TransferRequest.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MetadataRequest } from "./MetadataRequest"
|
|
2
|
+
import { PaymentDeliveryRequest } from "./PaymentDeliveryRequest"
|
|
2
3
|
import { ProviderCode } from "./ProviderCode"
|
|
3
4
|
import { TransferDestinationRequest } from "./TransferDestinationRequest"
|
|
4
5
|
|
|
@@ -7,11 +8,14 @@ export interface TransferRequest {
|
|
|
7
8
|
providerSourceAccountId: string
|
|
8
9
|
beneficiaryId?: string
|
|
9
10
|
destination?: TransferDestinationRequest
|
|
10
|
-
destinationProviderAccountId?: string
|
|
11
11
|
destinationProviderCode?: ProviderCode
|
|
12
|
+
destinationProviderAccountId?: string
|
|
12
13
|
amount: number
|
|
13
14
|
currency?: string
|
|
14
15
|
reference?: string
|
|
15
16
|
paymentDate?: string
|
|
16
|
-
|
|
17
|
+
metadata?: MetadataRequest
|
|
18
|
+
delivery?: PaymentDeliveryRequest
|
|
19
|
+
batchId?: string
|
|
20
|
+
verificationOfPayeeId?: string
|
|
17
21
|
}
|