@pax2pay/client 0.0.77 → 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.
Files changed (45) hide show
  1. package/Client/Cards/index.ts +8 -1
  2. package/dist/Client/Cards/index.d.ts +5 -2
  3. package/dist/Client/Cards/index.js +5 -1
  4. package/dist/Client/Cards/index.js.map +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +2 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/model/BookingInfoResponse.d.ts +4 -3
  9. package/dist/model/CardDeliveryResponse.d.ts +3 -0
  10. package/dist/model/CardDeliveryResponse.js +15 -1
  11. package/dist/model/CardDeliveryResponse.js.map +1 -1
  12. package/dist/model/CardResponseV2.d.ts +2 -0
  13. package/dist/model/CardResponseV2.js +3 -1
  14. package/dist/model/CardResponseV2.js.map +1 -1
  15. package/dist/model/FlightBookingInfoRequest.d.ts +1 -10
  16. package/dist/model/FlightBookingInfoResponse.d.ts +15 -0
  17. package/dist/model/FlightBookingInfoResponse.js +2 -0
  18. package/dist/model/FlightBookingInfoResponse.js.map +1 -0
  19. package/dist/model/FlightInfo.d.ts +12 -0
  20. package/dist/model/FlightInfo.js +2 -0
  21. package/dist/model/FlightInfo.js.map +1 -0
  22. package/dist/model/HotelBookingInfoRequest.d.ts +1 -12
  23. package/dist/model/HotelBookingInfoResponse.d.ts +9 -13
  24. package/dist/model/HotelInfo.d.ts +8 -0
  25. package/dist/model/HotelInfo.js +2 -0
  26. package/dist/model/HotelInfo.js.map +1 -0
  27. package/dist/model/Room.d.ts +5 -0
  28. package/dist/model/Room.js +2 -0
  29. package/dist/model/Room.js.map +1 -0
  30. package/dist/model/index.d.ts +5 -1
  31. package/dist/model/index.js +2 -1
  32. package/dist/model/index.js.map +1 -1
  33. package/index.ts +8 -0
  34. package/model/BookingInfoResponse.ts +5 -3
  35. package/model/CardDeliveryResponse.ts +14 -0
  36. package/model/CardResponseV2.ts +4 -1
  37. package/model/FlightBookingInfoRequest.ts +1 -9
  38. package/model/FlightBookingInfoResponse.ts +16 -0
  39. package/model/FlightInfo.ts +13 -0
  40. package/model/HotelBookingInfoRequest.ts +1 -16
  41. package/model/HotelBookingInfoResponse.ts +10 -13
  42. package/model/HotelInfo.ts +9 -0
  43. package/model/Room.ts +8 -0
  44. package/model/index.ts +8 -0
  45. package/package.json +1 -1
@@ -56,6 +56,13 @@ export class Cards extends List<
56
56
  async getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode) {
57
57
  const result = await this.connection.get<model.CardResponse>(`/booking-info/cards/${providerCode}/${providerCardId}
58
58
  `)
59
- return model.ErrorResponse.is(result) ? result : this.mapLegacy(result)
59
+ return result
60
+ }
61
+ async editCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode, request: Record<string, any>) {
62
+ const result = await this.connection.put<model.BookingInfoResponse>(
63
+ `/booking-info/cards/${providerCode}/${providerCardId}`,
64
+ request
65
+ )
66
+ return result
60
67
  }
61
68
  }
@@ -25,7 +25,10 @@ export declare class Cards extends List<model.CardResponseV2 | model.CardRespons
25
25
  getFundingAccounts(searchRequest: model.FundingAccountSearchRequest): Promise<(model.ErrorResponse & {
26
26
  status: 400 | 404 | 500 | 403 | 503;
27
27
  }) | model.CardFundingAccountResponse[]>;
28
- getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
28
+ getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode): Promise<model.CardResponse | (model.ErrorResponse & {
29
29
  status: 400 | 404 | 500 | 403 | 503;
30
- }) | (Card & model.CardResponse)>;
30
+ })>;
31
+ editCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode, request: Record<string, any>): Promise<model.BookingInfoResponse | (model.ErrorResponse & {
32
+ status: 400 | 404 | 500 | 403 | 503;
33
+ })>;
31
34
  }
@@ -46,7 +46,11 @@ export class Cards extends List {
46
46
  async getCardBookingInfo(providerCardId, providerCode) {
47
47
  const result = await this.connection.get(`/booking-info/cards/${providerCode}/${providerCardId}
48
48
  `);
49
- return model.ErrorResponse.is(result) ? result : this.mapLegacy(result);
49
+ return result;
50
+ }
51
+ async editCardBookingInfo(providerCardId, providerCode, request) {
52
+ const result = await this.connection.put(`/booking-info/cards/${providerCode}/${providerCardId}`, request);
53
+ return result;
50
54
  }
51
55
  }
52
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,KAAM,SAAQ,IAK1B;IAEA,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,eAAe,CAAA;IAGlC,CAAC;IACS,eAAe,CAAC,QAAmD;QAC5E,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/E,CAAC;IACS,cAAc,CAAC,QAA8B;QACtD,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAA;IACpH,CAAC;IACS,GAAG,CAAC,QAA8B;QAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAA;IACpG,CAAC;IACS,SAAS,CAAC,QAA4B;QAC/C,OAAO,MAAM,CA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MAAM,GAAG,MAAM,IAAI,CAAC,UAAU;aAClC,GAAG,CAAqB,iBAAiB,YAAY,IAAI,cAAc;CAC1E,CAAC,CAAA;QACA,OAAO,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;IACxE,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,YAAgC;QAClD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAA2B,kBAAkB,YAAY,EAAE,CAAC,CAAA;QACpG,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,kBAAkB,CAAC,aAAgD;QACxE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CACxC,2BAA2B,EAC3B,aAAa,CACb,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,kBAAkB,CAAC,cAAsB,EAAE,YAAgC;QAChF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,uBAAuB,YAAY,IAAI,cAAc;CACnH,CAAC,CAAA;QACA,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,mBAAmB,CAAC,cAAsB,EAAE,YAAgC,EAAE,OAA4B;QAC/G,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACvC,uBAAuB,YAAY,IAAI,cAAc,EAAE,EACvD,OAAO,CACP,CAAA;QACD,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, 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 CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Client } from "./Client";
2
- import { AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, } from "./model";
3
- export { Client, AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
2
+ import { AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, } from "./model";
3
+ export { Client, AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, 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,EAON,+BAA+B,EAU/B,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EAEnB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAKb,wBAAwB,EASxB,KAA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,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
- export interface BookingInfoResponse {
2
- bookingInfoIdentifier?: string;
3
- }
1
+ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
2
+ import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse";
3
+ import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse";
4
+ export declare type BookingInfoResponse = FiveFieldsBookingInfoResponse | HotelBookingInfoResponse | FlightBookingInfoResponse;
@@ -8,3 +8,6 @@ export interface CardDeliveryResponse {
8
8
  status: "SUCCESS" | "FAILURE" | "TODO";
9
9
  statusText?: string;
10
10
  }
11
+ export declare namespace CardDeliveryResponse {
12
+ function is(value: CardDeliveryResponse | any): value is CardDeliveryResponse;
13
+ }
@@ -1,2 +1,16 @@
1
- export {};
1
+ import * as isoly from "isoly";
2
+ export var CardDeliveryResponse;
3
+ (function (CardDeliveryResponse) {
4
+ function is(value) {
5
+ return (typeof value == "object" &&
6
+ value.type == "EMAIL" &&
7
+ (typeof value.to == "string" || typeof value.to == "object") &&
8
+ typeof value.deliveredMessage == "string" &&
9
+ isoly.Date.is(value.linkExpiry) &&
10
+ typeof value.sent == "string" &&
11
+ typeof value.statusText == "string" &&
12
+ (value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO"));
13
+ }
14
+ CardDeliveryResponse.is = is;
15
+ })(CardDeliveryResponse || (CardDeliveryResponse = {}));
2
16
  //# sourceMappingURL=CardDeliveryResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardDeliveryResponse.js","sourceRoot":"../","sources":["model/CardDeliveryResponse.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"CardDeliveryResponse.js","sourceRoot":"../","sources":["model/CardDeliveryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,MAAM,KAAW,oBAAoB,CAapC;AAbD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,IAAI,IAAI,OAAO;YACrB,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC;YAC5D,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ;YACzC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC/B,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ;YACnC,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,CAClF,CAAA;IACF,CAAC;IAXe,uBAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,oBAAoB,KAApB,oBAAoB,QAapC"}
@@ -1,3 +1,4 @@
1
+ import { CardDeliveryResponse } from "./CardDeliveryResponse";
1
2
  import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
2
3
  import { CardTypeSpecification } from "./CardTypeSpecification";
3
4
  import { CardUsage } from "./CardUsage";
@@ -18,6 +19,7 @@ export interface CardResponseV2 {
18
19
  fundingAccount: FundingAccountResponseV2;
19
20
  schedule: CardScheduleResponseItem[];
20
21
  createdBy: string;
22
+ delivery?: CardDeliveryResponse;
21
23
  }
22
24
  export declare namespace CardResponseV2 {
23
25
  function is(value: CardResponseV2 | any): value is CardResponseV2;
@@ -1,3 +1,4 @@
1
+ import { CardDeliveryResponse } from "./CardDeliveryResponse";
1
2
  import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
2
3
  import { CardTypeSpecification } from "./CardTypeSpecification";
3
4
  import { CardUsage } from "./CardUsage";
@@ -23,7 +24,8 @@ export var CardResponseV2;
23
24
  value.schedule.every((a) => {
24
25
  return CardScheduleResponseItem.is(a);
25
26
  }) &&
26
- typeof value.createdBy == "string");
27
+ typeof value.createdBy == "string" &&
28
+ CardDeliveryResponse.is(value.delivery));
27
29
  }
28
30
  CardResponseV2.is = is;
29
31
  })(CardResponseV2 || (CardResponseV2 = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAkBvC,MAAM,KAAW,cAAc,CAsB9B;AAtBD,WAAiB,cAAc;IAC9B,SAAgB,EAAE,CAAC,KAA2B;QAC7C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,IAAI,qBAAqB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC/E,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ;YACnC,OAAO,KAAK,CAAC,GAAG,IAAI,QAAQ;YAC5B,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC9B,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ;YACnC,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YACnC,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AAK,CAAC,GAAG,IAAI,QAAQ;YAC5B,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC9B,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ;YACnC,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YACnC,OAAO,KAAK,CAAC,cAAc,IAAI,QAAQ;YACvC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YACzB,wBAAwB,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;YACjD,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC7B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE;gBAC/B,OAAO,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;YACtC,CAAC,CAAC;YACF,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CACvC,CAAA;IACF,CAAC;IArBe,iBAAE,KAqBjB,CAAA;AACF,CAAC,EAvBgB,cAAc,KAAd,cAAc,QAuB9B"}
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FlightBookingInfoResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlightBookingInfoResponse.js","sourceRoot":"../","sources":["model/FlightBookingInfoResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import * as isoly from "isoly";
2
+ export interface FlightInfo {
3
+ outbound: Segment;
4
+ homebound?: Segment;
5
+ }
6
+ interface Segment {
7
+ from: string;
8
+ to: string;
9
+ date: isoly.Date;
10
+ flightNumbers?: string[];
11
+ }
12
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FlightInfo.js.map
@@ -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
- leadPassengerName: string;
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?: string;
18
- timestamp: string;
13
+ currency?: isoly.Currency;
14
+ timestamp: isoly.DateTime;
19
15
  }
@@ -0,0 +1,8 @@
1
+ import * as isoly from "isoly";
2
+ import { Room } from "./Room";
3
+ export interface HotelInfo {
4
+ checkIn?: isoly.Date;
5
+ checkOut?: isoly.Date;
6
+ hotelName?: string;
7
+ rooms?: Room[];
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HotelInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HotelInfo.js","sourceRoot":"../","sources":["model/HotelInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface Room {
2
+ name?: string;
3
+ board?: Board;
4
+ }
5
+ export declare type Board = "AI" | "FB" | "HB" | "BB" | "SC" | "RO";
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Room.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Room.js","sourceRoot":"../","sources":["model/Room.ts"],"names":[],"mappings":""}
@@ -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, };
@@ -2,6 +2,7 @@ import { AccountStatementTransactionType } from "./AccountStatementTransactionTy
2
2
  import { BookingInfoType } from "./BookingInfoType";
3
3
  import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
4
4
  import { CardDeliveryRequest } from "./CardDeliveryRequest";
5
+ import { CardDeliveryResponse } from "./CardDeliveryResponse";
5
6
  import { CardFundingAccountResponse } from "./CardFundingAccountResponse";
6
7
  import { CardResponseV2 } from "./CardResponseV2";
7
8
  import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
@@ -22,5 +23,5 @@ import { ProviderCode } from "./ProviderCode";
22
23
  import { ProviderResponse } from "./ProviderResponse";
23
24
  import { UserResponse } from "./UserResponse";
24
25
  import { YearMonth } from "./YearMonth";
25
- export { AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
26
+ export { AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1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yB,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
- export interface BookingInfoResponse {
2
- bookingInfoIdentifier?: string
3
- }
1
+ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
2
+ import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse"
3
+ import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse"
4
+
5
+ export type BookingInfoResponse = FiveFieldsBookingInfoResponse | HotelBookingInfoResponse | FlightBookingInfoResponse
@@ -9,3 +9,17 @@ export interface CardDeliveryResponse {
9
9
  status: "SUCCESS" | "FAILURE" | "TODO"
10
10
  statusText?: string
11
11
  }
12
+ export namespace CardDeliveryResponse {
13
+ export function is(value: CardDeliveryResponse | any): value is CardDeliveryResponse {
14
+ return (
15
+ typeof value == "object" &&
16
+ value.type == "EMAIL" &&
17
+ (typeof value.to == "string" || typeof value.to == "object") &&
18
+ typeof value.deliveredMessage == "string" &&
19
+ isoly.Date.is(value.linkExpiry) &&
20
+ typeof value.sent == "string" &&
21
+ typeof value.statusText == "string" &&
22
+ (value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO")
23
+ )
24
+ }
25
+ }
@@ -1,3 +1,4 @@
1
+ import { CardDeliveryResponse } from "./CardDeliveryResponse"
1
2
  import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
2
3
  import { CardTypeSpecification } from "./CardTypeSpecification"
3
4
  import { CardUsage } from "./CardUsage"
@@ -19,6 +20,7 @@ export interface CardResponseV2 {
19
20
  fundingAccount: FundingAccountResponseV2
20
21
  schedule: CardScheduleResponseItem[]
21
22
  createdBy: string
23
+ delivery?: CardDeliveryResponse
22
24
  }
23
25
 
24
26
  export namespace CardResponseV2 {
@@ -40,7 +42,8 @@ export namespace CardResponseV2 {
40
42
  value.schedule.every((a: any) => {
41
43
  return CardScheduleResponseItem.is(a)
42
44
  }) &&
43
- typeof value.createdBy == "string"
45
+ typeof value.createdBy == "string" &&
46
+ CardDeliveryResponse.is(value.delivery)
44
47
  )
45
48
  }
46
49
  }
@@ -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
+ }
@@ -0,0 +1,13 @@
1
+ import * as isoly from "isoly"
2
+
3
+ export interface FlightInfo {
4
+ outbound: Segment
5
+ homebound?: Segment
6
+ }
7
+
8
+ interface Segment {
9
+ from: string
10
+ to: string
11
+ date: isoly.Date
12
+ flightNumbers?: string[]
13
+ }
@@ -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
- leadPassengerName: string
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?: string
18
- timestamp: string
14
+ currency?: isoly.Currency
15
+ timestamp: isoly.DateTime
19
16
  }
@@ -0,0 +1,9 @@
1
+ import * as isoly from "isoly"
2
+ import { Room } from "./Room"
3
+
4
+ export interface HotelInfo {
5
+ checkIn?: isoly.Date
6
+ checkOut?: isoly.Date
7
+ hotelName?: string
8
+ rooms?: Room[]
9
+ }
package/model/Room.ts ADDED
@@ -0,0 +1,8 @@
1
+ export interface Room {
2
+ name?: string
3
+ board?: Board
4
+ }
5
+
6
+ export type Board = "AI" | "FB" | "HB" | "BB" | "SC" | "RO"
7
+
8
+ //AI("All Inclusive"),FB("Full Board"),HB("Half Board"),BB("Bed & Breakfast"),SC("Self Catering"),RO("Room Only");
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.0.77",
3
+ "version": "0.0.80",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",