@pax2pay/client 0.0.87 → 0.0.90
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/Client/Users/index.ts +5 -0
- package/dist/Client/Reports/index.d.ts +1 -1
- package/dist/Client/Reports/index.js.map +1 -1
- package/dist/Client/Users/index.d.ts +1 -0
- package/dist/Client/Users/index.js +5 -0
- package/dist/Client/Users/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/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/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/CreateCardRequest.d.ts +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 +12 -5
- package/dist/model/index.js +6 -2
- package/dist/model/index.js.map +1 -1
- package/index.ts +22 -8
- package/model/AccountResponse.ts +27 -3
- package/model/AccountState.ts +19 -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/CreateCardRequest.ts +1 -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 +22 -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/Client/Reports/index.ts
CHANGED
|
@@ -32,13 +32,13 @@ export class Reports {
|
|
|
32
32
|
return await this.connection.post<model.Report.Statement>(`../reports/statement`, request)
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
statementForTable(request: model.
|
|
36
|
-
| model.
|
|
35
|
+
statementForTable(request: model.StatementReportRequest): Promise<
|
|
36
|
+
| model.StatementReportResponse
|
|
37
37
|
| (model.ErrorResponse & {
|
|
38
38
|
status: 400 | 403 | 404 | 500 | 503
|
|
39
39
|
})
|
|
40
40
|
> {
|
|
41
|
-
return this.connection.post<model.
|
|
41
|
+
return this.connection.post<model.StatementReportResponse>(`statement`, request)
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
static create(connection: Connection) {
|
package/Client/Users/index.ts
CHANGED
|
@@ -15,4 +15,9 @@ export class Users extends Collection<model.UserResponse, model.UserSearchReques
|
|
|
15
15
|
static create(connection: Connection) {
|
|
16
16
|
return new Users(connection)
|
|
17
17
|
}
|
|
18
|
+
async getUsersActiveRoles(username: string, token: string): Promise<string[] | model.ErrorResponse> {
|
|
19
|
+
this.connection.token = token
|
|
20
|
+
const result = await this.connection.get<string[]>(`users/${username}/roles/minified`)
|
|
21
|
+
return result
|
|
22
|
+
}
|
|
18
23
|
}
|
|
@@ -10,7 +10,7 @@ export declare class Reports {
|
|
|
10
10
|
statement(start: isoly.DateTime, end: isoly.DateTime, account: string): Promise<model.Report.Statement | (model.ErrorResponse & {
|
|
11
11
|
status: 400 | 404 | 500 | 403 | 503;
|
|
12
12
|
})>;
|
|
13
|
-
statementForTable(request: model.
|
|
13
|
+
statementForTable(request: model.StatementReportRequest): Promise<model.StatementReportResponse | (model.ErrorResponse & {
|
|
14
14
|
status: 400 | 403 | 404 | 500 | 503;
|
|
15
15
|
})>;
|
|
16
16
|
static create(connection: Connection): Reports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Reports/index.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,OAAO;IACnB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,KAAK,CAAC,cAAc,CAAC,KAAqB,EAAE,GAAmB;QAC9D,MAAM,OAAO,GAAG;YACf,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;YAChC,IAAI,EAAE,KAAK;YACX,EAAE,EAAE,GAAG;YACP,MAAM,EAAE;gBACP,IAAI,EAAE,MAAM;aACZ;SACD,CAAA;QAED,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA8B,2BAA2B,EAAE,OAAO,CAAC,CAAA;IACrG,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,KAAqB,EAAE,GAAmB,EAAE,OAAe;QAC1E,MAAM,OAAO,GAAG;YACf,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;YAChC,IAAI,EAAE,KAAK;YACX,EAAE,EAAE,GAAG;YACP,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE;gBACP,IAAI,EAAE,MAAM;aACZ;SACD,CAAA;QAED,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAyB,sBAAsB,EAAE,OAAO,CAAC,CAAA;IAC3F,CAAC;IAED,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Reports/index.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,OAAO;IACnB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,KAAK,CAAC,cAAc,CAAC,KAAqB,EAAE,GAAmB;QAC9D,MAAM,OAAO,GAAG;YACf,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;YAChC,IAAI,EAAE,KAAK;YACX,EAAE,EAAE,GAAG;YACP,MAAM,EAAE;gBACP,IAAI,EAAE,MAAM;aACZ;SACD,CAAA;QAED,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA8B,2BAA2B,EAAE,OAAO,CAAC,CAAA;IACrG,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,KAAqB,EAAE,GAAmB,EAAE,OAAe;QAC1E,MAAM,OAAO,GAAG;YACf,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;YAChC,IAAI,EAAE,KAAK;YACX,EAAE,EAAE,GAAG;YACP,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE;gBACP,IAAI,EAAE,MAAM;aACZ;SACD,CAAA;QAED,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAyB,sBAAsB,EAAE,OAAO,CAAC,CAAA;IAC3F,CAAC;IAED,iBAAiB,CAAC,OAAqC;QAMtD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAgC,WAAW,EAAE,OAAO,CAAC,CAAA;IACjF,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAA;IAC/B,CAAC;CACD"}
|
|
@@ -11,5 +11,10 @@ export class Users extends Collection {
|
|
|
11
11
|
static create(connection) {
|
|
12
12
|
return new Users(connection);
|
|
13
13
|
}
|
|
14
|
+
async getUsersActiveRoles(username, token) {
|
|
15
|
+
this.connection.token = token;
|
|
16
|
+
const result = await this.connection.get(`users/${username}/roles/minified`);
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Users/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,KAAM,SAAQ,UAA0E;IAEpG,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,OAAO,CAAA;IAG1B,CAAC;IACS,cAAc,CAAC,QAA4B;QACpD,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAA;IACvF,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAA;IAC7B,CAAC;CACD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Users/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,KAAM,SAAQ,UAA0E;IAEpG,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,OAAO,CAAA;IAG1B,CAAC;IACS,cAAc,CAAC,QAA4B;QACpD,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAA;IACvF,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAA;IAC7B,CAAC;IACD,KAAK,CAAC,mBAAmB,CAAC,QAAgB,EAAE,KAAa;QACxD,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,KAAK,CAAA;QAC7B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAW,SAAS,QAAQ,iBAAiB,CAAC,CAAA;QACtF,OAAO,MAAM,CAAA;IACd,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountCreationRequest, AccountResponse, AccountSearchRequest,
|
|
3
|
-
export { Client, AccountCreationRequest, AccountResponse, AccountSearchRequest,
|
|
2
|
+
import { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountState, 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, 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 } from "./model";
|
|
3
|
+
export { Client, AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountState, 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, 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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import {
|
|
3
|
-
export { Client,
|
|
2
|
+
import { AccountResponse, AccountState, AccountType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelInfo, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, StatementReportRowActionType, UserResponse, YearMonth, } from "./model";
|
|
3
|
+
export { Client, AccountResponse, AccountState, AccountType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelInfo, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, StatementReportRowActionType, UserResponse, YearMonth, };
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAEN,eAAe,EAEf,YAAY,EACZ,WAAW,EAYX,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAOb,wBAAwB,EAIxB,oBAAoB,EACpB,uBAAuB,EAEvB,SAAS,EAKT,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EACpB,UAAU,EAQV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EAYV,4BAA4B,EAuB5B,YAAY,EAGZ,SAAS,GACT,MAAM,SAAS,CAAA;AAEhB,OAAO,EACN,MAAM,EAEN,eAAe,EAEf,YAAY,EACZ,WAAW,EAYX,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAOb,wBAAwB,EAIxB,oBAAoB,EACpB,uBAAuB,EAEvB,SAAS,EAKT,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EACpB,UAAU,EAQV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EAYV,4BAA4B,EAuB5B,YAAY,EAGZ,SAAS,GACT,CAAA"}
|
|
@@ -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";
|
|
@@ -6,13 +9,16 @@ export interface AccountResponse {
|
|
|
6
9
|
providerAccountId: string;
|
|
7
10
|
provider: ProviderResponse;
|
|
8
11
|
organisation: OrganisationResponse;
|
|
9
|
-
currency:
|
|
10
|
-
state:
|
|
12
|
+
currency: isoly.Currency;
|
|
13
|
+
state: AccountState;
|
|
11
14
|
friendlyName: string;
|
|
12
15
|
balance: number;
|
|
13
16
|
actualBalance?: number;
|
|
14
|
-
accountType:
|
|
17
|
+
accountType: AccountType;
|
|
15
18
|
fundingLimit?: FundingLimitResponse;
|
|
16
19
|
updatedOn: string;
|
|
17
20
|
createdOn?: string;
|
|
18
21
|
}
|
|
22
|
+
export declare namespace AccountResponse {
|
|
23
|
+
function is(value: AccountResponse | any): value is AccountResponse;
|
|
24
|
+
}
|
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
import { AccountState } from "./AccountState";
|
|
3
|
+
import { AccountType } from "./AccountType";
|
|
4
|
+
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
5
|
+
import { OrganisationResponse } from "./OrganisationResponse";
|
|
6
|
+
import { ProviderResponse } from "./ProviderResponse";
|
|
7
|
+
export var AccountResponse;
|
|
8
|
+
(function (AccountResponse) {
|
|
9
|
+
function is(value) {
|
|
10
|
+
return (typeof value == "object" &&
|
|
11
|
+
typeof value.id == "number" &&
|
|
12
|
+
typeof value.providerAccountId == "string" &&
|
|
13
|
+
ProviderResponse.is(value.provider) &&
|
|
14
|
+
OrganisationResponse.is(value.organisation) &&
|
|
15
|
+
isoly.Currency.is(value.currency) &&
|
|
16
|
+
AccountState.is(value.state) &&
|
|
17
|
+
typeof value.friendlyName == "string" &&
|
|
18
|
+
typeof value.balance == "number" &&
|
|
19
|
+
(value.actualBalance == undefined || typeof value.actualBalance == "number") &&
|
|
20
|
+
AccountType.is(value.accountType) &&
|
|
21
|
+
(value.fundingLimit == undefined || FundingLimitResponse.is(value.fundingLimit)) &&
|
|
22
|
+
typeof value.updatedOn == "string" &&
|
|
23
|
+
(value.createdOn == undefined || typeof value.createdOn == "string"));
|
|
24
|
+
}
|
|
25
|
+
AccountResponse.is = is;
|
|
26
|
+
})(AccountResponse || (AccountResponse = {}));
|
|
2
27
|
//# sourceMappingURL=AccountResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountResponse.js","sourceRoot":"../","sources":["model/AccountResponse.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AccountResponse.js","sourceRoot":"../","sources":["model/AccountResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAoBrD,MAAM,KAAW,eAAe,CAmB/B;AAnBD,WAAiB,eAAe;IAC/B,SAAgB,EAAE,CAAC,KAA4B;QAC9C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ;YAC3B,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ;YAC1C,gBAAgB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACnC,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YAC3C,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACjC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YAC5B,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ;YACrC,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,aAAa,IAAI,QAAQ,CAAC;YAC5E,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;YACjC,CAAC,KAAK,CAAC,YAAY,IAAI,SAAS,IAAI,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YAChF,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,CAAC,KAAK,CAAC,SAAS,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ,CAAC,CACpE,CAAA;IACF,CAAC;IAjBe,kBAAE,KAiBjB,CAAA;AACF,CAAC,EAnBgB,eAAe,KAAf,eAAe,QAmB/B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const accountState: readonly ["ACTIVE", "INACTIVE", "CLOSED", "DELETED", "EXPIRED", "PENDING", "APPROVED", "DECLINED", "GENERATED"];
|
|
2
|
+
export declare type AccountState = typeof accountState[number];
|
|
3
|
+
export declare namespace AccountState {
|
|
4
|
+
function is(value: unknown): value is AccountState;
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -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
|
+
];
|
|
12
|
+
export var AccountState;
|
|
13
|
+
(function (AccountState) {
|
|
14
|
+
function is(value) {
|
|
15
|
+
return typeof value == "string" && accountState.includes(value);
|
|
16
|
+
}
|
|
17
|
+
AccountState.is = is;
|
|
18
|
+
})(AccountState || (AccountState = {}));
|
|
19
|
+
//# sourceMappingURL=AccountState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountState.js","sourceRoot":"../","sources":["model/AccountState.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG;IACpB,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,WAAW;CACF,CAAA;AAIV,MAAM,KAAW,YAAY,CAI5B;AAJD,WAAiB,YAAY;IAC5B,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAqB,CAAC,CAAA;IAChF,CAAC;IAFe,eAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,YAAY,KAAZ,YAAY,QAI5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const accountType = ["FUNDING", "CARD"];
|
|
2
|
+
export var AccountType;
|
|
3
|
+
(function (AccountType) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return typeof value == "string" && accountType.includes(value);
|
|
6
|
+
}
|
|
7
|
+
AccountType.is = is;
|
|
8
|
+
})(AccountType || (AccountType = {}));
|
|
9
|
+
//# sourceMappingURL=AccountType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountType.js","sourceRoot":"../","sources":["model/AccountType.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,MAAM,CAAU,CAAA;AAIhD,MAAM,KAAW,WAAW,CAI3B;AAJD,WAAiB,WAAW;IAC3B,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,WAAW,CAAC,QAAQ,CAAC,KAAoB,CAAC,CAAA;IAC9E,CAAC;IAFe,cAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,WAAW,KAAX,WAAW,QAI3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmountPair.js","sourceRoot":"../","sources":["model/AmountPair.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BillingTransactionAmountPair.js","sourceRoot":"../","sources":["model/BillingTransactionAmountPair.ts"],"names":[],"mappings":""}
|
|
@@ -2,4 +2,5 @@ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
|
|
|
2
2
|
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse";
|
|
3
3
|
import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse";
|
|
4
4
|
import { InvoiceBookingInfoResponse } from "./InvoiceBookingInfoResponse";
|
|
5
|
-
|
|
5
|
+
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse";
|
|
6
|
+
export declare type BookingInfoResponse = FiveFieldsBookingInfoResponse | HotelBookingInfoResponse | InvoiceBookingInfoResponse | FlightBookingInfoResponse | SummaryBookingInfoResponse;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var FundingLimitResponse;
|
|
2
|
+
(function (FundingLimitResponse) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
(value.message == undefined || typeof value.message == "string") &&
|
|
6
|
+
(value.status == undefined || value.status == "SUCCESS" || value.status == "FAILURE") &&
|
|
7
|
+
(value.email == undefined ||
|
|
8
|
+
(Array.isArray(value.email) && value.email.every((item) => typeof item == "string"))) &&
|
|
9
|
+
(value.limit == undefined || typeof value.limit == "number"));
|
|
10
|
+
}
|
|
11
|
+
FundingLimitResponse.is = is;
|
|
12
|
+
})(FundingLimitResponse || (FundingLimitResponse = {}));
|
|
2
13
|
//# sourceMappingURL=FundingLimitResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FundingLimitResponse.js","sourceRoot":"../","sources":["model/FundingLimitResponse.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"FundingLimitResponse.js","sourceRoot":"../","sources":["model/FundingLimitResponse.ts"],"names":[],"mappings":"AAUA,MAAM,KAAW,oBAAoB,CAWpC;AAXD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC;YAChE,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC;YACrF,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS;gBACxB,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,OAAO,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC;YAC3F,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC,CAC5D,CAAA;IACF,CAAC;IATe,uBAAE,KASjB,CAAA;AACF,CAAC,EAXgB,oBAAoB,KAApB,oBAAoB,QAWpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementReportRequest.js","sourceRoot":"../","sources":["model/StatementReportRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StatementReportResponseRow } from "./StatementReportResponseRow";
|
|
2
|
+
export interface StatementReportResponse {
|
|
3
|
+
openingAvailableBalance: number;
|
|
4
|
+
closingAvailableBalance: number;
|
|
5
|
+
openingActualBalance: number;
|
|
6
|
+
closingActualBalance: number;
|
|
7
|
+
statements: StatementReportResponseRow[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementReportResponse.js","sourceRoot":"../","sources":["model/StatementReportResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export interface StatementReportResponseRow {
|
|
10
|
+
actionType: StatementReportRowActionType;
|
|
11
|
+
amount: BillingTransactionAmountPair;
|
|
12
|
+
bookingInfo: BookingInfoResponse;
|
|
13
|
+
postedDate: isoly.DateTime;
|
|
14
|
+
transactionDate: isoly.DateTime;
|
|
15
|
+
actualBalance: number;
|
|
16
|
+
availableBalance: number;
|
|
17
|
+
rowType: StatementReportRowType;
|
|
18
|
+
ids: StatementRowIds;
|
|
19
|
+
card?: CardResponseV2;
|
|
20
|
+
transfer?: TransferResponse;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementReportResponseRow.js","sourceRoot":"../","sources":["model/StatementReportResponseRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const statementReportRowActionType: readonly ["AUTHORISATION", "AUTHORISATION_DECLINED", "SETTLEMENT", "AUTHORISATION_AND_SETTLEMENT", "REVERSAL", "REFUND", "TRANSFER_IN", "TRANSFER_OUT"];
|
|
2
|
+
export declare type StatementReportRowActionType = typeof statementReportRowActionType[number];
|
|
3
|
+
export declare namespace StatementReportRowActionType {
|
|
4
|
+
function is(value: unknown): value is StatementReportRowActionType;
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
];
|
|
11
|
+
export var StatementReportRowActionType;
|
|
12
|
+
(function (StatementReportRowActionType) {
|
|
13
|
+
function is(value) {
|
|
14
|
+
return typeof value == "string" && statementReportRowActionType.includes(value);
|
|
15
|
+
}
|
|
16
|
+
StatementReportRowActionType.is = is;
|
|
17
|
+
})(StatementReportRowActionType || (StatementReportRowActionType = {}));
|
|
18
|
+
//# sourceMappingURL=StatementReportRowActionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementReportRowActionType.js","sourceRoot":"../","sources":["model/StatementReportRowActionType.ts"],"names":[],"mappings":"AAAA,MAAM,4BAA4B,GAAG;IACpC,eAAe;IACf,wBAAwB;IACxB,YAAY;IACZ,8BAA8B;IAC9B,UAAU;IACV,QAAQ;IACR,aAAa;IACb,cAAc;CACL,CAAA;AAGV,MAAM,KAAW,4BAA4B,CAI5C;AAJD,WAAiB,4BAA4B;IAC5C,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,4BAA4B,CAAC,QAAQ,CAAC,KAAqC,CAAC,CAAA;IAChH,CAAC;IAFe,+BAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,4BAA4B,KAA5B,4BAA4B,QAI5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type StatementReportRowType = "SUMMARY" | "FULL";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementReportRowType.js","sourceRoot":"../","sources":["model/StatementReportRowType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementRowIds.js","sourceRoot":"../","sources":["model/StatementRowIds.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SummaryBookingInfoResponse.js","sourceRoot":"../","sources":["model/SummaryBookingInfoResponse.ts"],"names":[],"mappings":""}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AccountCreationRequest } from "./AccountCreationRequest";
|
|
2
2
|
import { AccountResponse } from "./AccountResponse";
|
|
3
3
|
import { AccountSearchRequest } from "./AccountSearchRequest";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { AccountStatementResponseItem } from "./AccountStatementResponseItem";
|
|
7
|
-
import { AccountStatementTransactionType } from "./AccountStatementTransactionType";
|
|
4
|
+
import { AccountState } from "./AccountState";
|
|
5
|
+
import { AccountType } from "./AccountType";
|
|
8
6
|
import { AddressInfo } from "./AddressInfo";
|
|
9
7
|
import { AgentBookingInfo } from "./AgentBookingInfo";
|
|
10
8
|
import { AmendCardRequest } from "./AmendCardRequest";
|
|
9
|
+
import { AmountPair } from "./AmountPair";
|
|
11
10
|
import { BeneficiaryRequest } from "./BeneficiaryRequest";
|
|
12
11
|
import { BeneficiaryResponse } from "./BeneficiaryResponse";
|
|
12
|
+
import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair";
|
|
13
13
|
import { BookedProductInfo } from "./BookedProductInfo";
|
|
14
14
|
import { BookingInfo } from "./BookingInfo";
|
|
15
15
|
import { BookingInfoRequest } from "./BookingInfoRequest";
|
|
@@ -95,6 +95,13 @@ import { Room } from "./Room";
|
|
|
95
95
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest";
|
|
96
96
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest";
|
|
97
97
|
import { Sorting } from "./Sorting";
|
|
98
|
+
import { StatementReportRequest } from "./StatementReportRequest";
|
|
99
|
+
import { StatementReportResponse } from "./StatementReportResponse";
|
|
100
|
+
import { StatementReportResponseRow } from "./StatementReportResponseRow";
|
|
101
|
+
import { StatementReportRowActionType } from "./StatementReportRowActionType";
|
|
102
|
+
import { StatementReportRowType } from "./StatementReportRowType";
|
|
103
|
+
import { StatementRowIds } from "./StatementRowIds";
|
|
104
|
+
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse";
|
|
98
105
|
import { SupplierBookingInfo } from "./SupplierBookingInfo";
|
|
99
106
|
import { TransactionResponse } from "./TransactionResponse";
|
|
100
107
|
import { TransactionType } from "./TransactionType";
|
|
@@ -118,4 +125,4 @@ import { UserResponse } from "./UserResponse";
|
|
|
118
125
|
import { UserRoleResponse } from "./UserRoleResponse";
|
|
119
126
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
120
127
|
import { YearMonth } from "./YearMonth";
|
|
121
|
-
export { AccountCreationRequest, AccountResponse, AccountSearchRequest,
|
|
128
|
+
export { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountState, 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, 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,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccountResponse } from "./AccountResponse";
|
|
2
|
+
import { AccountState } from "./AccountState";
|
|
3
|
+
import { AccountType } from "./AccountType";
|
|
2
4
|
import { BookingInfoType } from "./BookingInfoType";
|
|
3
5
|
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
|
|
4
6
|
import { CardDeliveryRequest } from "./CardDeliveryRequest";
|
|
@@ -15,6 +17,7 @@ import { CardTypeSpecificationFlag } from "./CardTypeSpecificationFlag";
|
|
|
15
17
|
import { ErrorMessageDto } from "./ErrorMessageDto";
|
|
16
18
|
import { ErrorResponse } from "./ErrorResponse";
|
|
17
19
|
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
20
|
+
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
18
21
|
import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest";
|
|
19
22
|
import { HotelInfo } from "./HotelInfo";
|
|
20
23
|
import { Issue } from "./Issue";
|
|
@@ -25,7 +28,8 @@ import { Passengers } from "./Passengers";
|
|
|
25
28
|
import { ProviderCode } from "./ProviderCode";
|
|
26
29
|
import { ProviderResponse } from "./ProviderResponse";
|
|
27
30
|
import { References } from "./References";
|
|
31
|
+
import { StatementReportRowActionType } from "./StatementReportRowActionType";
|
|
28
32
|
import { UserResponse } from "./UserResponse";
|
|
29
33
|
import { YearMonth } from "./YearMonth";
|
|
30
|
-
export {
|
|
34
|
+
export { AccountResponse, AccountState, AccountType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelInfo, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, StatementReportRowActionType, UserResponse, YearMonth, };
|
|
31
35
|
//# 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":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAY3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAE3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAA;AAI7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAYvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAO/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAIrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAKvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAG/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG/C,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAGrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAQzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAYzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAuB7E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAEN,eAAe,EAEf,YAAY,EACZ,WAAW,EAYX,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAOb,wBAAwB,EAIxB,oBAAoB,EACpB,uBAAuB,EAEvB,SAAS,EAKT,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EACpB,UAAU,EAQV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EAYV,4BAA4B,EAuB5B,YAAY,EAGZ,SAAS,GACT,CAAA"}
|
package/index.ts
CHANGED
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
AccountCreationRequest,
|
|
4
4
|
AccountResponse,
|
|
5
5
|
AccountSearchRequest,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
AccountStatementResponseItem,
|
|
9
|
-
AccountStatementTransactionType,
|
|
6
|
+
AccountState,
|
|
7
|
+
AccountType,
|
|
10
8
|
AddressInfo,
|
|
11
9
|
AgentBookingInfo,
|
|
12
10
|
AmendCardRequest,
|
|
11
|
+
AmountPair,
|
|
13
12
|
BeneficiaryRequest,
|
|
14
13
|
BeneficiaryResponse,
|
|
14
|
+
BillingTransactionAmountPair,
|
|
15
15
|
BookedProductInfo,
|
|
16
16
|
BookingInfo,
|
|
17
17
|
BookingInfoRequest,
|
|
@@ -97,6 +97,13 @@ import {
|
|
|
97
97
|
ScheduledTaskRequest,
|
|
98
98
|
SearchRolesetsRequest,
|
|
99
99
|
Sorting,
|
|
100
|
+
StatementReportRequest,
|
|
101
|
+
StatementReportResponse,
|
|
102
|
+
StatementReportResponseRow,
|
|
103
|
+
StatementReportRowActionType,
|
|
104
|
+
StatementReportRowType,
|
|
105
|
+
StatementRowIds,
|
|
106
|
+
SummaryBookingInfoResponse,
|
|
100
107
|
SupplierBookingInfo,
|
|
101
108
|
TransactionResponse,
|
|
102
109
|
TransactionType,
|
|
@@ -127,15 +134,15 @@ export {
|
|
|
127
134
|
AccountCreationRequest,
|
|
128
135
|
AccountResponse,
|
|
129
136
|
AccountSearchRequest,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
AccountStatementResponseItem,
|
|
133
|
-
AccountStatementTransactionType,
|
|
137
|
+
AccountState,
|
|
138
|
+
AccountType,
|
|
134
139
|
AddressInfo,
|
|
135
140
|
AgentBookingInfo,
|
|
136
141
|
AmendCardRequest,
|
|
142
|
+
AmountPair,
|
|
137
143
|
BeneficiaryRequest,
|
|
138
144
|
BeneficiaryResponse,
|
|
145
|
+
BillingTransactionAmountPair,
|
|
139
146
|
BookedProductInfo,
|
|
140
147
|
BookingInfo,
|
|
141
148
|
BookingInfoRequest,
|
|
@@ -221,6 +228,13 @@ export {
|
|
|
221
228
|
ScheduledTaskRequest,
|
|
222
229
|
SearchRolesetsRequest,
|
|
223
230
|
Sorting,
|
|
231
|
+
StatementReportRequest,
|
|
232
|
+
StatementReportResponse,
|
|
233
|
+
StatementReportResponseRow,
|
|
234
|
+
StatementReportRowActionType,
|
|
235
|
+
StatementReportRowType,
|
|
236
|
+
StatementRowIds,
|
|
237
|
+
SummaryBookingInfoResponse,
|
|
224
238
|
SupplierBookingInfo,
|
|
225
239
|
TransactionResponse,
|
|
226
240
|
TransactionType,
|
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,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
|
|
@@ -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,15 @@
|
|
|
1
1
|
import { AccountCreationRequest } from "./AccountCreationRequest"
|
|
2
2
|
import { AccountResponse } from "./AccountResponse"
|
|
3
3
|
import { AccountSearchRequest } from "./AccountSearchRequest"
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { AccountStatementResponseItem } from "./AccountStatementResponseItem"
|
|
7
|
-
import { AccountStatementTransactionType } from "./AccountStatementTransactionType"
|
|
4
|
+
import { AccountState } from "./AccountState"
|
|
5
|
+
import { AccountType } from "./AccountType"
|
|
8
6
|
import { AddressInfo } from "./AddressInfo"
|
|
9
7
|
import { AgentBookingInfo } from "./AgentBookingInfo"
|
|
10
8
|
import { AmendCardRequest } from "./AmendCardRequest"
|
|
9
|
+
import { AmountPair } from "./AmountPair"
|
|
11
10
|
import { BeneficiaryRequest } from "./BeneficiaryRequest"
|
|
12
11
|
import { BeneficiaryResponse } from "./BeneficiaryResponse"
|
|
12
|
+
import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair"
|
|
13
13
|
import { BookedProductInfo } from "./BookedProductInfo"
|
|
14
14
|
import { BookingInfo } from "./BookingInfo"
|
|
15
15
|
import { BookingInfoRequest } from "./BookingInfoRequest"
|
|
@@ -95,6 +95,13 @@ import { Room } from "./Room"
|
|
|
95
95
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest"
|
|
96
96
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest"
|
|
97
97
|
import { Sorting } from "./Sorting"
|
|
98
|
+
import { StatementReportRequest } from "./StatementReportRequest"
|
|
99
|
+
import { StatementReportResponse } from "./StatementReportResponse"
|
|
100
|
+
import { StatementReportResponseRow } from "./StatementReportResponseRow"
|
|
101
|
+
import { StatementReportRowActionType } from "./StatementReportRowActionType"
|
|
102
|
+
import { StatementReportRowType } from "./StatementReportRowType"
|
|
103
|
+
import { StatementRowIds } from "./StatementRowIds"
|
|
104
|
+
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse"
|
|
98
105
|
import { SupplierBookingInfo } from "./SupplierBookingInfo"
|
|
99
106
|
import { TransactionResponse } from "./TransactionResponse"
|
|
100
107
|
import { TransactionType } from "./TransactionType"
|
|
@@ -123,15 +130,15 @@ export {
|
|
|
123
130
|
AccountCreationRequest,
|
|
124
131
|
AccountResponse,
|
|
125
132
|
AccountSearchRequest,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
AccountStatementResponseItem,
|
|
129
|
-
AccountStatementTransactionType,
|
|
133
|
+
AccountState,
|
|
134
|
+
AccountType,
|
|
130
135
|
AddressInfo,
|
|
131
136
|
AgentBookingInfo,
|
|
132
137
|
AmendCardRequest,
|
|
138
|
+
AmountPair,
|
|
133
139
|
BeneficiaryRequest,
|
|
134
140
|
BeneficiaryResponse,
|
|
141
|
+
BillingTransactionAmountPair,
|
|
135
142
|
BookedProductInfo,
|
|
136
143
|
BookingInfo,
|
|
137
144
|
BookingInfoRequest,
|
|
@@ -217,6 +224,13 @@ export {
|
|
|
217
224
|
ScheduledTaskRequest,
|
|
218
225
|
SearchRolesetsRequest,
|
|
219
226
|
Sorting,
|
|
227
|
+
StatementReportRequest,
|
|
228
|
+
StatementReportResponse,
|
|
229
|
+
StatementReportResponseRow,
|
|
230
|
+
StatementReportRowActionType,
|
|
231
|
+
StatementReportRowType,
|
|
232
|
+
StatementRowIds,
|
|
233
|
+
SummaryBookingInfoResponse,
|
|
220
234
|
SupplierBookingInfo,
|
|
221
235
|
TransactionResponse,
|
|
222
236
|
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":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as isoly from "isoly";
|
|
2
|
-
import { AccountStatementTransactionType } from "./AccountStatementTransactionType";
|
|
3
|
-
import { MinimalBookingInfo } from "./MinimalBookingInfo";
|
|
4
|
-
import { ProviderCode } from "./ProviderCode";
|
|
5
|
-
export interface AccountStatementResponseItem {
|
|
6
|
-
transactionType: AccountStatementTransactionType;
|
|
7
|
-
amount: BillingTransactionAmountPair;
|
|
8
|
-
bookingInfo: MinimalBookingInfo;
|
|
9
|
-
timestamp: isoly.DateTime;
|
|
10
|
-
actualBalance: number;
|
|
11
|
-
availableBalance: number;
|
|
12
|
-
rowType: StatementReportRowType;
|
|
13
|
-
ids: StatementRowIds;
|
|
14
|
-
}
|
|
15
|
-
export interface BillingTransactionAmountPair {
|
|
16
|
-
billing: AmountPair;
|
|
17
|
-
transaction: AmountPair;
|
|
18
|
-
fxRate: number;
|
|
19
|
-
}
|
|
20
|
-
export interface AmountPair {
|
|
21
|
-
amount: number;
|
|
22
|
-
currency: isoly.Currency;
|
|
23
|
-
}
|
|
24
|
-
export declare type StatementReportRowType = "FULL" | "SUMMARY";
|
|
25
|
-
export interface StatementRowIds {
|
|
26
|
-
rowId: string;
|
|
27
|
-
providerCode: ProviderCode;
|
|
28
|
-
providerCardId: string;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountStatementResponseItem.js","sourceRoot":"../","sources":["model/AccountStatementResponseItem.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const accountStatementTransactionType: readonly ["AUTHORISATION", "AUTHORISATION_DECLINED", "SETTLEMENT", "AUTHORISATION_AND_SETTLEMENT", "REVERSAL", "REFUND", "TRANSFER_IN", "TRANSFER_OUT"];
|
|
2
|
-
export declare type AccountStatementTransactionType = typeof accountStatementTransactionType[number];
|
|
3
|
-
export declare namespace AccountStatementTransactionType {
|
|
4
|
-
function is(value: unknown): value is AccountStatementTransactionType;
|
|
5
|
-
}
|
|
6
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const accountStatementTransactionType = [
|
|
2
|
-
"AUTHORISATION",
|
|
3
|
-
"AUTHORISATION_DECLINED",
|
|
4
|
-
"SETTLEMENT",
|
|
5
|
-
"AUTHORISATION_AND_SETTLEMENT",
|
|
6
|
-
"REVERSAL",
|
|
7
|
-
"REFUND",
|
|
8
|
-
"TRANSFER_IN",
|
|
9
|
-
"TRANSFER_OUT",
|
|
10
|
-
];
|
|
11
|
-
export var AccountStatementTransactionType;
|
|
12
|
-
(function (AccountStatementTransactionType) {
|
|
13
|
-
function is(value) {
|
|
14
|
-
return (typeof value == "string" && accountStatementTransactionType.includes(value));
|
|
15
|
-
}
|
|
16
|
-
AccountStatementTransactionType.is = is;
|
|
17
|
-
})(AccountStatementTransactionType || (AccountStatementTransactionType = {}));
|
|
18
|
-
//# sourceMappingURL=AccountStatementTransactionType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountStatementTransactionType.js","sourceRoot":"../","sources":["model/AccountStatementTransactionType.ts"],"names":[],"mappings":"AAAA,MAAM,+BAA+B,GAAG;IACvC,eAAe;IACf,wBAAwB;IACxB,YAAY;IACZ,8BAA8B;IAC9B,UAAU;IACV,QAAQ;IACR,aAAa;IACb,cAAc;CACL,CAAA;AAGV,MAAM,KAAW,+BAA+B,CAM/C;AAND,WAAiB,+BAA+B;IAC/C,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ,IAAI,+BAA+B,CAAC,QAAQ,CAAC,KAAwC,CAAC,CAC9G,CAAA;IACF,CAAC;IAJe,kCAAE,KAIjB,CAAA;AACF,CAAC,EANgB,+BAA+B,KAA/B,+BAA+B,QAM/C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AccountStatementResponseItem } from "./AccountStatementResponseItem"
|
|
2
|
-
|
|
3
|
-
export interface AccountStatementResponse {
|
|
4
|
-
openingAvailableBalance: number
|
|
5
|
-
closingAvailableBalance: number
|
|
6
|
-
openingActualBalance: number
|
|
7
|
-
closingActualBalance: number
|
|
8
|
-
statements: AccountStatementResponseItem[]
|
|
9
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as isoly from "isoly"
|
|
2
|
-
import { AccountStatementTransactionType } from "./AccountStatementTransactionType"
|
|
3
|
-
import { MinimalBookingInfo } from "./MinimalBookingInfo"
|
|
4
|
-
import { ProviderCode } from "./ProviderCode"
|
|
5
|
-
|
|
6
|
-
export interface AccountStatementResponseItem {
|
|
7
|
-
transactionType: AccountStatementTransactionType
|
|
8
|
-
amount: BillingTransactionAmountPair
|
|
9
|
-
bookingInfo: MinimalBookingInfo
|
|
10
|
-
timestamp: isoly.DateTime
|
|
11
|
-
actualBalance: number
|
|
12
|
-
availableBalance: number
|
|
13
|
-
rowType: StatementReportRowType
|
|
14
|
-
ids: StatementRowIds
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface BillingTransactionAmountPair {
|
|
18
|
-
billing: AmountPair
|
|
19
|
-
transaction: AmountPair
|
|
20
|
-
fxRate: number
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface AmountPair {
|
|
24
|
-
amount: number
|
|
25
|
-
currency: isoly.Currency
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type StatementReportRowType = "FULL" | "SUMMARY"
|
|
29
|
-
|
|
30
|
-
export interface StatementRowIds {
|
|
31
|
-
rowId: string
|
|
32
|
-
providerCode: ProviderCode
|
|
33
|
-
providerCardId: string
|
|
34
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const accountStatementTransactionType = [
|
|
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 AccountStatementTransactionType = typeof accountStatementTransactionType[number]
|
|
12
|
-
|
|
13
|
-
export namespace AccountStatementTransactionType {
|
|
14
|
-
export function is(value: unknown): value is AccountStatementTransactionType {
|
|
15
|
-
return (
|
|
16
|
-
typeof value == "string" && accountStatementTransactionType.includes(value as AccountStatementTransactionType)
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
}
|