mts-booking-library 2.4.5 → 2.4.6
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.
@@ -110,7 +110,7 @@ export declare class ServiceBooking extends Booking {
|
|
110
110
|
* It should be null if the buyer data cannot be specified (see {@link GetBuyerPassengersDetailsResponse.buyerDataStatus}).
|
111
111
|
* @returns An {@link ErrorResponse} object in case of error, true otherwise.
|
112
112
|
*/
|
113
|
-
updateBuyerPassengersDetails(buyerDetails: PersonDetails | null, options?: ApiCallOptions): Promise<ErrorResponse | boolean>;
|
113
|
+
updateBuyerPassengersDetails(buyerDetails: PersonDetails | null, noSSN?: boolean, options?: ApiCallOptions): Promise<ErrorResponse | boolean>;
|
114
114
|
/**
|
115
115
|
* @description This method allows to add a reduction to the whole cart or to a single trip in the cart.
|
116
116
|
* @param request The information about the reduction to add
|
@@ -385,7 +385,7 @@ var ServiceBooking = /** @class */ (function (_super) {
|
|
385
385
|
* It should be null if the buyer data cannot be specified (see {@link GetBuyerPassengersDetailsResponse.buyerDataStatus}).
|
386
386
|
* @returns An {@link ErrorResponse} object in case of error, true otherwise.
|
387
387
|
*/
|
388
|
-
ServiceBooking.prototype.updateBuyerPassengersDetails = function (buyerDetails, options) {
|
388
|
+
ServiceBooking.prototype.updateBuyerPassengersDetails = function (buyerDetails, noSSN, options) {
|
389
389
|
return __awaiter(this, void 0, void 0, function () {
|
390
390
|
var buyerPassengersDetails, request, url;
|
391
391
|
var _this = this;
|
@@ -401,7 +401,8 @@ var ServiceBooking = /** @class */ (function (_super) {
|
|
401
401
|
request = {
|
402
402
|
cartGuid: this.cart.guid,
|
403
403
|
buyer: buyerDetails,
|
404
|
-
passengers: []
|
404
|
+
passengers: [],
|
405
|
+
noSSN: noSSN !== null && noSSN !== void 0 ? noSSN : false
|
405
406
|
};
|
406
407
|
url = "".concat(this.config.API_ENDPOINT, "/v3_booking/carts/details");
|
407
408
|
return [2 /*return*/, this.callPostApi(url, request, options).then(function (response) {
|
@@ -93,6 +93,8 @@ export type GetBuyerPassengersDetailsResponse = {
|
|
93
93
|
buyerSSNOption: PersonDataFieldStatus;
|
94
94
|
/** An array of {@link GetPassenger} objects representing the passengers. */
|
95
95
|
passengers: GetPassenger[] | null;
|
96
|
+
/** Whether the buyer has opposed to tax deduction for this cart. */
|
97
|
+
noSSN: boolean | null;
|
96
98
|
};
|
97
99
|
/**
|
98
100
|
* @description Represents the type of the passengers array in {@link EditPassengersDetailsRequest}.
|
@@ -116,4 +118,9 @@ export type EditPassengersDetailsRequest = {
|
|
116
118
|
* It should be null if the buyer data cannot be specified (see {@link GetBuyerPassengersDetailsResponse.buyerDataStatus}).
|
117
119
|
*/
|
118
120
|
buyer: PersonDetails | null;
|
121
|
+
/**
|
122
|
+
* Whether the buyer has opposed to tax deduction.
|
123
|
+
* This should be scoped to the cart, and is different from the preference saved for each buyer, which should only act as the default
|
124
|
+
*/
|
125
|
+
noSSN: boolean | null;
|
119
126
|
};
|