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

        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 #3
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 = json_data.get('OrderId')
        self.amount = get_money(json_data.get('Amount'))
        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 #5
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 #6
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 #7
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
Exemple #8
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 #9
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, tariff_id: str, departure_date: datetime, passengers: 'list of int', index: int,
                 schedule_id: str=None, provider_payment_form: ProviderPaymentForm=None, agent_reference_id: str=None,
                 agent_payment_id: str=None):
        self.type = 'ApiContracts.Aeroexpress.V1.Messages.Reservation.AeroexpressReservationRequest, ApiContracts'
        self.tariff_id = tariff_id
        self.departure_date = departure_date
        self.passengers = utils.get_array(passengers, AeroexpressPassengerRequest)
        self.index = index
        self.schedule_id = schedule_id
        self.provider_payment_form = provider_payment_form
        self.agent_reference_id = agent_reference_id
        self.agent_payment_id = agent_payment_id

        self.json_data = {
            'type': self.type,
            'tariff_id': self.tariff_id,
            'departure_date': utils.str_datetime(self.departure_date),
            'passengers': [item.order_customer_index for item in self.passengers],
            'index': self.index,
            'schedule_id': self.schedule_id,
            'provider_payment_form': self.provider_payment_form,
            'agent_reference_id': self.agent_reference_id,
            'agent_payment_id': self.agent_payment_id
        }
Exemple #11
0
    def __init__(self, json_data):
        self.routes = get_array(json_data.get('Routes'), Route)

        self.json_data = json_data
Exemple #12
0
    def __init__(self, json_data):
        self.tariffs = get_array(json_data.get('Tariffs'),
                                 TariffPriceInfoResponse)

        self.json_data = json_data
    def __init__(self, json_data):
        self.orders = get_array(json_data.get('Orders'),
                                AeroexpressShortOrderInfo)

        self.json_data = json_data
Exemple #14
0
    def __init__(self, json_data):
        self.orders = get_array(json_data.get('Orders'), RailwayShortOrderInfo)

        self.json_data = json_data
Exemple #15
0
    def __init__(self, json_data):
        self.transport_nodes = get_array(json_data.get('TransportNodes'),
                                         TransportNode)

        self.json_data = json_data
Exemple #16
0
    def __init__(self, json_data):
        self.cities = get_array(json_data.get('Cities'), City)

        self.json_data = json_data
Exemple #17
0
    def __init__(self, json_data):
        self.countries = get_array(json_data.get('Countries'), Country)

        self.json_data = json_data
Exemple #18
0
    def __init__(self, json_data):
        self.regions = get_array(json_data.get('Regions'), Region)

        self.json_data = json_data
Exemple #19
0
    def __init__(self, json_data):
        self.meal_options = get_array(json_data.get('MealOptions'), MealOption)

        self.json_data = json_data
Exemple #20
0
    def __init__(self, json_data):
        self.train_pricings = get_array(json_data.get('TrainPricings'), TrainPricingResponse)
        self.routes = get_array(json_data.get('Routes'), RouteReferenced)
        self.not_all_train_pricings_returned = json_data.get('NotAllTrainPricingsReturned')

        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.expiration_electronic_registration_date_time = get_datetime(
            json_data.get('ExpirationElectronicRegistrationDateTime'))
        self.blanks = get_array(json_data.get('Blanks'), RailwayBlankInfo)

        self.json_data = json_data
    def __init__(self, json_data):
        self.blanks = get_array(json_data.get('Blanks'), RailwayBlankInfo)
        self.is_modified = get_bool_item(json_data.get('IsModified'))

        self.json_data = json_data