Coupon charging method and device based on SaaS platform and electronic equipment

By creating various types of coupons on the designated driver SaaS platform and determining the billing model based on passenger driving information, the problem of low integration between the billing model and coupons in existing technologies has been solved, thereby improving the accuracy and efficiency of coupon deduction.

CN122115022APending Publication Date: 2026-05-29BEIJING LONGJU YIXING TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING LONGJU YIXING TECH CO LTD
Filing Date
2025-12-29
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing ride-hailing SaaS platforms have low integration between their billing models and coupons when calculating fares using coupons, and their deduction logic is too simplistic to meet the diverse needs of different scenarios, resulting in insufficient deduction efficiency and accuracy.

Method used

This paper provides a coupon billing method based on a SaaS platform. It creates various types of coupons with validity period, redemption location and eligible recipients, receives the target coupon and travel-related information from passengers, determines the target billing deduction model based on the billing request submitted by the passengers, and uses the target billing deduction model to deduct the passenger's travel fare.

Benefits of technology

It improves the accuracy of coupon deductions and billing efficiency, meets the flexible usage needs of different types of coupons, and enhances the accuracy and efficiency of fee settlement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122115022A_ABST
    Figure CN122115022A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of Internet, and discloses a coupon charging method based on a SaaS platform, which is applied to a tenant of the SaaS platform, and the method comprises the following steps: creating multiple types of coupons, the coupons having a valid period, a pickup location and a pickup personnel; receiving a target coupon picked up by a passenger and travel-related information; in response to a charging request submitted by the passenger, determining a target charging deduction model according to the target coupon picked up by the passenger; and according to the travel-related information, deducting the target coupon by using the target charging deduction model to determine the passenger's ride fare. Through the technical scheme, the problem that the deduction efficiency and accuracy of different types of coupons are insufficient during the fee settlement is solved, and the fee settlement efficiency and the accuracy of the coupon deduction are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and specifically to coupon billing methods, devices, and electronic devices based on SaaS platforms. Background Technology

[0002] With the continuous development of the chauffeur service market, chauffeur software operation service (SaaS) platforms provide convenient operation and management solutions for numerous tenants (chauffeur service providers). In chauffeur services, coupons are widely used as a common marketing tool to attract users, increase user stickiness, and promote order completion. However, in related technologies, the efficiency and accuracy of deducting different types of coupons during payment settlement are insufficient. Summary of the Invention

[0003] This application provides a coupon billing method, device, and electronic device based on a SaaS platform to solve the problem of insufficient efficiency and accuracy in deducting coupons during billing for different types of coupons.

[0004] Firstly, this application provides a coupon billing method based on a SaaS platform, applied to tenants of the SaaS platform, the method comprising: Create various types of coupons, each with an expiration date, redemption location, and eligible recipients; Receive the target coupons and travel-related information claimed by passengers; In response to a passenger submitting a billing request, determine the target billing deduction model based on the target coupon received by the passenger; Based on the travel-related information, the target fare deduction model is used to deduct the target coupon to determine the passenger's travel cost.

[0005] In one alternative implementation, determining the target fare deduction model based on the target coupon received by the passenger includes: If the target coupon is a mileage coupon, then the mileage-based billing deduction model will be used as the target billing deduction model. If the target coupon is a discount coupon for spending a certain amount, then the discount billing model will be used as the target billing model. If the target coupon is a discount coupon, then the discount billing model will be used as the target billing model.

[0006] In one optional implementation, based on travel-related information, a target fare deduction model is used to deduct the target coupon to determine the passenger's fare, including: If the target billing deduction model is a mileage-based billing deduction model, the fare will be determined based on the travel-related information and mileage coupons. The mileage coupons are used to reduce the fare for discounted mileage. If the target fare deduction model is a full-reduction fare deduction model, then the fare will be determined based on the travel-related information and the full-reduction coupon. If the target fare deduction model is an instant discount fare deduction model, then the fare will be determined based on the travel-related information and the instant discount coupon.

[0007] In one optional implementation, the fare is determined by deducting travel-related information and mileage coupons, including: Based on the actual mileage traveled according to the driving information, mileage coupons can be used to deduct the starting fee, mileage fee, and long-distance fee to obtain the fare.

[0008] In one optional implementation, the fare is determined based on travel-related information and discount coupons, including: If the actual fare based on the travel distance is greater than the discount amount of the coupon, the discount coupon will be applied in the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee, to determine the fare.

[0009] In one optional implementation, the fare is determined based on travel-related information and discount coupons, including: Obtain the actual mileage of the trip based on the driving information, and use the instant discount coupon to deduct the fare in the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee.

[0010] Secondly, this application provides a coupon billing method based on a SaaS platform, characterized in that it is applied to a mobile terminal, and the method includes: Claim the target coupons issued by tenants of the SaaS platform; Obtain the user's driving-related data; In response to a user-triggered billing event, driving-related data and target coupons are sent to the tenant.

[0011] Thirdly, this application provides a coupon billing device based on a SaaS platform, applied to tenants of the SaaS platform, the device comprising: The creation module is used to create various types of coupons, which include an expiration date, redemption location, and eligible recipients. The receiving module is used to receive the target coupons and driving-related information claimed by passengers; The model determination module is used to determine the target fare deduction model based on the target coupon received by the passenger in response to the passenger's fare request. The fare determination module is used to determine the passenger's fare by applying the target discount coupon to the target fare deduction model based on the travel-related information.

[0012] Fourthly, this application provides a coupon billing device based on a SaaS platform, characterized in that it is applied to a mobile terminal, and the device includes: The coupon module is used to claim target coupons issued by tenants of the SaaS platform; The acquisition module is used to acquire the user's driving-related data; The sending module is used to send driving-related data and target coupons to tenants in response to user-triggered billing events.

[0013] Fifthly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the coupon billing method based on the SaaS platform described in the first aspect or any corresponding embodiment.

[0014] Sixthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to execute the coupon billing method based on a SaaS platform as described in the first aspect or any corresponding embodiment.

[0015] In a seventh aspect, this application provides a computer program product, including computer instructions for causing a computer to execute the coupon billing method based on a SaaS platform as described in the first aspect or any corresponding embodiment thereof.

[0016] The coupon billing method based on the SaaS platform provided in this application has the following beneficial technical effects compared with existing technologies: It creates multiple types of coupons, each with an expiration date, redemption location, and eligible recipients, providing a variety of coupon types as data sources for coupon billing; it receives the target coupons and travel-related information received by passengers, providing comprehensive data preparation for coupon billing; in response to passenger-submitted billing requests, it determines the target billing deduction model based on the target coupons received by passengers, helping to use different models for billing different types of coupons, improving the accuracy and efficiency of coupon deduction; and it uses the target billing deduction model to deduct the target coupons based on travel-related information, determining the passenger's fare, thus improving the efficiency of fare settlement and the accuracy of coupon deduction. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this application; Figure 2 This is a flowchart of a coupon billing method based on a SaaS platform according to an embodiment of this application; Figure 3 This is a flowchart of another coupon billing method based on a SaaS platform according to an embodiment of this application; Figure 4 This is a flowchart illustrating another coupon billing method based on a SaaS platform according to an embodiment of this application; Figure 5 This is a structural block diagram of a coupon billing device based on a SaaS platform for tenants, according to an embodiment of this application. Figure 6 This is a structural block diagram of a coupon billing device based on a SaaS platform applied to a mobile terminal according to an embodiment of this application; Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0021] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0022] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, this SaaS-based coupon billing system may include at least one terminal device and at least one server. Figure 1 The system is illustrated in the example, which includes a computer 101, a mobile terminal 102, and a server 103, and the terminal devices such as the computer 101 and the mobile terminal 102 are connected to the server 103 through a network 110.

[0023] Specifically, the terminal device can be a smartphone, tablet, laptop, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR (Virtual Reality) device, AR (Augmented Reality) device, etc. Server 103 can be a standalone physical server, a server cluster, a distributed system, or a cloud server providing cloud services. Network 110 can be a wired or wireless network, examples of which include, but are not limited to, the Internet, corporate intranet, local area network, wide area network, mobile communication network, and combinations thereof.

[0024] It should be noted that, Figure 1 This is merely an example of an application scenario and does not limit the scope of protection of this application.

[0025] The embodiments of this application will be described below with reference to the accompanying drawings. It should be understood that the pages shown in the drawings are merely examples, and various page designs are possible in practice. The various graphic elements on the page may have different arrangements and different visual representations, one or more elements may be omitted or replaced, and one or more other elements may also be present; no limitations are imposed on the embodiments of this application. Furthermore, the embodiments are primarily described below with reference to terminal device 110. It should be understood that the actions described relative to terminal device 110 can be performed by application 101 on terminal device 110, or can be performed by application 101 in conjunction with its server (e.g., server 120).

[0026] With the continuous development of the chauffeur service market, chauffeur SaaS platforms have provided convenient operation and management solutions for numerous chauffeur service providers. In chauffeur services, coupons are a common marketing tool widely used to attract users, increase user stickiness, and promote order completion. However, existing chauffeur SaaS platforms have many problems with coupon billing.

[0027] For example, the integration of billing models and coupons is weak, and the existing billing models have a poor correlation with coupons, failing to fully consider the flexible adjustment role of coupons in the billing process. Coupons are often used only as simple amount deductions and are not deeply integrated with various fees in the billing model (such as starting fees, mileage fees, time fees, waiting fees, and long-distance fees), resulting in the potential value of coupons not being fully realized.

[0028] For example, the deduction logic is too simplistic. Existing coupon deduction logic is relatively simple, usually only supporting amount deductions and unable to provide targeted discounts based on different fee types (such as mileage fees, time fees, etc.). This single deduction method cannot meet the diverse needs of users in different scenarios. For example, users may want to get mileage fee discounts when driving long distances or deduct waiting fees when waiting time is long, but the existing model cannot provide such flexible solutions.

[0029] The billing model based on coupons is often inflexible and fails to meet the diverse marketing needs of different ride-hailing service providers. For example, different regions, time periods, and user groups may require different coupon usage rules and billing methods, but existing platforms struggle to quickly customize and adjust them. Furthermore, the lack of an efficient and accurate calculation model for combining coupons with actual trip costs leads to complex and error-prone calculations, potentially causing disputes between users and platforms. In other words, the correlation between coupons and billing models in related technologies is weak, making it difficult to accommodate various coupons across different scenarios, resulting in insufficient efficiency and accuracy in coupon deduction during cost settlement.

[0030] To facilitate understanding of the technical solution of this application, the relevant terms will first be explained: Starting fee: This is the minimum charge for chauffeur services. Within a certain range, regardless of the actual driving distance or time, users will need to pay a starting fee as long as they place an order and use the chauffeur service.

[0031] Mileage fee: This fee is calculated based on the actual mileage traveled during the chauffeur service. It is usually charged per kilometer.

[0032] Time-based fee: This fee is calculated based on the actual service time of the designated driver service. It is usually charged per hour or per minute.

[0033] Waiting fee: The waiting fee is the charge incurred by the designated driver while waiting for the user. It is usually charged per minute or per hour.

[0034] Long-distance fee: This fee is charged when the distance traveled by a designated driver service exceeds a certain range. It is usually used to compensate the designated driver for the extra costs incurred due to long-distance travel.

[0035] According to an embodiment of this application, a coupon billing method based on a SaaS platform is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0036] This embodiment provides a coupon billing method based on a SaaS platform, applicable to tenants of the SaaS platform. Figure 2 This is a flowchart of a coupon billing method based on a SaaS platform according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps: Step S201: Create various types of coupons, each with an expiration date, redemption location, and eligible recipients.

[0037] This embodiment of the coupon billing method based on the SaaS platform adopts a multi-tenant architecture design. Through technologies such as data isolation and access control, it ensures that different ride-hailing service providers (tenants) have independent, secure, and reliable data when using the platform. Each tenant can have independent coupon rule configurations and fee calculation parameter settings to meet its personalized needs. For example, tenant A can set up discount coupon rules suitable for its own business, while tenant B can set up different mileage coupon rules according to its own situation, without interfering with each other.

[0038] This embodiment of the coupon billing method based on the SaaS platform adopts containerized deployment technology, encapsulating the platform's functional modules using Docker containers and managing the containers through Kubernetes. This enables independent deployment, upgrades, and expansion of each module. When the coupon billing module needs to be updated, only the relevant container needs to be operated on, without affecting the operation of other modules, greatly improving deployment efficiency and system stability.

[0039] The platform is decomposed using a microservices architecture, breaking down coupon billing-related functions into multiple independent microservices such as coupon management and trip billing services. These microservices communicate via RPC and can be independently scaled and maintained. For example, when coupon redemption volume surges, only the coupon management microservice needs to be scaled up to ensure service response speed.

[0040] Specifically, chauffeur service providers among the tenants of the SaaS platform create various types of coupons. These coupons have attributes such as validity period, redemption location, and eligible recipients. They are used to target different regions, times, and individuals to improve the coverage and usage rate of the coupons.

[0041] Step S202: Receive the target coupon and driving-related information received by the passenger.

[0042] Specifically, the target coupon refers to the chauffeur service coupon that passengers receive on a mobile device that has access to the chauffeur service provider's services installed. Driving-related information refers to information such as the actual mileage, driving time, and waiting time of the vehicle the passenger traveled in.

[0043] After passengers arrive at the designated location by vehicle, the tenant receives the coupons and travel-related information collected by the passengers.

[0044] Step S203: In response to the passenger submitting a billing request, determine the target billing deduction model based on the target coupon received by the passenger.

[0045] Specifically, a billing request refers to the network request made by a passenger when paying for a fare on a mobile terminal. This network request is sent to the tenant to calculate the final fare. The target billing deduction model refers to the billing deduction model used for a target coupon.

[0046] When a passenger pays for their ride, or after the passenger confirms their arrival at their destination, the tenant selects the target billing deduction model that matches the target coupon the passenger has already received.

[0047] It should be noted that the tenant can automatically initiate a billing request response based on whether the passenger has reached their destination.

[0048] Step S204: Based on the driving-related information, the target fare deduction model is used to deduct the target coupon to determine the passenger's fare.

[0049] Specifically, after determining the target fare deduction model corresponding to the target coupon, the travel-related information and the information in the target coupon are combined, and the passenger's travel fare is calculated through the target fare deduction model.

[0050] In one example, the target coupon is deducted based on information such as the starting mileage, travel time, and waiting time associated with the trip, and the passenger's fare is calculated.

[0051] This embodiment provides a SaaS platform-based coupon billing method that creates various types of coupons, each with an expiration date, redemption location, and eligible recipients, providing multiple coupon types as data sources for coupon billing. It receives the target coupon and travel-related information redeemed by the passenger, providing comprehensive data preparation for coupon billing. Responding to a passenger's billing request, it determines the target billing deduction model based on the target coupon redeemed by the passenger, facilitating the use of different models for different types of coupons, improving the accuracy and efficiency of coupon deduction. Based on the travel-related information, it uses the target billing deduction model to deduct the target coupon, determining the passenger's fare, thus improving fare settlement efficiency and coupon deduction accuracy.

[0052] In an optional implementation, step S203 above, which determines the target fare deduction model based on the target coupon received by the passenger, includes: Step a1: If the target coupon is a mileage coupon, then the mileage-based billing deduction model is used as the target billing deduction model.

[0053] Step a2: If the target coupon is a discount coupon, then the discount billing model is used as the target billing model.

[0054] Step a3: If the target coupon is a discount coupon, then the discount billing model is used as the target billing model.

[0055] Specifically, mileage-based coupons are coupons that deduct fees based on mileage. The mileage-based deduction model refers to a model that deducts coupon fees based on mileage information. Full-amount-reduction coupons are coupons that deduct fees based on the total billed amount. The full-amount-reduction model refers to a model that deducts coupon fees when the total billed amount reaches a preset amount. Instant-reduction coupons are coupons that directly deduct the order amount. The instant-reduction model refers to a model that directly deducts the instant-reduction coupon amount based on the order amount.

[0056] This implementation method provides different billing models for various types of coupons, thereby improving billing efficiency and accurately calculating the deduction of various coupons.

[0057] In an optional implementation, step S204 includes: Step b1: If the target fare deduction model is a mileage-based fare deduction model, then the fare is determined by deducting based on the driving-related information and mileage coupons. The mileage coupons are used to reduce the fare for discounted mileage.

[0058] Step b2: If the target fare deduction model is a full-reduction fare deduction model, then determine the fare based on the travel-related information and the full-reduction coupon.

[0059] Step b3: If the target fare deduction model is the instant discount fare deduction model, then determine the fare based on the travel-related information and the instant discount coupon.

[0060] Specifically, mileage coupons are used to reduce the cost of rides on discounted mileage. Discount coupons are used to reduce the cost of rides on the total amount of a qualifying order. Instant discount coupons are used to reduce the cost of rides on the current order.

[0061] If the target fare deduction model is a mileage-based fare deduction model, then the fare will be calculated based on the actual mileage traveled in the driving-related information and the discounted mileage of the mileage coupon.

[0062] If the target fare deduction model is a full-reduction fare deduction model, then the fare will be calculated by deducting the total cost of the actual mileage traveled from the driving-related information and the full-reduction amount of the coupon.

[0063] If the target fare deduction model is an instant discount fare deduction model, then the fare will be calculated based on the actual mileage traveled according to the driving-related information and the instant discount amount of the instant discount coupon.

[0064] This implementation method calculates fares based on travel-related information and corresponding coupons for three different fare deduction models, thereby improving the efficiency of coupon deduction settlement.

[0065] In one optional implementation, step b1 includes: Based on the actual mileage traveled according to the driving information, mileage coupons can be used to deduct the starting fee, mileage fee, and long-distance fee to obtain the fare.

[0066] For mileage coupons, the first starting fee coupon, the first mileage fee coupon, and the first long-distance fee coupon are deducted one by one in sequence, and the starting fee, mileage fee, and long-distance fee are deducted in sequence based on the actual mileage driven in the driving-related information.

[0067] In one possible implementation, for the mileage-based billing deduction model, the mileage voucher deduction logic is executed, and the deduction amount is calculated in order of discount for each of the following fees: starting fee, mileage fee, and long-distance fee.

[0068] 1. To calculate the starting mileage discount, first determine if the initial mileage is sufficient to offset the discount. If it is, calculate the starting mileage discount amount; Formula for calculating starting fee discount:

[0069] If the distance is insufficient, the starting fee will be fully deducted, and the remaining discounted mileage will be calculated as: Discounted mileage - Starting mileage.

[0070] 2. Calculate the mileage fee discount amount and determine if the mileage for which the mileage fee is charged is sufficient to offset the remaining discounted mileage. If sufficient, calculate the mileage fee discount amount: Mileage fee discount calculation formula:

[0071] If the mileage fee is insufficient, it will be fully deducted.

[0072] 3. Calculate the long-distance fare discount; determine if the discounted mileage is greater than the starting mileage for the long-distance fare. If it is less, no long-distance fare discount is calculated; otherwise, the discount is calculated. Formula for calculating long-distance fare discounts:

[0073] In one example, a passenger receives a mileage coupon for 20km, and can use the coupon to fully deduct the mileage when the actual distance traveled is 10km.

[0074] In another example, the initial mileage is 3km, the initial fee is 12 yuan, the passenger receives a mileage coupon for 20km, the vehicle actually travels 50km with passengers, and the mileage fee is 2 yuan per kilometer. Therefore, the mileage fee = (50-3)*2 = 94 yuan, the remaining discounted mileage = 20-3 = 17km, and the mileage fee deduction = 17 / 47*94 = 34 yuan. Therefore, the total fare is 94-34 = 60 yuan.

[0075] This implementation method deducts the initial fare, then the mileage fare, and finally the long-distance fare for different travel distances. This ensures a reasonable deduction based on the actual mileage traveled, maximizing the use of mileage coupons and applying different deductions for different distances. This improves the accuracy of coupon deduction settlement.

[0076] In one optional implementation, step b2 above includes: If the actual fare based on the travel distance is greater than the discount amount of the coupon, the discount coupon will be applied in the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee, to determine the fare.

[0077] Specifically, when the coupon is a discount coupon, if the total fare for the passenger's actual travel distance is greater than the discount amount of the coupon, then the fare can be reduced. The calculation formula is: Fare = Total Fare - Discount Amount.

[0078] Furthermore, for the total fare reduction, the reduction will be applied sequentially according to the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee, until the full amount of the fare reduction is deducted.

[0079] This implementation method enables fast and accurate deduction and billing for coupons with minimum spending requirements.

[0080] In one optional implementation, step b3 above includes: Obtain the actual mileage of the trip based on the driving information, and use the instant discount coupon to deduct the fare in the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee.

[0081] Specifically, when the coupon is an instant discount coupon, it will be applied to the total fare regardless of the actual distance traveled, with the discount amount being the coupon's full amount. The discounts are applied in the following order: starting fare, mileage fare, time fare, waiting fee, and finally long-distance fare. If the discount is fully applied to an earlier fare, the application process ends. Otherwise, it continues to the next fare until the discount is exhausted.

[0082] This implementation method enables fast and accurate deduction and billing for instant discount coupons.

[0083] This embodiment provides a coupon billing method based on a SaaS platform, applicable to mobile terminals such as mobile phones and tablets. Figure 3 This is a flowchart of another coupon billing method based on a SaaS platform according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps: Step S301: Receive the target coupon issued by the tenant of the SaaS platform.

[0084] Step S302: Obtain the user's driving-related data.

[0085] In step S303, in response to a user-triggered billing event, driving-related data and target coupons are sent to the tenant.

[0086] Specifically, on the passenger's mobile terminal, the passenger receives a target coupon issued by the SaaS platform's tenant (chauffeur service provider) through an application installed on the mobile terminal. After the passenger completes the ride, the mobile terminal obtains the user's driving-related data. When the user clicks to pay or start the settlement process, a billing event is triggered. The mobile terminal sends a network request to the tenant to request billing for the current mileage and sends the driving-related data and target coupon to the tenant. This provides the tenant with driving-related data and coupon data that allow for accurate cost calculation.

[0087] Figure 4 This is a flowchart illustrating another coupon billing method based on a SaaS platform according to an embodiment of this application. Figure 4 As shown, when a passenger queries a price using their mobile terminal, the mobile terminal initiates a network request to the tenant, carrying coupon information. Based on the type of the target coupon received by the passenger, a target billing deduction model is determined. When the target coupon is a mileage-based coupon, the mileage-based billing model is used as the target billing deduction model for mileage coupon deduction logic. When the target coupon is a discount coupon, the discount billing model is used as the target billing deduction model for discount billing logic. When the target coupon is an instant discount coupon, the instant discount billing model is used as the target billing deduction model for instant discount coupon deduction logic. For these three different types of coupons, the billing methods differ. For example, the mileage-based billing model focuses more on billing based on mileage traveled, while discount and instant discount models focus more on billing based on travel time.

[0088] For the mileage coupon deduction logic, firstly, the starting mileage in the actual mileage data submitted by the passenger is compared with the discounted mileage of the mileage coupon. If the discounted mileage is less than or equal to the starting mileage, the starting fee deduction amount is calculated using the formula: Starting Fee Deduction Amount = (Discounted Mileage / Starting Mileage) * Starting Fee. If the discounted mileage is greater than the starting mileage, the starting fee is fully deducted. Remaining deductible mileage = Deductible Mileage - Starting Mileage, where the deductible mileage is the actual mileage traveled. Next, it is determined whether the remaining discounted mileage is greater than the toll-based mileage. If so, the mileage fee is fully deducted; otherwise, the mileage fee deduction amount is calculated using the formula: Mileage Fee Deduction Amount = (Remaining Discounted Mileage / Toll-Based Mileage) * Mileage Fee. For long-distance fees, it is determined whether the deductible mileage after calculating the mileage fee is greater than the starting deductible mileage for long-distance fees. If so, the toll-based long-distance fee deduction amount = ((Deductible Mileage - Starting Mileage for Long-Distance Fee) / (Actual Mileage - Starting Mileage for Long-Distance Fee)) * Long-Distance Fee.

[0089] For the full-reduction fare model, first determine whether the total fare is greater than the discount amount of the full-reduction coupon. If so, use the same processing logic as the instant-reduction fare model to deduct the coupon amount.

[0090] For the instant discount coupon deduction logic, it checks if the discount amount is greater than the starting fee. If not, the starting fee deduction amount equals the discount amount; if so, the remaining discount amount equals the discount amount minus the starting fee. It then checks if the remaining discount amount is greater than the mileage fee. If not, the mileage fee deduction amount equals the remaining coupon amount; if so, the time fee, waiting fee, and long-distance fee are calculated and deducted sequentially. This allows for fast and accurate processing of each type of coupon using the corresponding billing model, improving the efficiency and accuracy of coupon deduction and billing.

[0091] This embodiment also provides a coupon billing device based on a SaaS platform, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0092] This embodiment provides a coupon billing device based on a SaaS platform, applicable to tenants of the SaaS platform, such as... Figure 5 As shown, it includes: Create module 501 to create various types of coupons, which include an expiration date, redemption location, and eligible recipients. The receiving module 502 is used to receive the target coupon and driving-related information received by the passenger; The model determination module 503 is used to determine the target fare deduction model based on the target coupon received by the passenger in response to the passenger's submitted fare request. The fare determination module 504 is used to determine the passenger's fare by deducting the target coupon based on the driving-related information using the target fare deduction model.

[0093] In some alternative implementations, the model determination module 503 includes: The mileage-based fare deduction model determination unit is used to determine the mileage-based fare deduction model if the target coupon is a mileage-based coupon. The unit for determining the full-reduction billing and deduction model is used to determine the full-reduction billing and deduction model if the target coupon is a full-reduction coupon. The instant discount calculation and deduction model determination unit is used to determine the instant discount calculation and deduction model if the target coupon is an instant discount coupon.

[0094] In some optional implementations, the mileage-based fare deduction model determination unit includes: The first fare determination subunit is used to determine the fare based on the travel-related information and mileage coupons if the target fare deduction model is a mileage-based fare deduction model. The mileage coupons are used to reduce the fare for discounted mileage. The second fare determination subunit is used to determine the fare based on the travel-related information and the discount coupon if the target fare deduction model is a full-reduction fare deduction model. The third fare determination subunit is used to determine the fare based on the travel-related information and the discount coupon if the target fare deduction model is an instant discount fare deduction model.

[0095] In some alternative implementations, the first fare determination subunit is used for: Based on the actual mileage traveled according to the driving information, mileage coupons can be used to deduct the starting fee, mileage fee, and long-distance fee to obtain the fare.

[0096] In some optional implementations, the second fare determination subunit is used for: If the actual fare based on the travel distance is greater than the discount amount of the coupon, the discount coupon will be applied in the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee, to determine the fare.

[0097] In some alternative implementations, the third fare determination subunit is used for: Obtain the actual mileage of the trip based on the driving information, and use the instant discount coupon to deduct the fare in the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee.

[0098] This embodiment provides a coupon billing device based on a SaaS platform, applied to mobile terminals, such as... Figure 6 As shown, the device includes: The coupon module 601 is used to claim target coupons issued by tenants of the SaaS platform; The coupon module 602 is used to obtain the user's driving-related data; The coupon module 603 is used to send driving-related data and target coupons to the tenant in response to a user-triggered billing event.

[0099] The coupon billing device based on a SaaS platform provided in this application can execute the coupon billing method based on a SaaS platform provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0100] Figure 7This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0101] The following is a detailed reference. Figure 7 The diagram illustrates a structural schematic suitable for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 702 or a program loaded from memory 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device. The processor 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0102] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 7 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0103] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from memory 708, or installed from ROM 702. When the computer program is executed by processor 701, it performs the functions defined in the SaaS platform-based coupon billing method of embodiments of this application.

[0104] Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0105] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the coupon billing method based on the SaaS platform shown in the above embodiments is implemented.

[0106] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0107] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A coupon billing method based on a SaaS platform, characterized in that, The method, applied to tenants of a SaaS platform, includes: Create various types of coupons, each with an expiration date, redemption location, and eligible recipients; Receive the target coupons and travel-related information claimed by passengers; In response to the passenger submitting a billing request, a target billing deduction model is determined based on the target coupon received by the passenger; Based on the driving-related information, the target fare deduction model is used to deduct the target coupon to determine the passenger's fare.

2. The method according to claim 1, characterized in that, The step of determining the target fare deduction model based on the target coupon received by the passenger includes: If the target coupon is a mileage coupon, then the mileage-based billing deduction model shall be used as the target billing deduction model. If the target coupon is a discount coupon for spending a certain amount, then the discount billing model shall be used as the target billing model. If the target coupon is a discount coupon, then the discount billing model shall be used as the target billing model.

3. The method according to claim 2, characterized in that, The step of deducting the target coupon based on the driving association information and using the target fare deduction model to determine the passenger's fare includes: If the target billing deduction model is the mileage billing deduction model, then the deduction is made according to the driving association information and the mileage coupon to determine the ride fare. The mileage coupon is used to reduce the ride fare for the discounted mileage. If the target fare deduction model is the full-reduction fare deduction model, then the fare is determined based on the driving-related information and the full-reduction coupon. If the target fare deduction model is the instant discount fare deduction model, then the fare is determined based on the driving-related information and the instant discount coupon.

4. The method according to claim 3, characterized in that, The step of deducting the fare based on the driving-related information and mileage coupons includes: Based on the actual mileage traveled according to the driving association information, the mileage coupon is used to deduct the starting fee, mileage fee, and long-distance fee to obtain the ride fare.

5. The method according to claim 3, characterized in that, The step of determining the fare based on the driving-related information and the discount coupon includes: If the actual mileage fare associated with the driving information is greater than the discount amount of the full-reduction coupon, then the full-reduction coupon will be used to deduct the fare in the following order: starting fee, mileage fee, time fee, waiting fee, and long-distance fee, to determine the fare.

6. The method according to claim 3, characterized in that, The step of determining the fare based on the driving-related information and the instant discount coupon includes: The actual mileage of the driving information is obtained, and the instant discount coupon is used to deduct the fare in the order of starting fee, mileage fee, time fee, waiting fee, and long distance fee to determine the fare.

7. A coupon billing method based on a SaaS platform, characterized in that, Applied to a mobile terminal, the method includes: Claim the target coupons issued by the tenants of the SaaS platform; Obtain the user's driving-related data; In response to a user triggering a billing event, the driving-related data and the target coupon are sent to the tenant.

8. A coupon billing device based on a SaaS platform, characterized in that, The device is used by tenants on a SaaS platform and includes: The creation module is used to create various types of coupons, which include an expiration date, a redemption location, and eligible recipients. The receiving module is used to receive the target coupons and driving-related information claimed by passengers; The model determination module is used to determine the target fare deduction model based on the target coupon received by the passenger in response to the passenger submitting the fare request. The fare determination module is used to determine the passenger's fare by deducting the target coupon from the target fare deduction model based on the driving association information.

9. A coupon billing device based on a SaaS platform, characterized in that, The device, applied to a mobile terminal, includes: The coupon claiming module is used to claim target coupons issued by tenants of the SaaS platform; The acquisition module is used to acquire the user's driving-related data; The sending module is used to send the driving-related data and the target coupon to the tenant in response to a user-triggered billing event.

10. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the coupon billing method based on the SaaS platform as described in any one of claims 1 to 7.