Billing method, system, device, equipment and storage medium
By receiving charging rule instructions and configuring the template according to the charging template identifier and parameters, the configured charging rules are generated, which solves the problem of tedious generation of charging rules in the existing technology and realizes efficient generation of charging rules.
Patent Information
- Application Number
- CN202211054081.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-08-31
AI Technical Summary
In the existing technology, the complexity and diversity of charging rules require developers to develop multiple configuration files for different charging policies, resulting in a heavy workload and cumbersome generation of charging rules.
By receiving the billing rule instructions, determining the configuration template according to the billing template identifier, configuring the configuration template according to the billing parameters, and generating the configured billing rules, thereby directly generating the billing rules, avoiding the need to generate billing rules each time Reproduction of previous configuration templates.
It simplifies the generation process of billing rules, reduces the workload of developers, improves efficiency, and avoids waste of resources.
Smart Images

Figure CN115412384B
Abstract
Description
Background Art
[0002] In order to meet the needs of different users, major operators have launched different tariff packages. Different tariff packages can meet the needs of different users for call duration and data usage, but different tariff packages require corresponding different billing strategies.
[0003] Currently, in order to configure different billing strategies, developers need to develop configuration files corresponding to different billing strategies. However, due to the large number of billing strategies, the workload of developers is heavy. Summary of the invention
[0004] The present disclosure provides a charging method, system, apparatus, device and storage medium, which at least to some extent overcome the problem of heavy workload of current charging rule developers.
[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0006] According to one aspect of the present disclosure, there is provided a charging method, comprising:
[0007] Receiving a billing rule generation instruction, the billing rule generation instruction including a billing template identifier and billing parameters;
[0008] Determine, according to the billing template identifier, a configuration template corresponding to the billing template identifier;
[0009] Configure the configuration template according to the billing parameters to obtain a completed configuration template;
[0010] Generate a first billing rule according to the configured configuration template;
[0011] The charging is performed according to the first charging rule.
[0012] In one embodiment of the present disclosure, determining a configuration template corresponding to a billing template identifier according to the billing template identifier includes:
[0013] Determine the billing template according to the billing template identifier;
[0014] The configuration template corresponding to the billing template is determined according to the billing template and a predetermined correspondence relationship between the billing template and the configuration template.
[0015] In one embodiment of the present disclosure, the configuration template includes a plurality of configuration rules;
[0016] Configure the configuration template according to the billing parameters to obtain the completed configuration template, including:
[0017] Determine the configuration rules that need to be configured in the configuration template according to the billing parameters and the correspondence between the pre-set billing parameters and the configuration rules in the configuration template;
[0018] The configuration rules are configured according to the calculation parameters to obtain a configuration template that has been configured.
[0019] In one embodiment of the present disclosure, before receiving a charge rule generation instruction, the charge rule generation instruction including a charge template identifier and a charge parameter, the method further includes:
[0020] receiving a second charging rule;
[0021] Determining, according to the second charging rule, whether a configuration template for generating the second charging rule is the same as a pre-stored configuration template;
[0022] In the case that the configuration template for generating the second charging rule is the same as the pre-stored configuration template, charging is performed according to the second charging rule.
[0023] In one embodiment of the present disclosure, after determining whether the configuration template for generating the second charging rule is the same as the pre-stored configuration template according to the second charging rule, the method further includes:
[0024] In a case where the configuration template for generating the second charging rule is different from the pre-stored configuration template, an instruction for generating a charging rule is received.
[0025] In one embodiment of the present disclosure, the billing template identifier includes a billing template name and a billing template type;
[0026] The billing template name includes at least one of a monthly package fee, domestic traffic within the package, and a data excess traffic fee;
[0027] The billing template type includes at least one of a functional fee, an in-package service volume, and a domestic Internet access fee.
[0028] According to another aspect of the present disclosure, there is provided a billing system, including: a generating device and an executing device;
[0029] A generating device, configured to receive a generating charging rule instruction, the generating charging rule instruction including a charging template identifier and a charging parameter, determine a configuration template corresponding to the charging template identifier according to the charging template identifier, configure the configuration template according to the charging parameter to obtain a configured configuration template, generate a first charging rule according to the configured configuration template, and send the first charging rule to an executing device;
[0030] The execution device is used to perform billing according to the first billing rule.
[0031] According to another aspect of the present disclosure, a charging device is provided, the device comprising:
[0032] A first receiving module, configured to receive an instruction for generating a charging rule, wherein the instruction for generating a charging rule includes a charging template identifier and a charging parameter;
[0033] A first determining module, configured to determine a configuration template corresponding to the billing template identifier according to the billing template identifier;
[0034] A configuration module, used to configure the configuration template according to the billing parameters to obtain a configured configuration template;
[0035] A generating module, used to generate a first charging rule according to the configured configuration template;
[0036] The first charging module is used to perform charging according to a first charging rule.
[0037] In one embodiment of the present disclosure, the first determining module includes:
[0038] A first determining unit, configured to determine a billing template according to a billing template identifier;
[0039] The second determining unit is used to determine the configuration template corresponding to the billing template according to the billing template and a predetermined correspondence relationship between the billing template and the configuration template.
[0040] In one embodiment of the present disclosure, the configuration template includes a plurality of configuration rules;
[0041] Configuration modules, including:
[0042] A third determining unit, configured to determine the configuration rules to be configured in the configuration template according to the charging parameters and the correspondence between the preset charging parameters and the configuration rules in the configuration template;
[0043] The configuration unit is used to configure the configuration rules according to the calculation parameters to obtain a configuration template that has been configured.
[0044] In one embodiment of the present disclosure, the charging device further includes:
[0045] A second receiving module, used for receiving a second charging rule before receiving a charge rule generation instruction, the charge rule generation instruction including a charge template identifier and a charge parameter;
[0046] A second determination module, used to determine whether the configuration template for generating the second charging rule is the same as the pre-stored configuration template according to the second charging rule;
[0047] The second charging module is used to perform charging according to the second charging rule when the configuration template for generating the second charging rule is the same as the pre-stored configuration template.
[0048] In one embodiment of the present disclosure, the charging device further includes:
[0049] The third receiving module is used to receive a generating charging rule instruction if the configuration template for generating the second charging rule is different from the pre-stored configuration template after determining whether the configuration template for generating the second charging rule is the same as the pre-stored configuration template according to the second charging rule.
[0050] In one embodiment of the present disclosure, the billing template identifier includes a billing template name and a billing template type;
[0051] The billing template name includes at least one of a monthly package fee, domestic traffic within the package, and a data excess traffic fee;
[0052] The billing template type includes at least one of a functional fee, an in-package service volume, and a domestic Internet access fee.
[0053] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-mentioned billing method by executing the executable instructions.
[0054] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned billing method is implemented.
[0055] The billing method provided by the embodiment of the present disclosure receives a billing rule instruction, then determines a configuration template corresponding to a billing template identifier according to a billing template identifier, then configures the configuration template according to billing parameters to obtain a configured configuration template, then generates a first billing rule according to the configured configuration template, and then bills according to the first billing rule. Thus, due to the use of a pre-set configuration template, before generating a billing rule, the pre-set configuration template is configured using the billing parameters included in the billing rule instruction, and then the first billing rule is directly generated. Thus, due to the use of a pre-set configuration template, the problem of cumbersome billing rule generation caused by the need to generate a configuration template each time before generating a billing rule is avoided.
[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0058] Figure 1 A schematic diagram showing a billing system structure in an embodiment of the present disclosure;
[0059] Figure 2 A flowchart of a charging method in an embodiment of the present disclosure is shown;
[0060] Figure 3 Another billing method flow chart in the embodiment of the present disclosure is shown;
[0061] Figure 4 A flowchart of another charging method in an embodiment of the present disclosure is shown;
[0062] Figure 5 A flowchart of another charging method in an embodiment of the present disclosure is shown;
[0063] Figure 6 A flowchart of another charging method in an embodiment of the present disclosure is shown;
[0064] Figure 7 A schematic diagram of a charging device in an embodiment of the present disclosure is shown; and
[0065] Figure 8 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0066] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0067] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0068] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0069] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0070] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0071] Billing rules are the rules and standards that operators use to charge customers. Currently, billing rules in operator services are often composed of multiple tariff rules combined with various restrictions. They are highly complex and flexible, and the number is huge.
[0072] Due to the high complexity of billing rules, a billing rule often involves multiple database tables to be implemented, which leads to the problem that it is difficult to generate billing rules.
[0073] In order to solve the above problems, the embodiments of the present disclosure provide a charging method, system, apparatus, device and storage medium.
[0074] Figure 1 A structural diagram of a billing system provided in an embodiment of the present disclosure is shown.
[0075] like Figure 1 As shown, the billing system provided by the embodiment of the present disclosure may include:
[0076] Generating device 102 and executing device 104;
[0077] The generating device 102 is used to receive a generating charging rule instruction, the generating charging rule instruction includes a charging template identifier and a charging parameter, determine a configuration template corresponding to the charging template identifier according to the charging template identifier, configure the configuration template according to the charging parameter to obtain a configured configuration template, generate a first charging rule according to the configured configuration template, and send the first charging rule to the executing device 104;
[0078] The execution device 104 is used to perform charging according to the first charging rule.
[0079] It should be noted that the generating device 102 and the executing device 104 can be arranged on a server or a terminal device.
[0080] The terminal device can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, etc.
[0081] The server can be a server that provides various services, such as a background management server that provides support for devices operated by users using terminal devices. The background management server can analyze and process the received request data, and feed back the processing results to the terminal device.
[0082] Optionally, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0083] The generating device 102 and the executing device 104 may be connected via a wired network or a wireless network.
[0084] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocols. The network is typically the Internet, but may also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links.
[0085] In other embodiments, customized and / or dedicated data communication technologies may be used to replace or supplement the above-mentioned data communication technologies.
[0086] The billing system provided by the embodiment of the present disclosure receives a billing rule instruction, then determines a configuration template corresponding to a billing template identifier according to a billing template identifier, then configures the configuration template according to billing parameters to obtain a configured configuration template, then generates a first billing rule according to the configured configuration template, and then bills according to the first billing rule. Thus, due to the use of a pre-set configuration template, before generating a billing rule, the pre-set configuration template is configured using the billing parameters included in the billing rule instruction, and then the first billing rule is directly generated. Thus, due to the use of a pre-set configuration template, the problem of cumbersome billing rule generation caused by the need to generate a configuration template each time before generating a billing rule is avoided.
[0087] Based on the same inventive concept, an embodiment of the present disclosure provides a billing method, which can be executed by any electronic device with computing and processing capabilities.
[0088] Figure 2 A flow chart of a charging method in an embodiment of the present disclosure is shown.
[0089] like Figure 2 As shown, billing methods may include:
[0090] S202, receiving a charge rule generation instruction, where the charge rule generation instruction includes a charge template identifier and charge parameters.
[0091] It should be noted that the charging rule instruction may include an instruction sent by a user.
[0092] Specifically, the user may send instructions to the billing device through the user's corresponding smart device, wherein the sent instructions may include instructions written in assembly language or instructions written in natural language, which is not specifically limited here.
[0093] The billing template identifier may include a billing template name and a billing template type.
[0094] Exemplarily, the billing template name may include at least one of: monthly package fee, domestic traffic within the package, and data exceeding traffic rate.
[0095] The billing template type includes at least one of a functional fee, an in-package service volume, and a domestic Internet access fee.
[0096] It should be noted that the above-mentioned billing template names and billing template types are examples, and the above-mentioned examples do not specifically limit the billing template names and billing template types.
[0097] It should be noted that the billing parameters may include cost parameters, traffic parameters, etc.
[0098] For example, the billing parameters may be a monthly package fee of RMB 299 and a package traffic volume of 5G.
[0099] S204: Determine a configuration template corresponding to the billing template identifier according to the billing template identifier.
[0100] It should be noted that determining the configuration module corresponding to the billing template identifier according to the billing template identifier may specifically include:
[0101] The configuration module is determined by the preset correspondence between the billing template identifier and the configuration module and the billing template identifier.
[0102] It should be noted that the corresponding relationship may be a direct corresponding relationship or an indirect corresponding relationship.
[0103] S206: Configure the configuration template according to the charging parameters to obtain a configured configuration template.
[0104] It should be noted that the configuration template may include a configuration template that has been completely configured except that the billing parameters are not filled in.
[0105] Developers can pre-configure configuration templates that can apply multiple billing rules, and the billing parameters in the configuration templates are not pre-filled.
[0106] After receiving the charging parameters, the positions in the configuration template where the charging parameters need to be filled are determined according to the predetermined correspondence between the charging parameters and the configuration template.
[0107] Then, according to the above positions, the billing parameters are filled into the configuration template to obtain a configured configuration template.
[0108] Exemplarily, the configuration template is a billing template corresponding to the monthly package function fee.
[0109] The configuration template can be:
[0110] Tariff-id=1001
[0111] PRICING-SECTION-ID=5001
[0112] FIXED-PATE XALUE-ID=X
[0113] Among them, 1001 and 5001 may be identifiers of the configuration template, and X may be a filling position corresponding to the billing parameter.
[0114] When configuring billing parameters, you can directly replace X with specific billing parameters, such as 299 yuan, to complete the configuration of the configuration template.
[0115] S208: Generate a first charging rule according to the configured configuration template.
[0116] It should be noted that the first charging rule may be a charging rule composed of multiple configuration templates.
[0117] S210: Perform charging according to the first charging rule.
[0118] The billing method provided by the embodiment of the present disclosure receives a billing rule instruction, then determines a configuration template corresponding to a billing template identifier according to a billing template identifier, then configures the configuration template according to billing parameters to obtain a configured configuration template, then generates a first billing rule according to the configured configuration template, and then bills according to the first billing rule. Thus, due to the use of a pre-set configuration template, before generating a billing rule, the pre-set configuration template is configured using the billing parameters included in the billing rule instruction, and then the first billing rule is directly generated. Thus, due to the use of a pre-set configuration template, the problem of cumbersome billing rule generation caused by the need to generate a configuration template each time before generating a billing rule is avoided.
[0119] Based on the same inventive concept, the embodiment of the present disclosure also provides another charging method, which can be executed by any electronic device with computing and processing capabilities.
[0120] Figure 3 A flow chart of another billing method in an embodiment of the present disclosure is shown.
[0121] like Figure 3 As shown, the difference between the charging method provided in the embodiment of the present disclosure and the charging method in the above embodiment is that S204 may include:
[0122] S302: Determine a billing template according to the billing template identifier.
[0123] It should be noted that a correspondence between a billing template identifier and a billing template may be established in advance, and then the billing template may be determined based on the predetermined correspondence and the identifier of the billing template.
[0124] Exemplarily, the identifier of the billing template may include a specific identifier represented by a code.
[0125] S304: Determine a configuration template corresponding to the billing template according to the billing template and a predetermined correspondence relationship between the billing template and the configuration template.
[0126] It should be noted that a correspondence between a billing template and a configuration template may be established in advance, and then the configuration template may be determined based on the predetermined correspondence and the billing template.
[0127] Based on the same inventive concept, the disclosed embodiment also provides another charging method, which can be executed by any electronic device with computing and processing capabilities.
[0128] Figure 4 A flow chart of another billing method in an embodiment of the present disclosure is shown.
[0129] like Figure 4 As shown, the difference between the charging method provided in the embodiment of the present disclosure and the charging method in the above embodiment is that S206 may include:
[0130] S402: Determine the configuration rules that need to be configured in the configuration template according to the charging parameters and the correspondence between the preset charging parameters and the configuration rules in the configuration template.
[0131] It should be noted that the billing parameters may include billing parameter types, and different billing parameter types may correspond to different configuration templates.
[0132] A correspondence between the billing parameter type and the configuration rule in the configuration template may be established in advance.
[0133] After the corresponding relationship is established, the configuration rule of the configuration template can be determined according to the charging parameter type.
[0134] Exemplary configuration rules may include functions, parameters, and the like.
[0135] S404: Configure the configuration rules according to the calculation parameters to obtain a configured configuration template.
[0136] Exemplarily, the configuration rules may include the following rules.
[0137] Tariff-id=1001
[0138] PRICING-SECTION-ID=5001
[0139] FIXED-PATE XALUE-ID=X
[0140] Configuring the configuration rules according to the calculation parameters may include:
[0141] Replace "FIXED-PATE XALUE-ID=X" in the above configuration rule with "FIXED-PATE XALUE-ID=299", where 299 is the billing parameter.
[0142] Based on the same inventive concept, the embodiment of the present disclosure also provides another charging method, which can be executed by any electronic device with computing and processing capabilities.
[0143] Figure 5 A flow chart of another billing method in an embodiment of the present disclosure is shown.
[0144] like Figure 5 As shown, the difference between the charging method provided in the embodiment of the present disclosure and the charging method in the above embodiment is that before S202, the charging method may further include:
[0145] S502: Receive a second charging rule.
[0146] It should be noted that the second charging rule may be the same as the first charging rule or may be different from the first charging rule.
[0147] Charging may also be performed based on the second charging rule.
[0148] Exemplarily, the second charging rule may be a charging rule sent by other charging devices.
[0149] S504: Determine, according to the second charging rule, whether the configuration template for generating the second charging rule is the same as a pre-stored configuration template.
[0150] It should be noted that the second charging rule may be generated by a configuration template corresponding to the second charging rule.
[0151] The configuration template corresponding to the second charging rule and the pre-stored configuration template may differ in multiple locations such as functions and parameters of the compiled template.
[0152] For example, since different billing devices are located in different regions, the configuration templates generated in different billing devices may be different.
[0153] S506: When the configuration template for generating the second charging rule is the same as the pre-stored configuration template, charging is performed according to the second charging rule.
[0154] It should be noted that, when the configuration template corresponding to the second charging rule is the same as the pre-stored configuration template, based on the same charging parameters, the configuration template corresponding to the second charging rule is the same as the configuration template corresponding to the first charging rule.
[0155] Furthermore, the first charging rule and the second charging rule respectively generated according to the above configuration template should also be the same.
[0156] Then the area corresponding to the first charging rule can be charged directly according to the second charging rule.
[0157] In the disclosed embodiment, by obtaining the second charging rule and determining that the configuration template corresponding to the second charging rule is the same as the pre-stored charging rule, the second charging rule is directly used for charging, thereby avoiding the problem of resource waste caused by repeated generation of charging rules.
[0158] Based on the same inventive concept, the embodiment of the present disclosure also provides another charging method, which can be executed by any electronic device with computing and processing capabilities.
[0159] Figure 6 A flow chart of another billing method in an embodiment of the present disclosure is shown.
[0160] like Figure 6 As shown, the difference between the charging method provided in the embodiment of the present disclosure and the charging method in the above embodiment is that after S504, the charging method may further include:
[0161] S602: When the configuration template for generating the second charging rule is different from the pre-stored configuration template, receive an instruction for generating a charging rule.
[0162] It should be noted that the configuration template corresponding to the second charging rule may be compared with a pre-stored configuration template according to a machine learning algorithm.
[0163] After receiving the instruction to generate a charging rule, the first charging rule may be generated according to the charging rule instruction according to the steps in the above embodiment, and then charging may be completed according to the first charging rule.
[0164] Based on the same inventive concept, the present disclosure also provides a charging device, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0165] Figure 7 A schematic diagram of a charging device in an embodiment of the present disclosure is shown.
[0166] like Figure 7 As shown, the device 700 includes:
[0167] The first receiving module 702 is used to receive a billing rule generation instruction, where the billing rule generation instruction includes a billing template identifier and billing parameters;
[0168] A first determining module 704, configured to determine a configuration template corresponding to the billing template identifier according to the billing template identifier;
[0169] Configuration module 706, configured to configure the configuration template according to the billing parameters to obtain a configured configuration template;
[0170] A generating module 708, configured to generate a first charging rule according to the configured configuration template;
[0171] The first charging module 710 is used to perform charging according to a first charging rule.
[0172] The billing device provided by the embodiment of the present disclosure receives a billing rule instruction, then determines a configuration template corresponding to a billing template identifier according to a billing template identifier, then configures the configuration template according to billing parameters to obtain a configured configuration template, then generates a first billing rule according to the configured configuration template, and then bills according to the first billing rule. Thus, due to the use of a pre-set configuration template, before generating a billing rule, the pre-set configuration template is configured using the billing parameters included in the billing rule instruction, and then the first billing rule is directly generated. Thus, due to the use of a pre-set configuration template, the problem of cumbersome billing rule generation caused by the need to generate a configuration template each time before generating a billing rule is avoided.
[0173] In one embodiment of the present disclosure, the first determining module 704 includes:
[0174] A first determining unit, configured to determine a billing template according to a billing template identifier;
[0175] The second determining unit is used to determine the configuration template corresponding to the billing template according to the billing template and a predetermined correspondence relationship between the billing template and the configuration template.
[0176] In one embodiment of the present disclosure, the configuration template includes a plurality of configuration rules;
[0177] Configuration module 706, including:
[0178] A third determining unit, configured to determine the configuration rules to be configured in the configuration template according to the charging parameters and the correspondence between the preset charging parameters and the configuration rules in the configuration template;
[0179] The configuration unit is used to configure the configuration rules according to the calculation parameters to obtain a configuration template that has been configured.
[0180] In one embodiment of the present disclosure, the charging device further includes:
[0181] The second receiving module 712 is used to receive the second charging rule before receiving the generating charging rule instruction, the generating charging rule instruction including the charging template identifier and the charging parameter;
[0182] A second determination module 714, configured to determine whether a configuration template for generating a second charging rule is the same as a pre-stored configuration template according to the second charging rule;
[0183] The second charging module 716 is configured to perform charging according to the second charging rule when the configuration template for generating the second charging rule is the same as the pre-stored configuration template.
[0184] In one embodiment of the present disclosure, the charging device further includes:
[0185] The third receiving module 718 is used to receive an instruction to generate a charging rule if the configuration template for generating the second charging rule is different from the pre-stored configuration template after determining whether the configuration template for generating the second charging rule is the same as the pre-stored configuration template according to the second charging rule.
[0186] In the disclosed embodiment, by obtaining the second charging rule and determining that the configuration template corresponding to the second charging rule is the same as the pre-stored charging rule, the second charging rule is directly used for charging, thereby avoiding the problem of resource waste caused by repeated generation of charging rules.
[0187] In one embodiment of the present disclosure, the billing template identifier includes a billing template name and a billing template type;
[0188] The billing template name includes at least one of a monthly package fee, domestic traffic within the package, and a data excess traffic fee;
[0189] The billing template type includes at least one of a functional fee, an in-package service volume, and a domestic Internet access fee.
[0190] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-mentioned billing method by executing the executable instructions.
[0191] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0192] Refer to the following Figure 8 The electronic device 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0193] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).
[0194] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps of various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps of the above method embodiment:
[0195] Receiving a billing rule generation instruction, the billing rule generation instruction including a billing template identifier and billing parameters;
[0196] Determine, according to the billing template identifier, a configuration template corresponding to the billing template identifier;
[0197] Configure the configuration template according to the billing parameters to obtain a completed configuration template;
[0198] Generate a first billing rule according to the configured configuration template;
[0199] The charging is performed according to the first charging rule.
[0200] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .
[0201] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0202] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0203] The electronic device 800 may also communicate with one or more external devices 840 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0204] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0205] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0206] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0207] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0208] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0209] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0210] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0211] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0212] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0213] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A billing method, It is characterized in that The method comprises: Receiving a billing rule generation instruction, wherein the billing rule generation instruction includes a billing template identifier and a billing parameter; Determine, according to the billing template identifier, a configuration template corresponding to the billing template identifier; Configuring the configuration template according to the billing parameters to obtain a configured configuration template; Generate a first billing rule according to the configured configuration template; Performing billing according to the first billing rule; receiving a second charging rule; determining, according to the second charging rule, whether a configuration template for generating the second charging rule is the same as a pre-stored configuration template; In the case that the configuration template for generating the second charging rule is the same as the pre-stored configuration template, charging is performed according to the second charging rule.
2. The charging method according to claim 1, It is characterized in that The determining, according to the billing template identifier, a configuration template corresponding to the billing template identifier includes: Determine a billing template according to the billing template identifier; The configuration template corresponding to the billing template is determined according to the billing template and a predetermined correspondence relationship between the billing template and the configuration template.
3. The charging method according to claim 1, It is characterized in that The configuration template includes multiple configuration rules; The configuring the configuration template according to the charging parameters to obtain a configured configuration template includes: Determining the configuration rules that need to be configured in the configuration template according to the billing parameters and the correspondence between the preset billing parameters and the configuration rules in the configuration template; The configuration rules are configured according to the charging parameters to obtain a configuration template that has been configured.
4. The charging method according to claim 1, It is characterized in that After determining whether the configuration template for generating the second charging rule is the same as a pre-stored configuration template according to the second charging rule, the method further includes: In a case where the configuration template for generating the second charging rule is different from the pre-stored configuration template, an instruction for generating a charging rule is received.
5. The charging method according to claim 1, It is characterized in that The billing template identifier includes a billing template name and a billing template type; The billing template name includes at least one of a monthly package fee, domestic traffic within the package, and data exceeding traffic rate; The billing template type includes at least one of a functional fee, an in-package service volume, and a domestic Internet access fee.
6. A billing system, It is characterized in that The system includes a generating device and an executing device; The generating device is configured to receive a billing rule generating instruction, the billing rule generating instruction including a billing template identifier and a billing parameter, determine a configuration template corresponding to the billing template identifier according to the billing template identifier, configure the configuration template according to the billing parameter to obtain a configured configuration template, generate a first billing rule according to the configured configuration template, and send the first billing rule to the executing device; receive a second billing rule; determine whether the configuration template for generating the second billing rule is the same as a pre-stored configuration template according to the second billing rule; and if the configuration template for generating the second billing rule is the same as the pre-stored configuration template, perform billing according to the second billing rule; The execution device is used to perform billing according to the first billing rule.
7. A charging device, It is characterized in that The device comprises: A first receiving module, configured to receive an instruction for generating a charging rule, wherein the instruction for generating a charging rule includes a charging template identifier and a charging parameter; A first determining module, configured to determine a configuration template corresponding to the billing template identifier according to the billing template identifier; A configuration module, configured to configure the configuration template according to the billing parameters to obtain a configured configuration template; A generating module, used to generate a first charging rule according to the configured configuration template; A first charging module, used for charging according to the first charging rule; A second receiving module, used to receive a second charging rule; A second determination module, configured to determine whether a configuration template for generating the second charging rule is the same as a pre-stored configuration template according to the second charging rule; The second charging module is used to perform charging according to the second charging rule when the configuration template for generating the second charging rule is the same as the pre-stored configuration template.
8. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the charging method according to any one of claims 1 to 5 by executing the executable instructions.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the charging method according to any one of claims 1 to 5 is implemented.
