001// Generated by delombok at Tue Dec 10 13:42:03 UTC 2024
002/*
003 * Copyright (c) 2010-2024 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.send.airline;
024
025import java.util.ArrayList;
026import java.util.List;
027import com.restfb.Facebook;
028import com.restfb.types.AbstractFacebookType;
029
030public class BoardingPass extends AbstractFacebookType {
031  @Facebook("passenger_name")
032  private String passengerName;
033  @Facebook("pnr_number")
034  private String pnrNumber;
035  @Facebook("travel_class")
036  private String travelClass;
037  @Facebook
038  private String seat;
039  @Facebook("auxiliary_fields")
040  private List<AirlineField> auxiliaryFields;
041  @Facebook("secondary_fields")
042  private List<AirlineField> secondaryFields;
043  @Facebook("logo_image_url")
044  private String logoImageUrl;
045  @Facebook("header_image_url")
046  private String headerImageUrl;
047  @Facebook("header_text_field")
048  private String headerTextField;
049  @Facebook("qr_code")
050  private String qrCode;
051  @Facebook("barcode_image_url")
052  private String barcodeImageUrl;
053  @Facebook("above_bar_code_image_url")
054  private String aboveBarCodeImageUrl;
055  @Facebook("flight_info")
056  private FlightInfo flightInfo;
057
058  public BoardingPass(String passengerName, String pnrNumber, String logoImageUrl, String aboveBarCodeImageUrl, FlightInfo flightInfo) {
059    this.passengerName = passengerName;
060    this.pnrNumber = pnrNumber;
061    this.logoImageUrl = logoImageUrl;
062    this.aboveBarCodeImageUrl = aboveBarCodeImageUrl;
063    this.flightInfo = flightInfo;
064  }
065
066  public boolean addAuxiliaryField(AirlineField auxiliaryField) {
067    if (auxiliaryFields == null) {
068      auxiliaryFields = new ArrayList<>();
069    }
070    return auxiliaryFields.add(auxiliaryField);
071  }
072
073  public boolean addSecondaryField(AirlineField secondaryField) {
074    if (secondaryFields == null) {
075      secondaryFields = new ArrayList<>();
076    }
077    return secondaryFields.add(secondaryField);
078  }
079
080  @java.lang.SuppressWarnings("all")
081  public String getPassengerName() {
082    return this.passengerName;
083  }
084
085  @java.lang.SuppressWarnings("all")
086  public String getPnrNumber() {
087    return this.pnrNumber;
088  }
089
090  @java.lang.SuppressWarnings("all")
091  public String getTravelClass() {
092    return this.travelClass;
093  }
094
095  @java.lang.SuppressWarnings("all")
096  public void setTravelClass(final String travelClass) {
097    this.travelClass = travelClass;
098  }
099
100  @java.lang.SuppressWarnings("all")
101  public String getSeat() {
102    return this.seat;
103  }
104
105  @java.lang.SuppressWarnings("all")
106  public void setSeat(final String seat) {
107    this.seat = seat;
108  }
109
110  @java.lang.SuppressWarnings("all")
111  public List<AirlineField> getAuxiliaryFields() {
112    return this.auxiliaryFields;
113  }
114
115  @java.lang.SuppressWarnings("all")
116  public void setAuxiliaryFields(final List<AirlineField> auxiliaryFields) {
117    this.auxiliaryFields = auxiliaryFields;
118  }
119
120  @java.lang.SuppressWarnings("all")
121  public List<AirlineField> getSecondaryFields() {
122    return this.secondaryFields;
123  }
124
125  @java.lang.SuppressWarnings("all")
126  public void setSecondaryFields(final List<AirlineField> secondaryFields) {
127    this.secondaryFields = secondaryFields;
128  }
129
130  @java.lang.SuppressWarnings("all")
131  public String getLogoImageUrl() {
132    return this.logoImageUrl;
133  }
134
135  @java.lang.SuppressWarnings("all")
136  public String getHeaderImageUrl() {
137    return this.headerImageUrl;
138  }
139
140  @java.lang.SuppressWarnings("all")
141  public void setHeaderImageUrl(final String headerImageUrl) {
142    this.headerImageUrl = headerImageUrl;
143  }
144
145  @java.lang.SuppressWarnings("all")
146  public String getHeaderTextField() {
147    return this.headerTextField;
148  }
149
150  @java.lang.SuppressWarnings("all")
151  public void setHeaderTextField(final String headerTextField) {
152    this.headerTextField = headerTextField;
153  }
154
155  @java.lang.SuppressWarnings("all")
156  public String getQrCode() {
157    return this.qrCode;
158  }
159
160  @java.lang.SuppressWarnings("all")
161  public void setQrCode(final String qrCode) {
162    this.qrCode = qrCode;
163  }
164
165  @java.lang.SuppressWarnings("all")
166  public String getBarcodeImageUrl() {
167    return this.barcodeImageUrl;
168  }
169
170  @java.lang.SuppressWarnings("all")
171  public void setBarcodeImageUrl(final String barcodeImageUrl) {
172    this.barcodeImageUrl = barcodeImageUrl;
173  }
174
175  @java.lang.SuppressWarnings("all")
176  public String getAboveBarCodeImageUrl() {
177    return this.aboveBarCodeImageUrl;
178  }
179
180  @java.lang.SuppressWarnings("all")
181  public FlightInfo getFlightInfo() {
182    return this.flightInfo;
183  }
184}