@pax2pay/client 0.8.12 → 0.9.0
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/Client/Beneficiaries/index.ts +14 -4
- package/dist/Client/Auth/Session/index.d.ts +1 -1
- package/dist/Client/Beneficiaries/index.d.ts +5 -5
- package/dist/Client/Beneficiaries/index.js +4 -4
- package/dist/Client/Beneficiaries/index.js.map +1 -1
- package/dist/model/AccountState.d.ts +2 -2
- package/dist/model/BeneficiaryRequest.d.ts +2 -0
- package/dist/model/BeneficiaryRequest.js +2 -0
- package/dist/model/BeneficiaryRequest.js.map +1 -1
- package/dist/model/BeneficiaryResponse.d.ts +6 -6
- package/dist/model/BeneficiaryResponse.js +2 -3
- package/dist/model/BeneficiaryResponse.js.map +1 -1
- package/dist/model/BeneficiaryStatus.d.ts +1 -1
- package/dist/model/BeneficiaryStatus.js +1 -1
- package/dist/model/BeneficiaryStatus.js.map +1 -1
- package/dist/model/CardState.d.ts +2 -2
- package/dist/model/OrganisationStatus.d.ts +2 -2
- package/dist/model/PaxpayFeature.d.ts +3 -3
- package/dist/model/PaxpayFeature.js +1 -0
- package/dist/model/PaxpayFeature.js.map +1 -1
- package/dist/model/TransferDestinationAddressType.d.ts +3 -3
- package/dist/model/TransferDestinationAddressType.js +1 -1
- package/dist/model/TransferDestinationAddressType.js.map +1 -1
- package/dist/model/TransferDestinationRequest.d.ts +2 -1
- package/dist/model/TransferDestinationRequest.js +2 -1
- package/dist/model/TransferDestinationRequest.js.map +1 -1
- package/dist/model/UpdateBeneficiaryRequest.d.ts +2 -1
- package/dist/model/UserStatus.d.ts +2 -2
- package/model/BeneficiaryRequest.ts +3 -0
- package/model/BeneficiaryResponse.ts +8 -7
- package/model/BeneficiaryStatus.ts +1 -1
- package/model/PaxpayFeature.ts +1 -0
- package/model/TransferDestinationAddressType.ts +1 -1
- package/model/TransferDestinationRequest.ts +4 -2
- package/model/UpdateBeneficiaryRequest.ts +2 -1
- package/package.json +1 -1
|
@@ -36,11 +36,21 @@ export class Beneficiaries extends List<model.BeneficiaryResponse> {
|
|
|
36
36
|
)
|
|
37
37
|
return this.extractResponse(response)
|
|
38
38
|
}
|
|
39
|
-
async create(request: model.BeneficiaryRequest) {
|
|
40
|
-
return await this.connection.post<model.BeneficiaryResponse>(
|
|
39
|
+
async create(request: model.BeneficiaryRequest, otp?: string) {
|
|
40
|
+
return await this.connection.post<model.BeneficiaryResponse>(
|
|
41
|
+
`${this.folder}`,
|
|
42
|
+
request,
|
|
43
|
+
undefined,
|
|
44
|
+
otp ? { "x-otp": otp } : {}
|
|
45
|
+
)
|
|
41
46
|
}
|
|
42
|
-
async update(beneficiaryId: string, request: model.UpdateBeneficiaryRequest) {
|
|
43
|
-
return await this.connection.put<model.BeneficiaryResponse>(
|
|
47
|
+
async update(beneficiaryId: string, request: model.UpdateBeneficiaryRequest, otp?: string) {
|
|
48
|
+
return await this.connection.put<model.BeneficiaryResponse>(
|
|
49
|
+
`${this.folder}/${beneficiaryId}`,
|
|
50
|
+
request,
|
|
51
|
+
undefined,
|
|
52
|
+
otp ? { "x-otp": otp } : {}
|
|
53
|
+
)
|
|
44
54
|
}
|
|
45
55
|
async delete(beneficiaryId: string) {
|
|
46
56
|
return await this.connection.remove<model.BeneficiaryResponse>(`${this.folder}/${beneficiaryId}`)
|
|
@@ -2,7 +2,7 @@ import * as model from "../../../model";
|
|
|
2
2
|
import { Item } from "./Item";
|
|
3
3
|
export declare namespace Session {
|
|
4
4
|
const roles: Item<"roles", string[]>;
|
|
5
|
-
const features: Item<"features", ("ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT")[]>;
|
|
5
|
+
const features: Item<"features", ("ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT" | "REBATE_RECIPIENT")[]>;
|
|
6
6
|
const authentication: Item<"authentication", Partial<model.LoginResponse>>;
|
|
7
7
|
const publicKey: Item<"public-key", string | undefined>;
|
|
8
8
|
}
|
|
@@ -6,17 +6,17 @@ export declare class Beneficiaries extends List<model.BeneficiaryResponse> {
|
|
|
6
6
|
constructor(connection: Connection);
|
|
7
7
|
static create(connection: Connection): Beneficiaries;
|
|
8
8
|
getAll(sort?: string): Promise<model.ErrorResponse | model.BeneficiaryResponse[]>;
|
|
9
|
-
getBeneficiary(beneficiaryId: string): Promise<model.BeneficiaryResponse | (model.ErrorResponse & {
|
|
9
|
+
getBeneficiary(beneficiaryId: string): Promise<model.BeneficiaryResponse<model.AccountDetailsTransferDestinationResponse> | (model.ErrorResponse & {
|
|
10
10
|
status: 400 | 404 | 500 | 403 | 503;
|
|
11
11
|
})>;
|
|
12
|
-
searchBeneficiary(request: model.SearchBeneficiaryRequest, sort?: string): Promise<model.
|
|
13
|
-
create(request: model.BeneficiaryRequest): Promise<model.BeneficiaryResponse | (model.ErrorResponse & {
|
|
12
|
+
searchBeneficiary(request: model.SearchBeneficiaryRequest, sort?: string): Promise<model.ErrorResponse | model.BeneficiaryResponse<model.AccountDetailsTransferDestinationResponse>[]>;
|
|
13
|
+
create(request: model.BeneficiaryRequest, otp?: string): Promise<model.BeneficiaryResponse<model.AccountDetailsTransferDestinationResponse> | (model.ErrorResponse & {
|
|
14
14
|
status: 400 | 404 | 500 | 403 | 503;
|
|
15
15
|
})>;
|
|
16
|
-
update(beneficiaryId: string, request: model.UpdateBeneficiaryRequest): Promise<model.BeneficiaryResponse | (model.ErrorResponse & {
|
|
16
|
+
update(beneficiaryId: string, request: model.UpdateBeneficiaryRequest, otp?: string): Promise<model.BeneficiaryResponse<model.AccountDetailsTransferDestinationResponse> | (model.ErrorResponse & {
|
|
17
17
|
status: 400 | 404 | 500 | 403 | 503;
|
|
18
18
|
})>;
|
|
19
|
-
delete(beneficiaryId: string): Promise<model.BeneficiaryResponse | (model.ErrorResponse & {
|
|
19
|
+
delete(beneficiaryId: string): Promise<model.BeneficiaryResponse<model.AccountDetailsTransferDestinationResponse> | (model.ErrorResponse & {
|
|
20
20
|
status: 400 | 404 | 500 | 403 | 503;
|
|
21
21
|
})>;
|
|
22
22
|
}
|
|
@@ -26,11 +26,11 @@ export class Beneficiaries extends List {
|
|
|
26
26
|
});
|
|
27
27
|
return this.extractResponse(response);
|
|
28
28
|
}
|
|
29
|
-
async create(request) {
|
|
30
|
-
return await this.connection.post(`${this.folder}`, request);
|
|
29
|
+
async create(request, otp) {
|
|
30
|
+
return await this.connection.post(`${this.folder}`, request, undefined, otp ? { "x-otp": otp } : {});
|
|
31
31
|
}
|
|
32
|
-
async update(beneficiaryId, request) {
|
|
33
|
-
return await this.connection.put(`${this.folder}/${beneficiaryId}`, request);
|
|
32
|
+
async update(beneficiaryId, request, otp) {
|
|
33
|
+
return await this.connection.put(`${this.folder}/${beneficiaryId}`, request, undefined, otp ? { "x-otp": otp } : {});
|
|
34
34
|
}
|
|
35
35
|
async delete(beneficiaryId) {
|
|
36
36
|
return await this.connection.remove(`${this.folder}/${beneficiaryId}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Beneficiaries/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,aAAc,SAAQ,IAA+B;IAEjE,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,eAAe,CAAA;IAG3C,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,aAAa,CAAC,UAAU,CAAC,CAAA;IACrC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAa;QACzB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,GAAG,IAAI,CAAC,MAAM,EAAE,EAChB;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CACD,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,cAAc,CAAC,aAAqB;QACzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAA4B,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IACpG,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,OAAuC,EAAE,IAAa;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAC1C,GAAG,IAAI,CAAC,MAAM,WAAW,EACzB,OAAO,EACP;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CACD,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Beneficiaries/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,aAAc,SAAQ,IAA+B;IAEjE,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,eAAe,CAAA;IAG3C,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,aAAa,CAAC,UAAU,CAAC,CAAA;IACrC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAa;QACzB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,GAAG,IAAI,CAAC,MAAM,EAAE,EAChB;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CACD,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,cAAc,CAAC,aAAqB;QACzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAA4B,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IACpG,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,OAAuC,EAAE,IAAa;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAC1C,GAAG,IAAI,CAAC,MAAM,WAAW,EACzB,OAAO,EACP;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CACD,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAiC,EAAE,GAAY;QAC3D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAChC,GAAG,IAAI,CAAC,MAAM,EAAE,EAChB,OAAO,EACP,SAAS,EACT,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAC3B,CAAA;IACF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,aAAqB,EAAE,OAAuC,EAAE,GAAY;QACxF,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAC/B,GAAG,IAAI,CAAC,MAAM,IAAI,aAAa,EAAE,EACjC,OAAO,EACP,SAAS,EACT,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAC3B,CAAA;IACF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,aAAqB;QACjC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAA4B,GAAG,IAAI,CAAC,MAAM,IAAI,aAAa,EAAE,CAAC,CAAA;IAClG,CAAC;CACD"}
|
|
@@ -2,6 +2,6 @@ import { isly } from "isly";
|
|
|
2
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" | "
|
|
6
|
-
const is: (value: any | ("ACTIVE" | "
|
|
5
|
+
const type: isly.Type<"ACTIVE" | "DELETED" | "INACTIVE" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED" | "ARCHIVED">;
|
|
6
|
+
const is: (value: any | ("ACTIVE" | "DELETED" | "INACTIVE" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED" | "ARCHIVED")) => value is "ACTIVE" | "DELETED" | "INACTIVE" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED" | "ARCHIVED";
|
|
7
7
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { BeneficiaryStatus } from "./BeneficiaryStatus";
|
|
1
2
|
import { TransferDestinationRequest } from "./TransferDestinationRequest";
|
|
2
3
|
export interface BeneficiaryRequest {
|
|
3
4
|
transferDestination: TransferDestinationRequest;
|
|
4
5
|
defaultReference?: string;
|
|
5
6
|
name?: string;
|
|
7
|
+
status?: BeneficiaryStatus;
|
|
6
8
|
}
|
|
7
9
|
export declare namespace BeneficiaryRequest {
|
|
8
10
|
const type: import("isly/dist/cjs/object").IslyObject<BeneficiaryRequest, object>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { BeneficiaryStatus } from "./BeneficiaryStatus";
|
|
2
3
|
import { TransferDestinationRequest } from "./TransferDestinationRequest";
|
|
3
4
|
export var BeneficiaryRequest;
|
|
4
5
|
(function (BeneficiaryRequest) {
|
|
@@ -6,6 +7,7 @@ export var BeneficiaryRequest;
|
|
|
6
7
|
transferDestination: TransferDestinationRequest.type,
|
|
7
8
|
defaultReference: isly.string().optional(),
|
|
8
9
|
name: isly.string().optional(),
|
|
10
|
+
status: isly.fromIs("BeneficiaryStatus", BeneficiaryStatus.is).optional(),
|
|
9
11
|
});
|
|
10
12
|
BeneficiaryRequest.is = BeneficiaryRequest.type.is;
|
|
11
13
|
})(BeneficiaryRequest || (BeneficiaryRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BeneficiaryRequest.js","sourceRoot":"../","sources":["model/BeneficiaryRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"BeneficiaryRequest.js","sourceRoot":"../","sources":["model/BeneficiaryRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAQzE,MAAM,KAAW,kBAAkB,CAQlC;AARD,WAAiB,kBAAkB;IACrB,uBAAI,GAAG,IAAI,CAAC,MAAM,CAAqB;QACnD,mBAAmB,EAAE,0BAA0B,CAAC,IAAI;QACpD,gBAAgB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KACzE,CAAC,CAAA;IACW,qBAAE,GAAG,mBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EARgB,kBAAkB,KAAlB,kBAAkB,QAQlC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AccountDetailsTransferDestinationResponse } from "./AccountDetailsTransferDestinationResponse";
|
|
2
2
|
import { BeneficiaryStatus } from "./BeneficiaryStatus";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { TransferDestinationResponse } from "./TransferDestinationResponse";
|
|
4
|
+
export interface BeneficiaryResponse<T extends TransferDestinationResponse = AccountDetailsTransferDestinationResponse> {
|
|
5
|
+
transferDestination: T;
|
|
5
6
|
status: BeneficiaryStatus;
|
|
6
7
|
name: string;
|
|
7
8
|
beneficiaryId: string;
|
|
8
9
|
createdOn: string;
|
|
9
10
|
defaultReference?: string;
|
|
10
|
-
|
|
11
|
-
history?: BeneficiaryResponse[];
|
|
11
|
+
history?: BeneficiaryResponse<T>[];
|
|
12
12
|
}
|
|
13
13
|
export declare namespace BeneficiaryResponse {
|
|
14
|
-
const type: import("isly/dist/cjs/object").IslyObject<BeneficiaryResponse
|
|
15
|
-
const is: (value: BeneficiaryResponse | any) => value is BeneficiaryResponse
|
|
14
|
+
const type: import("isly/dist/cjs/object").IslyObject<BeneficiaryResponse<TransferDestinationResponse>, object>;
|
|
15
|
+
const is: (value: BeneficiaryResponse<TransferDestinationResponse> | any) => value is BeneficiaryResponse<TransferDestinationResponse>;
|
|
16
16
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { AccountDetailsTransferDestinationResponse } from "./AccountDetailsTransferDestinationResponse";
|
|
3
2
|
import { BeneficiaryStatus } from "./BeneficiaryStatus";
|
|
3
|
+
import { TransferDestinationResponse } from "./TransferDestinationResponse";
|
|
4
4
|
export var BeneficiaryResponse;
|
|
5
5
|
(function (BeneficiaryResponse) {
|
|
6
6
|
BeneficiaryResponse.type = isly.object({
|
|
7
|
-
transferDestination:
|
|
7
|
+
transferDestination: isly.fromIs("TransferDestinationResponse", TransferDestinationResponse.is),
|
|
8
8
|
status: isly.fromIs("BeneficiaryStatus", BeneficiaryStatus.is),
|
|
9
9
|
name: isly.string(),
|
|
10
10
|
beneficiaryId: isly.string(),
|
|
11
11
|
createdOn: isly.string(),
|
|
12
12
|
defaultReference: isly.string().optional(),
|
|
13
|
-
fullName: isly.string().optional(),
|
|
14
13
|
history: isly.fromIs("BeneficiaryResponse[]", Array.isArray).optional(),
|
|
15
14
|
});
|
|
16
15
|
BeneficiaryResponse.is = BeneficiaryResponse.type.is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BeneficiaryResponse.js","sourceRoot":"../","sources":["model/BeneficiaryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"BeneficiaryResponse.js","sourceRoot":"../","sources":["model/BeneficiaryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAc3E,MAAM,KAAW,mBAAmB,CAWnC;AAXD,WAAiB,mBAAmB;IACtB,wBAAI,GAAG,IAAI,CAAC,MAAM,CAAmD;QACjF,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,EAAE,CAAC;QAC/F,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,EAAE,CAAC;QAC9D,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE;QAC5B,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,gBAAgB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;KACvE,CAAC,CAAA;IACW,sBAAE,GAAG,oBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAXgB,mBAAmB,KAAnB,mBAAmB,QAWnC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const beneficiaryStatus: readonly ["ACTIVE", "DELETED", "OUTDATED"];
|
|
1
|
+
declare const beneficiaryStatus: readonly ["ACTIVE", "DELETED", "OUTDATED", "ACTIVE_MERCHANT", "ACTIVE_REBATE"];
|
|
2
2
|
export type BeneficiaryStatus = typeof beneficiaryStatus[number];
|
|
3
3
|
export declare namespace BeneficiaryStatus {
|
|
4
4
|
function is(value: unknown): value is BeneficiaryStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BeneficiaryStatus.js","sourceRoot":"../","sources":["model/BeneficiaryStatus.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"BeneficiaryStatus.js","sourceRoot":"../","sources":["model/BeneficiaryStatus.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,CAAU,CAAA;AAIxG,MAAM,KAAW,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IACjC,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAA0B,CAAC,CAAA;IAC1F,CAAC;IAFe,oBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,iBAAiB,KAAjB,iBAAiB,QAIjC"}
|
|
@@ -3,8 +3,8 @@ import { AccountState } from "./AccountState";
|
|
|
3
3
|
export type CardState = typeof CardState.values[number];
|
|
4
4
|
export declare namespace CardState {
|
|
5
5
|
const values: readonly ["ACTIVE", "INACTIVE", "DELETED", "EXPIRED", "PENDING", "APPROVED", "DECLINED"];
|
|
6
|
-
const type: isly.Type<"ACTIVE" | "
|
|
7
|
-
const is: (value: any | ("ACTIVE" | "
|
|
6
|
+
const type: isly.Type<"ACTIVE" | "DELETED" | "INACTIVE" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED">;
|
|
7
|
+
const is: (value: any | ("ACTIVE" | "DELETED" | "INACTIVE" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED")) => value is "ACTIVE" | "DELETED" | "INACTIVE" | "EXPIRED" | "PENDING" | "APPROVED" | "DECLINED";
|
|
8
8
|
function toDisplay(value: CardState): string;
|
|
9
9
|
function editable(accountState: AccountState, cardState: CardState): boolean;
|
|
10
10
|
}
|
|
@@ -3,7 +3,7 @@ import { OrganisationStatusV2 } from "./OrganisationStatusV2";
|
|
|
3
3
|
export type OrganisationStatus = typeof OrganisationStatus.values[number];
|
|
4
4
|
export declare namespace OrganisationStatus {
|
|
5
5
|
const values: readonly ["ACTIVE", "INACTIVE", "DELETED"];
|
|
6
|
-
const type: isly.Type<"ACTIVE" | "
|
|
7
|
-
const is: (value: any | ("ACTIVE" | "
|
|
6
|
+
const type: isly.Type<"ACTIVE" | "DELETED" | "INACTIVE">;
|
|
7
|
+
const is: (value: any | ("ACTIVE" | "DELETED" | "INACTIVE")) => value is "ACTIVE" | "DELETED" | "INACTIVE";
|
|
8
8
|
function toOrganisationStatusV2(value: OrganisationStatus): OrganisationStatusV2;
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type PaxpayFeature = typeof PaxpayFeature.values[number];
|
|
3
3
|
export declare namespace PaxpayFeature {
|
|
4
|
-
const values: readonly ["ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE", "FUZZY_SEARCH_COLLECTION_TRAVERSAL", "BANK_TRANSFERS", "SHOW_EMPTY_STATEMENTS", "BETA_PAYMENTS", "RECONCILIATION_REPORT_V2", "INSIGHTS_ROOM", "DELIVERY_ATTACHMENT"];
|
|
5
|
-
const type: isly.Type<"ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT">;
|
|
6
|
-
const is: (value: any | ("ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT")) => value is "ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT";
|
|
4
|
+
const values: readonly ["ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE", "FUZZY_SEARCH_COLLECTION_TRAVERSAL", "BANK_TRANSFERS", "SHOW_EMPTY_STATEMENTS", "BETA_PAYMENTS", "RECONCILIATION_REPORT_V2", "INSIGHTS_ROOM", "DELIVERY_ATTACHMENT", "REBATE_RECIPIENT"];
|
|
5
|
+
const type: isly.Type<"ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT" | "REBATE_RECIPIENT">;
|
|
6
|
+
const is: (value: any | ("ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT" | "REBATE_RECIPIENT")) => value is "ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "DELIVERY_ATTACHMENT" | "REBATE_RECIPIENT";
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaxpayFeature.js","sourceRoot":"../","sources":["model/PaxpayFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,aAAa,
|
|
1
|
+
{"version":3,"file":"PaxpayFeature.js","sourceRoot":"../","sources":["model/PaxpayFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,aAAa,CAc7B;AAdD,WAAiB,aAAa;IAChB,oBAAM,GAAG;QACrB,2CAA2C;QAC3C,mCAAmC;QACnC,gBAAgB;QAChB,uBAAuB;QACvB,eAAe;QACf,0BAA0B;QAC1B,eAAe;QACf,qBAAqB;QACrB,kBAAkB;KACT,CAAA;IACG,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAC,cAAA,MAAM,CAAC,CAAA;IAC1B,gBAAE,GAAG,cAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAdgB,aAAa,KAAb,aAAa,QAc7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type TransferDestinationAddressType = typeof TransferDestinationAddressType.values[number];
|
|
3
3
|
export declare namespace TransferDestinationAddressType {
|
|
4
|
-
const values: readonly ["SCAN", "IBAN", "ABA"];
|
|
5
|
-
const type: isly.Type<"SCAN" | "IBAN" | "ABA">;
|
|
6
|
-
const is: (value: any | ("SCAN" | "IBAN" | "ABA")) => value is "SCAN" | "IBAN" | "ABA";
|
|
4
|
+
const values: readonly ["SCAN", "IBAN", "ABA", "FUNDING_ACCOUNT"];
|
|
5
|
+
const type: isly.Type<"SCAN" | "IBAN" | "ABA" | "FUNDING_ACCOUNT">;
|
|
6
|
+
const is: (value: any | ("SCAN" | "IBAN" | "ABA" | "FUNDING_ACCOUNT")) => value is "SCAN" | "IBAN" | "ABA" | "FUNDING_ACCOUNT";
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var TransferDestinationAddressType;
|
|
3
3
|
(function (TransferDestinationAddressType) {
|
|
4
|
-
TransferDestinationAddressType.values = ["SCAN", "IBAN", "ABA"];
|
|
4
|
+
TransferDestinationAddressType.values = ["SCAN", "IBAN", "ABA", "FUNDING_ACCOUNT"];
|
|
5
5
|
TransferDestinationAddressType.type = isly.string(TransferDestinationAddressType.values);
|
|
6
6
|
TransferDestinationAddressType.is = TransferDestinationAddressType.type.is;
|
|
7
7
|
})(TransferDestinationAddressType || (TransferDestinationAddressType = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferDestinationAddressType.js","sourceRoot":"../","sources":["model/TransferDestinationAddressType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IACjC,qCAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"TransferDestinationAddressType.js","sourceRoot":"../","sources":["model/TransferDestinationAddressType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IACjC,qCAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,CAAU,CAAA;IAE5D,mCAAI,GAAG,IAAI,CAAC,MAAM,CAAiC,+BAAA,MAAM,CAAC,CAAA;IAC1D,iCAAE,GAAG,+BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EALgB,8BAA8B,KAA9B,8BAA8B,QAK9C"}
|
|
@@ -2,7 +2,7 @@ import { Currency } from "isoly";
|
|
|
2
2
|
import { AddressInfo } from "./AddressInfo";
|
|
3
3
|
import { TransferDestinationAddressType } from "./TransferDestinationAddressType";
|
|
4
4
|
export interface TransferDestinationRequest {
|
|
5
|
-
type
|
|
5
|
+
type?: TransferDestinationAddressType;
|
|
6
6
|
address?: AddressInfo;
|
|
7
7
|
currency?: Currency;
|
|
8
8
|
fullName?: string;
|
|
@@ -16,6 +16,7 @@ export interface TransferDestinationRequest {
|
|
|
16
16
|
abaRoutingNumber?: string;
|
|
17
17
|
bankCountry?: string;
|
|
18
18
|
bankName?: string;
|
|
19
|
+
fundingAccountId?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare namespace TransferDestinationRequest {
|
|
21
22
|
const type: import("isly/dist/cjs/object").IslyObject<TransferDestinationRequest, object>;
|
|
@@ -5,7 +5,7 @@ import { TransferDestinationAddressType } from "./TransferDestinationAddressType
|
|
|
5
5
|
export var TransferDestinationRequest;
|
|
6
6
|
(function (TransferDestinationRequest) {
|
|
7
7
|
TransferDestinationRequest.type = isly.object({
|
|
8
|
-
type: TransferDestinationAddressType.type,
|
|
8
|
+
type: TransferDestinationAddressType.type.optional(),
|
|
9
9
|
address: AddressInfo.type.optional(),
|
|
10
10
|
currency: isly.fromIs("Currency", Currency.is).optional(),
|
|
11
11
|
fullName: isly.string().optional(),
|
|
@@ -19,6 +19,7 @@ export var TransferDestinationRequest;
|
|
|
19
19
|
abaRoutingNumber: isly.string().optional(),
|
|
20
20
|
bankCountry: isly.string().optional(),
|
|
21
21
|
bankName: isly.string().optional(),
|
|
22
|
+
fundingAccountId: isly.string().optional(),
|
|
22
23
|
});
|
|
23
24
|
TransferDestinationRequest.is = TransferDestinationRequest.type.is;
|
|
24
25
|
})(TransferDestinationRequest || (TransferDestinationRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferDestinationRequest.js","sourceRoot":"../","sources":["model/TransferDestinationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"TransferDestinationRequest.js","sourceRoot":"../","sources":["model/TransferDestinationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAoBjF,MAAM,KAAW,0BAA0B,CAmB1C;AAnBD,WAAiB,0BAA0B;IAC7B,+BAAI,GAAG,IAAI,CAAC,MAAM,CAA6B;QAC3D,IAAI,EAAE,8BAA8B,CAAC,IAAI,CAAC,QAAQ,EAAE;QACpD,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE;QACpC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACzD,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,oBAAoB,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC/C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,gBAAgB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,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,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,gBAAgB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,gBAAgB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC1C,CAAC,CAAA;IACW,6BAAE,GAAG,2BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAnBgB,0BAA0B,KAA1B,0BAA0B,QAmB1C"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { BeneficiaryStatus } from "./BeneficiaryStatus";
|
|
1
2
|
import { TransferDestinationRequest } from "./TransferDestinationRequest";
|
|
2
3
|
export interface UpdateBeneficiaryRequest {
|
|
3
4
|
transferDestination?: TransferDestinationRequest;
|
|
4
5
|
defaultReference?: string;
|
|
5
|
-
status?:
|
|
6
|
+
status?: BeneficiaryStatus;
|
|
6
7
|
name?: string;
|
|
7
8
|
fullName?: string;
|
|
8
9
|
}
|
|
@@ -2,6 +2,6 @@ import { isly } from "isly";
|
|
|
2
2
|
export type UserStatus = typeof UserStatus.types[number];
|
|
3
3
|
export declare namespace UserStatus {
|
|
4
4
|
const types: readonly ["ACTIVE", "INACTIVE", "DELETED", "PASSWORD_EXPIRED"];
|
|
5
|
-
const type: isly.Type<"ACTIVE" | "
|
|
6
|
-
const is: (value: any | ("ACTIVE" | "
|
|
5
|
+
const type: isly.Type<"ACTIVE" | "DELETED" | "INACTIVE" | "PASSWORD_EXPIRED">;
|
|
6
|
+
const is: (value: any | ("ACTIVE" | "DELETED" | "INACTIVE" | "PASSWORD_EXPIRED")) => value is "ACTIVE" | "DELETED" | "INACTIVE" | "PASSWORD_EXPIRED";
|
|
7
7
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
|
+
import { BeneficiaryStatus } from "./BeneficiaryStatus"
|
|
2
3
|
import { TransferDestinationRequest } from "./TransferDestinationRequest"
|
|
3
4
|
|
|
4
5
|
export interface BeneficiaryRequest {
|
|
5
6
|
transferDestination: TransferDestinationRequest
|
|
6
7
|
defaultReference?: string
|
|
7
8
|
name?: string
|
|
9
|
+
status?: BeneficiaryStatus
|
|
8
10
|
}
|
|
9
11
|
export namespace BeneficiaryRequest {
|
|
10
12
|
export const type = isly.object<BeneficiaryRequest>({
|
|
11
13
|
transferDestination: TransferDestinationRequest.type,
|
|
12
14
|
defaultReference: isly.string().optional(),
|
|
13
15
|
name: isly.string().optional(),
|
|
16
|
+
status: isly.fromIs("BeneficiaryStatus", BeneficiaryStatus.is).optional(),
|
|
14
17
|
})
|
|
15
18
|
export const is = type.is
|
|
16
19
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { AccountDetailsTransferDestinationResponse } from "./AccountDetailsTransferDestinationResponse"
|
|
3
3
|
import { BeneficiaryStatus } from "./BeneficiaryStatus"
|
|
4
|
+
import { TransferDestinationResponse } from "./TransferDestinationResponse"
|
|
4
5
|
|
|
5
|
-
export interface BeneficiaryResponse
|
|
6
|
-
|
|
6
|
+
export interface BeneficiaryResponse<
|
|
7
|
+
T extends TransferDestinationResponse = AccountDetailsTransferDestinationResponse
|
|
8
|
+
> {
|
|
9
|
+
transferDestination: T
|
|
7
10
|
status: BeneficiaryStatus
|
|
8
11
|
name: string
|
|
9
12
|
beneficiaryId: string
|
|
10
13
|
createdOn: string
|
|
11
14
|
defaultReference?: string
|
|
12
|
-
|
|
13
|
-
history?: BeneficiaryResponse[]
|
|
15
|
+
history?: BeneficiaryResponse<T>[]
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export namespace BeneficiaryResponse {
|
|
17
|
-
export const type = isly.object<BeneficiaryResponse
|
|
18
|
-
transferDestination:
|
|
19
|
+
export const type = isly.object<BeneficiaryResponse<TransferDestinationResponse>>({
|
|
20
|
+
transferDestination: isly.fromIs("TransferDestinationResponse", TransferDestinationResponse.is),
|
|
19
21
|
status: isly.fromIs("BeneficiaryStatus", BeneficiaryStatus.is),
|
|
20
22
|
name: isly.string(),
|
|
21
23
|
beneficiaryId: isly.string(),
|
|
22
24
|
createdOn: isly.string(),
|
|
23
25
|
defaultReference: isly.string().optional(),
|
|
24
|
-
fullName: isly.string().optional(),
|
|
25
26
|
history: isly.fromIs("BeneficiaryResponse[]", Array.isArray).optional(), // Not checking same type because of risk of being slow
|
|
26
27
|
})
|
|
27
28
|
export const is = type.is
|
package/model/PaxpayFeature.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { isly } from "isly"
|
|
|
3
3
|
export type TransferDestinationAddressType = typeof TransferDestinationAddressType.values[number]
|
|
4
4
|
|
|
5
5
|
export namespace TransferDestinationAddressType {
|
|
6
|
-
export const values = ["SCAN", "IBAN", "ABA"] as const
|
|
6
|
+
export const values = ["SCAN", "IBAN", "ABA", "FUNDING_ACCOUNT"] as const
|
|
7
7
|
|
|
8
8
|
export const type = isly.string<TransferDestinationAddressType>(values)
|
|
9
9
|
export const is = type.is
|
|
@@ -4,7 +4,7 @@ import { AddressInfo } from "./AddressInfo"
|
|
|
4
4
|
import { TransferDestinationAddressType } from "./TransferDestinationAddressType"
|
|
5
5
|
|
|
6
6
|
export interface TransferDestinationRequest {
|
|
7
|
-
type
|
|
7
|
+
type?: TransferDestinationAddressType
|
|
8
8
|
address?: AddressInfo
|
|
9
9
|
currency?: Currency
|
|
10
10
|
fullName?: string
|
|
@@ -18,11 +18,12 @@ export interface TransferDestinationRequest {
|
|
|
18
18
|
abaRoutingNumber?: string // ABA
|
|
19
19
|
bankCountry?: string // IBAN, ABA
|
|
20
20
|
bankName?: string // IBAN, ABA
|
|
21
|
+
fundingAccountId?: string // Funding Account
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export namespace TransferDestinationRequest {
|
|
24
25
|
export const type = isly.object<TransferDestinationRequest>({
|
|
25
|
-
type: TransferDestinationAddressType.type,
|
|
26
|
+
type: TransferDestinationAddressType.type.optional(),
|
|
26
27
|
address: AddressInfo.type.optional(),
|
|
27
28
|
currency: isly.fromIs("Currency", Currency.is).optional(),
|
|
28
29
|
fullName: isly.string().optional(),
|
|
@@ -36,6 +37,7 @@ export namespace TransferDestinationRequest {
|
|
|
36
37
|
abaRoutingNumber: isly.string().optional(),
|
|
37
38
|
bankCountry: isly.string().optional(),
|
|
38
39
|
bankName: isly.string().optional(),
|
|
40
|
+
fundingAccountId: isly.string().optional(),
|
|
39
41
|
})
|
|
40
42
|
export const is = type.is
|
|
41
43
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { BeneficiaryStatus } from "./BeneficiaryStatus"
|
|
1
2
|
import { TransferDestinationRequest } from "./TransferDestinationRequest"
|
|
2
3
|
|
|
3
4
|
export interface UpdateBeneficiaryRequest {
|
|
4
5
|
transferDestination?: TransferDestinationRequest
|
|
5
6
|
defaultReference?: string
|
|
6
|
-
status?:
|
|
7
|
+
status?: BeneficiaryStatus
|
|
7
8
|
name?: string
|
|
8
9
|
fullName?: string
|
|
9
10
|
}
|