mts-booking-library 1.2.26 → 1.2.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,13 +23,17 @@ export declare const initializePerson: (person?: Person | undefined | null) => P
23
23
  * @description Represents a passenger in the response of the {@link getPassengersDetails} method. This type extends the {@link Person} type
24
24
  * with the `outboundTariffs` and `returnTariffs` properties.
25
25
  *
26
+ * @property {string} outboundNotes - The notes for the outbound trip.
26
27
  * @property { Map<number, PassengerTariff>} outboundTariffs - A map containing the outbound tariffs for this passenger. The key is the trip id.
27
28
  * For every trip, the first element the value is the suggested tariff. The other elements are the other tariffs, so that the user can adjust
28
29
  * the tariff for the passenger.
30
+ * @property {string} returnNotes - The notes for the return trip.
29
31
  * @property { Map<number, PassengerTariff>} returnTariffs - Same of `outboundTariffs`, but for the return trip.
30
32
  */
31
33
  export type GetPassenger = Person & {
34
+ outboundNotes: string | null;
32
35
  outboundTariffs: Map<number, PassengerTariff[]>;
36
+ returnNotes: string | null;
33
37
  returnTariffs: Map<number, PassengerTariff[]> | null;
34
38
  };
35
39
  export declare enum BuyerDataStatus {
@@ -54,9 +58,12 @@ export type GetBuyerPassengersDetailsResponse = {
54
58
  };
55
59
  /**
56
60
  * @description Represents the type of the passengers array in {@link EditPassengersDetailsRequest}.
61
+ * @property {Map<number, number>} tripsToTariffs A dictionary containg the selected tariff for each trip (both outbound and return).
57
62
  * Note that in the `tripsToTariffs` map, the key is the trip id and the value is the chosen tariff id.
58
63
  */
59
64
  export type EditPassengerRequestType = Person & {
65
+ outboundNotes?: string | undefined;
66
+ returnNotes?: string | undefined;
60
67
  tripsToTariffs: Map<number, number>;
61
68
  };
62
69
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "Library for use MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",