@pax2pay/client 0.0.79 → 0.0.80
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/Cards/index.ts +1 -1
- package/dist/Client/Cards/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/BookingInfoResponse.d.ts +4 -3
- package/dist/model/FlightBookingInfoRequest.d.ts +1 -10
- package/dist/model/FlightBookingInfoResponse.d.ts +15 -0
- package/dist/model/FlightBookingInfoResponse.js +2 -0
- package/dist/model/FlightBookingInfoResponse.js.map +1 -0
- package/dist/model/FlightInfo.d.ts +12 -0
- package/dist/model/FlightInfo.js +2 -0
- package/dist/model/FlightInfo.js.map +1 -0
- package/dist/model/HotelBookingInfoRequest.d.ts +1 -12
- package/dist/model/HotelBookingInfoResponse.d.ts +9 -13
- package/dist/model/HotelInfo.d.ts +8 -0
- package/dist/model/HotelInfo.js +2 -0
- package/dist/model/HotelInfo.js.map +1 -0
- package/dist/model/Room.d.ts +5 -0
- package/dist/model/Room.js +2 -0
- package/dist/model/Room.js.map +1 -0
- package/dist/model/index.d.ts +5 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +8 -0
- package/model/BookingInfoResponse.ts +5 -3
- package/model/FlightBookingInfoRequest.ts +1 -9
- package/model/FlightBookingInfoResponse.ts +16 -0
- package/model/FlightInfo.ts +13 -0
- package/model/HotelBookingInfoRequest.ts +1 -16
- package/model/HotelBookingInfoResponse.ts +10 -13
- package/model/HotelInfo.ts +9 -0
- package/model/Room.ts +8 -0
- package/model/index.ts +8 -0
- package/package.json +1 -1
package/Client/Cards/index.ts
CHANGED
|
@@ -59,7 +59,7 @@ export class Cards extends List<
|
|
|
59
59
|
return result
|
|
60
60
|
}
|
|
61
61
|
async editCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode, request: Record<string, any>) {
|
|
62
|
-
const result = await this.connection.put<model.
|
|
62
|
+
const result = await this.connection.put<model.BookingInfoResponse>(
|
|
63
63
|
`/booking-info/cards/${providerCode}/${providerCardId}`,
|
|
64
64
|
request
|
|
65
65
|
)
|
|
@@ -28,7 +28,7 @@ export declare class Cards extends List<model.CardResponseV2 | model.CardRespons
|
|
|
28
28
|
getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
29
29
|
status: 400 | 404 | 500 | 403 | 503;
|
|
30
30
|
})>;
|
|
31
|
-
editCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode, request: Record<string, any>): Promise<model.
|
|
31
|
+
editCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode, request: Record<string, any>): Promise<model.BookingInfoResponse | (model.ErrorResponse & {
|
|
32
32
|
status: 400 | 404 | 500 | 403 | 503;
|
|
33
33
|
})>;
|
|
34
34
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, 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, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, InsertCardOptionRequest, InsertCardRequest, 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, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, 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, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, 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, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, InsertCardOptionRequest, InsertCardRequest, 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, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
|
2
|
+
import { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, 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, 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, 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, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, 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, 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, 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.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,EAON,+BAA+B,EAU/B,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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAON,+BAA+B,EAU/B,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,EAUxB,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA6BhB,YAAY,EAGZ,SAAS,GACT,MAAM,SAAS,CAAA;AAEhB,OAAO,EACN,MAAM,EAON,+BAA+B,EAU/B,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,EAUxB,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA6BhB,YAAY,EAGZ,SAAS,GACT,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
|
|
2
|
+
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse";
|
|
3
|
+
import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse";
|
|
4
|
+
export declare type BookingInfoResponse = FiveFieldsBookingInfoResponse | HotelBookingInfoResponse | FlightBookingInfoResponse;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as isoly from "isoly";
|
|
2
|
+
import { FlightInfo } from "./FlightInfo";
|
|
2
3
|
import { Passengers } from "./Passengers";
|
|
3
4
|
import { References } from "./References";
|
|
4
5
|
export interface FlightBookingInfoRequest {
|
|
@@ -9,13 +10,3 @@ export interface FlightBookingInfoRequest {
|
|
|
9
10
|
currency?: isoly.Currency;
|
|
10
11
|
timestamp?: isoly.DateTime;
|
|
11
12
|
}
|
|
12
|
-
interface FlightInfo {
|
|
13
|
-
outbound?: Segment;
|
|
14
|
-
homebound?: Segment;
|
|
15
|
-
}
|
|
16
|
-
interface Segment {
|
|
17
|
-
from?: string;
|
|
18
|
-
to?: string;
|
|
19
|
-
date?: isoly.Date;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
import { FlightInfo } from "./FlightInfo";
|
|
3
|
+
import { Passengers } from "./Passengers";
|
|
4
|
+
import { References } from "./References";
|
|
5
|
+
export interface FlightBookingInfoResponse {
|
|
6
|
+
type: "FLIGHT";
|
|
7
|
+
bookingInfoIdentifier?: string;
|
|
8
|
+
trackingId?: string;
|
|
9
|
+
passengers: Passengers;
|
|
10
|
+
flight: FlightInfo;
|
|
11
|
+
references: References;
|
|
12
|
+
cost?: number;
|
|
13
|
+
currency?: isoly.Currency;
|
|
14
|
+
timestamp: isoly.DateTime;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlightBookingInfoResponse.js","sourceRoot":"../","sources":["model/FlightBookingInfoResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlightInfo.js","sourceRoot":"../","sources":["model/FlightInfo.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as isoly from "isoly";
|
|
2
|
+
import { HotelInfo } from "./HotelInfo";
|
|
2
3
|
import { Passengers } from "./Passengers";
|
|
3
4
|
import { References } from "./References";
|
|
4
5
|
export interface HotelBookingInfoRequest {
|
|
@@ -9,15 +10,3 @@ export interface HotelBookingInfoRequest {
|
|
|
9
10
|
currency?: isoly.Currency;
|
|
10
11
|
timestamp?: isoly.DateTime;
|
|
11
12
|
}
|
|
12
|
-
interface HotelInfo {
|
|
13
|
-
checkIn?: isoly.Date;
|
|
14
|
-
checkOut?: isoly.Date;
|
|
15
|
-
hotelName?: string;
|
|
16
|
-
rooms?: Room[];
|
|
17
|
-
}
|
|
18
|
-
interface Room {
|
|
19
|
-
name?: string;
|
|
20
|
-
board?: Board;
|
|
21
|
-
}
|
|
22
|
-
declare type Board = "AI" | "FB" | "HB" | "BB" | "SC" | "RO";
|
|
23
|
-
export {};
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
import { HotelInfo } from "./HotelInfo";
|
|
3
|
+
import { Passengers } from "./Passengers";
|
|
4
|
+
import { References } from "./References";
|
|
1
5
|
export interface HotelBookingInfoResponse {
|
|
2
6
|
type: "HOTEL";
|
|
3
7
|
bookingInfoIdentifier?: string;
|
|
4
8
|
trackingId?: string;
|
|
5
|
-
passengers?:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
hotel?: {
|
|
9
|
-
checkIn: string;
|
|
10
|
-
};
|
|
11
|
-
references?: {
|
|
12
|
-
supplierCode?: string;
|
|
13
|
-
supplierBookingReference?: string;
|
|
14
|
-
agentBookingReference?: string;
|
|
15
|
-
};
|
|
9
|
+
passengers?: Passengers;
|
|
10
|
+
hotel?: HotelInfo;
|
|
11
|
+
references?: References;
|
|
16
12
|
cost?: number;
|
|
17
|
-
currency?:
|
|
18
|
-
timestamp:
|
|
13
|
+
currency?: isoly.Currency;
|
|
14
|
+
timestamp: isoly.DateTime;
|
|
19
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotelInfo.js","sourceRoot":"../","sources":["model/HotelInfo.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Room.js","sourceRoot":"../","sources":["model/Room.ts"],"names":[],"mappings":""}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ import { ErrorResponse } from "./ErrorResponse";
|
|
|
51
51
|
import { FiveFieldsBookingInfoRequest } from "./FiveFieldsBookingInfoRequest";
|
|
52
52
|
import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
|
|
53
53
|
import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest";
|
|
54
|
+
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse";
|
|
55
|
+
import { FlightInfo } from "./FlightInfo";
|
|
54
56
|
import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig";
|
|
55
57
|
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
56
58
|
import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest";
|
|
@@ -59,6 +61,7 @@ import { FundingLimitRequest } from "./FundingLimitRequest";
|
|
|
59
61
|
import { FundingLimitResponse } from "./FundingLimitResponse";
|
|
60
62
|
import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest";
|
|
61
63
|
import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse";
|
|
64
|
+
import { HotelInfo } from "./HotelInfo";
|
|
62
65
|
import { InsertCardOptionRequest } from "./InsertCardOptionRequest";
|
|
63
66
|
import { InsertCardRequest } from "./InsertCardRequest";
|
|
64
67
|
import { Issue } from "./Issue";
|
|
@@ -86,6 +89,7 @@ import { RelogWithNewSessionDetailsRequest } from "./RelogWithNewSessionDetailsR
|
|
|
86
89
|
import { Report } from "./Report";
|
|
87
90
|
import { RoleResponse } from "./RoleResponse";
|
|
88
91
|
import { RolesetResponse } from "./RolesetResponse";
|
|
92
|
+
import { Room } from "./Room";
|
|
89
93
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest";
|
|
90
94
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest";
|
|
91
95
|
import { Sorting } from "./Sorting";
|
|
@@ -112,4 +116,4 @@ import { UserResponse } from "./UserResponse";
|
|
|
112
116
|
import { UserRoleResponse } from "./UserRoleResponse";
|
|
113
117
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
114
118
|
import { YearMonth } from "./YearMonth";
|
|
115
|
-
export { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, 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, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, InsertCardOptionRequest, InsertCardRequest, 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, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
|
119
|
+
export { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, 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, 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, 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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AAUnF,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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AAUnF,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;AAUrE,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;AAS7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AA6BrD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAON,+BAA+B,EAU/B,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,EAUxB,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA6BhB,YAAY,EAGZ,SAAS,GACT,CAAA"}
|
package/index.ts
CHANGED
|
@@ -53,6 +53,8 @@ import {
|
|
|
53
53
|
FiveFieldsBookingInfoRequest,
|
|
54
54
|
FiveFieldsBookingInfoResponse,
|
|
55
55
|
FlightBookingInfoRequest,
|
|
56
|
+
FlightBookingInfoResponse,
|
|
57
|
+
FlightInfo,
|
|
56
58
|
FundingAccountInboundTransferNotificationConfig,
|
|
57
59
|
FundingAccountResponseV2,
|
|
58
60
|
FundingAccountSearchRequest,
|
|
@@ -61,6 +63,7 @@ import {
|
|
|
61
63
|
FundingLimitResponse,
|
|
62
64
|
HotelBookingInfoRequest,
|
|
63
65
|
HotelBookingInfoResponse,
|
|
66
|
+
HotelInfo,
|
|
64
67
|
InsertCardOptionRequest,
|
|
65
68
|
InsertCardRequest,
|
|
66
69
|
Issue,
|
|
@@ -88,6 +91,7 @@ import {
|
|
|
88
91
|
Report,
|
|
89
92
|
RoleResponse,
|
|
90
93
|
RolesetResponse,
|
|
94
|
+
Room,
|
|
91
95
|
ScheduledTaskRequest,
|
|
92
96
|
SearchRolesetsRequest,
|
|
93
97
|
Sorting,
|
|
@@ -171,6 +175,8 @@ export {
|
|
|
171
175
|
FiveFieldsBookingInfoRequest,
|
|
172
176
|
FiveFieldsBookingInfoResponse,
|
|
173
177
|
FlightBookingInfoRequest,
|
|
178
|
+
FlightBookingInfoResponse,
|
|
179
|
+
FlightInfo,
|
|
174
180
|
FundingAccountInboundTransferNotificationConfig,
|
|
175
181
|
FundingAccountResponseV2,
|
|
176
182
|
FundingAccountSearchRequest,
|
|
@@ -179,6 +185,7 @@ export {
|
|
|
179
185
|
FundingLimitResponse,
|
|
180
186
|
HotelBookingInfoRequest,
|
|
181
187
|
HotelBookingInfoResponse,
|
|
188
|
+
HotelInfo,
|
|
182
189
|
InsertCardOptionRequest,
|
|
183
190
|
InsertCardRequest,
|
|
184
191
|
Issue,
|
|
@@ -206,6 +213,7 @@ export {
|
|
|
206
213
|
Report,
|
|
207
214
|
RoleResponse,
|
|
208
215
|
RolesetResponse,
|
|
216
|
+
Room,
|
|
209
217
|
ScheduledTaskRequest,
|
|
210
218
|
SearchRolesetsRequest,
|
|
211
219
|
Sorting,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
|
|
2
|
+
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse"
|
|
3
|
+
import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse"
|
|
4
|
+
|
|
5
|
+
export type BookingInfoResponse = FiveFieldsBookingInfoResponse | HotelBookingInfoResponse | FlightBookingInfoResponse
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as isoly from "isoly"
|
|
2
|
+
import { FlightInfo } from "./FlightInfo"
|
|
2
3
|
import { Passengers } from "./Passengers"
|
|
3
4
|
import { References } from "./References"
|
|
4
5
|
|
|
@@ -10,12 +11,3 @@ export interface FlightBookingInfoRequest {
|
|
|
10
11
|
currency?: isoly.Currency
|
|
11
12
|
timestamp?: isoly.DateTime
|
|
12
13
|
}
|
|
13
|
-
interface FlightInfo {
|
|
14
|
-
outbound?: Segment
|
|
15
|
-
homebound?: Segment
|
|
16
|
-
}
|
|
17
|
-
interface Segment {
|
|
18
|
-
from?: string
|
|
19
|
-
to?: string
|
|
20
|
-
date?: isoly.Date
|
|
21
|
-
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
2
|
+
import { FlightInfo } from "./FlightInfo"
|
|
3
|
+
import { Passengers } from "./Passengers"
|
|
4
|
+
import { References } from "./References"
|
|
5
|
+
|
|
6
|
+
export interface FlightBookingInfoResponse {
|
|
7
|
+
type: "FLIGHT"
|
|
8
|
+
bookingInfoIdentifier?: string
|
|
9
|
+
trackingId?: string
|
|
10
|
+
passengers: Passengers
|
|
11
|
+
flight: FlightInfo
|
|
12
|
+
references: References
|
|
13
|
+
cost?: number
|
|
14
|
+
currency?: isoly.Currency
|
|
15
|
+
timestamp: isoly.DateTime
|
|
16
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as isoly from "isoly"
|
|
2
|
+
import { HotelInfo } from "./HotelInfo"
|
|
2
3
|
import { Passengers } from "./Passengers"
|
|
3
4
|
import { References } from "./References"
|
|
4
5
|
|
|
@@ -10,19 +11,3 @@ export interface HotelBookingInfoRequest {
|
|
|
10
11
|
currency?: isoly.Currency
|
|
11
12
|
timestamp?: isoly.DateTime
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
interface HotelInfo {
|
|
15
|
-
checkIn?: isoly.Date
|
|
16
|
-
checkOut?: isoly.Date
|
|
17
|
-
hotelName?: string
|
|
18
|
-
rooms?: Room[]
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface Room {
|
|
22
|
-
name?: string
|
|
23
|
-
board?: Board
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
type Board = "AI" | "FB" | "HB" | "BB" | "SC" | "RO"
|
|
27
|
-
|
|
28
|
-
//AI("All Inclusive"),FB("Full Board"),HB("Half Board"),BB("Bed & Breakfast"),SC("Self Catering"),RO("Room Only");
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
2
|
+
import { HotelInfo } from "./HotelInfo"
|
|
3
|
+
import { Passengers } from "./Passengers"
|
|
4
|
+
import { References } from "./References"
|
|
5
|
+
|
|
1
6
|
export interface HotelBookingInfoResponse {
|
|
2
7
|
type: "HOTEL"
|
|
3
8
|
bookingInfoIdentifier?: string
|
|
4
9
|
trackingId?: string
|
|
5
|
-
passengers?:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
hotel?: {
|
|
9
|
-
checkIn: string
|
|
10
|
-
}
|
|
11
|
-
references?: {
|
|
12
|
-
supplierCode?: string
|
|
13
|
-
supplierBookingReference?: string
|
|
14
|
-
agentBookingReference?: string
|
|
15
|
-
}
|
|
10
|
+
passengers?: Passengers
|
|
11
|
+
hotel?: HotelInfo
|
|
12
|
+
references?: References
|
|
16
13
|
cost?: number
|
|
17
|
-
currency?:
|
|
18
|
-
timestamp:
|
|
14
|
+
currency?: isoly.Currency
|
|
15
|
+
timestamp: isoly.DateTime
|
|
19
16
|
}
|
package/model/Room.ts
ADDED
package/model/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ import { ErrorResponse } from "./ErrorResponse"
|
|
|
51
51
|
import { FiveFieldsBookingInfoRequest } from "./FiveFieldsBookingInfoRequest"
|
|
52
52
|
import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
|
|
53
53
|
import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest"
|
|
54
|
+
import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse"
|
|
55
|
+
import { FlightInfo } from "./FlightInfo"
|
|
54
56
|
import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig"
|
|
55
57
|
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2"
|
|
56
58
|
import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest"
|
|
@@ -59,6 +61,7 @@ import { FundingLimitRequest } from "./FundingLimitRequest"
|
|
|
59
61
|
import { FundingLimitResponse } from "./FundingLimitResponse"
|
|
60
62
|
import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest"
|
|
61
63
|
import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse"
|
|
64
|
+
import { HotelInfo } from "./HotelInfo"
|
|
62
65
|
import { InsertCardOptionRequest } from "./InsertCardOptionRequest"
|
|
63
66
|
import { InsertCardRequest } from "./InsertCardRequest"
|
|
64
67
|
import { Issue } from "./Issue"
|
|
@@ -86,6 +89,7 @@ import { RelogWithNewSessionDetailsRequest } from "./RelogWithNewSessionDetailsR
|
|
|
86
89
|
import { Report } from "./Report"
|
|
87
90
|
import { RoleResponse } from "./RoleResponse"
|
|
88
91
|
import { RolesetResponse } from "./RolesetResponse"
|
|
92
|
+
import { Room } from "./Room"
|
|
89
93
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest"
|
|
90
94
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest"
|
|
91
95
|
import { Sorting } from "./Sorting"
|
|
@@ -167,6 +171,8 @@ export {
|
|
|
167
171
|
FiveFieldsBookingInfoRequest,
|
|
168
172
|
FiveFieldsBookingInfoResponse,
|
|
169
173
|
FlightBookingInfoRequest,
|
|
174
|
+
FlightBookingInfoResponse,
|
|
175
|
+
FlightInfo,
|
|
170
176
|
FundingAccountInboundTransferNotificationConfig,
|
|
171
177
|
FundingAccountResponseV2,
|
|
172
178
|
FundingAccountSearchRequest,
|
|
@@ -175,6 +181,7 @@ export {
|
|
|
175
181
|
FundingLimitResponse,
|
|
176
182
|
HotelBookingInfoRequest,
|
|
177
183
|
HotelBookingInfoResponse,
|
|
184
|
+
HotelInfo,
|
|
178
185
|
InsertCardOptionRequest,
|
|
179
186
|
InsertCardRequest,
|
|
180
187
|
Issue,
|
|
@@ -202,6 +209,7 @@ export {
|
|
|
202
209
|
Report,
|
|
203
210
|
RoleResponse,
|
|
204
211
|
RolesetResponse,
|
|
212
|
+
Room,
|
|
205
213
|
ScheduledTaskRequest,
|
|
206
214
|
SearchRolesetsRequest,
|
|
207
215
|
Sorting,
|