mts-booking-library 1.2.21 → 1.2.22

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.
@@ -71,10 +71,11 @@ export declare class ServiceBooking extends Booking {
71
71
  getBuyerFromLinkavelCard(linkavelCardNumber?: string, linkavelCardPhoneNumber?: string): Promise<ErrorResponse | Person>;
72
72
  /**
73
73
  * @description This method shall be called when the user wants to update the buyer information.
74
- * @param {Person} buyerDetails The object containing the buyer information.
74
+ * @param {Person | null} buyerDetails The object containing the buyer information.
75
+ * It should be null if the buyer data cannot be specified (see {@link GetBuyerPassengersDetailsResponse.buyerDataStatus}).
75
76
  * @returns An {@link ErrorResponse} object in case of error, true otherwise.
76
77
  */
77
- updateBuyerPassengersDetails(buyerDetails: Person): Promise<ErrorResponse | boolean>;
78
+ updateBuyerPassengersDetails(buyerDetails: Person | null): Promise<ErrorResponse | boolean>;
78
79
  /**
79
80
  * @description This method allows to add a reduction to the whole cart or to a single trip in the cart.
80
81
  * @param {AddReductionRequest} request The information about the reduction to add
@@ -336,7 +336,8 @@ var ServiceBooking = /** @class */ (function (_super) {
336
336
  };
337
337
  /**
338
338
  * @description This method shall be called when the user wants to update the buyer information.
339
- * @param {Person} buyerDetails The object containing the buyer information.
339
+ * @param {Person | null} buyerDetails The object containing the buyer information.
340
+ * It should be null if the buyer data cannot be specified (see {@link GetBuyerPassengersDetailsResponse.buyerDataStatus}).
340
341
  * @returns An {@link ErrorResponse} object in case of error, true otherwise.
341
342
  */
342
343
  ServiceBooking.prototype.updateBuyerPassengersDetails = function (buyerDetails) {
@@ -64,9 +64,10 @@ export type EditPassengerRequestType = Person & {
64
64
  * This type shall be used as request for the {@link updatePassengersDetails} method.
65
65
  *
66
66
  * @property {EditPassengerRequestType[]} passengers - An array of {@link Person} extended by the map `tripsToTariffs` objects representing the passengers.
67
- * @property {Person} buyer - The {@link Person} object representing the buyer.
67
+ * @property {Person | null} buyer - The {@link Person} object representing the buyer.
68
+ * It should be null if the buyer data cannot be specified (see {@link GetBuyerPassengersDetailsResponse.buyerDataStatus}).
68
69
  */
69
70
  export type EditPassengersDetailsRequest = {
70
71
  passengers: EditPassengerRequestType[];
71
- buyer: Person;
72
+ buyer: Person | null;
72
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "description": "Library for use MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",