@pax2pay/client 0.0.71 → 0.0.72

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.
@@ -1,10 +1,11 @@
1
1
  import { AccountResponse } from "./AccountResponse";
2
2
  import { BookingInfo } from "./BookingInfo";
3
- import { BookingInfoResponse } from "./BookingInfoResponse";
4
3
  import { CardDeliveryResponse } from "./CardDeliveryResponse";
5
4
  import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
6
5
  import { CardTypeSpecification } from "./CardTypeSpecification";
7
6
  import { CardUsage } from "./CardUsage";
7
+ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
8
+ import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse";
8
9
  import { ProviderCode } from "./ProviderCode";
9
10
  export interface CardResponse {
10
11
  cardType?: CardTypeSpecification | string;
@@ -28,7 +29,7 @@ export interface CardResponse {
28
29
  fundingAccount?: AccountResponse;
29
30
  creatingSystem?: "PORTAL" | "REST_API" | "FAB" | "REST_API_PORTAL" | "REST_API_EXTERNAL" | "SOAP_API_FAB" | "SOAP_API_EXTERNAL" | "CRON" | "UNKNOWN" | "UNDEFINED";
30
31
  createdBy?: string;
31
- bookingInfo?: BookingInfo | BookingInfoResponse;
32
+ bookingInfo?: BookingInfo | FiveFieldsBookingInfoResponse | HotelBookingInfoResponse;
32
33
  schedule?: CardScheduleResponseItem[];
33
34
  delivery?: CardDeliveryResponse;
34
35
  }
@@ -1,8 +1,10 @@
1
1
  export interface FiveFieldsBookingInfoResponse {
2
- bookingInfoIdentifier?: string;
2
+ type: "FIVE_FIELDS";
3
+ bookingInfoIdentifier: string;
3
4
  agentBookingReference?: string;
4
5
  departureDate?: string;
5
6
  supplierBookingReference?: string;
6
7
  leadPassengerName?: string;
7
8
  supplierCode?: string;
9
+ trackingId?: string;
8
10
  }
@@ -0,0 +1,19 @@
1
+ export interface HotelBookingInfoResponse {
2
+ type: "HOTEL";
3
+ bookingInfoIdentifier?: string;
4
+ 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
+ };
16
+ cost?: number;
17
+ currency?: string;
18
+ timestamp: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HotelBookingInfoResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HotelBookingInfoResponse.js","sourceRoot":"../","sources":["model/HotelBookingInfoResponse.ts"],"names":[],"mappings":""}
@@ -1,10 +1,11 @@
1
1
  import { AccountResponse } from "./AccountResponse"
2
2
  import { BookingInfo } from "./BookingInfo"
3
- import { BookingInfoResponse } from "./BookingInfoResponse"
4
3
  import { CardDeliveryResponse } from "./CardDeliveryResponse"
5
4
  import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
6
5
  import { CardTypeSpecification } from "./CardTypeSpecification"
7
6
  import { CardUsage } from "./CardUsage"
7
+ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
8
+ import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse"
8
9
  import { ProviderCode } from "./ProviderCode"
9
10
 
10
11
  export interface CardResponse {
@@ -39,7 +40,7 @@ export interface CardResponse {
39
40
  | "UNKNOWN"
40
41
  | "UNDEFINED"
41
42
  createdBy?: string
42
- bookingInfo?: BookingInfo | BookingInfoResponse
43
+ bookingInfo?: BookingInfo | FiveFieldsBookingInfoResponse | HotelBookingInfoResponse
43
44
  schedule?: CardScheduleResponseItem[]
44
45
  delivery?: CardDeliveryResponse
45
46
  }
@@ -1,8 +1,10 @@
1
1
  export interface FiveFieldsBookingInfoResponse {
2
- bookingInfoIdentifier?: string
2
+ type: "FIVE_FIELDS"
3
+ bookingInfoIdentifier: string
3
4
  agentBookingReference?: string
4
5
  departureDate?: string
5
6
  supplierBookingReference?: string
6
7
  leadPassengerName?: string
7
8
  supplierCode?: string
9
+ trackingId?: string
8
10
  }
@@ -0,0 +1,19 @@
1
+ export interface HotelBookingInfoResponse {
2
+ type: "HOTEL"
3
+ bookingInfoIdentifier?: string
4
+ 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
+ }
16
+ cost?: number
17
+ currency?: string
18
+ timestamp: string
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",