@pax2pay/client 0.9.14 → 0.9.15
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/Configuration/index.ts +17 -14
- package/dist/Client/Configuration/index.d.ts +6 -6
- package/dist/Client/Configuration/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/{ApprovalNotificationConfig.d.ts → Config/ApprovalNotification.d.ts} +3 -3
- package/dist/model/Config/ApprovalNotification.js +10 -0
- package/dist/model/Config/ApprovalNotification.js.map +1 -0
- package/dist/model/Config/CardDeliveryEmail.d.ts +9 -0
- package/dist/model/Config/CardDeliveryEmail.js +11 -0
- package/dist/model/Config/CardDeliveryEmail.js.map +1 -0
- package/dist/model/{CardTypesConfig.d.ts → Config/CardTypes.d.ts} +4 -4
- package/dist/model/{CardTypesConfig.js → Config/CardTypes.js} +6 -6
- package/dist/model/Config/CardTypes.js.map +1 -0
- package/dist/model/Config/ForcedSettlementNotification.d.ts +8 -0
- package/dist/model/Config/ForcedSettlementNotification.js +10 -0
- package/dist/model/Config/ForcedSettlementNotification.js.map +1 -0
- package/dist/model/Config/FraudEmail.d.ts +8 -0
- package/dist/model/Config/FraudEmail.js +10 -0
- package/dist/model/Config/FraudEmail.js.map +1 -0
- package/dist/model/Config/FundingAccountInboundTransferNotification.d.ts +8 -0
- package/dist/model/Config/FundingAccountInboundTransferNotification.js +10 -0
- package/dist/model/Config/FundingAccountInboundTransferNotification.js.map +1 -0
- package/dist/model/Config/FundingLimit/Limit.js.map +1 -0
- package/dist/model/Config/FundingLimit/index.d.ts +11 -0
- package/dist/model/Config/FundingLimit/index.js +13 -0
- package/dist/model/Config/FundingLimit/index.js.map +1 -0
- package/dist/model/Config/InternalOrganisation.d.ts +14 -0
- package/dist/model/Config/InternalOrganisation.js +16 -0
- package/dist/model/Config/InternalOrganisation.js.map +1 -0
- package/dist/model/Config/Organisation.d.ts +35 -0
- package/dist/model/Config/Organisation.js +38 -0
- package/dist/model/Config/Organisation.js.map +1 -0
- package/dist/model/Config/Security.d.ts +8 -0
- package/dist/model/Config/Security.js +10 -0
- package/dist/model/Config/Security.js.map +1 -0
- package/dist/model/{SsoProviderType.d.ts → Config/SsoProvider/Type.d.ts} +2 -2
- package/dist/model/Config/SsoProvider/Type.js +8 -0
- package/dist/model/Config/SsoProvider/Type.js.map +1 -0
- package/dist/model/Config/SsoProvider/index.d.ts +13 -0
- package/dist/model/Config/SsoProvider/index.js +15 -0
- package/dist/model/Config/SsoProvider/index.js.map +1 -0
- package/dist/model/Config/User.d.ts +8 -0
- package/dist/model/Config/User.js +10 -0
- package/dist/model/Config/User.js.map +1 -0
- package/dist/model/Config/index.d.ts +26 -0
- package/dist/model/Config/index.js +28 -0
- package/dist/model/Config/index.js.map +1 -0
- package/dist/model/OmnisetupRequest.d.ts +3 -4
- package/dist/model/OmnisetupRequest.js +3 -4
- package/dist/model/OmnisetupRequest.js.map +1 -1
- package/dist/model/OmnisetupResponse.d.ts +3 -4
- package/dist/model/OrganisationResponseV2.d.ts +3 -4
- package/dist/model/OrganisationResponseV2.js +3 -4
- package/dist/model/OrganisationResponseV2.js.map +1 -1
- package/dist/model/index.d.ts +2 -19
- package/dist/model/index.js +2 -14
- package/dist/model/index.js.map +1 -1
- package/index.ts +2 -36
- package/model/{ApprovalNotificationConfig.ts → Config/ApprovalNotification.ts} +4 -3
- package/model/{CardDeliveryEmailConfig.ts → Config/CardDeliveryEmail.ts} +4 -3
- package/model/{CardTypesConfig.ts → Config/CardTypes.ts} +6 -7
- package/model/Config/ForcedSettlementNotification.ts +14 -0
- package/model/{FraudEmailConfig.ts → Config/FraudEmail.ts} +4 -3
- package/model/{FundingAccountInboundTransferNotificationConfig.ts → Config/FundingAccountInboundTransferNotification.ts} +4 -3
- package/model/Config/FundingLimit/index.ts +18 -0
- package/model/Config/InternalOrganisation.ts +23 -0
- package/model/Config/Organisation.ts +60 -0
- package/model/{SecurityConfig.ts → Config/Security.ts} +4 -3
- package/model/{SsoProviderType.ts → Config/SsoProvider/Type.ts} +3 -2
- package/model/{SsoProviderConfig.ts → Config/SsoProvider/index.ts} +7 -3
- package/model/Config/User.ts +12 -0
- package/model/Config/index.ts +28 -0
- package/model/OmnisetupRequest.ts +5 -6
- package/model/OmnisetupResponse.ts +3 -4
- package/model/OrganisationResponseV2.ts +5 -6
- package/model/index.ts +2 -36
- package/package.json +1 -1
- package/dist/model/AllowedMccConfig.d.ts +0 -8
- package/dist/model/AllowedMccConfig.js +0 -10
- package/dist/model/AllowedMccConfig.js.map +0 -1
- package/dist/model/ApprovalNotificationConfig.js +0 -10
- package/dist/model/ApprovalNotificationConfig.js.map +0 -1
- package/dist/model/CardDeliveryEmailConfig.d.ts +0 -9
- package/dist/model/CardDeliveryEmailConfig.js +0 -11
- package/dist/model/CardDeliveryEmailConfig.js.map +0 -1
- package/dist/model/CardTypesConfig.js.map +0 -1
- package/dist/model/ConfigMatchesRequest.d.ts +0 -3
- package/dist/model/ConfigMatchesRequest.js +0 -2
- package/dist/model/ConfigMatchesRequest.js.map +0 -1
- package/dist/model/ConfigMatchesResponse.d.ts +0 -4
- package/dist/model/ConfigMatchesResponse.js +0 -2
- package/dist/model/ConfigMatchesResponse.js.map +0 -1
- package/dist/model/ConfigTypesResponse.d.ts +0 -3
- package/dist/model/ConfigTypesResponse.js +0 -2
- package/dist/model/ConfigTypesResponse.js.map +0 -1
- package/dist/model/ForcedSettlementNotificationConfig.d.ts +0 -8
- package/dist/model/ForcedSettlementNotificationConfig.js +0 -10
- package/dist/model/ForcedSettlementNotificationConfig.js.map +0 -1
- package/dist/model/FraudEmailConfig.d.ts +0 -8
- package/dist/model/FraudEmailConfig.js +0 -10
- package/dist/model/FraudEmailConfig.js.map +0 -1
- package/dist/model/FundingAccountInboundTransferNotificationConfig.d.ts +0 -8
- package/dist/model/FundingAccountInboundTransferNotificationConfig.js +0 -10
- package/dist/model/FundingAccountInboundTransferNotificationConfig.js.map +0 -1
- package/dist/model/FundingLimitConfig.d.ts +0 -10
- package/dist/model/FundingLimitConfig.js +0 -12
- package/dist/model/FundingLimitConfig.js.map +0 -1
- package/dist/model/InternalOrganisationConfig.d.ts +0 -16
- package/dist/model/InternalOrganisationConfig.js +0 -18
- package/dist/model/InternalOrganisationConfig.js.map +0 -1
- package/dist/model/Limit.js.map +0 -1
- package/dist/model/OrganisationConfig.d.ts +0 -36
- package/dist/model/OrganisationConfig.js +0 -39
- package/dist/model/OrganisationConfig.js.map +0 -1
- package/dist/model/Payload.d.ts +0 -6
- package/dist/model/Payload.js +0 -2
- package/dist/model/Payload.js.map +0 -1
- package/dist/model/SecurityConfig.d.ts +0 -8
- package/dist/model/SecurityConfig.js +0 -10
- package/dist/model/SecurityConfig.js.map +0 -1
- package/dist/model/SsoProviderConfig.d.ts +0 -11
- package/dist/model/SsoProviderConfig.js +0 -13
- package/dist/model/SsoProviderConfig.js.map +0 -1
- package/dist/model/SsoProviderType.js +0 -8
- package/dist/model/SsoProviderType.js.map +0 -1
- package/dist/model/UserConfig.d.ts +0 -6
- package/dist/model/UserConfig.js +0 -2
- package/dist/model/UserConfig.js.map +0 -1
- package/model/AllowedMccConfig.ts +0 -14
- package/model/ConfigMatchesRequest.ts +0 -3
- package/model/ConfigMatchesResponse.ts +0 -4
- package/model/ConfigTypesResponse.ts +0 -3
- package/model/ForcedSettlementNotificationConfig.ts +0 -13
- package/model/FundingLimitConfig.ts +0 -15
- package/model/InternalOrganisationConfig.ts +0 -25
- package/model/OrganisationConfig.ts +0 -60
- package/model/Payload.ts +0 -10
- package/model/UserConfig.ts +0 -7
- /package/dist/model/{Limit.d.ts → Config/FundingLimit/Limit.d.ts} +0 -0
- /package/dist/model/{Limit.js → Config/FundingLimit/Limit.js} +0 -0
- /package/model/{Limit.ts → Config/FundingLimit/Limit.ts} +0 -0
package/index.ts
CHANGED
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
AccountType,
|
|
16
16
|
AddressInfo,
|
|
17
17
|
AgentBookingInfo,
|
|
18
|
-
AllowedMccConfig,
|
|
19
18
|
AmendCardRequest,
|
|
20
19
|
AmountPair,
|
|
21
20
|
ApiKeyCreateRequest,
|
|
@@ -36,7 +35,6 @@ import {
|
|
|
36
35
|
BookingInfoType,
|
|
37
36
|
CardAmendmentScheduledTaskRequest,
|
|
38
37
|
CardAmendmentScheduledTaskResponse,
|
|
39
|
-
CardDeliveryEmailConfig,
|
|
40
38
|
CardDeliveryRequest,
|
|
41
39
|
CardDeliveryResponse,
|
|
42
40
|
CardForm,
|
|
@@ -59,7 +57,6 @@ import {
|
|
|
59
57
|
CardTypeInformation,
|
|
60
58
|
CardTypeRequestAvailabilityType,
|
|
61
59
|
CardTypeResponse,
|
|
62
|
-
CardTypesConfig,
|
|
63
60
|
CardTypeSearchRequest,
|
|
64
61
|
CardTypeSpecification,
|
|
65
62
|
CardTypesResponse,
|
|
@@ -68,9 +65,7 @@ import {
|
|
|
68
65
|
CategoryLimitResponse,
|
|
69
66
|
CategoryResponse,
|
|
70
67
|
CategoryStatus,
|
|
71
|
-
|
|
72
|
-
ConfigMatchesResponse,
|
|
73
|
-
ConfigTypesResponse,
|
|
68
|
+
Config,
|
|
74
69
|
ConfirmationOfPayeeAccountType,
|
|
75
70
|
ConfirmationOfPayeeRequest,
|
|
76
71
|
ConfirmationOfPayeeResponse,
|
|
@@ -110,17 +105,13 @@ import {
|
|
|
110
105
|
FlightBookingInfoRequest,
|
|
111
106
|
FlightBookingInfoResponse,
|
|
112
107
|
FlightInfo,
|
|
113
|
-
ForcedSettlementNotificationConfig,
|
|
114
|
-
FraudEmailConfig,
|
|
115
108
|
FundingAccountIdentifierType,
|
|
116
|
-
FundingAccountInboundTransferNotificationConfig,
|
|
117
109
|
FundingAccountResponseV2Basic,
|
|
118
110
|
FundingAccountResponseV2Full,
|
|
119
111
|
FundingAccountSearchRequest,
|
|
120
112
|
FundingAccountSearchResponse,
|
|
121
113
|
FundingAccountSummaryResponse,
|
|
122
114
|
FundingAccountTransferDestinationResponse,
|
|
123
|
-
FundingLimitConfig,
|
|
124
115
|
FundingLimitRequest,
|
|
125
116
|
FundingLimitResponse,
|
|
126
117
|
FutureTransactionPrognosisAmountPair,
|
|
@@ -131,12 +122,10 @@ import {
|
|
|
131
122
|
InsertCardOptionRequest,
|
|
132
123
|
InsertCardRequest,
|
|
133
124
|
InternalBalanceLimit,
|
|
134
|
-
InternalOrganisationConfig,
|
|
135
125
|
InvoiceBookingInfoRequest,
|
|
136
126
|
InvoiceBookingInfoResponse,
|
|
137
127
|
InvokingSystem,
|
|
138
128
|
Issue,
|
|
139
|
-
Limit,
|
|
140
129
|
LoginRequest,
|
|
141
130
|
LoginResponse,
|
|
142
131
|
MerchantDetails,
|
|
@@ -154,7 +143,6 @@ import {
|
|
|
154
143
|
OmnisetupProviderRequest,
|
|
155
144
|
OmnisetupRequest,
|
|
156
145
|
OmnisetupResponse,
|
|
157
|
-
OrganisationConfig,
|
|
158
146
|
OrganisationCreateRequest,
|
|
159
147
|
OrganisationFlag,
|
|
160
148
|
OrganisationRealm,
|
|
@@ -170,7 +158,6 @@ import {
|
|
|
170
158
|
PasswordValidateRequest,
|
|
171
159
|
PasswordValidateResponse,
|
|
172
160
|
PaxpayFeature,
|
|
173
|
-
Payload,
|
|
174
161
|
PaymentAccountState,
|
|
175
162
|
PaymentAmountScheduleRequest,
|
|
176
163
|
PaymentAmountScheduleResponse,
|
|
@@ -214,13 +201,10 @@ import {
|
|
|
214
201
|
ScheduleEntry,
|
|
215
202
|
SearchBeneficiaryRequest,
|
|
216
203
|
SearchRolesetsRequest,
|
|
217
|
-
SecurityConfig,
|
|
218
204
|
Segment,
|
|
219
205
|
SetAvailableCardTypesRequest,
|
|
220
206
|
SftpReportFileDestination,
|
|
221
207
|
SsoLoginRequest,
|
|
222
|
-
SsoProviderConfig,
|
|
223
|
-
SsoProviderType,
|
|
224
208
|
StatementReportRequest,
|
|
225
209
|
StatementReportResponse,
|
|
226
210
|
StatementReportResponseRow,
|
|
@@ -263,7 +247,6 @@ import {
|
|
|
263
247
|
UpdateRolesetRequest,
|
|
264
248
|
Usage,
|
|
265
249
|
UserChangeRequest,
|
|
266
|
-
UserConfig,
|
|
267
250
|
UserLimitsDeleteRequest,
|
|
268
251
|
UserLimitsRequest,
|
|
269
252
|
UserLimitsResponse,
|
|
@@ -292,7 +275,6 @@ export {
|
|
|
292
275
|
AccountType,
|
|
293
276
|
AddressInfo,
|
|
294
277
|
AgentBookingInfo,
|
|
295
|
-
AllowedMccConfig,
|
|
296
278
|
AmendCardRequest,
|
|
297
279
|
AmountPair,
|
|
298
280
|
ApiKeyCreateRequest,
|
|
@@ -311,7 +293,6 @@ export {
|
|
|
311
293
|
BookingInfoRequest,
|
|
312
294
|
BookingInfoResponse,
|
|
313
295
|
BookingInfoType,
|
|
314
|
-
CardDeliveryEmailConfig,
|
|
315
296
|
CardAmendmentScheduledTaskRequest,
|
|
316
297
|
CardAmendmentScheduledTaskResponse,
|
|
317
298
|
CardDeliveryRequest,
|
|
@@ -336,7 +317,6 @@ export {
|
|
|
336
317
|
CardTypeInformation,
|
|
337
318
|
CardTypesResponse,
|
|
338
319
|
CardTypeResponse,
|
|
339
|
-
CardTypesConfig,
|
|
340
320
|
CardTypeSearchRequest,
|
|
341
321
|
CardTypeSpecification,
|
|
342
322
|
CardTypeFlag,
|
|
@@ -346,9 +326,7 @@ export {
|
|
|
346
326
|
CategoryResponse,
|
|
347
327
|
CategoryStatus,
|
|
348
328
|
Client,
|
|
349
|
-
|
|
350
|
-
ConfigMatchesResponse,
|
|
351
|
-
ConfigTypesResponse,
|
|
329
|
+
Config,
|
|
352
330
|
ConfirmationOfPayeeAccountType,
|
|
353
331
|
ConfirmationOfPayeeRequest,
|
|
354
332
|
ConfirmationOfPayeeResponse,
|
|
@@ -388,17 +366,13 @@ export {
|
|
|
388
366
|
FlightBookingInfoRequest,
|
|
389
367
|
FlightBookingInfoResponse,
|
|
390
368
|
FlightInfo,
|
|
391
|
-
ForcedSettlementNotificationConfig,
|
|
392
|
-
FraudEmailConfig,
|
|
393
369
|
FundingAccountIdentifierType,
|
|
394
|
-
FundingAccountInboundTransferNotificationConfig,
|
|
395
370
|
FundingAccountResponseV2Basic,
|
|
396
371
|
FundingAccountResponseV2Full,
|
|
397
372
|
FundingAccountSearchRequest,
|
|
398
373
|
FundingAccountSearchResponse,
|
|
399
374
|
FundingAccountSummaryResponse,
|
|
400
375
|
FundingAccountTransferDestinationResponse,
|
|
401
|
-
FundingLimitConfig,
|
|
402
376
|
FundingLimitRequest,
|
|
403
377
|
FundingLimitResponse,
|
|
404
378
|
FutureTransactionPrognosisAmountPair,
|
|
@@ -409,12 +383,10 @@ export {
|
|
|
409
383
|
InsertCardOptionRequest,
|
|
410
384
|
InsertCardRequest,
|
|
411
385
|
InternalBalanceLimit,
|
|
412
|
-
InternalOrganisationConfig,
|
|
413
386
|
InvoiceBookingInfoRequest,
|
|
414
387
|
InvoiceBookingInfoResponse,
|
|
415
388
|
InvokingSystem,
|
|
416
389
|
Issue,
|
|
417
|
-
Limit,
|
|
418
390
|
LoginRequest,
|
|
419
391
|
LoginResponse,
|
|
420
392
|
MerchantDetails,
|
|
@@ -433,7 +405,6 @@ export {
|
|
|
433
405
|
OmnisetupProviderRequest,
|
|
434
406
|
OmnisetupRequest,
|
|
435
407
|
OmnisetupResponse,
|
|
436
|
-
OrganisationConfig,
|
|
437
408
|
OrganisationCreateRequest,
|
|
438
409
|
OrganisationFlag,
|
|
439
410
|
OrganisationRealm,
|
|
@@ -449,7 +420,6 @@ export {
|
|
|
449
420
|
PasswordValidateRequest,
|
|
450
421
|
PasswordValidateResponse,
|
|
451
422
|
PaxpayFeature,
|
|
452
|
-
Payload,
|
|
453
423
|
PaymentAccountState,
|
|
454
424
|
PaymentAmountScheduleRequest,
|
|
455
425
|
PaymentAmountScheduleResponse,
|
|
@@ -496,9 +466,6 @@ export {
|
|
|
496
466
|
SftpReportFileDestination,
|
|
497
467
|
Segment,
|
|
498
468
|
SsoLoginRequest,
|
|
499
|
-
SsoProviderConfig,
|
|
500
|
-
SsoProviderType,
|
|
501
|
-
SecurityConfig,
|
|
502
469
|
SearchBeneficiaryRequest,
|
|
503
470
|
StatementReportRequest,
|
|
504
471
|
StatementReportResponse,
|
|
@@ -541,7 +508,6 @@ export {
|
|
|
541
508
|
UpdateRolesetRequest,
|
|
542
509
|
Usage,
|
|
543
510
|
UserChangeRequest,
|
|
544
|
-
UserConfig,
|
|
545
511
|
UserLimitsDeleteRequest,
|
|
546
512
|
UserLimitsRequest,
|
|
547
513
|
UserLimitsResponse,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// ApprovalNotificationConfig
|
|
4
|
+
export interface ApprovalNotification {
|
|
4
5
|
enabled: boolean
|
|
5
6
|
sendToAllValidApprovers?: boolean
|
|
6
7
|
additionalEmails?: string[]
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export namespace
|
|
10
|
-
export const type = isly.object<
|
|
10
|
+
export namespace ApprovalNotification {
|
|
11
|
+
export const type = isly.object<ApprovalNotification>({
|
|
11
12
|
enabled: isly.boolean(),
|
|
12
13
|
sendToAllValidApprovers: isly.boolean().optional(),
|
|
13
14
|
additionalEmails: isly.string().array().optional(),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// CardDeliveryEmailConfig
|
|
4
|
+
export interface CardDeliveryEmail {
|
|
4
5
|
contactEmail?: string
|
|
5
6
|
useContactEmailAsReplyTo?: boolean
|
|
6
7
|
contactPhoneNumber?: string
|
|
7
8
|
}
|
|
8
|
-
export namespace
|
|
9
|
-
export const type = isly.object<
|
|
9
|
+
export namespace CardDeliveryEmail {
|
|
10
|
+
export const type = isly.object<CardDeliveryEmail>({
|
|
10
11
|
contactEmail: isly.string().optional(),
|
|
11
12
|
useContactEmailAsReplyTo: isly.boolean().optional(),
|
|
12
13
|
contactPhoneNumber: isly.string().optional(),
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
|
-
import { ProviderCode } from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface CardTypesConfig {
|
|
2
|
+
import { ProviderCode } from "../ProviderCode"
|
|
3
|
+
|
|
4
|
+
// CardTypesConfig
|
|
5
|
+
export interface CardTypes {
|
|
7
6
|
useLegacyCardTypesInResponse?: boolean
|
|
8
7
|
hideCardTypes?: any
|
|
9
8
|
onlyShowCardTypes?: any
|
|
10
9
|
aliases?: Partial<Record<ProviderCode, Record<string, string>>>
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
export namespace
|
|
14
|
-
export const type = isly.object<
|
|
12
|
+
export namespace CardTypes {
|
|
13
|
+
export const type = isly.object<CardTypes>({
|
|
15
14
|
useLegacyCardTypesInResponse: isly.boolean().optional(),
|
|
16
15
|
hideCardTypes: isly.any().optional(),
|
|
17
16
|
onlyShowCardTypes: isly.any().optional(),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
// ForcedSettlementNotificationConfig
|
|
4
|
+
export interface ForcedSettlementNotification {
|
|
5
|
+
enabled: boolean
|
|
6
|
+
usernames?: string[]
|
|
7
|
+
}
|
|
8
|
+
export namespace ForcedSettlementNotification {
|
|
9
|
+
export const type = isly.object<ForcedSettlementNotification>({
|
|
10
|
+
enabled: isly.boolean(),
|
|
11
|
+
usernames: isly.string().array().optional(),
|
|
12
|
+
})
|
|
13
|
+
export const is = type.is
|
|
14
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// FraudEmailConfig
|
|
4
|
+
export interface FraudEmail {
|
|
4
5
|
enabled: boolean
|
|
5
6
|
emails?: string[]
|
|
6
7
|
}
|
|
7
|
-
export namespace
|
|
8
|
-
export const type = isly.object<
|
|
8
|
+
export namespace FraudEmail {
|
|
9
|
+
export const type = isly.object<FraudEmail>({
|
|
9
10
|
enabled: isly.boolean(),
|
|
10
11
|
emails: isly.string().array().optional(),
|
|
11
12
|
})
|
|
@@ -3,12 +3,13 @@ import { isly } from "isly"
|
|
|
3
3
|
/**
|
|
4
4
|
* Config related to notifications for deposits made into funding accounts
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
// FundingAccountInboundTransferNotificationConfig
|
|
7
|
+
export interface FundingAccountInboundTransferNotification {
|
|
7
8
|
enabled?: boolean
|
|
8
9
|
emails?: string[]
|
|
9
10
|
}
|
|
10
|
-
export namespace
|
|
11
|
-
export const type = isly.object<
|
|
11
|
+
export namespace FundingAccountInboundTransferNotification {
|
|
12
|
+
export const type = isly.object<FundingAccountInboundTransferNotification>({
|
|
12
13
|
enabled: isly.boolean().optional(),
|
|
13
14
|
emails: isly.string().array().optional(),
|
|
14
15
|
})
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { ProviderCode } from "../../ProviderCode"
|
|
3
|
+
import { Limit as FLimit } from "./Limit"
|
|
4
|
+
|
|
5
|
+
// FundingLimitConfig
|
|
6
|
+
export interface FundingLimit {
|
|
7
|
+
type: "ON_THRESHOLD" | "TIMED_ONLY" | "ON_THRESHOLD_AND_TIMED"
|
|
8
|
+
limits?: Partial<Record<ProviderCode, Record<string, FLimit>>>
|
|
9
|
+
}
|
|
10
|
+
export namespace FundingLimit {
|
|
11
|
+
export const type = isly.object<FundingLimit>({
|
|
12
|
+
type: isly.string(["ON_THRESHOLD", "TIMED_ONLY", "ON_THRESHOLD_AND_TIMED"]),
|
|
13
|
+
limits: isly.record(ProviderCode.type, isly.record(isly.string(), FLimit.type)).optional(),
|
|
14
|
+
})
|
|
15
|
+
export const is = type.is
|
|
16
|
+
|
|
17
|
+
export import Limit = FLimit
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { OrganisationFlag } from "../OrganisationFlag"
|
|
3
|
+
import { PaxpayFeature } from "../PaxpayFeature"
|
|
4
|
+
import { TierID } from "../TierID"
|
|
5
|
+
import { FundingLimit } from "./FundingLimit"
|
|
6
|
+
|
|
7
|
+
// InternalOrganisationConfig
|
|
8
|
+
export interface InternalOrganisation {
|
|
9
|
+
flags?: OrganisationFlag[]
|
|
10
|
+
features?: PaxpayFeature[]
|
|
11
|
+
fundingLimitConfig?: FundingLimit
|
|
12
|
+
tier?: TierID
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export namespace InternalOrganisation {
|
|
16
|
+
export const type = isly.object<InternalOrganisation>({
|
|
17
|
+
flags: OrganisationFlag.type.array().optional(),
|
|
18
|
+
features: PaxpayFeature.type.array().optional(),
|
|
19
|
+
fundingLimitConfig: FundingLimit.type.optional(),
|
|
20
|
+
tier: TierID.type.optional(),
|
|
21
|
+
})
|
|
22
|
+
export const is = type.is
|
|
23
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Currency } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
3
|
+
import { ProviderCode } from "../ProviderCode"
|
|
4
|
+
import { Usage } from "../Usage"
|
|
5
|
+
import { ApprovalNotification } from "./ApprovalNotification"
|
|
6
|
+
import { CardDeliveryEmail } from "./CardDeliveryEmail"
|
|
7
|
+
import { CardTypes } from "./CardTypes"
|
|
8
|
+
import { ForcedSettlementNotification } from "./ForcedSettlementNotification"
|
|
9
|
+
import { FraudEmail } from "./FraudEmail"
|
|
10
|
+
import { FundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification"
|
|
11
|
+
import { FundingLimit } from "./FundingLimit"
|
|
12
|
+
import { Security } from "./Security"
|
|
13
|
+
import { SsoProvider } from "./SsoProvider"
|
|
14
|
+
/**
|
|
15
|
+
* Organisation config, optional
|
|
16
|
+
*/
|
|
17
|
+
// OrganisationConfig
|
|
18
|
+
export interface Organisation {
|
|
19
|
+
showDefaultRolesets?: boolean
|
|
20
|
+
defaultModulrUsage?: Usage
|
|
21
|
+
defaultExpiryMonthDelta?: number
|
|
22
|
+
defaultExpiryMonthDeltaPerCurrency?: Partial<Record<Currency, number>>
|
|
23
|
+
defaultPortalCardType?: Partial<Record<ProviderCode, string>>
|
|
24
|
+
defaultPortalFundingAccount?: Partial<Record<ProviderCode, string>>
|
|
25
|
+
cardTypes?: CardTypes
|
|
26
|
+
inboundTransferConfig?: FundingAccountInboundTransferNotification
|
|
27
|
+
approvalNotificationConfig?: ApprovalNotification
|
|
28
|
+
fundingLimitConfig?: FundingLimit
|
|
29
|
+
cardDeliveryEmailConfig?: CardDeliveryEmail
|
|
30
|
+
portalHideMultipleUseOption?: boolean
|
|
31
|
+
securityConfig?: Security
|
|
32
|
+
fraudEmailConfig?: FraudEmail
|
|
33
|
+
sso?: Partial<Record<SsoProvider.Type, SsoProvider>>
|
|
34
|
+
forcedSettlementNotificationConfig?: ForcedSettlementNotification
|
|
35
|
+
portalMetadataFormatOrdering?: string[]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace Organisation {
|
|
39
|
+
const currencyType = isly.fromIs<Currency>("Currency", Currency.is)
|
|
40
|
+
export const type = isly.object<Organisation>({
|
|
41
|
+
showDefaultRolesets: isly.boolean().optional(),
|
|
42
|
+
defaultModulrUsage: Usage.type.optional(),
|
|
43
|
+
defaultExpiryMonthDelta: isly.number().optional(),
|
|
44
|
+
defaultExpiryMonthDeltaPerCurrency: isly.record(currencyType, isly.number()).optional(),
|
|
45
|
+
defaultPortalCardType: isly.record(ProviderCode.type, isly.string()).optional(),
|
|
46
|
+
defaultPortalFundingAccount: isly.record(ProviderCode.type, isly.string()).optional(),
|
|
47
|
+
cardTypes: CardTypes.type.optional(),
|
|
48
|
+
inboundTransferConfig: FundingAccountInboundTransferNotification.type.optional(),
|
|
49
|
+
approvalNotificationConfig: ApprovalNotification.type.optional(),
|
|
50
|
+
fundingLimitConfig: FundingLimit.type.optional(),
|
|
51
|
+
cardDeliveryEmailConfig: CardDeliveryEmail.type.optional(),
|
|
52
|
+
portalHideMultipleUseOption: isly.boolean().optional(),
|
|
53
|
+
securityConfig: Security.type.optional(),
|
|
54
|
+
fraudEmailConfig: FraudEmail.type.optional(),
|
|
55
|
+
sso: isly.record(SsoProvider.Type.type, SsoProvider.type).optional(),
|
|
56
|
+
forcedSettlementNotificationConfig: ForcedSettlementNotification.type.optional(),
|
|
57
|
+
portalMetadataFormatOrdering: isly.string().array().optional(),
|
|
58
|
+
})
|
|
59
|
+
export const is = type.is
|
|
60
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// OrganisationSecurityConfig
|
|
4
|
+
export interface Security {
|
|
4
5
|
enforce2fa?: boolean
|
|
5
6
|
passwordExpirationDays?: number
|
|
6
7
|
}
|
|
7
|
-
export namespace
|
|
8
|
-
export const type = isly.object<
|
|
8
|
+
export namespace Security {
|
|
9
|
+
export const type = isly.object<Security>({
|
|
9
10
|
enforce2fa: isly.boolean().optional(),
|
|
10
11
|
passwordExpirationDays: isly.number().optional(),
|
|
11
12
|
})
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// SsoProviderType
|
|
4
|
+
export type Type = typeof Type.values[number]
|
|
4
5
|
|
|
5
|
-
export namespace
|
|
6
|
+
export namespace Type {
|
|
6
7
|
export const values = ["GOOGLE"] as const
|
|
7
8
|
export const type = isly.string(values)
|
|
8
9
|
export const is = type.is
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
|
+
import { Type as SsoProviderType } from "./Type"
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
// SsoProviderConfig
|
|
5
|
+
export interface SsoProvider {
|
|
4
6
|
enabled?: boolean
|
|
5
7
|
domains?: string[]
|
|
6
8
|
allowPasswordLogin?: boolean
|
|
7
9
|
allowEmailEditing?: boolean
|
|
8
10
|
require2fa?: boolean
|
|
9
11
|
}
|
|
10
|
-
export namespace
|
|
11
|
-
export const type = isly.object<
|
|
12
|
+
export namespace SsoProvider {
|
|
13
|
+
export const type = isly.object<SsoProvider>({
|
|
12
14
|
enabled: isly.boolean().optional(),
|
|
13
15
|
domains: isly.string().array().optional(),
|
|
14
16
|
allowPasswordLogin: isly.boolean().optional(),
|
|
@@ -16,4 +18,6 @@ export namespace SsoProviderConfig {
|
|
|
16
18
|
require2fa: isly.boolean().optional(),
|
|
17
19
|
})
|
|
18
20
|
export const is = type.is
|
|
21
|
+
|
|
22
|
+
export import Type = SsoProviderType
|
|
19
23
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { CardTypes } from "./CardTypes"
|
|
3
|
+
|
|
4
|
+
export interface User {
|
|
5
|
+
cardTypes?: CardTypes
|
|
6
|
+
}
|
|
7
|
+
export namespace User {
|
|
8
|
+
export const type = isly.object<User>({
|
|
9
|
+
cardTypes: CardTypes.type.optional(),
|
|
10
|
+
})
|
|
11
|
+
export const is = type.is
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ApprovalNotification as TApprovalNotification } from "./ApprovalNotification"
|
|
2
|
+
import { CardDeliveryEmail as TCardDeliveryEmail } from "./CardDeliveryEmail"
|
|
3
|
+
import { CardTypes as CCardTypes } from "./CardTypes"
|
|
4
|
+
import { ForcedSettlementNotification as CForcedSettlementNotification } from "./ForcedSettlementNotification"
|
|
5
|
+
import { FraudEmail as CFraudEmail } from "./FraudEmail"
|
|
6
|
+
import { FundingAccountInboundTransferNotification as CFundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification"
|
|
7
|
+
import { FundingLimit as TFundingLimit } from "./FundingLimit"
|
|
8
|
+
import { InternalOrganisation as CInternalOrganisation } from "./InternalOrganisation"
|
|
9
|
+
import { Organisation as COrganisation } from "./Organisation"
|
|
10
|
+
import { Security as CSecurity } from "./Security"
|
|
11
|
+
import { SsoProvider as CSsoProvider } from "./SsoProvider"
|
|
12
|
+
import { User as CUser } from "./User"
|
|
13
|
+
|
|
14
|
+
export namespace Config {
|
|
15
|
+
export import Organisation = COrganisation
|
|
16
|
+
export import InternalOrganisation = CInternalOrganisation
|
|
17
|
+
export import User = CUser
|
|
18
|
+
|
|
19
|
+
export import ApprovalNotification = TApprovalNotification
|
|
20
|
+
export import CardDeliveryEmail = TCardDeliveryEmail
|
|
21
|
+
export import CardTypes = CCardTypes
|
|
22
|
+
export import ForcedSettlementNotification = CForcedSettlementNotification
|
|
23
|
+
export import FraudEmail = CFraudEmail
|
|
24
|
+
export import FundingAccountInboundTransferNotification = CFundingAccountInboundTransferNotification
|
|
25
|
+
export import FundingLimit = TFundingLimit
|
|
26
|
+
export import SsoProvider = CSsoProvider
|
|
27
|
+
export import Security = CSecurity
|
|
28
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Config } from "./Config"
|
|
2
2
|
import { OmnisetupFlags } from "./OmnisetupFlags"
|
|
3
3
|
import { OmnisetupProviderRequest } from "./OmnisetupProviderRequest"
|
|
4
|
-
import { OrganisationConfig } from "./OrganisationConfig"
|
|
5
4
|
import { OrganisationCreateRequest } from "./OrganisationCreateRequest"
|
|
6
5
|
import { UserRequest } from "./UserRequest"
|
|
7
6
|
|
|
@@ -10,8 +9,8 @@ export interface OmnisetupRequest {
|
|
|
10
9
|
organisation: OrganisationCreateRequest
|
|
11
10
|
users: UserRequest[]
|
|
12
11
|
providers: OmnisetupProviderRequest[]
|
|
13
|
-
organisationConfig?:
|
|
14
|
-
internalOrganisationConfig?:
|
|
12
|
+
organisationConfig?: Config.Organisation
|
|
13
|
+
internalOrganisationConfig?: Config.InternalOrganisation
|
|
15
14
|
sharedRolesets?: string[]
|
|
16
15
|
}
|
|
17
16
|
|
|
@@ -25,9 +24,9 @@ export namespace OmnisetupRequest {
|
|
|
25
24
|
value.users.every((user: any) => UserRequest.is(user)) &&
|
|
26
25
|
Array.isArray(value.providers) &&
|
|
27
26
|
value.providers.every((item: any) => OmnisetupProviderRequest.is(item)) &&
|
|
28
|
-
(value.organisationConfig == undefined ||
|
|
27
|
+
(value.organisationConfig == undefined || Config.Organisation.is(value.organisationConfig)) &&
|
|
29
28
|
(value.internalOrganisationConfig == undefined ||
|
|
30
|
-
|
|
29
|
+
Config.InternalOrganisation.is(value.internalOrganisationConfig)) &&
|
|
31
30
|
(value.sharedRolesets == undefined ||
|
|
32
31
|
(Array.isArray(value.sharedRolesets) && value.sharedRolesets.every((item: any) => typeof item == "string")))
|
|
33
32
|
)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AccountResponse } from "./AccountResponse"
|
|
2
2
|
import { CardTypeResponse } from "./CardTypeResponse"
|
|
3
|
+
import { Config } from "./Config"
|
|
3
4
|
import { CredentialResponse } from "./CredentialResponse"
|
|
4
5
|
import { InsertCardOptionRequest } from "./InsertCardOptionRequest"
|
|
5
|
-
import { InternalOrganisationConfig } from "./InternalOrganisationConfig"
|
|
6
|
-
import { OrganisationConfig } from "./OrganisationConfig"
|
|
7
6
|
import { OrganisationResponse } from "./OrganisationResponse"
|
|
8
7
|
import { SupplierResponse } from "./SupplierResponse"
|
|
9
8
|
import { UserResponse } from "./UserResponse"
|
|
@@ -11,8 +10,8 @@ import { UserResponse } from "./UserResponse"
|
|
|
11
10
|
export interface OmnisetupResponse {
|
|
12
11
|
messages: string[]
|
|
13
12
|
organisation: OrganisationResponse
|
|
14
|
-
organisationConfig?:
|
|
15
|
-
internalOrganisationConfig?:
|
|
13
|
+
organisationConfig?: Config.Organisation
|
|
14
|
+
internalOrganisationConfig?: Config.InternalOrganisation
|
|
16
15
|
users: UserResponse
|
|
17
16
|
suppliers: SupplierResponse[]
|
|
18
17
|
credentials: CredentialResponse[]
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { DateTime } from "isoly"
|
|
2
2
|
import { isly } from "isly"
|
|
3
3
|
import { CardTypeInformation } from "./CardTypeInformation"
|
|
4
|
-
import {
|
|
5
|
-
import { OrganisationConfig } from "./OrganisationConfig"
|
|
4
|
+
import { Config } from "./Config"
|
|
6
5
|
import { OrganisationFlag } from "./OrganisationFlag"
|
|
7
6
|
import { OrganisationRealm } from "./OrganisationRealm"
|
|
8
7
|
import { OrganisationStatusV2 } from "./OrganisationStatusV2"
|
|
@@ -14,8 +13,8 @@ export interface OrganisationResponseV2 {
|
|
|
14
13
|
status: OrganisationStatusV2
|
|
15
14
|
realm?: OrganisationRealm | OrganisationRealm[]
|
|
16
15
|
credentials?: Partial<Record<ProviderCode, Record<string, any>>>
|
|
17
|
-
organisationConfig?:
|
|
18
|
-
internalOrganisationConfig?:
|
|
16
|
+
organisationConfig?: Config.Organisation
|
|
17
|
+
internalOrganisationConfig?: Config.InternalOrganisation
|
|
19
18
|
cardTypes?: Partial<Record<ProviderCode, CardTypeInformation>>
|
|
20
19
|
createdOn: DateTime
|
|
21
20
|
channelPartners?: OrganisationFlag[]
|
|
@@ -28,8 +27,8 @@ export namespace OrganisationResponseV2 {
|
|
|
28
27
|
status: OrganisationStatusV2.type,
|
|
29
28
|
realm: isly.union(OrganisationRealm.type, isly.array(OrganisationRealm.type)).optional(),
|
|
30
29
|
credentials: isly.record(ProviderCode.type, isly.any()).optional(),
|
|
31
|
-
organisationConfig: isly.fromIs("
|
|
32
|
-
internalOrganisationConfig: isly.fromIs("
|
|
30
|
+
organisationConfig: isly.fromIs("Config.Organisation", Config.Organisation.is).optional(),
|
|
31
|
+
internalOrganisationConfig: isly.fromIs("Config.InternalOrganisation", Config.InternalOrganisation.is).optional(),
|
|
33
32
|
cardTypes: isly.record(ProviderCode.type, isly.fromIs("CardTypeInformation", CardTypeInformation.is)).optional(),
|
|
34
33
|
createdOn: isly.fromIs("DateTime", DateTime.is),
|
|
35
34
|
channelPartners: isly.array(OrganisationFlag.type).optional(),
|