@pax2pay/client 0.6.15 → 0.6.17

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.
@@ -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 response = await this.connection.get<model.ErrorResponse | model.MerchantResponse[]>(this.folder, {
59
- page: 0,
60
- size: 5000,
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
- return await this.getNextPaginated(previous, (page, size, sort, request) => this.connection.post(`${this.folder}/searches`, request, { page, size, sort }), request, page, size, sort);
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,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CAAC;CACD"}
@@ -1,9 +1,10 @@
1
1
  import { ConfirmationOfPayeeAccountType } from "./ConfirmationOfPayeeAccountType";
2
2
  export interface ConfirmationOfPayeeRequest {
3
- accountNumber: string;
4
- sortCode: string;
3
+ accountNumber?: string;
4
+ sortCode?: string;
5
+ iban?: string;
5
6
  payeeName: string;
6
- accountType: ConfirmationOfPayeeAccountType;
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;AAUjF,MAAM,KAAW,0BAA0B,CAU1C;AAVD,WAAiB,0BAA0B;IAC7B,+BAAI,GAAG,IAAI,CAAC,MAAM,CAA6B;QAC3D,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE;QAC5B,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,kBAAkB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5C,WAAW,EAAE,8BAA8B,CAAC,IAAI;QAChD,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACzC,CAAC,CAAA;IACW,6BAAE,GAAG,2BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAVgB,0BAA0B,KAA1B,0BAA0B,QAU1C"}
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;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
+ {"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"}
@@ -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;AAY7C,MAAM,KAAW,gBAAgB,CAahC;AAbD,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,I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E,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"}
@@ -1,4 +1,5 @@
1
- import { BookingInfoRequest } from "./BookingInfoRequest";
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
- bookingInfo?: BookingInfoRequest;
16
+ metadata?: MetadataRequest;
17
+ delivery?: PaymentDeliveryRequest;
18
+ batchId?: string;
19
+ verificationOfPayeeId?: string;
16
20
  }
@@ -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;AAMzE,MAAM,KAAW,qBAAqB,CAUrC;AAVD,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;KACZ,CAAC,CAAA;IACW,wBAAE,GAAG,sBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAVgB,qBAAqB,KAArB,qBAAqB,QAUrC"}
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"}
@@ -2,20 +2,22 @@ import { isly } from "isly"
2
2
  import { ConfirmationOfPayeeAccountType } from "./ConfirmationOfPayeeAccountType"
3
3
 
4
4
  export interface ConfirmationOfPayeeRequest {
5
- accountNumber: string
6
- sortCode: string
5
+ accountNumber?: string
6
+ sortCode?: string
7
+ iban?: string
7
8
  payeeName: string
8
- accountType: ConfirmationOfPayeeAccountType
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
  }
@@ -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
  }
@@ -1,4 +1,5 @@
1
- import { BookingInfoRequest } from "./BookingInfoRequest"
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
- bookingInfo?: BookingInfoRequest
17
+ metadata?: MetadataRequest
18
+ delivery?: PaymentDeliveryRequest
19
+ batchId?: string
20
+ verificationOfPayeeId?: string
17
21
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.6.15",
3
+ "version": "0.6.17",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",