Class: Booking
- Inherits:
-
Reservation
- Object
- ActiveRecord::Base
- ApplicationRecord
- Reservation
- Booking
- Defined in:
- app/models/booking.rb
Overview
typed: ignore
Constant Summary
Constants inherited from Reservation
Reservation::AMOUNT_REFERRER_REWARD_POINT_MY, Reservation::AMOUNT_REFERRER_REWARD_POINT_SG, Reservation::AMOUNT_REFERRER_REWARD_POINT_TH, Reservation::CREATED_BY, Reservation::DEFAULT_END_TIME, Reservation::DINNER_PERIODS, Reservation::LUNCH_PERIODS, Reservation::PERIODS, Reservation::PERIODS_WITHOUT_00_AM, Reservation::RATING_DELAY_TIME, Reservation::THANK_YOU_MSG_DELAY
Constants included from ModelExt::Reservations::InstanceMethods
ModelExt::Reservations::InstanceMethods::RAddOn, ModelExt::Reservations::InstanceMethods::Rpackage
Method Summary
Methods inherited from Reservation
#additional_special_request, #additional_special_request=, #adult, #adult=, #business_booking, #business_booking=, #cache_key, #channel=, #charge_price, #charge_price_float, #charge_price_v1, #dummy?, #email_menu_template, #find_package_by_name, #kids=, #last_minute?, #modified?, #modified_reservations, #origin_save, #origin_save!, #reduced_with_promo?, remove_phone_prefix, #reservation_packages_with_menus, #reservation_single_package_with_menus, #save, #save!, #selected_packages, #selected_promo_package, #show_delivery_fee?, #show_hah_delivery_details?, #special_request_for_staff, #spending_tier_discount, #start_time=, #to_json, #to_url_hash, #total_price, #total_price_float, #total_price_v1, #validate_date?
Methods included from ModelExt::CreatedFromWebsite
Methods included from ModelExt::Reservations::PartnerInstanceMethods
#customer_icon, #delivery_detail, #delivery_status_partner, #dine_in_status_partner, #driver_details, #format_percentage, #note_to_driver, #package_type, #paid_by_admin_status, #paid_status, #partner_status_property, #payment_method, #payment_status, #payment_summary, #self_pickup_status_partner
Methods included from ProgressStatus
#available_delivery_status, #convert_from_grab_as_symbol, #convert_from_lalamove, #convert_from_lalamove_as_symbol, #convert_from_reservation, #owner_delivery_progress
Methods included from ModelExt::Reservations::Callbacks
#push_booking_notification, #push_inventory_notification, #trigger_creation_sync, #trigger_destroy_sync, #trigger_immediate_sync, #trigger_priority_sync, #trigger_summary_sync, #update_inv_relations
Methods included from ModelExt::Reservations::CreditCard
#change_payment_type_provider!, #change_promptpay_provider, #charge_amount, #charged_amount, #charged_amount_in_baht, #charged_by_gb_primepay?, #charged_by_omise?, #could_charge_again?, #paid_amount, #paid_at, #paid_cc?, #paid_charges, #paid_non_cc?, #payment_gateway, #payment_gateway_account, #payment_provider, #payment_type, #payment_type_as_symbol, #payment_type_provider, #payment_type_record, #pending_payment_non_cc?, #prepayment_percent, #require_prepayment?, #using_charge_channel?, #using_on_hold_channel?
Methods included from ModelExt::Reservations::InstanceMethods
#add_on_bought, #add_on_data_for_report, #add_on_obj, #allowed_to_rectify?, #aoa_channel?, #assign_charged_data, #assign_refund_guarantee_data, #by_bistrochat?, #by_corporate_employee?, #by_marketplace?, #by_mymenu?, #by_seven_rooms?, #by_tablecheck?, #by_weeloy?, #call_order_later_driver_at, #call_order_now_driver_at, #can_request_more_bike?, #cancel_preparing!, #cancelled?, #channel_group_name, #channel_name, #channel_uri_name, #corporate_order?, #courier_tracking_link, #created_at_format, #created_by_admin_staff_or_owner?, #date_format, #date_format_ext, #delivery?, #delivery_address_humanize, #delivery_address_link, #delivery_fee_money, #delivery_status, #delivery_type?, #dine_in?, #dine_in_type?, #dont_mark_as_arrived!, #dont_mark_as_no_show!, #eligible_to_get_instant_reward?, #eligible_to_get_reward?, #email, #end_time=, #end_time_format, #firebase_tracking_key, #food_ready_by, #formatted_menus, #full_datetime, #generate_tag_list, #get_driving_duration, #google_reserve_channel?, #has_cancelled_with_refund?, #inventory_class, #inventory_klass, #inventory_reservation_klass, #inventory_times, #is_past?, #last_minute?, #mark_as_arrived!, #mark_as_canceled!, #mark_as_for_locking_system!, #mark_as_invalid_temporary_booking!, #mark_as_no_show!, #mark_as_prepared!, #mark_as_valid_reservation!, #mark_voucher_as_active!, #mark_voucher_as_inactive!, #name, #need_request_choice?, #new_formatted_menus, #no_show?, #omise_payment_gateway?, #openrice_channel?, #original_delivery_fee_money, #owner_phone, #package_bought, #package_data_for_report, #package_obj, #package_price_currency, #party_size_changed?, #payment_failed_url, #payment_success_url, #pending?, #phone, #phone=, #phone_intl, #private_channel?, #qr_code_for_payment, #qr_code_for_payment_expired_at, #reached_goal?, #ready_to_cook?, #redeemed_points, #refund_fee_amount_float, #refundable_amount_float, #rejected?, #reservation_time, #reservation_time_24h_passed?, #revenue_amount, #review, #self_pickup?, #service_type_humanize, #shopee_pay_url, #skip_sending_netcore_event?, #special_request_without_package_menus, #start_time=, #start_time_and_date_changed?, #start_time_format, #status, #status_as_symbol, #status_changed?, #status_for_owner, #tagthai_channel?, #temporary_lock?, #true_wallet_for_payment_expired_at, #true_wallet_url, #upcoming?, #use_third_party_reservation?, #username, #valid_to_cancel_temporary_booking?, #voucher_codes_humanize, #voucher_names_humanize, #vouchers_amount, #web_url, #web_v2_host_vendor
Methods included from RefundGuaranteeHelper
#calculate_min_refund_hours, #calculate_refundable_until_time