@pax2pay/client 0.6.14 → 0.6.16
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/Merchants/index.ts +15 -7
- package/dist/Client/Merchants/index.d.ts +2 -2
- package/dist/Client/Merchants/index.js +6 -4
- package/dist/Client/Merchants/index.js.map +1 -1
- package/dist/model/ConfirmationOfPayeeResponse.d.ts +1 -3
- package/dist/model/ConfirmationOfPayeeResponse.js +1 -3
- package/dist/model/ConfirmationOfPayeeResponse.js.map +1 -1
- package/dist/model/ConfirmationOfPayeeResponseStatus.d.ts +3 -3
- package/dist/model/ConfirmationOfPayeeResponseStatus.js +1 -1
- package/dist/model/ConfirmationOfPayeeResponseStatus.js.map +1 -1
- package/dist/model/MerchantResponse.d.ts +1 -0
- package/dist/model/MerchantResponse.js +1 -0
- package/dist/model/MerchantResponse.js.map +1 -1
- package/dist/model/UpdateMerchantRequest.d.ts +1 -0
- package/dist/model/UpdateMerchantRequest.js +1 -0
- package/dist/model/UpdateMerchantRequest.js.map +1 -1
- package/model/ConfirmationOfPayeeResponse.ts +2 -6
- package/model/ConfirmationOfPayeeResponseStatus.ts +1 -1
- package/model/MerchantResponse.ts +2 -0
- package/model/UpdateMerchantRequest.ts +2 -0
- package/package.json +1 -1
|
@@ -38,15 +38,18 @@ export class Merchants extends List<model.MerchantResponse> {
|
|
|
38
38
|
previous?: Paginated<model.MerchantResponse>,
|
|
39
39
|
page?: number,
|
|
40
40
|
size?: number,
|
|
41
|
-
sort = "name"
|
|
41
|
+
sort = "name",
|
|
42
|
+
organisationCode?: string
|
|
42
43
|
): Promise<model.ErrorResponse | Paginated<model.MerchantResponse>> {
|
|
44
|
+
const header = organisationCode ? { "x-assume": organisationCode } : undefined
|
|
43
45
|
return await this.getNextPaginated(
|
|
44
46
|
previous,
|
|
45
47
|
(page, size, sort, request) =>
|
|
46
48
|
this.connection.post<{ list: model.MerchantResponse[]; totalCount: number }>(
|
|
47
49
|
`${this.folder}/searches`,
|
|
48
50
|
request,
|
|
49
|
-
{ page, size, sort }
|
|
51
|
+
{ page, size, sort },
|
|
52
|
+
header
|
|
50
53
|
),
|
|
51
54
|
request,
|
|
52
55
|
page,
|
|
@@ -54,11 +57,16 @@ export class Merchants extends List<model.MerchantResponse> {
|
|
|
54
57
|
sort
|
|
55
58
|
)
|
|
56
59
|
}
|
|
57
|
-
async getAll() {
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
async getAll(organisationCode?: string) {
|
|
61
|
+
const header = organisationCode ? { "x-assume": organisationCode } : undefined
|
|
62
|
+
const response = await this.connection.get<model.ErrorResponse | model.MerchantResponse[]>(
|
|
63
|
+
this.folder,
|
|
64
|
+
{
|
|
65
|
+
page: 0,
|
|
66
|
+
size: 5000,
|
|
67
|
+
},
|
|
68
|
+
header
|
|
69
|
+
)
|
|
62
70
|
return this.extractResponse(response)
|
|
63
71
|
}
|
|
64
72
|
}
|
|
@@ -19,6 +19,6 @@ export declare class Merchants extends List<model.MerchantResponse> {
|
|
|
19
19
|
getMerchant(value: string): Promise<model.MerchantResponse | model.ErrorResponse | (model.ErrorResponse & {
|
|
20
20
|
status: 400 | 404 | 500 | 403 | 503;
|
|
21
21
|
})>;
|
|
22
|
-
searchPaginated(request: model.MerchantSearchRequest, previous?: Paginated<model.MerchantResponse>, page?: number, size?: number, sort?: string): Promise<model.ErrorResponse | Paginated<model.MerchantResponse>>;
|
|
23
|
-
getAll(): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
22
|
+
searchPaginated(request: model.MerchantSearchRequest, previous?: Paginated<model.MerchantResponse>, page?: number, size?: number, sort?: string, organisationCode?: string): Promise<model.ErrorResponse | Paginated<model.MerchantResponse>>;
|
|
23
|
+
getAll(organisationCode?: string): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
24
24
|
}
|
|
@@ -26,14 +26,16 @@ export class Merchants extends List {
|
|
|
26
26
|
async getMerchant(value) {
|
|
27
27
|
return await this.connection.get(`${this.folder}/${value}`);
|
|
28
28
|
}
|
|
29
|
-
async searchPaginated(request, previous, page, size, sort = "name") {
|
|
30
|
-
|
|
29
|
+
async searchPaginated(request, previous, page, size, sort = "name", organisationCode) {
|
|
30
|
+
const header = organisationCode ? { "x-assume": organisationCode } : undefined;
|
|
31
|
+
return await this.getNextPaginated(previous, (page, size, sort, request) => this.connection.post(`${this.folder}/searches`, request, { page, size, sort }, header), request, page, size, sort);
|
|
31
32
|
}
|
|
32
|
-
async getAll() {
|
|
33
|
+
async getAll(organisationCode) {
|
|
34
|
+
const header = organisationCode ? { "x-assume": organisationCode } : undefined;
|
|
33
35
|
const response = await this.connection.get(this.folder, {
|
|
34
36
|
page: 0,
|
|
35
37
|
size: 5000,
|
|
36
|
-
});
|
|
38
|
+
}, header);
|
|
37
39
|
return this.extractResponse(response);
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Merchants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,OAAO,SAAU,SAAQ,IAA4B;IAE1D,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,WAAW,CAAA;IAGvC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,CAAA;IACjC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA8B;QAC1C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAyB,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAyB,GAAG,IAAI,CAAC,MAAM,IAAI,UAAU,EAAE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EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EACpB,MAAM,CACN,EACF,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ,CAAA;IACF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,gBAAyB;QACrC,MAAM,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;QAC9E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,IAAI,CAAC,MAAM,EACX;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;SACV,EACD,MAAM,CACN,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;CACD"}
|
|
@@ -2,14 +2,12 @@ import { ConfirmationOfPayeeAccountType } from "./ConfirmationOfPayeeAccountType
|
|
|
2
2
|
import { ConfirmationOfPayeeResponseStatus } from "./ConfirmationOfPayeeResponseStatus";
|
|
3
3
|
export interface ConfirmationOfPayeeResponse {
|
|
4
4
|
status: ConfirmationOfPayeeResponseStatus;
|
|
5
|
-
message?: string;
|
|
6
5
|
nameSuggestion?: string;
|
|
7
6
|
description?: string;
|
|
8
|
-
|
|
7
|
+
accepted?: boolean;
|
|
9
8
|
acceptedByUser?: string;
|
|
10
9
|
accountType?: ConfirmationOfPayeeAccountType;
|
|
11
10
|
secondaryAccountId?: string;
|
|
12
|
-
sourceAccountId?: string;
|
|
13
11
|
acceptId?: string;
|
|
14
12
|
}
|
|
15
13
|
export declare namespace ConfirmationOfPayeeResponse {
|
|
@@ -5,14 +5,12 @@ export var ConfirmationOfPayeeResponse;
|
|
|
5
5
|
(function (ConfirmationOfPayeeResponse) {
|
|
6
6
|
ConfirmationOfPayeeResponse.type = isly.object({
|
|
7
7
|
status: ConfirmationOfPayeeResponseStatus.type,
|
|
8
|
-
message: isly.string().optional(),
|
|
9
8
|
nameSuggestion: isly.string().optional(),
|
|
10
9
|
description: isly.string().optional(),
|
|
11
|
-
|
|
10
|
+
accepted: isly.boolean().optional(),
|
|
12
11
|
acceptedByUser: isly.string().optional(),
|
|
13
12
|
accountType: ConfirmationOfPayeeAccountType.type.optional(),
|
|
14
13
|
secondaryAccountId: isly.string().optional(),
|
|
15
|
-
sourceAccountId: isly.string().optional(),
|
|
16
14
|
acceptId: isly.string().optional(),
|
|
17
15
|
});
|
|
18
16
|
ConfirmationOfPayeeResponse.is = ConfirmationOfPayeeResponse.type.is;
|
|
@@ -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;AAYvF,MAAM,KAAW,2BAA2B,CAY3C;AAZD,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;KAClC,CAAC,CAAA;IACW,8BAAE,GAAG,4BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAZgB,2BAA2B,KAA3B,2BAA2B,QAY3C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type ConfirmationOfPayeeResponseStatus = typeof ConfirmationOfPayeeResponseStatus.values[number];
|
|
3
3
|
export declare namespace ConfirmationOfPayeeResponseStatus {
|
|
4
|
-
const values: readonly ["confirmed", "close match", "no match", "not supported", "
|
|
5
|
-
const type: isly.Type<"blocked" | "confirmed" | "close match" | "no match" | "not supported"
|
|
6
|
-
const is: (value: any | ("blocked" | "confirmed" | "close match" | "no match" | "not supported"
|
|
4
|
+
const values: readonly ["confirmed", "close match", "no match", "not supported", "blocked"];
|
|
5
|
+
const type: isly.Type<"blocked" | "confirmed" | "close match" | "no match" | "not supported">;
|
|
6
|
+
const is: (value: any | ("blocked" | "confirmed" | "close match" | "no match" | "not supported")) => value is "blocked" | "confirmed" | "close match" | "no match" | "not supported";
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var ConfirmationOfPayeeResponseStatus;
|
|
3
3
|
(function (ConfirmationOfPayeeResponseStatus) {
|
|
4
|
-
ConfirmationOfPayeeResponseStatus.values = ["confirmed", "close match", "no match", "not supported", "
|
|
4
|
+
ConfirmationOfPayeeResponseStatus.values = ["confirmed", "close match", "no match", "not supported", "blocked"];
|
|
5
5
|
ConfirmationOfPayeeResponseStatus.type = isly.string(ConfirmationOfPayeeResponseStatus.values);
|
|
6
6
|
ConfirmationOfPayeeResponseStatus.is = ConfirmationOfPayeeResponseStatus.type.is;
|
|
7
7
|
})(ConfirmationOfPayeeResponseStatus || (ConfirmationOfPayeeResponseStatus = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationOfPayeeResponseStatus.js","sourceRoot":"../","sources":["model/ConfirmationOfPayeeResponseStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,iCAAiC,CAIjD;AAJD,WAAiB,iCAAiC;IACpC,wCAAM,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"ConfirmationOfPayeeResponseStatus.js","sourceRoot":"../","sources":["model/ConfirmationOfPayeeResponseStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,iCAAiC,CAIjD;AAJD,WAAiB,iCAAiC;IACpC,wCAAM,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAU,CAAA;IACtF,sCAAI,GAAG,IAAI,CAAC,MAAM,CAAC,kCAAA,MAAM,CAAC,CAAA;IAC1B,oCAAE,GAAG,kCAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,iCAAiC,KAAjC,iCAAiC,QAIjD"}
|
|
@@ -10,6 +10,7 @@ export interface MerchantResponse {
|
|
|
10
10
|
isSuitableForCardMerchantRestriction?: true;
|
|
11
11
|
beneficiaries?: Partial<Record<Currency, BeneficiaryResponse>>;
|
|
12
12
|
status: MerchantResponseStatus;
|
|
13
|
+
organisations?: string[];
|
|
13
14
|
}
|
|
14
15
|
export declare namespace MerchantResponse {
|
|
15
16
|
const type: import("isly/dist/cjs/object").IslyObject<MerchantResponse, object>;
|
|
@@ -15,6 +15,7 @@ export var MerchantResponse;
|
|
|
15
15
|
beneficiaries: isly
|
|
16
16
|
.record(isly.fromIs("Currency", Currency.is), isly.fromIs("BeneficiaryResponse", BeneficiaryResponse.is))
|
|
17
17
|
.optional(),
|
|
18
|
+
organisations: isly.string().array().optional(),
|
|
18
19
|
});
|
|
19
20
|
MerchantResponse.is = MerchantResponse.type.is;
|
|
20
21
|
})(MerchantResponse || (MerchantResponse = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchantResponse.js","sourceRoot":"../","sources":["model/MerchantResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"MerchantResponse.js","sourceRoot":"../","sources":["model/MerchantResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAa7C,MAAM,KAAW,gBAAgB,CAchC;AAdD,WAAiB,gBAAgB;IACnB,qBAAI,GAAG,IAAI,CAAC,MAAM,CAAmB;QACjD,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE;QAClC,oCAAoC,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACnE,MAAM,EAAE,sBAAsB,CAAC,IAAI;QACnC,aAAa,EAAE,IAAI;aACjB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,EAAE,CAAC,CAAC;aACxG,QAAQ,EAAE;QACZ,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAA;IACW,mBAAE,GAAG,iBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAdgB,gBAAgB,KAAhB,gBAAgB,QAchC"}
|
|
@@ -2,6 +2,7 @@ import { Currency } from "isoly";
|
|
|
2
2
|
import { AbstractBeneficiaryRequest } from "./AbstractBeneficiaryRequest";
|
|
3
3
|
export interface UpdateMerchantRequest {
|
|
4
4
|
beneficiaries?: Partial<Record<Currency, AbstractBeneficiaryRequest>>;
|
|
5
|
+
organisations?: string[];
|
|
5
6
|
}
|
|
6
7
|
export declare namespace UpdateMerchantRequest {
|
|
7
8
|
const type: import("isly/dist/cjs/object").IslyObject<UpdateMerchantRequest, object>;
|
|
@@ -7,6 +7,7 @@ export var UpdateMerchantRequest;
|
|
|
7
7
|
beneficiaries: isly
|
|
8
8
|
.record(isly.fromIs("Currency", Currency.is), isly.fromIs("AbstractBeneficiaryRequest", AbstractBeneficiaryRequest.is))
|
|
9
9
|
.optional(),
|
|
10
|
+
organisations: isly.string().array().optional(),
|
|
10
11
|
});
|
|
11
12
|
UpdateMerchantRequest.is = UpdateMerchantRequest.type.is;
|
|
12
13
|
})(UpdateMerchantRequest || (UpdateMerchantRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateMerchantRequest.js","sourceRoot":"../","sources":["model/UpdateMerchantRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"UpdateMerchantRequest.js","sourceRoot":"../","sources":["model/UpdateMerchantRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAOzE,MAAM,KAAW,qBAAqB,CAWrC;AAXD,WAAiB,qBAAqB;IACxB,0BAAI,GAAG,IAAI,CAAC,MAAM,CAAwB;QACtD,aAAa,EAAE,IAAI;aACjB,MAAM,CACN,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,EACpC,IAAI,CAAC,MAAM,CAAC,4BAA4B,EAAE,0BAA0B,CAAC,EAAE,CAAC,CACxE;aACA,QAAQ,EAAE;QACZ,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAA;IACW,wBAAE,GAAG,sBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAXgB,qBAAqB,KAArB,qBAAqB,QAWrC"}
|
|
@@ -4,27 +4,23 @@ import { ConfirmationOfPayeeResponseStatus } from "./ConfirmationOfPayeeResponse
|
|
|
4
4
|
|
|
5
5
|
export interface ConfirmationOfPayeeResponse {
|
|
6
6
|
status: ConfirmationOfPayeeResponseStatus
|
|
7
|
-
message?: string
|
|
8
7
|
nameSuggestion?: string
|
|
9
8
|
description?: string
|
|
10
|
-
|
|
9
|
+
accepted?: boolean
|
|
11
10
|
acceptedByUser?: string
|
|
12
11
|
accountType?: ConfirmationOfPayeeAccountType
|
|
13
12
|
secondaryAccountId?: string
|
|
14
|
-
sourceAccountId?: string
|
|
15
13
|
acceptId?: string
|
|
16
14
|
}
|
|
17
15
|
export namespace ConfirmationOfPayeeResponse {
|
|
18
16
|
export const type = isly.object<ConfirmationOfPayeeResponse>({
|
|
19
17
|
status: ConfirmationOfPayeeResponseStatus.type,
|
|
20
|
-
message: isly.string().optional(),
|
|
21
18
|
nameSuggestion: isly.string().optional(),
|
|
22
19
|
description: isly.string().optional(),
|
|
23
|
-
|
|
20
|
+
accepted: isly.boolean().optional(),
|
|
24
21
|
acceptedByUser: isly.string().optional(),
|
|
25
22
|
accountType: ConfirmationOfPayeeAccountType.type.optional(),
|
|
26
23
|
secondaryAccountId: isly.string().optional(),
|
|
27
|
-
sourceAccountId: isly.string().optional(),
|
|
28
24
|
acceptId: isly.string().optional(),
|
|
29
25
|
})
|
|
30
26
|
export const is = type.is
|
|
@@ -3,7 +3,7 @@ import { isly } from "isly"
|
|
|
3
3
|
export type ConfirmationOfPayeeResponseStatus = typeof ConfirmationOfPayeeResponseStatus.values[number]
|
|
4
4
|
|
|
5
5
|
export namespace ConfirmationOfPayeeResponseStatus {
|
|
6
|
-
export const values = ["confirmed", "close match", "no match", "not supported", "
|
|
6
|
+
export const values = ["confirmed", "close match", "no match", "not supported", "blocked"] as const
|
|
7
7
|
export const type = isly.string(values)
|
|
8
8
|
export const is = type.is
|
|
9
9
|
}
|
|
@@ -12,6 +12,7 @@ export interface MerchantResponse {
|
|
|
12
12
|
isSuitableForCardMerchantRestriction?: true
|
|
13
13
|
beneficiaries?: Partial<Record<Currency, BeneficiaryResponse>>
|
|
14
14
|
status: MerchantResponseStatus
|
|
15
|
+
organisations?: string[]
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export namespace MerchantResponse {
|
|
@@ -25,6 +26,7 @@ export namespace MerchantResponse {
|
|
|
25
26
|
beneficiaries: isly
|
|
26
27
|
.record(isly.fromIs("Currency", Currency.is), isly.fromIs("BeneficiaryResponse", BeneficiaryResponse.is))
|
|
27
28
|
.optional(),
|
|
29
|
+
organisations: isly.string().array().optional(),
|
|
28
30
|
})
|
|
29
31
|
export const is = type.is
|
|
30
32
|
}
|
|
@@ -4,6 +4,7 @@ import { AbstractBeneficiaryRequest } from "./AbstractBeneficiaryRequest"
|
|
|
4
4
|
|
|
5
5
|
export interface UpdateMerchantRequest {
|
|
6
6
|
beneficiaries?: Partial<Record<Currency, AbstractBeneficiaryRequest>>
|
|
7
|
+
organisations?: string[]
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export namespace UpdateMerchantRequest {
|
|
@@ -14,6 +15,7 @@ export namespace UpdateMerchantRequest {
|
|
|
14
15
|
isly.fromIs("AbstractBeneficiaryRequest", AbstractBeneficiaryRequest.is)
|
|
15
16
|
)
|
|
16
17
|
.optional(),
|
|
18
|
+
organisations: isly.string().array().optional(),
|
|
17
19
|
})
|
|
18
20
|
export const is = type.is
|
|
19
21
|
}
|