1- import { CabinClass , Place , PlaceType } from '../../types'
1+ import { Airline , CabinClass , Place , PlaceType } from '../../types'
22import { Offer } from '../Offers/OfferTypes'
33
44export interface OfferRequestSlice {
@@ -42,6 +42,31 @@ export interface OfferRequestPassenger {
4242 */
4343 type ?: 'adult'
4444
45+ /**
46+ * The passenger's family name. Only `space`, `-`, `'`, and letters from the `ASCII`, `Latin-1 Supplement` and `Latin
47+ * Extended-A` (with the exceptions of `Æ`, `æ`, `IJ`, `ij`, `Œ`, `œ`, `Þ`, , and `ð`) Unicode charts are accepted. All
48+ * other characters will result in a validation error. The minimum length is 1 character, and the maximum is 20
49+ * characters.
50+ *
51+ * This is only required if you're also including **Loyalty Programme Accounts**.
52+ */
53+ family_name ?: string
54+
55+ /**
56+ * The passenger's given name. Only `space`, `-`, `'`, and letters from the `ASCII`, `Latin-1 Supplement` and `Latin
57+ * Extended-A` (with the exceptions of `Æ`, `æ`, `IJ`, `ij`, `Œ`, `œ`, `Þ`, , and `ð`) Unicode charts are accepted. All
58+ * other characters will result in a validation error. The minimum length is 1 character, and the maximum is 20
59+ * characters.
60+ *
61+ * This is only required if you're also including **Loyalty Programme Accounts**.
62+ */
63+ given_name ?: string
64+
65+ /**
66+ * The **Loyalty Programme Accounts** for this passenger.
67+ */
68+ loyalty_programme_accounts ?: LoyaltyProgrammeAccount [ ]
69+
4570 /**
4671 * The identifier for the passenger, unique within this Offer Request and across all Offer Requests.
4772 * This ID will be generated by Duffel unless you had optionally provided one.
@@ -50,6 +75,21 @@ export interface OfferRequestPassenger {
5075 id : string
5176}
5277
78+ /**
79+ * The **Loyalty Programme Account** details.
80+ */
81+ export interface LoyaltyProgrammeAccount {
82+ /**
83+ * The passenger's account number for this **Loyalty Programme Account**.
84+ */
85+ account_number : string
86+
87+ /**
88+ * The IATA code for the airline that this **Loyalty Programme Account** belongs to.
89+ */
90+ airline_iata_code : Airline [ 'iata_code' ]
91+ }
92+
5393/**
5494 * To search for flights, you'll need to create an offer request.
5595 * An offer request describes the passengers and where and when they want to travel (in the form of a list of slices).
0 commit comments