@pax2pay/client 0.6.9 → 0.6.11
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/Accounts/index.ts +0 -21
- package/dist/Client/Accounts/index.d.ts +0 -1
- package/dist/Client/Accounts/index.js +0 -10
- package/dist/Client/Accounts/index.js.map +1 -1
- package/dist/model/AccountResponse.d.ts +0 -2
- package/dist/model/AccountResponse.js +0 -2
- package/dist/model/AccountResponse.js.map +1 -1
- package/dist/model/AccountSummary.d.ts +0 -2
- package/dist/model/AccountSummary.js +0 -2
- package/dist/model/AccountSummary.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/model/AccountResponse.ts +0 -3
- package/model/AccountSummary.ts +0 -3
- package/model/ConfirmationOfPayeeResponseStatus.ts +1 -1
- package/package.json +1 -1
package/Client/Accounts/index.ts
CHANGED
|
@@ -22,27 +22,6 @@ export class Accounts extends List<model.AccountResponse> {
|
|
|
22
22
|
request
|
|
23
23
|
)
|
|
24
24
|
}
|
|
25
|
-
async getAccountSummary(
|
|
26
|
-
providerCodes: model.ProviderCode[],
|
|
27
|
-
accountId?: number,
|
|
28
|
-
accountStates?: model.AccountState[],
|
|
29
|
-
providerAccountId?: string
|
|
30
|
-
) {
|
|
31
|
-
const response = await this.connection.get<
|
|
32
|
-
| {
|
|
33
|
-
list: model.AccountSummary[]
|
|
34
|
-
totalCount: number
|
|
35
|
-
}
|
|
36
|
-
| model.ErrorResponse
|
|
37
|
-
>(`account-summaries`, {
|
|
38
|
-
refresh: false,
|
|
39
|
-
providerCodes: providerCodes,
|
|
40
|
-
accountId: accountId,
|
|
41
|
-
accountStates: accountStates,
|
|
42
|
-
providerAccountId: providerAccountId,
|
|
43
|
-
})
|
|
44
|
-
return this.extractResponse<model.AccountSummary>(response)
|
|
45
|
-
}
|
|
46
25
|
async updateFundingAccount(
|
|
47
26
|
providerCode: model.ProviderCode,
|
|
48
27
|
providerAccountId: string,
|
|
@@ -11,7 +11,6 @@ export declare class Accounts extends List<model.AccountResponse> {
|
|
|
11
11
|
createFundingAccount(request: model.AccountCreationRequest): Promise<model.ErrorResponse | model.FundingAccountResponseV2Full | (model.ErrorResponse & {
|
|
12
12
|
status: 400 | 404 | 500 | 403 | 503;
|
|
13
13
|
})>;
|
|
14
|
-
getAccountSummary(providerCodes: model.ProviderCode[], accountId?: number, accountStates?: model.AccountState[], providerAccountId?: string): Promise<model.ErrorResponse | model.AccountSummary[]>;
|
|
15
14
|
updateFundingAccount(providerCode: model.ProviderCode, providerAccountId: string, request: model.UpdateAccountRequest): Promise<model.AccountResponse | model.ErrorResponse | (model.ErrorResponse & {
|
|
16
15
|
status: 400 | 404 | 500 | 403 | 503;
|
|
17
16
|
})>;
|
|
@@ -13,16 +13,6 @@ export class Accounts extends List {
|
|
|
13
13
|
async createFundingAccount(request) {
|
|
14
14
|
return await this.connection.post(`${this.folder}/create-new`, request);
|
|
15
15
|
}
|
|
16
|
-
async getAccountSummary(providerCodes, accountId, accountStates, providerAccountId) {
|
|
17
|
-
const response = await this.connection.get(`account-summaries`, {
|
|
18
|
-
refresh: false,
|
|
19
|
-
providerCodes: providerCodes,
|
|
20
|
-
accountId: accountId,
|
|
21
|
-
accountStates: accountStates,
|
|
22
|
-
providerAccountId: providerAccountId,
|
|
23
|
-
});
|
|
24
|
-
return this.extractResponse(response);
|
|
25
|
-
}
|
|
26
16
|
async updateFundingAccount(providerCode, providerAccountId, request) {
|
|
27
17
|
return await this.connection.put(`${this.folder}/${providerCode}/${providerAccountId}`, request);
|
|
28
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAA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,CAAC;IACD,KAAK,CAAC,mBAAmB,CAAC,YAAgC,EAAE,iBAAyB;QACpF,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAC/B,MAAM,IAAI,CAAC,MAAM,IAAI,YAAY,IAAI,iBAAiB,EAAE,CACxD,CAAA;IACF,CAAC;IACD,KAAK,CAAC,uBAAuB,CAAC,YAAgC,EAAE,iBAAyB;QACxF,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAC/B,MAAM,IAAI,CAAC,MAAM,IAAI,YAAY,IAAI,iBAAiB,OAAO,CAC7D,CAAA;IACF,CAAC;IACD,KAAK,CAAC,kBAAkB,CACvB,aAAgD;QAEhD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAC1C,GAAG,IAAI,CAAC,MAAM,WAAW,EACzB,aAAa,CACb,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,qBAAqB,CAC1B,YAAgC,EAChC,IAAI,GAAG,GAAG,EACV,IAAI,GAAG,cAAc;QAErB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwD,IAAI,CAAC,MAAM,EAAE;YAC9G,QAAQ,EAAE,YAAY;YACtB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;CACD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as isoly from "isoly";
|
|
2
2
|
import { AccountState } from "./AccountState";
|
|
3
3
|
import { AccountType } from "./AccountType";
|
|
4
|
-
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
5
4
|
import { OrganisationResponse } from "./OrganisationResponse";
|
|
6
5
|
import { ProviderResponse } from "./ProviderResponse";
|
|
7
6
|
export interface AccountResponse {
|
|
@@ -15,7 +14,6 @@ export interface AccountResponse {
|
|
|
15
14
|
balance: number;
|
|
16
15
|
actualBalance?: number;
|
|
17
16
|
accountType: AccountType;
|
|
18
|
-
fundingLimit?: FundingLimitResponse;
|
|
19
17
|
updatedOn: string;
|
|
20
18
|
createdOn?: string;
|
|
21
19
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as isoly from "isoly";
|
|
2
2
|
import { AccountState } from "./AccountState";
|
|
3
3
|
import { AccountType } from "./AccountType";
|
|
4
|
-
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
5
4
|
import { OrganisationResponse } from "./OrganisationResponse";
|
|
6
5
|
import { ProviderResponse } from "./ProviderResponse";
|
|
7
6
|
export var AccountResponse;
|
|
@@ -18,7 +17,6 @@ export var AccountResponse;
|
|
|
18
17
|
typeof value.balance == "number" &&
|
|
19
18
|
(value.actualBalance == undefined || typeof value.actualBalance == "number") &&
|
|
20
19
|
AccountType.is(value.accountType) &&
|
|
21
|
-
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
22
20
|
typeof value.updatedOn == "string" &&
|
|
23
21
|
(value.createdOn == undefined || typeof value.createdOn == "string"));
|
|
24
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountResponse.js","sourceRoot":"../","sources":["model/AccountResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AccountResponse.js","sourceRoot":"../","sources":["model/AccountResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAmBrD,MAAM,KAAW,eAAe,CAkB/B;AAlBD,WAAiB,eAAe;IAC/B,SAAgB,EAAE,CAAC,KAA4B;QAC9C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ;YAC3B,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ;YAC1C,gBAAgB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACnC,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YAC3C,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACjC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YAC5B,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ;YACrC,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,aAAa,IAAI,QAAQ,CAAC;YAC5E,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;YACjC,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,CAAC,KAAK,CAAC,SAAS,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ,CAAC,CACpE,CAAA;IACF,CAAC;IAhBe,kBAAE,KAgBjB,CAAA;AACF,CAAC,EAlBgB,eAAe,KAAf,eAAe,QAkB/B"}
|
|
@@ -3,7 +3,6 @@ import { AccountBankResponse } from "./AccountBankResponse";
|
|
|
3
3
|
import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
|
|
4
4
|
import { AccountState } from "./AccountState";
|
|
5
5
|
import { AccountType } from "./AccountType";
|
|
6
|
-
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
7
6
|
import { OrganisationResponse } from "./OrganisationResponse";
|
|
8
7
|
import { ProviderCode } from "./ProviderCode";
|
|
9
8
|
export interface AccountSummary {
|
|
@@ -21,7 +20,6 @@ export interface AccountSummary {
|
|
|
21
20
|
pendingBalance: number;
|
|
22
21
|
totalCardAvailableBalance: number;
|
|
23
22
|
lastUpdatedCardBalanceOn?: isoly.DateTime;
|
|
24
|
-
fundingLimit?: FundingLimitResponse;
|
|
25
23
|
accountIdentifierResponse?: AccountIdentifierResponse;
|
|
26
24
|
}
|
|
27
25
|
export declare namespace AccountSummary {
|
|
@@ -3,7 +3,6 @@ import { AccountBankResponse } from "./AccountBankResponse";
|
|
|
3
3
|
import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
|
|
4
4
|
import { AccountState } from "./AccountState";
|
|
5
5
|
import { AccountType } from "./AccountType";
|
|
6
|
-
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
7
6
|
import { OrganisationResponse } from "./OrganisationResponse";
|
|
8
7
|
import { ProviderCode } from "./ProviderCode";
|
|
9
8
|
export var AccountSummary;
|
|
@@ -24,7 +23,6 @@ export var AccountSummary;
|
|
|
24
23
|
typeof value.pendingBalance == "number" &&
|
|
25
24
|
typeof value.totalCardAvailableBalance == "number" &&
|
|
26
25
|
(value.lastUpdatedCardBalanceOn == undefined || isoly.DateTime.is(value.lastUpdatedCardBalanceOn)) &&
|
|
27
|
-
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
28
26
|
(value.accountIdentifierResponse == undefined || AccountIdentifierResponse.is(value.accountIdentifierResponse)));
|
|
29
27
|
}
|
|
30
28
|
AccountSummary.is = is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSummary.js","sourceRoot":"../","sources":["model/AccountSummary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KA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AQ;YACrC,CAAC,KAAK,CAAC,kBAAkB,IAAI,SAAS,IAAI,mBAAmB,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC3F,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YAC3C,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACjC,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,OAAO,KAAK,CAAC,cAAc,IAAI,QAAQ;YACvC,OAAO,KAAK,CAAC,yBAAyB,IAAI,QAAQ;YAClD,CAAC,KAAK,CAAC,wBAAwB,IAAI,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;YAClG,CAAC,KAAK,CAAC,yBAAyB,IAAI,SAAS,IAAI,yBAAyB,CAAC,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAC/G,CAAA;IACF,CAAC;IAnBe,iBAAE,KAmBjB,CAAA;AACF,CAAC,EArBgB,cAAc,KAAd,cAAc,QAqB9B"}
|
|
@@ -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<"confirmed" | "close match" | "no match" | "not supported">;
|
|
6
|
-
const is: (value: any | ("confirmed" | "close match" | "no match" | "not supported")) => value is "confirmed" | "close match" | "no match" | "not supported";
|
|
4
|
+
const values: readonly ["confirmed", "close match", "no match", "not supported", "accepted", "blocked"];
|
|
5
|
+
const type: isly.Type<"blocked" | "confirmed" | "close match" | "no match" | "not supported" | "accepted">;
|
|
6
|
+
const is: (value: any | ("blocked" | "confirmed" | "close match" | "no match" | "not supported" | "accepted")) => value is "blocked" | "confirmed" | "close match" | "no match" | "not supported" | "accepted";
|
|
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", "accepted", "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,CAAU,CAAA;
|
|
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,UAAU,EAAE,SAAS,CAAU,CAAA;IAClG,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"}
|
package/model/AccountResponse.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as isoly from "isoly"
|
|
2
2
|
import { AccountState } from "./AccountState"
|
|
3
3
|
import { AccountType } from "./AccountType"
|
|
4
|
-
import { FundingLimitResponse } from "./FundingLimitResponse"
|
|
5
4
|
import { OrganisationResponse } from "./OrganisationResponse"
|
|
6
5
|
import { ProviderResponse } from "./ProviderResponse"
|
|
7
6
|
/**
|
|
@@ -18,7 +17,6 @@ export interface AccountResponse {
|
|
|
18
17
|
balance: number
|
|
19
18
|
actualBalance?: number
|
|
20
19
|
accountType: AccountType
|
|
21
|
-
fundingLimit?: FundingLimitResponse
|
|
22
20
|
updatedOn: string
|
|
23
21
|
createdOn?: string
|
|
24
22
|
}
|
|
@@ -37,7 +35,6 @@ export namespace AccountResponse {
|
|
|
37
35
|
typeof value.balance == "number" &&
|
|
38
36
|
(value.actualBalance == undefined || typeof value.actualBalance == "number") &&
|
|
39
37
|
AccountType.is(value.accountType) &&
|
|
40
|
-
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
41
38
|
typeof value.updatedOn == "string" &&
|
|
42
39
|
(value.createdOn == undefined || typeof value.createdOn == "string")
|
|
43
40
|
)
|
package/model/AccountSummary.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { AccountBankResponse } from "./AccountBankResponse"
|
|
|
3
3
|
import { AccountIdentifierResponse } from "./AccountIdentifierResponse"
|
|
4
4
|
import { AccountState } from "./AccountState"
|
|
5
5
|
import { AccountType } from "./AccountType"
|
|
6
|
-
import { FundingLimitResponse } from "./FundingLimitResponse"
|
|
7
6
|
import { OrganisationResponse } from "./OrganisationResponse"
|
|
8
7
|
import { ProviderCode } from "./ProviderCode"
|
|
9
8
|
|
|
@@ -22,7 +21,6 @@ export interface AccountSummary {
|
|
|
22
21
|
pendingBalance: number
|
|
23
22
|
totalCardAvailableBalance: number
|
|
24
23
|
lastUpdatedCardBalanceOn?: isoly.DateTime
|
|
25
|
-
fundingLimit?: FundingLimitResponse
|
|
26
24
|
accountIdentifierResponse?: AccountIdentifierResponse
|
|
27
25
|
}
|
|
28
26
|
|
|
@@ -44,7 +42,6 @@ export namespace AccountSummary {
|
|
|
44
42
|
typeof value.pendingBalance == "number" &&
|
|
45
43
|
typeof value.totalCardAvailableBalance == "number" &&
|
|
46
44
|
(value.lastUpdatedCardBalanceOn == undefined || isoly.DateTime.is(value.lastUpdatedCardBalanceOn)) &&
|
|
47
|
-
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
48
45
|
(value.accountIdentifierResponse == undefined || AccountIdentifierResponse.is(value.accountIdentifierResponse))
|
|
49
46
|
)
|
|
50
47
|
}
|
|
@@ -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"] as const
|
|
6
|
+
export const values = ["confirmed", "close match", "no match", "not supported", "accepted", "blocked"] as const
|
|
7
7
|
export const type = isly.string(values)
|
|
8
8
|
export const is = type.is
|
|
9
9
|
}
|