mts-booking-library 2.4.5 → 2.4.7
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) {
|
@@ -124,7 +124,7 @@ export declare class TplBooking extends Booking {
|
|
124
124
|
* with the subscription. This parameter is required if the cart contains a subscription.
|
125
125
|
* @returns An {@link ErrorResponse} object in case of error, true otherwise.
|
126
126
|
*/
|
127
|
-
updateBuyerPassengersDetails(buyerDetails: PersonDetails | null, subscriptionPersonCode?: string, options?: ApiCallOptions): Promise<ErrorResponse | boolean>;
|
127
|
+
updateBuyerPassengersDetails(buyerDetails: PersonDetails | null, subscriptionPersonCode?: string, noSSN?: boolean, options?: ApiCallOptions): Promise<ErrorResponse | boolean>;
|
128
128
|
/**
|
129
129
|
* @description This method allows to add a reduction to the whole cart or to a single trip in the cart.
|
130
130
|
* @param request The information about the reduction to add
|
@@ -440,7 +440,7 @@ var TplBooking = /** @class */ (function (_super) {
|
|
440
440
|
* with the subscription. This parameter is required if the cart contains a subscription.
|
441
441
|
* @returns An {@link ErrorResponse} object in case of error, true otherwise.
|
442
442
|
*/
|
443
|
-
TplBooking.prototype.updateBuyerPassengersDetails = function (buyerDetails, subscriptionPersonCode, options) {
|
443
|
+
TplBooking.prototype.updateBuyerPassengersDetails = function (buyerDetails, subscriptionPersonCode, noSSN, options) {
|
444
444
|
return __awaiter(this, void 0, void 0, function () {
|
445
445
|
var buyerPassengersDetails, request, url;
|
446
446
|
var _this = this;
|
@@ -466,7 +466,8 @@ var TplBooking = /** @class */ (function (_super) {
|
|
466
466
|
personCode: subscriptionPersonCode
|
467
467
|
}
|
468
468
|
]
|
469
|
-
: []
|
469
|
+
: [],
|
470
|
+
noSSN: noSSN !== null && noSSN !== void 0 ? noSSN : false
|
470
471
|
};
|
471
472
|
url = "".concat(this.config.API_ENDPOINT, "/v3_booking/carts/details");
|
472
473
|
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
|
};
|