mts-booking-library 3.1.1 → 3.3.0

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.
@@ -19,6 +19,8 @@ export type Person = {
19
19
  notes?: string;
20
20
  /** The social security number of the person. */
21
21
  socialSecurityNumber?: string | null;
22
+ /** The sex of the person. M = male, F = female, O = other. */
23
+ sex?: "M" | "F" | "O" | null;
22
24
  };
23
25
  export declare const DEFAULT_PERSON: Person;
24
26
  export declare const initializePerson: (person?: Person | undefined | null) => Person;
@@ -55,6 +57,8 @@ export type GetPassenger = Person & {
55
57
  passengerPhoneNumberOption: PersonDataFieldStatus;
56
58
  /** Whether the passenger social security number is reuqired, optional or cannot be specified. */
57
59
  passengerSSNOption: PersonDataFieldStatus;
60
+ /** Whether the passenger sex is required, optional or cannot be specified. */
61
+ passengerSexOption?: PersonDataFieldStatus;
58
62
  };
59
63
  export declare enum PersonDataFieldStatus {
60
64
  /** The field (e.g. the buyer's email) is optional. The input shall be displayed, but the user can skip it. */
@@ -8,7 +8,8 @@ exports.DEFAULT_PERSON = {
8
8
  lastName: "",
9
9
  email: "",
10
10
  phoneNumber: "",
11
- socialSecurityNumber: null
11
+ socialSecurityNumber: null,
12
+ sex: undefined
12
13
  };
13
14
  var initializePerson = function (person) {
14
15
  if (!person) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "3.1.1",
3
+ "version": "3.3.0",
4
4
  "description": "Library for using MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",