@pax2pay/client 0.6.8 → 0.6.10
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/FundingAccountResponseV2Full.d.ts +0 -2
- package/dist/model/FundingAccountResponseV2Full.js +0 -2
- package/dist/model/FundingAccountResponseV2Full.js.map +1 -1
- package/dist/model/InternalOrganisationConfig.d.ts +2 -0
- package/dist/model/InternalOrganisationConfig.js +2 -0
- package/dist/model/InternalOrganisationConfig.js.map +1 -1
- package/dist/model/UpdateAccountRequest.d.ts +0 -2
- package/dist/model/UpdateAccountRequest.js +0 -2
- package/dist/model/UpdateAccountRequest.js.map +1 -1
- package/model/AccountResponse.ts +0 -3
- package/model/AccountSummary.ts +0 -3
- package/model/FundingAccountResponseV2Full.ts +0 -3
- package/model/InternalOrganisationConfig.ts +3 -0
- package/model/UpdateAccountRequest.ts +0 -3
- 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,MAAM,OAAO,QAAS,SAAQ,IAA2B;IAExD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,kBAAkB,CAAA;IAG9C,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAA;IAChC,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,OAAqC;QAC5D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAChC,GAAG,IAAI,CAAC,MAAM,EAAE,EAChB,OAAO,CACP,CAAA;IACF,CAAC;IACD,KAAK,CAAC,oBAAoB,CAAC,OAAqC;QAC/D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAChC,GAAG,IAAI,CAAC,MAAM,aAAa,EAC3B,OAAO,CACP,CAAA;IACF,CAAC;IACD,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,QAAS,SAAQ,IAA2B;IAExD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,kBAAkB,CAAA;IAG9C,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAA;IAChC,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,OAAqC;QAC5D,OAAO,MAAM,IAAI,CAA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* 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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,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,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,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":"AccountSummary.js","sourceRoot":"../","sources":["model/AccountSummary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,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,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAoB7C,MAAM,KAAW,cAAc,CAqB9B;AArBD,WAAiB,cAAc;IAC9B,SAAgB,EAAE,CAAC,KAA2B;QAC7C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ;YAC1C,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YACnC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;YAClC,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YAC5B,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ;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,10 +1,8 @@
|
|
|
1
1
|
import { DateTime } from "isoly";
|
|
2
2
|
import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
|
|
3
3
|
import { FundingAccountResponseV2Basic } from "./FundingAccountResponseV2Basic";
|
|
4
|
-
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
5
4
|
export interface FundingAccountResponseV2Full extends FundingAccountResponseV2Basic {
|
|
6
5
|
actualBalance?: number;
|
|
7
|
-
fundingLimit?: FundingLimitResponse;
|
|
8
6
|
accountIdentifier?: AccountIdentifierResponse;
|
|
9
7
|
totalCardAvailableBalance?: number;
|
|
10
8
|
updatedOn: DateTime;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DateTime } from "isoly";
|
|
2
2
|
import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
|
|
3
3
|
import { FundingAccountResponseV2Basic } from "./FundingAccountResponseV2Basic";
|
|
4
|
-
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
5
4
|
export var FundingAccountResponseV2Full;
|
|
6
5
|
(function (FundingAccountResponseV2Full) {
|
|
7
6
|
function is(value) {
|
|
@@ -9,7 +8,6 @@ export var FundingAccountResponseV2Full;
|
|
|
9
8
|
(value.actualBalance == undefined || typeof value.actualBalance == "number") &&
|
|
10
9
|
(value.realm == undefined || typeof value.realm == "string") &&
|
|
11
10
|
(value.legalEntityName == undefined || typeof value.legalEntityName == "string") &&
|
|
12
|
-
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
13
11
|
(value.accountIdentifier == undefined || AccountIdentifierResponse.is(value.accountIdentifier)) &&
|
|
14
12
|
(value.totalCardAvailableBalance == undefined || typeof value.totalCardAvailableBalance == "number") &&
|
|
15
13
|
DateTime.is(value.updatedOn) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FundingAccountResponseV2Full.js","sourceRoot":"../","sources":["model/FundingAccountResponseV2Full.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"FundingAccountResponseV2Full.js","sourceRoot":"../","sources":["model/FundingAccountResponseV2Full.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAY/E,MAAM,KAAW,4BAA4B,CAc5C;AAdD,WAAiB,4BAA4B;IAC5C,SAAgB,EAAE,CAAC,KAAyC;QAC3D,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,aAAa,IAAI,QAAQ,CAAC;YAC5E,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;YAC5D,CAAC,KAAK,CAAC,eAAe,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,eAAe,IAAI,QAAQ,CAAC;YAChF,CAAC,KAAK,CAAC,iBAAiB,IAAI,SAAS,IAAI,yBAAyB,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;YAC/F,CAAC,KAAK,CAAC,yBAAyB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,yBAAyB,IAAI,QAAQ,CAAC;YACpG,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;YAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;YAC5B,6BAA6B,CAAC,EAAE,CAAC,KAAK,CAAC,CACvC,CAAA;IACF,CAAC;IAZe,+BAAE,KAYjB,CAAA;AACF,CAAC,EAdgB,4BAA4B,KAA5B,4BAA4B,QAc5C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AllowedMccConfig } from "./AllowedMccConfig";
|
|
2
|
+
import { FundingLimitConfig } from "./FundingLimitConfig";
|
|
2
3
|
import { OrganisationFlag } from "./OrganisationFlag";
|
|
3
4
|
import { PaxpayFeature } from "./PaxpayFeature";
|
|
4
5
|
import { TierID } from "./TierID";
|
|
@@ -6,6 +7,7 @@ export interface InternalOrganisationConfig {
|
|
|
6
7
|
flags?: OrganisationFlag[];
|
|
7
8
|
features?: PaxpayFeature[];
|
|
8
9
|
allowedMccConfig?: AllowedMccConfig;
|
|
10
|
+
fundingLimitConfig?: FundingLimitConfig;
|
|
9
11
|
tier?: TierID;
|
|
10
12
|
}
|
|
11
13
|
export declare namespace InternalOrganisationConfig {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { AllowedMccConfig } from "./AllowedMccConfig";
|
|
3
|
+
import { FundingLimitConfig } from "./FundingLimitConfig";
|
|
3
4
|
import { OrganisationFlag } from "./OrganisationFlag";
|
|
4
5
|
import { PaxpayFeature } from "./PaxpayFeature";
|
|
5
6
|
import { TierID } from "./TierID";
|
|
@@ -9,6 +10,7 @@ export var InternalOrganisationConfig;
|
|
|
9
10
|
flags: OrganisationFlag.type.array().optional(),
|
|
10
11
|
features: PaxpayFeature.type.array().optional(),
|
|
11
12
|
allowedMccConfig: AllowedMccConfig.type.optional(),
|
|
13
|
+
fundingLimitConfig: FundingLimitConfig.type.optional(),
|
|
12
14
|
tier: TierID.type.optional(),
|
|
13
15
|
});
|
|
14
16
|
InternalOrganisationConfig.is = InternalOrganisationConfig.type.is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalOrganisationConfig.js","sourceRoot":"../","sources":["model/InternalOrganisationConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"InternalOrganisationConfig.js","sourceRoot":"../","sources":["model/InternalOrganisationConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAUjC,MAAM,KAAW,0BAA0B,CAS1C;AATD,WAAiB,0BAA0B;IAC7B,+BAAI,GAAG,IAAI,CAAC,MAAM,CAA6B;QAC3D,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC/C,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC/C,gBAAgB,EAAE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE;QAClD,kBAAkB,EAAE,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE;QACtD,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC5B,CAAC,CAAA;IACW,6BAAE,GAAG,2BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EATgB,0BAA0B,KAA1B,0BAA0B,QAS1C"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { AccountState } from "./AccountState";
|
|
2
|
-
import { FundingLimitRequest } from "./FundingLimitRequest";
|
|
3
2
|
export interface UpdateAccountRequest {
|
|
4
3
|
state: AccountState;
|
|
5
4
|
friendlyName?: string;
|
|
6
|
-
fundingLimit?: FundingLimitRequest;
|
|
7
5
|
}
|
|
8
6
|
export declare namespace UpdateAccountRequest {
|
|
9
7
|
const type: import("isly/dist/cjs/object").IslyObject<UpdateAccountRequest, object>;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { AccountState } from "./AccountState";
|
|
3
|
-
import { FundingLimitRequest } from "./FundingLimitRequest";
|
|
4
3
|
export var UpdateAccountRequest;
|
|
5
4
|
(function (UpdateAccountRequest) {
|
|
6
5
|
UpdateAccountRequest.type = isly.object({
|
|
7
6
|
state: isly.fromIs("AccountState", AccountState.is),
|
|
8
7
|
friendlyName: isly.string().optional(),
|
|
9
|
-
fundingLimit: isly.fromIs("FundingLimitRequest", FundingLimitRequest.is).optional(),
|
|
10
8
|
});
|
|
11
9
|
UpdateAccountRequest.is = UpdateAccountRequest.type.is;
|
|
12
10
|
})(UpdateAccountRequest || (UpdateAccountRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateAccountRequest.js","sourceRoot":"../","sources":["model/UpdateAccountRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"UpdateAccountRequest.js","sourceRoot":"../","sources":["model/UpdateAccountRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAQ7C,MAAM,KAAW,oBAAoB,CAMpC;AAND,WAAiB,oBAAoB;IACvB,yBAAI,GAAG,IAAI,CAAC,MAAM,CAAuB;QACrD,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,CAAC;QACnD,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACtC,CAAC,CAAA;IACW,uBAAE,GAAG,qBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EANgB,oBAAoB,KAApB,oBAAoB,QAMpC"}
|
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
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { DateTime } from "isoly"
|
|
2
2
|
import { AccountIdentifierResponse } from "./AccountIdentifierResponse"
|
|
3
3
|
import { FundingAccountResponseV2Basic } from "./FundingAccountResponseV2Basic"
|
|
4
|
-
import { FundingLimitResponse } from "./FundingLimitResponse"
|
|
5
4
|
|
|
6
5
|
export interface FundingAccountResponseV2Full extends FundingAccountResponseV2Basic {
|
|
7
6
|
actualBalance?: number
|
|
8
|
-
fundingLimit?: FundingLimitResponse
|
|
9
7
|
accountIdentifier?: AccountIdentifierResponse
|
|
10
8
|
totalCardAvailableBalance?: number
|
|
11
9
|
updatedOn: DateTime
|
|
@@ -21,7 +19,6 @@ export namespace FundingAccountResponseV2Full {
|
|
|
21
19
|
(value.actualBalance == undefined || typeof value.actualBalance == "number") &&
|
|
22
20
|
(value.realm == undefined || typeof value.realm == "string") &&
|
|
23
21
|
(value.legalEntityName == undefined || typeof value.legalEntityName == "string") &&
|
|
24
|
-
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
25
22
|
(value.accountIdentifier == undefined || AccountIdentifierResponse.is(value.accountIdentifier)) &&
|
|
26
23
|
(value.totalCardAvailableBalance == undefined || typeof value.totalCardAvailableBalance == "number") &&
|
|
27
24
|
DateTime.is(value.updatedOn) &&
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { AllowedMccConfig } from "./AllowedMccConfig"
|
|
3
|
+
import { FundingLimitConfig } from "./FundingLimitConfig"
|
|
3
4
|
import { OrganisationFlag } from "./OrganisationFlag"
|
|
4
5
|
import { PaxpayFeature } from "./PaxpayFeature"
|
|
5
6
|
import { TierID } from "./TierID"
|
|
@@ -8,6 +9,7 @@ export interface InternalOrganisationConfig {
|
|
|
8
9
|
flags?: OrganisationFlag[]
|
|
9
10
|
features?: PaxpayFeature[]
|
|
10
11
|
allowedMccConfig?: AllowedMccConfig
|
|
12
|
+
fundingLimitConfig?: FundingLimitConfig
|
|
11
13
|
tier?: TierID
|
|
12
14
|
}
|
|
13
15
|
|
|
@@ -16,6 +18,7 @@ export namespace InternalOrganisationConfig {
|
|
|
16
18
|
flags: OrganisationFlag.type.array().optional(),
|
|
17
19
|
features: PaxpayFeature.type.array().optional(),
|
|
18
20
|
allowedMccConfig: AllowedMccConfig.type.optional(),
|
|
21
|
+
fundingLimitConfig: FundingLimitConfig.type.optional(),
|
|
19
22
|
tier: TierID.type.optional(),
|
|
20
23
|
})
|
|
21
24
|
export const is = type.is
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { AccountState } from "./AccountState"
|
|
3
|
-
import { FundingLimitRequest } from "./FundingLimitRequest"
|
|
4
3
|
/**
|
|
5
4
|
* Request for updating a funding account. Accounts are mostly immutable, you can only change a few things about them. If any of the values are null, the existing value on the funding account won't be overwritten with null, it'll just be kept the same as is.
|
|
6
5
|
*/
|
|
7
6
|
export interface UpdateAccountRequest {
|
|
8
7
|
state: AccountState
|
|
9
8
|
friendlyName?: string
|
|
10
|
-
fundingLimit?: FundingLimitRequest
|
|
11
9
|
}
|
|
12
10
|
export namespace UpdateAccountRequest {
|
|
13
11
|
export const type = isly.object<UpdateAccountRequest>({
|
|
14
12
|
state: isly.fromIs("AccountState", AccountState.is),
|
|
15
13
|
friendlyName: isly.string().optional(),
|
|
16
|
-
fundingLimit: isly.fromIs("FundingLimitRequest", FundingLimitRequest.is).optional(),
|
|
17
14
|
})
|
|
18
15
|
export const is = type.is
|
|
19
16
|
}
|