pub struct Admission {Show 41 fields
pub object_type: String,
pub id: String,
pub summary: Option<Option<String>>,
pub created_on: String,
pub confirmable_until: Option<String>,
pub valid_from: String,
pub valid_until: Option<Option<String>>,
pub confirmed_on: Option<Option<String>>,
pub confirmed_fulfillment_options: Option<Box<FulfillmentOption>>,
pub price: Box<Price>,
pub refund_amount: Option<Box<Price>>,
pub trip_coverage: Option<Box<TripCoverage>>,
pub inbound_trip_coverage: Option<Box<TripCoverage>>,
pub summary_product_id: Option<String>,
pub products: Option<Vec<ProductLegAssociation>>,
pub status: BookingPartStatus,
pub pricing_status: Option<String>,
pub offer_mode: Option<OfferMode>,
pub booking_part_code: Option<String>,
pub distributor_booking_ref: Option<Option<String>>,
pub retailer_booking_ref: Option<Option<String>>,
pub passenger_ids: Vec<String>,
pub available_fulfillment_options: Option<Vec<FulfillmentOption>>,
pub refundable: RefundType,
pub exchangeable: ExchangeableType,
pub after_sale_conditions: Option<Vec<AfterSaleCondition>>,
pub after_sales_override_details: Option<Box<AfterSalesOverrideDetails>>,
pub applied_corporate_codes: Option<Vec<CorporateCode>>,
pub applied_passenger_types: Option<Vec<AppliedPassengerType>>,
pub applied_promotion_codes: Option<Vec<PromotionCode>>,
pub applied_reductions: Option<Vec<CardReference>>,
pub indicated_consumption: Option<Box<IndicatedConsumption>>,
pub accounting_ref: Option<Box<AccountingRef>>,
pub granted_reduction_amounts: Option<Box<GrantedReductionAmounts>>,
pub regional_validity: Option<Box<RegionalValidity>>,
pub regional_validities: Option<Vec<RegionalValidity>>,
pub is_reservation_required: Option<Option<bool>>,
pub fee_refs: Option<Vec<BookingPartReference>>,
pub reservation_refs: Option<Vec<BookingPartReference>>,
pub ancillary_refs: Option<Vec<BookingPartReference>>,
pub regulatory_conditions: Option<Vec<RegulatoryCondition>>,
}Expand description
Admission : An admission represents a travel right, or the entitlement to travel onboard a train between the given origin and destination, following the given route. It does not include a seat reservation.
Fields§
§object_type: StringAttribute is used as discriminator for inheritance between data types.
id: String§summary: Option<Option<String>>§created_on: StringValidity of offer towards passenger
confirmable_until: Option<String>confirmationTimeLimit in booking should be used. Date until the booking part needs to be confirmed. Must be provided for a booking part in PREBOOKED stated. For later states, the value is ignored and can be null.
valid_from: String§valid_until: Option<Option<String>>Validity of offer towards passenger
confirmed_on: Option<Option<String>>§confirmed_fulfillment_options: Option<Box<FulfillmentOption>>§price: Box<Price>§refund_amount: Option<Box<Price>>§trip_coverage: Option<Box<TripCoverage>>§inbound_trip_coverage: Option<Box<TripCoverage>>§summary_product_id: Option<String>Id of the product representing the commercial attributes of this booking part. Although not currently mandatory, this attribute should in all cases be filled in order to allow matching a booking response to the data in the booking request
products: Option<Vec<ProductLegAssociation>>In offer mode, in almost all cases exactly one product is referenced. Only on some French trips consisting of a TGV and a TER two products need to be used. In fare mode, no product exists as first needs to created from the different fares.
status: BookingPartStatus§pricing_status: Option<String>payment status in post-payment scenarios
offer_mode: Option<OfferMode>§booking_part_code: Option<String>The unique booking code for the part in the provider system.
distributor_booking_ref: Option<Option<String>>reference to the booking in the downstream distributor system
retailer_booking_ref: Option<Option<String>>reference to the booking in the downstream distributor system
passenger_ids: Vec<String>Id of the passenger
available_fulfillment_options: Option<Vec<FulfillmentOption>>§refundable: RefundType§exchangeable: ExchangeableType§after_sale_conditions: Option<Vec<AfterSaleCondition>>Fine grained specification of the after sale condition of the booking.
after_sales_override_details: Option<Box<AfterSalesOverrideDetails>>§applied_corporate_codes: Option<Vec<CorporateCode>>§applied_passenger_types: Option<Vec<AppliedPassengerType>>§applied_promotion_codes: Option<Vec<PromotionCode>>§applied_reductions: Option<Vec<CardReference>>§indicated_consumption: Option<Box<IndicatedConsumption>>§accounting_ref: Option<Box<AccountingRef>>§granted_reduction_amounts: Option<Box<GrantedReductionAmounts>>§regional_validity: Option<Box<RegionalValidity>>§regional_validities: Option<Vec<RegionalValidity>>This contains multiple regional validities for this item and replaces the regionalValidity (deprecated) attribute.
is_reservation_required: Option<Option<bool>>§fee_refs: Option<Vec<BookingPartReference>>§reservation_refs: Option<Vec<BookingPartReference>>§ancillary_refs: Option<Vec<BookingPartReference>>§regulatory_conditions: Option<Vec<RegulatoryCondition>>Implementations§
Source§impl Admission
impl Admission
Sourcepub fn new(
object_type: String,
id: String,
created_on: String,
valid_from: String,
price: Price,
status: BookingPartStatus,
passenger_ids: Vec<String>,
refundable: RefundType,
exchangeable: ExchangeableType,
) -> Admission
pub fn new( object_type: String, id: String, created_on: String, valid_from: String, price: Price, status: BookingPartStatus, passenger_ids: Vec<String>, refundable: RefundType, exchangeable: ExchangeableType, ) -> Admission
An admission represents a travel right, or the entitlement to travel onboard a train between the given origin and destination, following the given route. It does not include a seat reservation.