@pax2pay/client 0.0.89 → 0.0.93
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/Reports/index.ts +3 -3
- package/dist/Client/Reports/index.d.ts +1 -1
- package/dist/Client/Reports/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/AccountBankResponse.d.ts +9 -0
- package/dist/model/AccountBankResponse.js +12 -0
- package/dist/model/AccountBankResponse.js.map +1 -0
- package/dist/model/AccountIdentifierResponse.d.ts +11 -0
- package/dist/model/AccountIdentifierResponse.js +14 -0
- package/dist/model/AccountIdentifierResponse.js.map +1 -0
- package/dist/model/AccountResponse.d.ts +9 -3
- package/dist/model/AccountResponse.js +26 -1
- package/dist/model/AccountResponse.js.map +1 -1
- package/dist/model/AccountState.d.ts +6 -0
- package/dist/model/AccountState.js +19 -0
- package/dist/model/AccountState.js.map +1 -0
- package/dist/model/AccountSummary.d.ts +29 -0
- package/dist/model/AccountSummary.js +32 -0
- package/dist/model/AccountSummary.js.map +1 -0
- package/dist/model/AccountType.d.ts +6 -0
- package/dist/model/AccountType.js +9 -0
- package/dist/model/AccountType.js.map +1 -0
- package/dist/model/AmountPair.d.ts +5 -0
- package/dist/model/AmountPair.js +2 -0
- package/dist/model/AmountPair.js.map +1 -0
- package/dist/model/BillingTransactionAmountPair.d.ts +6 -0
- package/dist/model/BillingTransactionAmountPair.js +2 -0
- package/dist/model/BillingTransactionAmountPair.js.map +1 -0
- package/dist/model/BookingInfoResponse.d.ts +2 -1
- package/dist/model/FundingAccountIdentifierType.d.ts +6 -0
- package/dist/model/FundingAccountIdentifierType.js +9 -0
- package/dist/model/FundingAccountIdentifierType.js.map +1 -0
- package/dist/model/FundingLimitResponse.d.ts +3 -0
- package/dist/model/FundingLimitResponse.js +12 -1
- package/dist/model/FundingLimitResponse.js.map +1 -1
- package/dist/model/{AccountStatementRequest.d.ts → StatementReportRequest.d.ts} +1 -1
- package/dist/model/StatementReportRequest.js +2 -0
- package/dist/model/StatementReportRequest.js.map +1 -0
- package/dist/model/StatementReportResponse.d.ts +8 -0
- package/dist/model/StatementReportResponse.js +2 -0
- package/dist/model/StatementReportResponse.js.map +1 -0
- package/dist/model/StatementReportResponseRow.d.ts +21 -0
- package/dist/model/StatementReportResponseRow.js +2 -0
- package/dist/model/StatementReportResponseRow.js.map +1 -0
- package/dist/model/StatementReportRowActionType.d.ts +6 -0
- package/dist/model/StatementReportRowActionType.js +18 -0
- package/dist/model/StatementReportRowActionType.js.map +1 -0
- package/dist/model/StatementReportRowType.d.ts +1 -0
- package/dist/model/StatementReportRowType.js +2 -0
- package/dist/model/StatementReportRowType.js.map +1 -0
- package/dist/model/StatementRowIds.d.ts +7 -0
- package/dist/model/StatementRowIds.js +2 -0
- package/dist/model/StatementRowIds.js.map +1 -0
- package/dist/model/SummaryBookingInfoResponse.d.ts +7 -0
- package/dist/model/SummaryBookingInfoResponse.js +2 -0
- package/dist/model/SummaryBookingInfoResponse.js.map +1 -0
- package/dist/model/index.d.ts +16 -5
- package/dist/model/index.js +10 -2
- package/dist/model/index.js.map +1 -1
- package/index.ts +30 -8
- package/model/AccountBankResponse.ts +18 -0
- package/model/AccountIdentifierResponse.ts +22 -0
- package/model/AccountResponse.ts +27 -3
- package/model/AccountState.ts +19 -0
- package/model/AccountSummary.ts +51 -0
- package/model/AccountType.ts +9 -0
- package/model/AmountPair.ts +6 -0
- package/model/BillingTransactionAmountPair.ts +7 -0
- package/model/BookingInfoResponse.ts +2 -0
- package/model/FundingAccountIdentifierType.ts +9 -0
- package/model/FundingLimitResponse.ts +13 -0
- package/model/{AccountStatementRequest.ts → StatementReportRequest.ts} +1 -1
- package/model/StatementReportResponse.ts +9 -0
- package/model/StatementReportResponseRow.ts +22 -0
- package/model/StatementReportRowActionType.ts +17 -0
- package/model/StatementReportRowType.ts +1 -0
- package/model/StatementRowIds.ts +8 -0
- package/model/SummaryBookingInfoResponse.ts +7 -0
- package/model/index.ts +30 -8
- package/package.json +1 -1
- package/dist/model/AccountStatementRequest.js +0 -2
- package/dist/model/AccountStatementRequest.js.map +0 -1
- package/dist/model/AccountStatementResponse.d.ts +0 -8
- package/dist/model/AccountStatementResponse.js +0 -2
- package/dist/model/AccountStatementResponse.js.map +0 -1
- package/dist/model/AccountStatementResponseItem.d.ts +0 -29
- package/dist/model/AccountStatementResponseItem.js +0 -2
- package/dist/model/AccountStatementResponseItem.js.map +0 -1
- package/dist/model/AccountStatementTransactionType.d.ts +0 -6
- package/dist/model/AccountStatementTransactionType.js +0 -18
- package/dist/model/AccountStatementTransactionType.js.map +0 -1
- package/model/AccountStatementResponse.ts +0 -9
- package/model/AccountStatementResponseItem.ts +0 -34
- package/model/AccountStatementTransactionType.ts +0 -19
package/dist/model/index.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { AccountBankResponse } from "./AccountBankResponse";
|
|
1
2
|
import { AccountCreationRequest } from "./AccountCreationRequest";
|
|
3
|
+
import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
|
|
2
4
|
import { AccountResponse } from "./AccountResponse";
|
|
3
5
|
import { AccountSearchRequest } from "./AccountSearchRequest";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { AccountStatementTransactionType } from "./AccountStatementTransactionType";
|
|
6
|
+
import { AccountState } from "./AccountState";
|
|
7
|
+
import { AccountSummary } from "./AccountSummary";
|
|
8
|
+
import { AccountType } from "./AccountType";
|
|
8
9
|
import { AddressInfo } from "./AddressInfo";
|
|
9
10
|
import { AgentBookingInfo } from "./AgentBookingInfo";
|
|
10
11
|
import { AmendCardRequest } from "./AmendCardRequest";
|
|
12
|
+
import { AmountPair } from "./AmountPair";
|
|
11
13
|
import { BeneficiaryRequest } from "./BeneficiaryRequest";
|
|
12
14
|
import { BeneficiaryResponse } from "./BeneficiaryResponse";
|
|
15
|
+
import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair";
|
|
13
16
|
import { BookedProductInfo } from "./BookedProductInfo";
|
|
14
17
|
import { BookingInfo } from "./BookingInfo";
|
|
15
18
|
import { BookingInfoRequest } from "./BookingInfoRequest";
|
|
@@ -53,6 +56,7 @@ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
|
|
|
53
56
|
import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest";
|
|
54
57
|
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse";
|
|
55
58
|
import { FlightInfo } from "./FlightInfo";
|
|
59
|
+
import { FundingAccountIdentifierType } from "./FundingAccountIdentifierType";
|
|
56
60
|
import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig";
|
|
57
61
|
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
58
62
|
import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest";
|
|
@@ -95,6 +99,13 @@ import { Room } from "./Room";
|
|
|
95
99
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest";
|
|
96
100
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest";
|
|
97
101
|
import { Sorting } from "./Sorting";
|
|
102
|
+
import { StatementReportRequest } from "./StatementReportRequest";
|
|
103
|
+
import { StatementReportResponse } from "./StatementReportResponse";
|
|
104
|
+
import { StatementReportResponseRow } from "./StatementReportResponseRow";
|
|
105
|
+
import { StatementReportRowActionType } from "./StatementReportRowActionType";
|
|
106
|
+
import { StatementReportRowType } from "./StatementReportRowType";
|
|
107
|
+
import { StatementRowIds } from "./StatementRowIds";
|
|
108
|
+
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse";
|
|
98
109
|
import { SupplierBookingInfo } from "./SupplierBookingInfo";
|
|
99
110
|
import { TransactionResponse } from "./TransactionResponse";
|
|
100
111
|
import { TransactionType } from "./TransactionType";
|
|
@@ -118,4 +129,4 @@ import { UserResponse } from "./UserResponse";
|
|
|
118
129
|
import { UserRoleResponse } from "./UserRoleResponse";
|
|
119
130
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
120
131
|
import { YearMonth } from "./YearMonth";
|
|
121
|
-
export { AccountCreationRequest, AccountResponse, AccountSearchRequest,
|
|
132
|
+
export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
package/dist/model/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccountBankResponse } from "./AccountBankResponse";
|
|
2
|
+
import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
|
|
3
|
+
import { AccountResponse } from "./AccountResponse";
|
|
4
|
+
import { AccountState } from "./AccountState";
|
|
5
|
+
import { AccountSummary } from "./AccountSummary";
|
|
6
|
+
import { AccountType } from "./AccountType";
|
|
2
7
|
import { BookingInfoType } from "./BookingInfoType";
|
|
3
8
|
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
|
|
4
9
|
import { CardDeliveryRequest } from "./CardDeliveryRequest";
|
|
@@ -14,7 +19,9 @@ import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
|
14
19
|
import { CardTypeSpecificationFlag } from "./CardTypeSpecificationFlag";
|
|
15
20
|
import { ErrorMessageDto } from "./ErrorMessageDto";
|
|
16
21
|
import { ErrorResponse } from "./ErrorResponse";
|
|
22
|
+
import { FundingAccountIdentifierType } from "./FundingAccountIdentifierType";
|
|
17
23
|
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
24
|
+
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
18
25
|
import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest";
|
|
19
26
|
import { HotelInfo } from "./HotelInfo";
|
|
20
27
|
import { Issue } from "./Issue";
|
|
@@ -25,7 +32,8 @@ import { Passengers } from "./Passengers";
|
|
|
25
32
|
import { ProviderCode } from "./ProviderCode";
|
|
26
33
|
import { ProviderResponse } from "./ProviderResponse";
|
|
27
34
|
import { References } from "./References";
|
|
35
|
+
import { StatementReportRowActionType } from "./StatementReportRowActionType";
|
|
28
36
|
import { UserResponse } from "./UserResponse";
|
|
29
37
|
import { YearMonth } from "./YearMonth";
|
|
30
|
-
export {
|
|
38
|
+
export { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelInfo, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, StatementReportRowActionType, UserResponse, YearMonth, };
|
|
31
39
|
//# sourceMappingURL=index.js.map
|
package/dist/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE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Response,
|
|
3
4
|
AccountCreationRequest,
|
|
5
|
+
AccountIdentifierResponse,
|
|
4
6
|
AccountResponse,
|
|
5
7
|
AccountSearchRequest,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
AccountStatementTransactionType,
|
|
8
|
+
AccountState,
|
|
9
|
+
AccountSummary,
|
|
10
|
+
AccountType,
|
|
10
11
|
AddressInfo,
|
|
11
12
|
AgentBookingInfo,
|
|
12
13
|
AmendCardRequest,
|
|
14
|
+
AmountPair,
|
|
13
15
|
BeneficiaryRequest,
|
|
14
16
|
BeneficiaryResponse,
|
|
17
|
+
BillingTransactionAmountPair,
|
|
15
18
|
BookedProductInfo,
|
|
16
19
|
BookingInfo,
|
|
17
20
|
BookingInfoRequest,
|
|
@@ -55,6 +58,7 @@ import {
|
|
|
55
58
|
FlightBookingInfoRequest,
|
|
56
59
|
FlightBookingInfoResponse,
|
|
57
60
|
FlightInfo,
|
|
61
|
+
FundingAccountIdentifierType,
|
|
58
62
|
FundingAccountInboundTransferNotificationConfig,
|
|
59
63
|
FundingAccountResponseV2,
|
|
60
64
|
FundingAccountSearchRequest,
|
|
@@ -97,6 +101,13 @@ import {
|
|
|
97
101
|
ScheduledTaskRequest,
|
|
98
102
|
SearchRolesetsRequest,
|
|
99
103
|
Sorting,
|
|
104
|
+
StatementReportRequest,
|
|
105
|
+
StatementReportResponse,
|
|
106
|
+
StatementReportResponseRow,
|
|
107
|
+
StatementReportRowActionType,
|
|
108
|
+
StatementReportRowType,
|
|
109
|
+
StatementRowIds,
|
|
110
|
+
SummaryBookingInfoResponse,
|
|
100
111
|
SupplierBookingInfo,
|
|
101
112
|
TransactionResponse,
|
|
102
113
|
TransactionType,
|
|
@@ -124,18 +135,21 @@ import {
|
|
|
124
135
|
|
|
125
136
|
export {
|
|
126
137
|
Client,
|
|
138
|
+
AccountBankResponse,
|
|
127
139
|
AccountCreationRequest,
|
|
140
|
+
AccountIdentifierResponse,
|
|
128
141
|
AccountResponse,
|
|
129
142
|
AccountSearchRequest,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
AccountStatementTransactionType,
|
|
143
|
+
AccountState,
|
|
144
|
+
AccountSummary,
|
|
145
|
+
AccountType,
|
|
134
146
|
AddressInfo,
|
|
135
147
|
AgentBookingInfo,
|
|
136
148
|
AmendCardRequest,
|
|
149
|
+
AmountPair,
|
|
137
150
|
BeneficiaryRequest,
|
|
138
151
|
BeneficiaryResponse,
|
|
152
|
+
BillingTransactionAmountPair,
|
|
139
153
|
BookedProductInfo,
|
|
140
154
|
BookingInfo,
|
|
141
155
|
BookingInfoRequest,
|
|
@@ -179,6 +193,7 @@ export {
|
|
|
179
193
|
FlightBookingInfoRequest,
|
|
180
194
|
FlightBookingInfoResponse,
|
|
181
195
|
FlightInfo,
|
|
196
|
+
FundingAccountIdentifierType,
|
|
182
197
|
FundingAccountInboundTransferNotificationConfig,
|
|
183
198
|
FundingAccountResponseV2,
|
|
184
199
|
FundingAccountSearchRequest,
|
|
@@ -221,6 +236,13 @@ export {
|
|
|
221
236
|
ScheduledTaskRequest,
|
|
222
237
|
SearchRolesetsRequest,
|
|
223
238
|
Sorting,
|
|
239
|
+
StatementReportRequest,
|
|
240
|
+
StatementReportResponse,
|
|
241
|
+
StatementReportResponseRow,
|
|
242
|
+
StatementReportRowActionType,
|
|
243
|
+
StatementReportRowType,
|
|
244
|
+
StatementRowIds,
|
|
245
|
+
SummaryBookingInfoResponse,
|
|
224
246
|
SupplierBookingInfo,
|
|
225
247
|
TransactionResponse,
|
|
226
248
|
TransactionType,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface AccountBankResponse {
|
|
2
|
+
bankEntity?: string
|
|
3
|
+
address?: string
|
|
4
|
+
city?: string
|
|
5
|
+
country?: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export namespace AccountBankResponse {
|
|
9
|
+
export function is(value: AccountBankResponse | any): value is AccountBankResponse {
|
|
10
|
+
return (
|
|
11
|
+
typeof value == "object" &&
|
|
12
|
+
(value.bankEntity == undefined || typeof value.bankEntity == "string") &&
|
|
13
|
+
(value.address == undefined || typeof value.address == "string") &&
|
|
14
|
+
(value.city == undefined || typeof value.city == "string") &&
|
|
15
|
+
(value.country == undefined || typeof value.country == "string")
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FundingAccountIdentifierType } from "./FundingAccountIdentifierType"
|
|
2
|
+
|
|
3
|
+
export interface AccountIdentifierResponse {
|
|
4
|
+
type?: FundingAccountIdentifierType
|
|
5
|
+
accountNumber?: string
|
|
6
|
+
bic?: string
|
|
7
|
+
iban?: string
|
|
8
|
+
sortCode?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace AccountIdentifierResponse {
|
|
12
|
+
export function is(value: AccountIdentifierResponse | any): value is AccountIdentifierResponse {
|
|
13
|
+
return (
|
|
14
|
+
typeof value == "object" &&
|
|
15
|
+
(value.type == undefined || FundingAccountIdentifierType.is(value.type)) &&
|
|
16
|
+
(value.accountNumber == undefined || typeof value.accountNumber == "string") &&
|
|
17
|
+
(value.bic == undefined || typeof value.bic == "string") &&
|
|
18
|
+
(value.iban == undefined || typeof value.iban == "string") &&
|
|
19
|
+
(value.sortCode == undefined || typeof value.sortCode == "string")
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
}
|
package/model/AccountResponse.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
2
|
+
import { AccountState } from "./AccountState"
|
|
3
|
+
import { AccountType } from "./AccountType"
|
|
1
4
|
import { FundingLimitResponse } from "./FundingLimitResponse"
|
|
2
5
|
import { OrganisationResponse } from "./OrganisationResponse"
|
|
3
6
|
import { ProviderResponse } from "./ProviderResponse"
|
|
@@ -9,13 +12,34 @@ export interface AccountResponse {
|
|
|
9
12
|
providerAccountId: string
|
|
10
13
|
provider: ProviderResponse
|
|
11
14
|
organisation: OrganisationResponse
|
|
12
|
-
currency:
|
|
13
|
-
state:
|
|
15
|
+
currency: isoly.Currency
|
|
16
|
+
state: AccountState
|
|
14
17
|
friendlyName: string
|
|
15
18
|
balance: number
|
|
16
19
|
actualBalance?: number
|
|
17
|
-
accountType:
|
|
20
|
+
accountType: AccountType
|
|
18
21
|
fundingLimit?: FundingLimitResponse
|
|
19
22
|
updatedOn: string
|
|
20
23
|
createdOn?: string
|
|
21
24
|
}
|
|
25
|
+
|
|
26
|
+
export namespace AccountResponse {
|
|
27
|
+
export function is(value: AccountResponse | any): value is AccountResponse {
|
|
28
|
+
return (
|
|
29
|
+
typeof value == "object" &&
|
|
30
|
+
typeof value.id == "number" &&
|
|
31
|
+
typeof value.providerAccountId == "string" &&
|
|
32
|
+
ProviderResponse.is(value.provider) &&
|
|
33
|
+
OrganisationResponse.is(value.organisation) &&
|
|
34
|
+
isoly.Currency.is(value.currency) &&
|
|
35
|
+
AccountState.is(value.state) &&
|
|
36
|
+
typeof value.friendlyName == "string" &&
|
|
37
|
+
typeof value.balance == "number" &&
|
|
38
|
+
(value.actualBalance == undefined || typeof value.actualBalance == "number") &&
|
|
39
|
+
AccountType.is(value.accountType) &&
|
|
40
|
+
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
41
|
+
typeof value.updatedOn == "string" &&
|
|
42
|
+
(value.createdOn == undefined || typeof value.createdOn == "string")
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const accountState = [
|
|
2
|
+
"ACTIVE",
|
|
3
|
+
"INACTIVE",
|
|
4
|
+
"CLOSED",
|
|
5
|
+
"DELETED",
|
|
6
|
+
"EXPIRED",
|
|
7
|
+
"PENDING",
|
|
8
|
+
"APPROVED",
|
|
9
|
+
"DECLINED",
|
|
10
|
+
"GENERATED",
|
|
11
|
+
] as const
|
|
12
|
+
|
|
13
|
+
export type AccountState = typeof accountState[number]
|
|
14
|
+
|
|
15
|
+
export namespace AccountState {
|
|
16
|
+
export function is(value: unknown): value is AccountState {
|
|
17
|
+
return typeof value == "string" && accountState.includes(value as AccountState)
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
2
|
+
import { AccountBankResponse } from "./AccountBankResponse"
|
|
3
|
+
import { AccountIdentifierResponse } from "./AccountIdentifierResponse"
|
|
4
|
+
import { AccountState } from "./AccountState"
|
|
5
|
+
import { AccountType } from "./AccountType"
|
|
6
|
+
import { FundingLimitResponse } from "./FundingLimitResponse"
|
|
7
|
+
import { OrganisationResponse } from "./OrganisationResponse"
|
|
8
|
+
import { ProviderCode } from "./ProviderCode"
|
|
9
|
+
|
|
10
|
+
export interface AccountSummary {
|
|
11
|
+
providerAccountId: string
|
|
12
|
+
providerCode: ProviderCode
|
|
13
|
+
accountType: AccountType
|
|
14
|
+
createdOn: isoly.DateTime
|
|
15
|
+
createdBy: string
|
|
16
|
+
state: AccountState
|
|
17
|
+
friendlyName: string
|
|
18
|
+
accountBankDetails?: AccountBankResponse
|
|
19
|
+
organisation: OrganisationResponse
|
|
20
|
+
currency: isoly.Currency
|
|
21
|
+
balance: number
|
|
22
|
+
pendingBalance: number
|
|
23
|
+
totalCardAvailableBalance: number
|
|
24
|
+
lastUpdatedCardBalanceOn?: isoly.DateTime
|
|
25
|
+
fundingLimit?: FundingLimitResponse
|
|
26
|
+
accountIdentifierResponse?: AccountIdentifierResponse
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace AccountSummary {
|
|
30
|
+
export function is(value: AccountSummary | any): value is AccountSummary {
|
|
31
|
+
return (
|
|
32
|
+
typeof value == "object" &&
|
|
33
|
+
typeof value.providerAccountId == "string" &&
|
|
34
|
+
ProviderCode.is(value.providerCode) &&
|
|
35
|
+
AccountType.is(value.accountType) &&
|
|
36
|
+
isoly.DateTime.is(value.createdOn) &&
|
|
37
|
+
typeof value.createdBy == "string" &&
|
|
38
|
+
AccountState.is(value.state) &&
|
|
39
|
+
typeof value.friendlyName == "string" &&
|
|
40
|
+
(value.accountBankDetails == undefined || AccountBankResponse.is(value.accountBankDetails)) &&
|
|
41
|
+
OrganisationResponse.is(value.organisation) &&
|
|
42
|
+
isoly.Currency.is(value.currency) &&
|
|
43
|
+
typeof value.balance == "number" &&
|
|
44
|
+
typeof value.pendingBalance == "number" &&
|
|
45
|
+
typeof value.totalCardAvailableBalance == "number" &&
|
|
46
|
+
(value.lastUpdatedCardBalanceOn == undefined || isoly.DateTime.is(value.lastUpdatedCardBalanceOn)) &&
|
|
47
|
+
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
48
|
+
(value.accountIdentifierResponse == undefined || AccountIdentifierResponse.is(value.accountIdentifierResponse))
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const accountType = ["FUNDING", "CARD"] as const
|
|
2
|
+
|
|
3
|
+
export type AccountType = typeof accountType[number]
|
|
4
|
+
|
|
5
|
+
export namespace AccountType {
|
|
6
|
+
export function is(value: unknown): value is AccountType {
|
|
7
|
+
return typeof value == "string" && accountType.includes(value as AccountType)
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -2,9 +2,11 @@ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
|
|
|
2
2
|
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse"
|
|
3
3
|
import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse"
|
|
4
4
|
import { InvoiceBookingInfoResponse } from "./InvoiceBookingInfoResponse"
|
|
5
|
+
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse"
|
|
5
6
|
|
|
6
7
|
export type BookingInfoResponse =
|
|
7
8
|
| FiveFieldsBookingInfoResponse
|
|
8
9
|
| HotelBookingInfoResponse
|
|
9
10
|
| InvoiceBookingInfoResponse
|
|
10
11
|
| FlightBookingInfoResponse
|
|
12
|
+
| SummaryBookingInfoResponse
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const fundingAccountIdentifierType = ["SCAN", "IBAN", "UNKNOWN"] as const
|
|
2
|
+
|
|
3
|
+
export type FundingAccountIdentifierType = typeof fundingAccountIdentifierType[number]
|
|
4
|
+
|
|
5
|
+
export namespace FundingAccountIdentifierType {
|
|
6
|
+
export function is(value: unknown): value is FundingAccountIdentifierType {
|
|
7
|
+
return typeof value == "string" && fundingAccountIdentifierType.includes(value as FundingAccountIdentifierType)
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -7,3 +7,16 @@ export interface FundingLimitResponse {
|
|
|
7
7
|
email?: string[]
|
|
8
8
|
limit?: number
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
export namespace FundingLimitResponse {
|
|
12
|
+
export function is(value: FundingLimitResponse | any): value is FundingLimitResponse {
|
|
13
|
+
return (
|
|
14
|
+
typeof value == "object" &&
|
|
15
|
+
(value.message == undefined || typeof value.message == "string") &&
|
|
16
|
+
(value.status == undefined || value.status == "SUCCESS" || value.status == "FAILURE") &&
|
|
17
|
+
(value.email == undefined ||
|
|
18
|
+
(Array.isArray(value.email) && value.email.every((item: any) => typeof item == "string"))) &&
|
|
19
|
+
(value.limit == undefined || typeof value.limit == "number")
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StatementReportResponseRow } from "./StatementReportResponseRow"
|
|
2
|
+
|
|
3
|
+
export interface StatementReportResponse {
|
|
4
|
+
openingAvailableBalance: number
|
|
5
|
+
closingAvailableBalance: number
|
|
6
|
+
openingActualBalance: number
|
|
7
|
+
closingActualBalance: number
|
|
8
|
+
statements: StatementReportResponseRow[]
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
2
|
+
import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair"
|
|
3
|
+
import { BookingInfoResponse } from "./BookingInfoResponse"
|
|
4
|
+
import { CardResponseV2 } from "./CardResponseV2"
|
|
5
|
+
import { StatementReportRowActionType } from "./StatementReportRowActionType"
|
|
6
|
+
import { StatementReportRowType } from "./StatementReportRowType"
|
|
7
|
+
import { StatementRowIds } from "./StatementRowIds"
|
|
8
|
+
import { TransferResponse } from "./TransferResponse"
|
|
9
|
+
|
|
10
|
+
export interface StatementReportResponseRow {
|
|
11
|
+
actionType: StatementReportRowActionType
|
|
12
|
+
amount: BillingTransactionAmountPair
|
|
13
|
+
bookingInfo: BookingInfoResponse
|
|
14
|
+
postedDate: isoly.DateTime
|
|
15
|
+
transactionDate: isoly.DateTime
|
|
16
|
+
actualBalance: number
|
|
17
|
+
availableBalance: number
|
|
18
|
+
rowType: StatementReportRowType
|
|
19
|
+
ids: StatementRowIds
|
|
20
|
+
card?: CardResponseV2
|
|
21
|
+
transfer?: TransferResponse
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const statementReportRowActionType = [
|
|
2
|
+
"AUTHORISATION",
|
|
3
|
+
"AUTHORISATION_DECLINED",
|
|
4
|
+
"SETTLEMENT",
|
|
5
|
+
"AUTHORISATION_AND_SETTLEMENT",
|
|
6
|
+
"REVERSAL",
|
|
7
|
+
"REFUND",
|
|
8
|
+
"TRANSFER_IN",
|
|
9
|
+
"TRANSFER_OUT",
|
|
10
|
+
] as const
|
|
11
|
+
export type StatementReportRowActionType = typeof statementReportRowActionType[number]
|
|
12
|
+
|
|
13
|
+
export namespace StatementReportRowActionType {
|
|
14
|
+
export function is(value: unknown): value is StatementReportRowActionType {
|
|
15
|
+
return typeof value == "string" && statementReportRowActionType.includes(value as StatementReportRowActionType)
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StatementReportRowType = "SUMMARY" | "FULL"
|
package/model/index.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { AccountBankResponse } from "./AccountBankResponse"
|
|
1
2
|
import { AccountCreationRequest } from "./AccountCreationRequest"
|
|
3
|
+
import { AccountIdentifierResponse } from "./AccountIdentifierResponse"
|
|
2
4
|
import { AccountResponse } from "./AccountResponse"
|
|
3
5
|
import { AccountSearchRequest } from "./AccountSearchRequest"
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { AccountStatementTransactionType } from "./AccountStatementTransactionType"
|
|
6
|
+
import { AccountState } from "./AccountState"
|
|
7
|
+
import { AccountSummary } from "./AccountSummary"
|
|
8
|
+
import { AccountType } from "./AccountType"
|
|
8
9
|
import { AddressInfo } from "./AddressInfo"
|
|
9
10
|
import { AgentBookingInfo } from "./AgentBookingInfo"
|
|
10
11
|
import { AmendCardRequest } from "./AmendCardRequest"
|
|
12
|
+
import { AmountPair } from "./AmountPair"
|
|
11
13
|
import { BeneficiaryRequest } from "./BeneficiaryRequest"
|
|
12
14
|
import { BeneficiaryResponse } from "./BeneficiaryResponse"
|
|
15
|
+
import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair"
|
|
13
16
|
import { BookedProductInfo } from "./BookedProductInfo"
|
|
14
17
|
import { BookingInfo } from "./BookingInfo"
|
|
15
18
|
import { BookingInfoRequest } from "./BookingInfoRequest"
|
|
@@ -53,6 +56,7 @@ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
|
|
|
53
56
|
import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest"
|
|
54
57
|
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse"
|
|
55
58
|
import { FlightInfo } from "./FlightInfo"
|
|
59
|
+
import { FundingAccountIdentifierType } from "./FundingAccountIdentifierType"
|
|
56
60
|
import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig"
|
|
57
61
|
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2"
|
|
58
62
|
import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest"
|
|
@@ -95,6 +99,13 @@ import { Room } from "./Room"
|
|
|
95
99
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest"
|
|
96
100
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest"
|
|
97
101
|
import { Sorting } from "./Sorting"
|
|
102
|
+
import { StatementReportRequest } from "./StatementReportRequest"
|
|
103
|
+
import { StatementReportResponse } from "./StatementReportResponse"
|
|
104
|
+
import { StatementReportResponseRow } from "./StatementReportResponseRow"
|
|
105
|
+
import { StatementReportRowActionType } from "./StatementReportRowActionType"
|
|
106
|
+
import { StatementReportRowType } from "./StatementReportRowType"
|
|
107
|
+
import { StatementRowIds } from "./StatementRowIds"
|
|
108
|
+
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse"
|
|
98
109
|
import { SupplierBookingInfo } from "./SupplierBookingInfo"
|
|
99
110
|
import { TransactionResponse } from "./TransactionResponse"
|
|
100
111
|
import { TransactionType } from "./TransactionType"
|
|
@@ -120,18 +131,21 @@ import { UserSearchRequest } from "./UserSearchRequest"
|
|
|
120
131
|
import { YearMonth } from "./YearMonth"
|
|
121
132
|
|
|
122
133
|
export {
|
|
134
|
+
AccountBankResponse,
|
|
123
135
|
AccountCreationRequest,
|
|
136
|
+
AccountIdentifierResponse,
|
|
124
137
|
AccountResponse,
|
|
125
138
|
AccountSearchRequest,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
AccountStatementTransactionType,
|
|
139
|
+
AccountState,
|
|
140
|
+
AccountSummary,
|
|
141
|
+
AccountType,
|
|
130
142
|
AddressInfo,
|
|
131
143
|
AgentBookingInfo,
|
|
132
144
|
AmendCardRequest,
|
|
145
|
+
AmountPair,
|
|
133
146
|
BeneficiaryRequest,
|
|
134
147
|
BeneficiaryResponse,
|
|
148
|
+
BillingTransactionAmountPair,
|
|
135
149
|
BookedProductInfo,
|
|
136
150
|
BookingInfo,
|
|
137
151
|
BookingInfoRequest,
|
|
@@ -175,6 +189,7 @@ export {
|
|
|
175
189
|
FlightBookingInfoRequest,
|
|
176
190
|
FlightBookingInfoResponse,
|
|
177
191
|
FlightInfo,
|
|
192
|
+
FundingAccountIdentifierType,
|
|
178
193
|
FundingAccountInboundTransferNotificationConfig,
|
|
179
194
|
FundingAccountResponseV2,
|
|
180
195
|
FundingAccountSearchRequest,
|
|
@@ -217,6 +232,13 @@ export {
|
|
|
217
232
|
ScheduledTaskRequest,
|
|
218
233
|
SearchRolesetsRequest,
|
|
219
234
|
Sorting,
|
|
235
|
+
StatementReportRequest,
|
|
236
|
+
StatementReportResponse,
|
|
237
|
+
StatementReportResponseRow,
|
|
238
|
+
StatementReportRowActionType,
|
|
239
|
+
StatementReportRowType,
|
|
240
|
+
StatementRowIds,
|
|
241
|
+
SummaryBookingInfoResponse,
|
|
220
242
|
SupplierBookingInfo,
|
|
221
243
|
TransactionResponse,
|
|
222
244
|
TransactionType,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountStatementRequest.js","sourceRoot":"../","sources":["model/AccountStatementRequest.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AccountStatementResponseItem } from "./AccountStatementResponseItem";
|
|
2
|
-
export interface AccountStatementResponse {
|
|
3
|
-
openingAvailableBalance: number;
|
|
4
|
-
closingAvailableBalance: number;
|
|
5
|
-
openingActualBalance: number;
|
|
6
|
-
closingActualBalance: number;
|
|
7
|
-
statements: AccountStatementResponseItem[];
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountStatementResponse.js","sourceRoot":"../","sources":["model/AccountStatementResponse.ts"],"names":[],"mappings":""}
|