public function toArray()

in btripopen-20220520/src/Models/HotelBillSettlementQueryResponseBody/module/dataList.php [618:1022]


    public function toArray($noStream = false)
    {
        $res = [];
        if (null !== $this->agreementPromotionFee) {
            $res['agreement_promotion_fee'] = $this->agreementPromotionFee;
        }

        if (null !== $this->alipayTradeNo) {
            $res['alipay_trade_no'] = $this->alipayTradeNo;
        }

        if (null !== $this->applyArrCityCode) {
            $res['apply_arr_city_code'] = $this->applyArrCityCode;
        }

        if (null !== $this->applyArrCityName) {
            $res['apply_arr_city_name'] = $this->applyArrCityName;
        }

        if (null !== $this->applyDepCityCode) {
            $res['apply_dep_city_code'] = $this->applyDepCityCode;
        }

        if (null !== $this->applyDepCityName) {
            $res['apply_dep_city_name'] = $this->applyDepCityName;
        }

        if (null !== $this->applyExtendField) {
            $res['apply_extend_field'] = $this->applyExtendField;
        }

        if (null !== $this->applyId) {
            $res['apply_id'] = $this->applyId;
        }

        if (null !== $this->averageNights) {
            $res['average_nights'] = $this->averageNights;
        }

        if (null !== $this->billRecordTime) {
            $res['bill_record_time'] = $this->billRecordTime;
        }

        if (null !== $this->billingEntity) {
            $res['billing_entity'] = $this->billingEntity;
        }

        if (null !== $this->bookChannel) {
            $res['book_channel'] = $this->bookChannel;
        }

        if (null !== $this->bookMode) {
            $res['book_mode'] = $this->bookMode;
        }

        if (null !== $this->bookReason) {
            $res['book_reason'] = $this->bookReason;
        }

        if (null !== $this->bookTime) {
            $res['book_time'] = $this->bookTime;
        }

        if (null !== $this->bookerId) {
            $res['booker_id'] = $this->bookerId;
        }

        if (null !== $this->bookerJobNo) {
            $res['booker_job_no'] = $this->bookerJobNo;
        }

        if (null !== $this->bookerName) {
            $res['booker_name'] = $this->bookerName;
        }

        if (null !== $this->brandGroup) {
            $res['brand_group'] = $this->brandGroup;
        }

        if (null !== $this->brandName) {
            $res['brand_name'] = $this->brandName;
        }

        if (null !== $this->businessTripResult) {
            $res['business_trip_result'] = $this->businessTripResult;
        }

        if (null !== $this->cancelOrModifyReason) {
            $res['cancel_or_modify_reason'] = $this->cancelOrModifyReason;
        }

        if (null !== $this->cancelOrModifyScene) {
            $res['cancel_or_modify_scene'] = $this->cancelOrModifyScene;
        }

        if (null !== $this->capitalDirection) {
            $res['capital_direction'] = $this->capitalDirection;
        }

        if (null !== $this->cascadeDepartment) {
            $res['cascade_department'] = $this->cascadeDepartment;
        }

        if (null !== $this->categoryDesc) {
            $res['category_desc'] = $this->categoryDesc;
        }

        if (null !== $this->checkInDate) {
            $res['check_in_date'] = $this->checkInDate;
        }

        if (null !== $this->checkoutDate) {
            $res['checkout_date'] = $this->checkoutDate;
        }

        if (null !== $this->city) {
            $res['city'] = $this->city;
        }

        if (null !== $this->cityCode) {
            $res['city_code'] = $this->cityCode;
        }

        if (null !== $this->cityCounty) {
            $res['city_county'] = $this->cityCounty;
        }

        if (null !== $this->cityCountyCode) {
            $res['city_county_code'] = $this->cityCountyCode;
        }

        if (null !== $this->corpRefundFee) {
            $res['corp_refund_fee'] = $this->corpRefundFee;
        }

        if (null !== $this->corpTotalFee) {
            $res['corp_total_fee'] = $this->corpTotalFee;
        }

        if (null !== $this->costCenter) {
            $res['cost_center'] = $this->costCenter;
        }

        if (null !== $this->costCenterNumber) {
            $res['cost_center_number'] = $this->costCenterNumber;
        }

        if (null !== $this->deductibleTax) {
            $res['deductible_tax'] = $this->deductibleTax;
        }

        if (null !== $this->department) {
            $res['department'] = $this->department;
        }

        if (null !== $this->departmentId) {
            $res['department_id'] = $this->departmentId;
        }

        if (null !== $this->exceedReason) {
            $res['exceed_reason'] = $this->exceedReason;
        }

        if (null !== $this->feeType) {
            $res['fee_type'] = $this->feeType;
        }

        if (null !== $this->feeTypeDesc) {
            $res['fee_type_desc'] = $this->feeTypeDesc;
        }

        if (null !== $this->fees) {
            $res['fees'] = $this->fees;
        }

        if (null !== $this->fines) {
            $res['fines'] = $this->fines;
        }

        if (null !== $this->fuPointFee) {
            $res['fu_point_fee'] = $this->fuPointFee;
        }

        if (null !== $this->hotelName) {
            $res['hotel_name'] = $this->hotelName;
        }

        if (null !== $this->index) {
            $res['index'] = $this->index;
        }

        if (null !== $this->insOrderId) {
            $res['ins_order_id'] = $this->insOrderId;
        }

        if (null !== $this->insuranceNumber) {
            $res['insurance_number'] = $this->insuranceNumber;
        }

        if (null !== $this->insurancePrice) {
            $res['insurance_price'] = $this->insurancePrice;
        }

        if (null !== $this->insuranceProductName) {
            $res['insurance_product_name'] = $this->insuranceProductName;
        }

        if (null !== $this->invoiceTitle) {
            $res['invoice_title'] = $this->invoiceTitle;
        }

        if (null !== $this->isEarlyDeparture) {
            $res['is_early_departure'] = $this->isEarlyDeparture;
        }

        if (null !== $this->isNegotiation) {
            $res['is_negotiation'] = $this->isNegotiation;
        }

        if (null !== $this->isShareStr) {
            $res['is_share_str'] = $this->isShareStr;
        }

        if (null !== $this->nights) {
            $res['nights'] = $this->nights;
        }

        if (null !== $this->noAdvanceBookingReason) {
            $res['no_advance_booking_reason'] = $this->noAdvanceBookingReason;
        }

        if (null !== $this->orderId) {
            $res['order_id'] = $this->orderId;
        }

        if (null !== $this->orderPrice) {
            $res['order_price'] = $this->orderPrice;
        }

        if (null !== $this->orderType) {
            $res['order_type'] = $this->orderType;
        }

        if (null !== $this->originalReserveRule) {
            $res['original_reserve_rule'] = $this->originalReserveRule;
        }

        if (null !== $this->overApplyId) {
            $res['over_apply_id'] = $this->overApplyId;
        }

        if (null !== $this->paymentDepartmentId) {
            $res['payment_department_id'] = $this->paymentDepartmentId;
        }

        if (null !== $this->paymentDepartmentName) {
            $res['payment_department_name'] = $this->paymentDepartmentName;
        }

        if (null !== $this->personRefundFee) {
            $res['person_refund_fee'] = $this->personRefundFee;
        }

        if (null !== $this->personSettlePrice) {
            $res['person_settle_price'] = $this->personSettlePrice;
        }

        if (null !== $this->primaryId) {
            $res['primary_id'] = $this->primaryId;
        }

        if (null !== $this->projectCode) {
            $res['project_code'] = $this->projectCode;
        }

        if (null !== $this->projectName) {
            $res['project_name'] = $this->projectName;
        }

        if (null !== $this->promotionFee) {
            $res['promotion_fee'] = $this->promotionFee;
        }

        if (null !== $this->recoverMoneyReceiptAmt) {
            $res['recover_money_receipt_amt'] = $this->recoverMoneyReceiptAmt;
        }

        if (null !== $this->remark) {
            $res['remark'] = $this->remark;
        }

        if (null !== $this->reserveRule) {
            $res['reserve_rule'] = $this->reserveRule;
        }

        if (null !== $this->roomNo) {
            $res['room_no'] = $this->roomNo;
        }

        if (null !== $this->roomNumber) {
            $res['room_number'] = $this->roomNumber;
        }

        if (null !== $this->roomPrice) {
            $res['room_price'] = $this->roomPrice;
        }

        if (null !== $this->roomType) {
            $res['room_type'] = $this->roomType;
        }

        if (null !== $this->sceneId) {
            $res['scene_id'] = $this->sceneId;
        }

        if (null !== $this->sceneName) {
            $res['scene_name'] = $this->sceneName;
        }

        if (null !== $this->serviceFee) {
            $res['service_fee'] = $this->serviceFee;
        }

        if (null !== $this->settleTypeDesc) {
            $res['settle_type_desc'] = $this->settleTypeDesc;
        }

        if (null !== $this->settlementFee) {
            $res['settlement_fee'] = $this->settlementFee;
        }

        if (null !== $this->settlementGrantFee) {
            $res['settlement_grant_fee'] = $this->settlementGrantFee;
        }

        if (null !== $this->settlementTime) {
            $res['settlement_time'] = $this->settlementTime;
        }

        if (null !== $this->settlementType) {
            $res['settlement_type'] = $this->settlementType;
        }

        if (null !== $this->star) {
            $res['star'] = $this->star;
        }

        if (null !== $this->status) {
            $res['status'] = $this->status;
        }

        if (null !== $this->statusDesc) {
            $res['status_desc'] = $this->statusDesc;
        }

        if (null !== $this->taxRate) {
            $res['tax_rate'] = $this->taxRate;
        }

        if (null !== $this->thirdItineraryId) {
            $res['third_itinerary_id'] = $this->thirdItineraryId;
        }

        if (null !== $this->totalNights) {
            $res['total_nights'] = $this->totalNights;
        }

        if (null !== $this->tradeActionDesc) {
            $res['trade_action_desc'] = $this->tradeActionDesc;
        }

        if (null !== $this->travelerId) {
            $res['traveler_id'] = $this->travelerId;
        }

        if (null !== $this->travelerJobNo) {
            $res['traveler_job_no'] = $this->travelerJobNo;
        }

        if (null !== $this->travelerMemberType) {
            $res['traveler_member_type'] = $this->travelerMemberType;
        }

        if (null !== $this->travelerMemberTypeName) {
            $res['traveler_member_type_name'] = $this->travelerMemberTypeName;
        }

        if (null !== $this->travelerName) {
            $res['traveler_name'] = $this->travelerName;
        }

        if (null !== $this->unbookedLowestPriceReason) {
            $res['unbooked_lowest_price_reason'] = $this->unbookedLowestPriceReason;
        }

        if (null !== $this->voucherType) {
            $res['voucher_type'] = $this->voucherType;
        }

        if (null !== $this->voucherTypeDesc) {
            $res['voucher_type_desc'] = $this->voucherTypeDesc;
        }

        return $res;
    }