@pax2pay/client 0.3.130 → 0.3.132
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 +1 -1
- package/Client/Api-keys/index.ts +1 -1
- package/Client/Beneficiaries/index.ts +1 -1
- package/Client/Cards/index.ts +6 -1
- package/Client/Categories/index.ts +1 -1
- package/Client/Configuration/index.ts +20 -68
- package/Client/Credentials/index.ts +63 -0
- package/Client/Currency/index.ts +1 -1
- package/Client/Email/index.ts +1 -1
- package/Client/Merchants/index.ts +1 -1
- package/Client/Metadata/index.ts +1 -1
- package/Client/Organisations/index.ts +1 -1
- package/Client/Rolesets/index.ts +1 -1
- package/Client/Transfers/index.ts +1 -1
- package/Client/Users/index.ts +1 -1
- package/Client/index.ts +3 -0
- package/dist/Client/Accounts/index.d.ts +1 -1
- package/dist/Client/Accounts/index.js.map +1 -1
- package/dist/Client/Api-keys/index.d.ts +1 -1
- package/dist/Client/Api-keys/index.js.map +1 -1
- package/dist/Client/Beneficiaries/index.d.ts +1 -1
- package/dist/Client/Beneficiaries/index.js.map +1 -1
- package/dist/Client/Cards/index.d.ts +1 -0
- package/dist/Client/Cards/index.js +4 -0
- package/dist/Client/Cards/index.js.map +1 -1
- package/dist/Client/Categories/index.d.ts +1 -1
- package/dist/Client/Categories/index.js.map +1 -1
- package/dist/Client/Configuration/index.d.ts +7 -11
- package/dist/Client/Configuration/index.js +12 -34
- package/dist/Client/Configuration/index.js.map +1 -1
- package/dist/Client/Credentials/index.d.ts +13 -0
- package/dist/Client/Credentials/index.js +32 -0
- package/dist/Client/Credentials/index.js.map +1 -0
- package/dist/Client/Currency/index.d.ts +1 -1
- package/dist/Client/Currency/index.js.map +1 -1
- package/dist/Client/Email/index.d.ts +1 -1
- package/dist/Client/Email/index.js.map +1 -1
- package/dist/Client/Merchants/index.d.ts +1 -1
- package/dist/Client/Merchants/index.js.map +1 -1
- package/dist/Client/Metadata/index.d.ts +1 -1
- package/dist/Client/Metadata/index.js.map +1 -1
- package/dist/Client/Organisations/index.d.ts +1 -1
- package/dist/Client/Organisations/index.js.map +1 -1
- package/dist/Client/Rolesets/index.d.ts +1 -1
- package/dist/Client/Rolesets/index.js.map +1 -1
- package/dist/Client/Transfers/index.d.ts +1 -1
- package/dist/Client/Transfers/index.js.map +1 -1
- package/dist/Client/Users/index.d.ts +1 -1
- package/dist/Client/Users/index.js.map +1 -1
- package/dist/Client/index.d.ts +3 -0
- package/dist/Client/index.js +2 -0
- package/dist/Client/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/ApprovalNotificationConfig.d.ts +8 -0
- package/dist/model/ApprovalNotificationConfig.js +10 -0
- package/dist/model/ApprovalNotificationConfig.js.map +1 -0
- package/dist/model/CardDeliveryEmailConfig.d.ts +2 -1
- package/dist/model/CardDeliveryEmailConfig.js +7 -6
- package/dist/model/CardDeliveryEmailConfig.js.map +1 -1
- package/dist/model/CardTypesConfig.d.ts +3 -0
- package/dist/model/CardTypesConfig.js +11 -1
- package/dist/model/CardTypesConfig.js.map +1 -1
- package/dist/model/CardUsage.d.ts +5 -2
- package/dist/model/CardUsage.js +4 -4
- package/dist/model/CardUsage.js.map +1 -1
- package/dist/model/CreateCardRequest.d.ts +2 -1
- package/dist/model/FundingAccountInboundTransferNotificationConfig.d.ts +4 -0
- package/dist/model/FundingAccountInboundTransferNotificationConfig.js +9 -1
- package/dist/model/FundingAccountInboundTransferNotificationConfig.js.map +1 -1
- package/dist/model/FundingLimitConfig.d.ts +2 -1
- package/dist/model/FundingLimitConfig.js +6 -4
- package/dist/model/FundingLimitConfig.js.map +1 -1
- package/dist/model/OrganisationConfig.d.ts +6 -2
- package/dist/model/OrganisationConfig.js +26 -5
- package/dist/model/OrganisationConfig.js.map +1 -1
- package/dist/model/index.js +3 -1
- package/dist/model/index.js.map +1 -1
- package/model/ApprovalNotificationConfig.ts +15 -0
- package/model/CardDeliveryEmailConfig.ts +8 -7
- package/model/CardTypesConfig.ts +10 -0
- package/model/CardUsage.ts +6 -4
- package/model/CreateCardRequest.ts +2 -1
- package/model/FundingAccountInboundTransferNotificationConfig.ts +9 -0
- package/model/FundingLimitConfig.ts +7 -3
- package/model/OrganisationConfig.ts +21 -7
- package/package.json +1 -1
package/Client/Accounts/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Connection } from "../Connection"
|
|
|
3
3
|
import { List } from "../List"
|
|
4
4
|
|
|
5
5
|
export class Accounts extends List<model.AccountResponse> {
|
|
6
|
-
protected folder = "funding-accounts"
|
|
6
|
+
protected readonly folder = "funding-accounts"
|
|
7
7
|
private constructor(connection: Connection) {
|
|
8
8
|
super(connection)
|
|
9
9
|
}
|
package/Client/Api-keys/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as model from "../../model"
|
|
|
2
2
|
import { Connection } from "../Connection"
|
|
3
3
|
import { List } from "../List"
|
|
4
4
|
export class ApiKeys extends List<model.ApiKeyResponse> {
|
|
5
|
-
protected folder = "api-keys"
|
|
5
|
+
protected readonly folder = "api-keys"
|
|
6
6
|
private constructor(connection: Connection) {
|
|
7
7
|
super(connection)
|
|
8
8
|
}
|
|
@@ -3,7 +3,7 @@ import { Connection } from "../Connection"
|
|
|
3
3
|
import { List } from "../List"
|
|
4
4
|
|
|
5
5
|
export class Beneficiaries extends List<model.BeneficiaryResponse> {
|
|
6
|
-
protected folder = "beneficiaries"
|
|
6
|
+
protected readonly folder = "beneficiaries"
|
|
7
7
|
constructor(connection: Connection) {
|
|
8
8
|
super(connection)
|
|
9
9
|
}
|
package/Client/Cards/index.ts
CHANGED
|
@@ -111,7 +111,12 @@ export class Cards extends List<model.CardResponseV2 | model.CardResponse> {
|
|
|
111
111
|
)
|
|
112
112
|
return this.extractResponse<model.CardTypeResponse>(response)
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
async getAllCardTypesV2(providerCode: model.ProviderCode) {
|
|
115
|
+
const response = await this.connection.get<{ list: model.CardTypeResponse[]; totalCount: number }>(
|
|
116
|
+
`v2/${this.folder}/types/${providerCode}/all`
|
|
117
|
+
)
|
|
118
|
+
return this.extractResponse<model.CardTypeResponse>(response)
|
|
119
|
+
}
|
|
115
120
|
async createCardTypeProfileV2(cardTypeProfileRequest: model.CreateCardTypeProfileRequest, organisationCode?: string) {
|
|
116
121
|
const header = organisationCode ? { "x-assume": organisationCode } : undefined
|
|
117
122
|
const response = await this.connection.post<model.CardTypeProfileResponse>(
|
|
@@ -3,7 +3,7 @@ import { CategoryResponse } from "../../model/CategoryResponse"
|
|
|
3
3
|
import { Connection } from "../Connection"
|
|
4
4
|
import { List } from "../List"
|
|
5
5
|
export class Categories extends List<model.CategoryResponse> {
|
|
6
|
-
protected folder = "category"
|
|
6
|
+
protected readonly folder = "category"
|
|
7
7
|
private constructor(connection: Connection) {
|
|
8
8
|
super(connection)
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import * as model from "../../model"
|
|
|
3
3
|
import { ProviderCode } from "../../model/ProviderCode"
|
|
4
4
|
import { Connection } from "../Connection"
|
|
5
5
|
export class Configuration {
|
|
6
|
-
protected folder = "config"
|
|
6
|
+
protected readonly folder = "config"
|
|
7
7
|
constructor(private readonly connection: Connection) {}
|
|
8
8
|
static create(connection: Connection) {
|
|
9
9
|
return new Configuration(connection)
|
|
@@ -11,31 +11,37 @@ export class Configuration {
|
|
|
11
11
|
async getAvailableCurrency(providerCode: ProviderCode = "modulr"): Promise<Currency[] | model.ErrorResponse> {
|
|
12
12
|
return await this.connection.get<Currency[]>(`${this.folder}/currencies`, { provider: providerCode })
|
|
13
13
|
}
|
|
14
|
-
async getOrganisation(): Promise<model.OrganisationConfig | model.ErrorResponse> {
|
|
15
|
-
return await this.connection.get<model.OrganisationConfig>(`${this.folder}/organisation`)
|
|
14
|
+
async getOrganisation(code?: string): Promise<model.OrganisationConfig | model.ErrorResponse> {
|
|
15
|
+
return await this.connection.get<model.OrganisationConfig>(`${this.folder}/organisation${code ? `/${code}` : ""}`)
|
|
16
16
|
}
|
|
17
|
-
async updateOrganisation(
|
|
18
|
-
|
|
17
|
+
async updateOrganisation(
|
|
18
|
+
request: model.OrganisationConfig,
|
|
19
|
+
code?: string
|
|
20
|
+
): Promise<model.OrganisationConfig | model.ErrorResponse> {
|
|
21
|
+
return await this.connection.post<model.OrganisationConfig>(
|
|
22
|
+
`${this.folder}/organisation${code ? `/${code}` : ""}`,
|
|
23
|
+
request
|
|
24
|
+
)
|
|
19
25
|
}
|
|
20
|
-
async getInternalOrganisation(
|
|
26
|
+
async getInternalOrganisation(code?: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse> {
|
|
21
27
|
return await this.connection.get<model.InternalOrganisationConfig>(
|
|
22
|
-
`${this.folder}/organisation_internal/${
|
|
28
|
+
`${this.folder}/organisation_internal/${code ? `/${code}` : ""}`
|
|
23
29
|
)
|
|
24
30
|
}
|
|
25
31
|
async updateInternalOrganisation(
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
request: model.InternalOrganisationConfig,
|
|
33
|
+
code?: string
|
|
28
34
|
): Promise<model.InternalOrganisationConfig | model.ErrorResponse> {
|
|
29
35
|
return await this.connection.post<model.InternalOrganisationConfig>(
|
|
30
|
-
`${this.folder}/organisation_internal/${
|
|
36
|
+
`${this.folder}/organisation_internal/${code ? `/${code}` : ""}`,
|
|
31
37
|
request
|
|
32
38
|
)
|
|
33
39
|
}
|
|
34
|
-
async getUser(): Promise<model.UserConfig | model.ErrorResponse> {
|
|
35
|
-
return await this.connection.get<model.UserConfig>(`${this.folder}/user`)
|
|
40
|
+
async getUser(username?: string): Promise<model.UserConfig | model.ErrorResponse> {
|
|
41
|
+
return await this.connection.get<model.UserConfig>(`${this.folder}/user${username ? `/${username}` : ""}`)
|
|
36
42
|
}
|
|
37
|
-
async updateUser(request: model.UserConfig): Promise<model.UserConfig | model.ErrorResponse> {
|
|
38
|
-
return await this.connection.post<model.UserConfig>(`${this.folder}/user`, request)
|
|
43
|
+
async updateUser(request: model.UserConfig, username?: string): Promise<model.UserConfig | model.ErrorResponse> {
|
|
44
|
+
return await this.connection.post<model.UserConfig>(`${this.folder}/user${username ? `/${username}` : ""}`, request)
|
|
39
45
|
}
|
|
40
46
|
async getPortalFeatures(): Promise<model.PaxpayFeature[] | model.ErrorResponse> {
|
|
41
47
|
return await this.connection.get<model.PaxpayFeature[]>(`${this.folder}/portal`)
|
|
@@ -43,58 +49,4 @@ export class Configuration {
|
|
|
43
49
|
async getConfigValueFromKey(category: string, key: string): Promise<any | model.ErrorResponse> {
|
|
44
50
|
return await this.connection.get<any>(`${this.folder}/key/${category}/${key}`)
|
|
45
51
|
}
|
|
46
|
-
|
|
47
|
-
async setupCredentials(
|
|
48
|
-
organisationCode: string,
|
|
49
|
-
providerCode: ProviderCode,
|
|
50
|
-
request: model.CredentialRequest
|
|
51
|
-
): Promise<model.CredentialResponse | model.ErrorResponse> {
|
|
52
|
-
const header = { "x-assume": organisationCode }
|
|
53
|
-
return await this.connection.post<model.CredentialResponse>(
|
|
54
|
-
`credentials/${providerCode}/setup`,
|
|
55
|
-
request,
|
|
56
|
-
undefined,
|
|
57
|
-
header
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
async getAllCredentials(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse> {
|
|
61
|
-
const header = { "x-assume": organisationCode }
|
|
62
|
-
const parameters = { totalCount: false }
|
|
63
|
-
const response = await this.connection.get<{ list: model.CredentialResponse[]; totalCount: number }>(
|
|
64
|
-
`credentials`,
|
|
65
|
-
parameters,
|
|
66
|
-
header
|
|
67
|
-
)
|
|
68
|
-
if (model.ErrorResponse.is(response))
|
|
69
|
-
return response
|
|
70
|
-
else
|
|
71
|
-
return response.list
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
async updateCredentials(
|
|
75
|
-
organisationCode: string,
|
|
76
|
-
providerCode: ProviderCode,
|
|
77
|
-
request: model.CredentialRequest
|
|
78
|
-
): Promise<model.CredentialResponse | model.ErrorResponse> {
|
|
79
|
-
const header = { "x-assume": organisationCode }
|
|
80
|
-
return await this.connection.put<model.CredentialResponse>(
|
|
81
|
-
`credentials/${providerCode}`,
|
|
82
|
-
request,
|
|
83
|
-
undefined,
|
|
84
|
-
header
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
async saveCredentials(
|
|
88
|
-
organisationCode: string,
|
|
89
|
-
providerCode: ProviderCode,
|
|
90
|
-
request: model.CredentialRequest
|
|
91
|
-
): Promise<model.CredentialResponse | model.ErrorResponse> {
|
|
92
|
-
const header = { "x-assume": organisationCode }
|
|
93
|
-
return await this.connection.post<model.CredentialResponse>(
|
|
94
|
-
`credentials/${providerCode}`,
|
|
95
|
-
request,
|
|
96
|
-
undefined,
|
|
97
|
-
header
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
52
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as model from "../../model"
|
|
2
|
+
import { ProviderCode } from "../../model/ProviderCode"
|
|
3
|
+
import { Connection } from "../Connection"
|
|
4
|
+
export class Credentials {
|
|
5
|
+
protected readonly folder = "credentials"
|
|
6
|
+
constructor(private readonly connection: Connection) {}
|
|
7
|
+
static create(connection: Connection) {
|
|
8
|
+
return new Credentials(connection)
|
|
9
|
+
}
|
|
10
|
+
async setup(
|
|
11
|
+
organisationCode: string,
|
|
12
|
+
providerCode: ProviderCode,
|
|
13
|
+
request: model.CredentialRequest
|
|
14
|
+
): Promise<model.CredentialResponse | model.ErrorResponse> {
|
|
15
|
+
const header = { "x-assume": organisationCode }
|
|
16
|
+
return await this.connection.post<model.CredentialResponse>(
|
|
17
|
+
`${this.folder}/${providerCode}/setup`,
|
|
18
|
+
request,
|
|
19
|
+
undefined,
|
|
20
|
+
header
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
async getAll(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse> {
|
|
24
|
+
const header = { "x-assume": organisationCode }
|
|
25
|
+
const parameters = { totalCount: false }
|
|
26
|
+
const response = await this.connection.get<{ list: model.CredentialResponse[]; totalCount: number }>(
|
|
27
|
+
`${this.folder}`,
|
|
28
|
+
parameters,
|
|
29
|
+
header
|
|
30
|
+
)
|
|
31
|
+
if (model.ErrorResponse.is(response))
|
|
32
|
+
return response
|
|
33
|
+
else
|
|
34
|
+
return response.list
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async update(
|
|
38
|
+
organisationCode: string,
|
|
39
|
+
providerCode: ProviderCode,
|
|
40
|
+
request: model.CredentialRequest
|
|
41
|
+
): Promise<model.CredentialResponse | model.ErrorResponse> {
|
|
42
|
+
const header = { "x-assume": organisationCode }
|
|
43
|
+
return await this.connection.put<model.CredentialResponse>(
|
|
44
|
+
`${this.folder}/${providerCode}`,
|
|
45
|
+
request,
|
|
46
|
+
undefined,
|
|
47
|
+
header
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
async save(
|
|
51
|
+
organisationCode: string,
|
|
52
|
+
providerCode: ProviderCode,
|
|
53
|
+
request: model.CredentialRequest
|
|
54
|
+
): Promise<model.CredentialResponse | model.ErrorResponse> {
|
|
55
|
+
const header = { "x-assume": organisationCode }
|
|
56
|
+
return await this.connection.post<model.CredentialResponse>(
|
|
57
|
+
`${this.folder}/${providerCode}`,
|
|
58
|
+
request,
|
|
59
|
+
undefined,
|
|
60
|
+
header
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
}
|
package/Client/Currency/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { CurrencyConversionResponse } from "../../model/CurrencyConversionRespon
|
|
|
5
5
|
import { Connection } from "../Connection"
|
|
6
6
|
|
|
7
7
|
export class Currency {
|
|
8
|
-
protected folder = "currency"
|
|
8
|
+
protected readonly folder = "currency"
|
|
9
9
|
#connection: Connection
|
|
10
10
|
protected get connection() {
|
|
11
11
|
return this.#connection
|
package/Client/Email/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as model from "../../model"
|
|
|
2
2
|
import { Connection } from "../Connection"
|
|
3
3
|
|
|
4
4
|
export class Email {
|
|
5
|
-
protected folder = "email"
|
|
5
|
+
protected readonly folder = "email"
|
|
6
6
|
constructor(private readonly connection: Connection) {}
|
|
7
7
|
static create(connection: Connection) {
|
|
8
8
|
return new Email(connection)
|
|
@@ -4,7 +4,7 @@ import { List } from "../List"
|
|
|
4
4
|
import { Paginated } from "../Paginated"
|
|
5
5
|
|
|
6
6
|
export class Merchants extends List<model.MerchantResponse> {
|
|
7
|
-
protected folder = "merchants"
|
|
7
|
+
protected readonly folder = "merchants"
|
|
8
8
|
constructor(connection: Connection) {
|
|
9
9
|
super(connection)
|
|
10
10
|
}
|
package/Client/Metadata/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { List } from "../List"
|
|
|
4
4
|
import { Paginated } from "../Paginated"
|
|
5
5
|
|
|
6
6
|
export class Metadata extends List<MetadataFormat.Response> {
|
|
7
|
-
protected folder = "metadata"
|
|
7
|
+
protected readonly folder = "metadata"
|
|
8
8
|
constructor(connection: Connection) {
|
|
9
9
|
super(connection)
|
|
10
10
|
}
|
|
@@ -3,7 +3,7 @@ import { Connection } from "../Connection"
|
|
|
3
3
|
import { List } from "../List"
|
|
4
4
|
|
|
5
5
|
export class Organisations extends List<model.OrganisationResponse> {
|
|
6
|
-
protected readonly folder = "organisations"
|
|
6
|
+
protected readonly folder = "organisations"
|
|
7
7
|
constructor(connection: Connection) {
|
|
8
8
|
super(connection)
|
|
9
9
|
}
|
package/Client/Rolesets/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as model from "../../model"
|
|
|
2
2
|
import { Connection } from "../Connection"
|
|
3
3
|
import { List } from "../List"
|
|
4
4
|
export class Rolesets extends List<model.RolesetResponse> {
|
|
5
|
-
protected folder = "rolesets"
|
|
5
|
+
protected readonly folder = "rolesets"
|
|
6
6
|
private constructor(connection: Connection) {
|
|
7
7
|
super(connection)
|
|
8
8
|
}
|
|
@@ -5,7 +5,7 @@ import { List } from "../List"
|
|
|
5
5
|
import { Paginated } from "../Paginated"
|
|
6
6
|
|
|
7
7
|
export class Transfers extends List<model.TransferResponse> {
|
|
8
|
-
protected folder = "transfers"
|
|
8
|
+
protected readonly folder = "transfers"
|
|
9
9
|
constructor(connection: Connection) {
|
|
10
10
|
super(connection)
|
|
11
11
|
}
|
package/Client/Users/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { List } from "../List"
|
|
|
4
4
|
import { Paginated } from "../Paginated"
|
|
5
5
|
|
|
6
6
|
export class Users extends List<model.UserResponse> {
|
|
7
|
-
protected folder = "users"
|
|
7
|
+
protected readonly folder = "users"
|
|
8
8
|
private constructor(connection: Connection) {
|
|
9
9
|
super(connection)
|
|
10
10
|
}
|
package/Client/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Cards as ClientCards } from "./Cards"
|
|
|
6
6
|
import { Categories as ClientCategories } from "./Categories"
|
|
7
7
|
import { Configuration as ClientConfiguration } from "./Configuration"
|
|
8
8
|
import { Connection } from "./Connection"
|
|
9
|
+
import { Credentials as ClientCredentials } from "./Credentials"
|
|
9
10
|
import { Currency as ClientCurrency } from "./Currency"
|
|
10
11
|
import { Email as ClientEmail } from "./Email"
|
|
11
12
|
import { List as ClientList } from "./List"
|
|
@@ -32,6 +33,7 @@ export class Client {
|
|
|
32
33
|
cards = ClientCards.create(this.connection)
|
|
33
34
|
categories = ClientCategories.create(this.connection)
|
|
34
35
|
configuration = ClientConfiguration.create(this.connection)
|
|
36
|
+
credentials = ClientCredentials.create(this.connection)
|
|
35
37
|
currency = ClientCurrency.create(this.connection)
|
|
36
38
|
email = ClientEmail.create(this.connection)
|
|
37
39
|
merchants = ClientMerchants.create(this.connection)
|
|
@@ -66,6 +68,7 @@ export namespace Client {
|
|
|
66
68
|
export type Cards = ClientCards
|
|
67
69
|
export type Categories = ClientCategories
|
|
68
70
|
export type Configuration = ClientConfiguration
|
|
71
|
+
export type Credentials = ClientCredentials
|
|
69
72
|
export type Currency = ClientCurrency
|
|
70
73
|
export type Email = ClientEmail
|
|
71
74
|
export type Merchants = ClientMerchants
|
|
@@ -2,7 +2,7 @@ import * as model from "../../model";
|
|
|
2
2
|
import { Connection } from "../Connection";
|
|
3
3
|
import { List } from "../List";
|
|
4
4
|
export declare class Accounts extends List<model.AccountResponse> {
|
|
5
|
-
protected folder
|
|
5
|
+
protected readonly folder = "funding-accounts";
|
|
6
6
|
private constructor();
|
|
7
7
|
static create(connection: Connection): Accounts;
|
|
8
8
|
addFundingAccount(request: model.AccountCreationRequest): Promise<model.ErrorResponse | model.FundingAccountResponseV2Full | (model.ErrorResponse & {
|
|
@@ -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;
|
|
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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C;CACD"}
|
|
@@ -2,7 +2,7 @@ import * as model from "../../model";
|
|
|
2
2
|
import { Connection } from "../Connection";
|
|
3
3
|
import { List } from "../List";
|
|
4
4
|
export declare class ApiKeys extends List<model.ApiKeyResponse> {
|
|
5
|
-
protected folder
|
|
5
|
+
protected readonly folder = "api-keys";
|
|
6
6
|
private constructor();
|
|
7
7
|
static create(connection: Connection): ApiKeys;
|
|
8
8
|
create(request: model.ApiKeyCreateRequest): Promise<model.ApiKeyCreateResponse | (model.ErrorResponse & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Api-keys/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,MAAM,OAAO,OAAQ,SAAQ,IAA0B;IAEtD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Api-keys/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,MAAM,OAAO,OAAQ,SAAQ,IAA0B;IAEtD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,UAAU,CAAA;IAGtC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAA;IAC/B,CAAC;IACD,KAAK,CAAC,MAAM,CACX,OAAkC;QAElC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAoD,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QAClH,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,SAAS,CACd,UAAkB;QAElB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACvC,GAAG,IAAI,CAAC,MAAM,IAAI,UAAU,EAAE,CAC9B,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,aAAa;QAGlB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAgD,IAAI,CAAC,MAAM,EAAE;YACpG,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,aAAa;SACnB,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,YAAY,CACjB,UAAkB;QAElB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAC1C,GAAG,IAAI,CAAC,MAAM,IAAI,UAAU,EAAE,CAC9B,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;CACD"}
|
|
@@ -2,7 +2,7 @@ import * as model from "../../model";
|
|
|
2
2
|
import { Connection } from "../Connection";
|
|
3
3
|
import { List } from "../List";
|
|
4
4
|
export declare class Beneficiaries extends List<model.BeneficiaryResponse> {
|
|
5
|
-
protected folder
|
|
5
|
+
protected readonly folder = "beneficiaries";
|
|
6
6
|
constructor(connection: Connection);
|
|
7
7
|
static create(connection: Connection): Beneficiaries;
|
|
8
8
|
getAll(sort?: string): Promise<model.ErrorResponse | model.BeneficiaryResponse[]>;
|
|
@@ -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;
|
|
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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4B,GAAG,IAAI,CAAC,MAAM,IAAI,aAAa,EAAE,EAAE,OAAO,CAAC,CAAA;IACxG,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"}
|
|
@@ -47,6 +47,7 @@ export declare class Cards extends List<model.CardResponseV2 | model.CardRespons
|
|
|
47
47
|
status: 400 | 404 | 500 | 403 | 503;
|
|
48
48
|
})>;
|
|
49
49
|
getCardTypesV2(providerCode: model.ProviderCode): Promise<model.ErrorResponse | model.CardTypeResponse[]>;
|
|
50
|
+
getAllCardTypesV2(providerCode: model.ProviderCode): Promise<model.ErrorResponse | model.CardTypeResponse[]>;
|
|
50
51
|
createCardTypeProfileV2(cardTypeProfileRequest: model.CreateCardTypeProfileRequest, organisationCode?: string): Promise<model.CardTypeProfileResponse | (model.ErrorResponse & {
|
|
51
52
|
status: 400 | 404 | 500 | 403 | 503;
|
|
52
53
|
})>;
|
|
@@ -67,6 +67,10 @@ export class Cards extends List {
|
|
|
67
67
|
const response = await this.connection.get(`v2/${this.folder}/types/${providerCode}`);
|
|
68
68
|
return this.extractResponse(response);
|
|
69
69
|
}
|
|
70
|
+
async getAllCardTypesV2(providerCode) {
|
|
71
|
+
const response = await this.connection.get(`v2/${this.folder}/types/${providerCode}/all`);
|
|
72
|
+
return this.extractResponse(response);
|
|
73
|
+
}
|
|
70
74
|
async createCardTypeProfileV2(cardTypeProfileRequest, organisationCode) {
|
|
71
75
|
const header = organisationCode ? { "x-assume": organisationCode } : undefined;
|
|
72
76
|
const response = await this.connection.post(`v2/${this.folder}/types/profiles`, cardTypeProfileRequest, undefined, header);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Cards/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,E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OAAO,IAAI,CAAC,eAAe,CAAwB,QAAQ,CAAC,CAAA;IAC7D,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,cAAsB,EAAE,YAAgC,EAAE,OAA8B;QAC1G,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAC/B,MAAM,IAAI,CAAC,MAAM,YAAY,YAAY,IAAI,cAAc,WAAW,EACtE;YACC,QAAQ,EAAE,OAAO;SACjB,CACD,CAAA;IACF,CAAC;IACD,KAAK,CAAC,mBAAmB,CAAC,cAAsB,EAAE,YAAgC,EAAE,OAA+B;QAClH,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAC/B,MAAM,IAAI,CAAC,MAAM,YAAY,YAAY,IAAI,cAAc,QAAQ,EACnE,OAAO,CACP,CAAA;IACF,CAAC;IAED,KAAK,CAAC,kCAAkC,CAAC,WAA+B,QAAQ;QAC/E,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAyB,MAAM,IAAI,CAAC,MAAM,sBAAsB,QAAQ,EAAE,CAAC,CAAA;IAC5G,CAAC;CACD"}
|
|
@@ -2,7 +2,7 @@ import * as model from "../../model";
|
|
|
2
2
|
import { Connection } from "../Connection";
|
|
3
3
|
import { List } from "../List";
|
|
4
4
|
export declare class Categories extends List<model.CategoryResponse> {
|
|
5
|
-
protected folder
|
|
5
|
+
protected readonly folder = "category";
|
|
6
6
|
private constructor();
|
|
7
7
|
static create(connection: Connection): Categories;
|
|
8
8
|
getAllCategories(): Promise<model.ErrorResponse | model.CategoryResponse[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Categories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,MAAM,OAAO,UAAW,SAAQ,IAA4B;IAE3D,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Categories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,MAAM,OAAO,UAAW,SAAQ,IAA4B;IAE3D,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,UAAU,CAAA;IAGtC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAA;IAClC,CAAC;IACD,KAAK,CAAC,gBAAgB;QACrB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAmD,IAAI,CAAC,MAAM,EAAE;YACvG,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,MAAM;SACZ,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;IACpC,CAAC;IACD,KAAK,CAAC,kBAAkB,CACvB,QAAgB,EAChB,OAAoC;QAEpC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAyB,GAAG,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAA;IAChG,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,QAAgB;QACjC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAyB,GAAG,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC,CAAA;IACvF,CAAC;CACD"}
|
|
@@ -4,20 +4,16 @@ import { ProviderCode } from "../../model/ProviderCode";
|
|
|
4
4
|
import { Connection } from "../Connection";
|
|
5
5
|
export declare class Configuration {
|
|
6
6
|
private readonly connection;
|
|
7
|
-
protected folder
|
|
7
|
+
protected readonly folder = "config";
|
|
8
8
|
constructor(connection: Connection);
|
|
9
9
|
static create(connection: Connection): Configuration;
|
|
10
10
|
getAvailableCurrency(providerCode?: ProviderCode): Promise<Currency[] | model.ErrorResponse>;
|
|
11
|
-
getOrganisation(): Promise<model.OrganisationConfig | model.ErrorResponse>;
|
|
12
|
-
updateOrganisation(request: model.OrganisationConfig): Promise<model.OrganisationConfig | model.ErrorResponse>;
|
|
13
|
-
getInternalOrganisation(
|
|
14
|
-
updateInternalOrganisation(
|
|
15
|
-
getUser(): Promise<model.UserConfig | model.ErrorResponse>;
|
|
16
|
-
updateUser(request: model.UserConfig): Promise<model.UserConfig | model.ErrorResponse>;
|
|
11
|
+
getOrganisation(code?: string): Promise<model.OrganisationConfig | model.ErrorResponse>;
|
|
12
|
+
updateOrganisation(request: model.OrganisationConfig, code?: string): Promise<model.OrganisationConfig | model.ErrorResponse>;
|
|
13
|
+
getInternalOrganisation(code?: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse>;
|
|
14
|
+
updateInternalOrganisation(request: model.InternalOrganisationConfig, code?: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse>;
|
|
15
|
+
getUser(username?: string): Promise<model.UserConfig | model.ErrorResponse>;
|
|
16
|
+
updateUser(request: model.UserConfig, username?: string): Promise<model.UserConfig | model.ErrorResponse>;
|
|
17
17
|
getPortalFeatures(): Promise<model.PaxpayFeature[] | model.ErrorResponse>;
|
|
18
18
|
getConfigValueFromKey(category: string, key: string): Promise<any | model.ErrorResponse>;
|
|
19
|
-
setupCredentials(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
|
|
20
|
-
getAllCredentials(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse>;
|
|
21
|
-
updateCredentials(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
|
|
22
|
-
saveCredentials(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
|
|
23
19
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as model from "../../model";
|
|
2
1
|
export class Configuration {
|
|
3
2
|
constructor(connection) {
|
|
4
3
|
this.connection = connection;
|
|
@@ -10,23 +9,23 @@ export class Configuration {
|
|
|
10
9
|
async getAvailableCurrency(providerCode = "modulr") {
|
|
11
10
|
return await this.connection.get(`${this.folder}/currencies`, { provider: providerCode });
|
|
12
11
|
}
|
|
13
|
-
async getOrganisation() {
|
|
14
|
-
return await this.connection.get(`${this.folder}/organisation`);
|
|
12
|
+
async getOrganisation(code) {
|
|
13
|
+
return await this.connection.get(`${this.folder}/organisation${code ? `/${code}` : ""}`);
|
|
15
14
|
}
|
|
16
|
-
async updateOrganisation(request) {
|
|
17
|
-
return await this.connection.post(`${this.folder}/organisation`, request);
|
|
15
|
+
async updateOrganisation(request, code) {
|
|
16
|
+
return await this.connection.post(`${this.folder}/organisation${code ? `/${code}` : ""}`, request);
|
|
18
17
|
}
|
|
19
|
-
async getInternalOrganisation(
|
|
20
|
-
return await this.connection.get(`${this.folder}/organisation_internal/${
|
|
18
|
+
async getInternalOrganisation(code) {
|
|
19
|
+
return await this.connection.get(`${this.folder}/organisation_internal/${code ? `/${code}` : ""}`);
|
|
21
20
|
}
|
|
22
|
-
async updateInternalOrganisation(
|
|
23
|
-
return await this.connection.post(`${this.folder}/organisation_internal/${
|
|
21
|
+
async updateInternalOrganisation(request, code) {
|
|
22
|
+
return await this.connection.post(`${this.folder}/organisation_internal/${code ? `/${code}` : ""}`, request);
|
|
24
23
|
}
|
|
25
|
-
async getUser() {
|
|
26
|
-
return await this.connection.get(`${this.folder}/user`);
|
|
24
|
+
async getUser(username) {
|
|
25
|
+
return await this.connection.get(`${this.folder}/user${username ? `/${username}` : ""}`);
|
|
27
26
|
}
|
|
28
|
-
async updateUser(request) {
|
|
29
|
-
return await this.connection.post(`${this.folder}/user`, request);
|
|
27
|
+
async updateUser(request, username) {
|
|
28
|
+
return await this.connection.post(`${this.folder}/user${username ? `/${username}` : ""}`, request);
|
|
30
29
|
}
|
|
31
30
|
async getPortalFeatures() {
|
|
32
31
|
return await this.connection.get(`${this.folder}/portal`);
|
|
@@ -34,26 +33,5 @@ export class Configuration {
|
|
|
34
33
|
async getConfigValueFromKey(category, key) {
|
|
35
34
|
return await this.connection.get(`${this.folder}/key/${category}/${key}`);
|
|
36
35
|
}
|
|
37
|
-
async setupCredentials(organisationCode, providerCode, request) {
|
|
38
|
-
const header = { "x-assume": organisationCode };
|
|
39
|
-
return await this.connection.post(`credentials/${providerCode}/setup`, request, undefined, header);
|
|
40
|
-
}
|
|
41
|
-
async getAllCredentials(organisationCode) {
|
|
42
|
-
const header = { "x-assume": organisationCode };
|
|
43
|
-
const parameters = { totalCount: false };
|
|
44
|
-
const response = await this.connection.get(`credentials`, parameters, header);
|
|
45
|
-
if (model.ErrorResponse.is(response))
|
|
46
|
-
return response;
|
|
47
|
-
else
|
|
48
|
-
return response.list;
|
|
49
|
-
}
|
|
50
|
-
async updateCredentials(organisationCode, providerCode, request) {
|
|
51
|
-
const header = { "x-assume": organisationCode };
|
|
52
|
-
return await this.connection.put(`credentials/${providerCode}`, request, undefined, header);
|
|
53
|
-
}
|
|
54
|
-
async saveCredentials(organisationCode, providerCode, request) {
|
|
55
|
-
const header = { "x-assume": organisationCode };
|
|
56
|
-
return await this.connection.post(`credentials/${providerCode}`, request, undefined, header);
|
|
57
|
-
}
|
|
58
36
|
}
|
|
59
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Configuration/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Configuration/index.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,aAAa;IAEzB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QADhC,WAAM,GAAG,QAAQ,CAAA;IACkB,CAAC;IACvD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,aAAa,CAAC,UAAU,CAAC,CAAA;IACrC,CAAC;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AAM,QAAQ,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC3G,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,OAAyB,EAAE,QAAiB;QAC5D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAmB,GAAG,IAAI,CAAC,MAAM,QAAQ,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;IACrH,CAAC;IACD,KAAK,CAAC,iBAAiB;QACtB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwB,GAAG,IAAI,CAAC,MAAM,SAAS,CAAC,CAAA;IACjF,CAAC;IACD,KAAK,CAAC,qBAAqB,CAAC,QAAgB,EAAE,GAAW;QACxD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAM,GAAG,IAAI,CAAC,MAAM,QAAQ,QAAQ,IAAI,GAAG,EAAE,CAAC,CAAA;IAC/E,CAAC;CACD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as model from "../../model";
|
|
2
|
+
import { ProviderCode } from "../../model/ProviderCode";
|
|
3
|
+
import { Connection } from "../Connection";
|
|
4
|
+
export declare class Credentials {
|
|
5
|
+
private readonly connection;
|
|
6
|
+
protected readonly folder = "credentials";
|
|
7
|
+
constructor(connection: Connection);
|
|
8
|
+
static create(connection: Connection): Credentials;
|
|
9
|
+
setup(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
|
|
10
|
+
getAll(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse>;
|
|
11
|
+
update(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
|
|
12
|
+
save(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
|
|
13
|
+
}
|