com.klarna.rest.api.checkout.model.emd.FerryReservationDetails Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2018 Klarna AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.klarna.rest.api.checkout.model.emd;
import java.util.List;
/**
* The model for ferry reservation details.
*/
public class FerryReservationDetails extends Model {
/**
* PNR.
*/
private String pnr;
/**
* List of itineraries.
*/
private List itinerary;
/**
* List of insurances.
*/
private List insurance;
/**
* List of passengers.
*/
private List passengers;
/**
* Affiliate name.
*/
private String affiliateName;
/**
* Get the PNR.
*
* @return PNR.
*/
public String getPnr() {
return this.pnr;
}
/**
* Set the PNR.
*
* @param pnr PNR.
* @return Same instance.
*/
public FerryReservationDetails setPnr(final String pnr) {
this.pnr = pnr;
return this;
}
/**
* Get the list of itineraries.
*
* @return List of itineraries.
*/
public List getItinerary() {
return this.itinerary;
}
/**
* Set the list of itineraries.
*
* @param itinerary List of itineraries.
* @return Same instance.
*/
public FerryReservationDetails setItinerary(
final List itinerary) {
this.itinerary = itinerary;
return this;
}
/**
* Get the list of insurances.
*
* @return List of insurances.
*/
public List getInsurance() {
return this.insurance;
}
/**
* Set the list of insurances.
*
* @param insurance List of insurances.
* @return Same instance.
*/
public FerryReservationDetails setInsurance(
final List insurance) {
this.insurance = insurance;
return this;
}
/**
* Get the list of passengers.
*
* @return List of passengers.
*/
public List getPassengers() {
return this.passengers;
}
/**
* Set the list of passengers.
*
* @param passengers List of passengers.
* @return Same instance.
*/
public FerryReservationDetails setPassengers(
final List passengers) {
this.passengers = passengers;
return this;
}
/**
* Get the affiliate name.
*
* @return Affiliate name.
*/
public String getAffiliateName() {
return this.affiliateName;
}
/**
* Set the affiliate name.
*
* @param affiliateName Affiliate name.
* @return Same instance.
*/
public FerryReservationDetails setAffiliateName(
final String affiliateName) {
this.affiliateName = affiliateName;
return this;
}
}