Exemple #1
0
    def __init__(self, json_data):
        self.origin_station_code = json_data.get('OriginStationCode')
        self.origin_time_zone_difference = get_item(json_data.get('OriginTimeZoneDifference'), int)
        self.destination_station_code = json_data.get('DestinationStationCode')
        self.destination_time_zone_difference = get_item(json_data.get('DestinationTimeZoneDifference'), int)
        self.route_policy = json_data.get('RoutePolicy')
        self.schedules = get_array(json_data.get('Schedules'), ScheduleInfo)
        self.station_clarifying = get_item(json_data.get('StationClarifying'), StationClarifying)
        self.not_all_trains_returned = get_bool_item(json_data.get('NotAllTrainsReturned'))

        self.json_data = json_data
Exemple #2
0
    def __init__(self, json_data):
        self.origin_code = json_data.get('OriginCode')
        self.origin_time_zone_difference = get_item(json_data.get('OriginTimeZoneDifference'), int)
        self.destination_code = json_data.get('DestinationCode')
        self.destination_time_zone_difference = get_item(json_data.get('DestinationTimeZoneDifference'), int)
        self.cars = get_array(json_data.get('Cars'), CarPriceInfo)
        self.route_policy = json_data.get('RoutePolicy')
        self.train_info = get_item(json_data.get('TrainInfo'), TrainInfo)
        self.is_from_ukrain = get_bool_item(json_data.get('IsFromUkrain'))
        self.allowed_document_types = json_data.get('AllowedDocumentTypes')
        self.client_fee_calculation = get_item(json_data.get('ClientFeeCalculation'), FeeCalculation)
        self.agent_fee_calculation = get_item(json_data.get('AgentFeeCalculation'), FeeCalculation)
        self.booking_system = json_data.get('BookingSystem')

        self.json_data = json_data
    def __init__(self, json_data):
        self.order_id = get_item(json_data.get('OrderId'), int)
        self.customers = get_array(json_data.get('Customers'),
                                   OrderCustomerResponse)
        self.confirm_results = get_array(json_data.get('ConfirmResults'),
                                         RailwayConfirmResponse)

        self.json_data = json_data
Exemple #4
0
    def __init__(self, json_data):
        self.document_types = json_data.get('DocumentTypes')
        self.client_fee_calculation = get_item(
            json_data.get('ClientFeeCalculation'), FeeCalculation)
        self.agent_fee_calculation = get_item(
            json_data.get('AgentFeeCalculation'), FeeCalculation)
        self.tariff_id = json_data.get('TariffId')
        self.tariff_name = json_data.get('TariffName')
        self.tariff_type = json_data.get('TariffType')
        self.route_name = json_data.get('RouteName')
        self.description = json_data.get('Description')
        self.price = get_money(json_data.get('Price'))
        self.max_tickets_quantity_allowed_for_booking = json_data.get(
            'MaxTicketsQuantityAllowedForBooking')
        self.is_for_guaranteed_seats = json_data.get('IsForGuaranteedSeats')
        self.races = get_array(json_data.get('Races'), RaceInfo)

        self.json_data = json_data
Exemple #5
0
    def __init__(self, json_data):
        self.order_item_id = get_item(json_data.get('OrderItemId'), int)
        self.vat_rate_values = get_array(json_data.get('VatRateValues'),
                                         RateValue)
        self.meal_times = get_array(json_data.get('MealTimes'),
                                    AdditionalMealOption)
        self.agent_reference_id = json_data.get('AgentReferenceId')

        self.json_data = json_data
    def __init__(self, json_data):
        self.order_id = get_item(json_data.get('OrderId'), int)
        self.amount = get_money(json_data.get('Amount'))
        self.contact_phone = json_data.get('ContactPhone')
        self.contact_emails = json_data.get('ContactEmails')
        self.confirm_till = get_datetime(json_data.get('ConfirmTill'))
        self.customers = get_array(json_data.get('Customers'),
                                   OrderCreateReservationCustomerResponse)
        self.reservation_results = get_array(
            json_data.get('ReservationResults'), ReservationResponse)

        self.json_data = json_data
Exemple #7
0
    def __init__(self, json_data):
        self.order_customers = get_array(json_data.get('OrderCustomers'),
                                         OrderCustomerInfo)
        self.order_items = get_array(json_data.get('OrderItems'),
                                     RailwayFullOrderItemInfo)
        self.order_id = get_item(json_data.get('OrderId'), int)
        self.amount = get_money(json_data.get('Amount'))
        self.contact_phone = json_data.get('ContactPhone')
        self.contact_emails = json_data.get('ContactEmails')
        self.created = get_datetime(json_data.get('Created'))
        self.confirmed = get_datetime(json_data.get('Confirmed'))
        self.pos_sys_name = json_data.get('PosSysName')

        self.json_data = json_data
Exemple #8
0
    def __init__(self, json_data):
        self.origin_code = json_data.get('OriginCode')
        self.origin_station_code = json_data.get('OriginStationCode')
        self.origin_time_zone_difference = get_item(json_data.get('OriginTimeZoneDifference'), int)
        self.destination_code = json_data.get('DestinationCode')
        self.destination_station_code = json_data.get('DestinationStationCode')
        self.destination_time_zone_difference = get_item(json_data.get('DestinationTimeZoneDifference'), int)
        self.trains = get_array(json_data.get('Trains'), TrainPriceInfo)
        self.departure_time_description = json_data.get('DepartureTimeDescription')
        self.arrival_time_description = json_data.get('ArrivalTimeDescription')
        self.is_from_ukrain = get_bool_item(json_data.get('IsFromUkrain'))
        self.client_fee_calculation = get_item(json_data.get('ClientFeeCalculation'), FeeCalculation)
        self.agent_fee_calculation = get_item(json_data.get('AgentFeeCalculation'), FeeCalculation)
        self.not_all_trains_returned = get_bool_item(json_data.get('NotAllTrainsReturned'))
        self.station_clarifying = get_item(json_data.get('StationClarifying'), StationClarifying)
        self.booking_system = json_data.get('BookingSystem')
        self.id = get_item(json_data.get('Id'), int)
        self.route_policy = json_data.get('RoutePolicy')

        self.json_data = json_data
    def __init__(self, json_data):
        self.service_return_response = get_item(
            json_data.get('ServiceReturnResponse'),
            AeroexpressAutoReturnResponse)

        self.json_data = json_data
    def __init__(self, json_data):
        self.order_id = get_item(json_data.get('OrderId'), int)

        self.json_data = json_data
    def __init__(self, json_data):
        self.order_id = get_item(json_data.get('OrderId'), int)
        self.upsale_results = get_array(json_data.get('UpsaleResults'),
                                        CustomerUpsaleOperationResult)

        self.json_data = json_data
    def __init__(self, json_data):
        self.service_return_response = get_item(
            json_data.get('ServiceReturnResponse'),
            RailwayReturnAmountResponse)

        self.json_data = json_data
    def __init__(self, json_data):
        self.order_id = get_item(json_data.get('OrderId'), int)
        self.confirm_till = get_datetime(json_data.get('ConfirmTill'))

        self.json_data = json_data
Exemple #14
0
    def __init__(self, json_data):
        self.order_item_id = get_item(json_data.get('OrderItemId'), int)
        self.amount = get_money(json_data.get('Amount'))
        self.agent_reference_id = json_data.get('AgentReferenceId')

        self.json_data = json_data