Nothing Special   »   [go: up one dir, main page]

CN115412384A - Charging method, system, device, equipment and storage medium - Google Patents

Charging method, system, device, equipment and storage medium Download PDF

Info

Publication number
CN115412384A
CN115412384A CN202211054081.4A CN202211054081A CN115412384A CN 115412384 A CN115412384 A CN 115412384A CN 202211054081 A CN202211054081 A CN 202211054081A CN 115412384 A CN115412384 A CN 115412384A
Authority
CN
China
Prior art keywords
charging
template
rule
configuration
configuration template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211054081.4A
Other languages
Chinese (zh)
Other versions
CN115412384B (en
Inventor
陈娜
史萌
李旺
李忠航
刘崇日
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211054081.4A priority Critical patent/CN115412384B/en
Publication of CN115412384A publication Critical patent/CN115412384A/en
Application granted granted Critical
Publication of CN115412384B publication Critical patent/CN115412384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure provides a charging method, a system, a device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the steps of receiving a charging rule generation instruction, generating a charging rule instruction, determining a configuration template corresponding to a charging template identifier according to the charging template identifier, configuring the configuration template according to the charging parameter to obtain a configured configuration template, generating a first charging rule according to the configured configuration template, and charging according to the first charging rule. The charging rule development efficiency can be improved.

Description

Charging method, system, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a charging method, system, apparatus, device, and storage medium.
Background
In order to meet the requirements of different users, different tariff packages are provided by each large operator, and the different tariff packages can meet the requirements of different users on call duration and traffic usage, but the different tariff packages need to correspond to different charging strategies.
Currently, in order to configure different charging policies, developers need to develop configuration files corresponding to the charging policies for different charging policies. However, the charging policy is too much, which causes a large workload for developers.
Disclosure of Invention
The present disclosure provides a charging method, system, device, apparatus, and storage medium, which overcome, at least to some extent, the problem of a large workload of a current charging rule developer.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, there is provided a charging method, including:
receiving a charging rule generating instruction, wherein the charging rule generating instruction comprises a charging template identifier and a charging parameter;
determining a configuration template corresponding to the charging template identifier according to the charging template identifier;
configuring the configuration template according to the charging parameters to obtain a configured configuration template;
generating a first charging rule according to the configured configuration template;
and charging according to the first charging rule.
In an embodiment of the present disclosure, determining a configuration template corresponding to the charging template identifier according to the charging template identifier includes:
determining a charging template according to the charging template identifier;
and determining a configuration template corresponding to the charging template according to the charging template and the corresponding relation between the predetermined charging template and the configuration template.
In one embodiment of the present disclosure, a configuration template includes a plurality of configuration rules;
configuring the configuration template according to the charging parameters to obtain a configured configuration template, comprising:
determining a configuration rule to be configured in the configuration template according to the charging parameter and the corresponding relation between the preset charging parameter and the configuration rule in the configuration template;
and configuring the configuration rule according to the calculation parameters to obtain a configuration template after configuration.
In an embodiment of the present disclosure, before receiving a generate charging rule instruction, where the generate charging rule instruction includes a charging template identifier and a charging parameter, the method further includes:
receiving a second charging rule;
determining whether the configuration template for generating the second charging rule is the same as the pre-stored configuration template or not according to the second charging rule;
and under the condition that the configuration template for generating the second charging rule is the same as the pre-stored configuration template, charging according to the second charging rule.
In one embodiment of the present disclosure, after determining whether the configuration template generating the second charging rule is the same as the pre-stored configuration template according to the second charging rule, the method further includes:
and receiving a charging rule generating instruction under the condition that the configuration template for generating the second charging rule is different from the pre-stored configuration template.
In one embodiment of the present disclosure, the billing template identifier includes a billing template name and a billing template type;
the charging template name comprises at least one of monthly set meal fee, internal flow in the set and data excess flow fee;
the charging template type comprises at least one of function fee, service volume in the set and domestic internet fee.
According to another aspect of the present disclosure, there is provided a charging system including: generating means and executing means;
the generating device is used for receiving the charging rule generating instruction, generating the charging rule instruction and comprising a charging template identifier and a charging parameter, determining a configuration template corresponding to the charging template identifier according to the charging template identifier, configuring the configuration template according to the charging parameter to obtain a configured configuration template, generating a first charging rule according to the configured configuration template, and sending the first charging rule to the executing device;
and the execution device is used for charging according to the first charging rule.
According to still another aspect of the present disclosure, there is provided a charging apparatus, the apparatus including:
the first receiving module is used for receiving a charging rule generating instruction, and the charging rule generating instruction comprises a charging template identifier and a charging parameter;
the first determining module is used for determining a configuration template corresponding to the charging template identifier according to the charging template identifier;
the configuration module is used for configuring the configuration template according to the charging parameters to obtain a configured configuration template;
the generating module is used for generating a first charging rule according to the configured template;
and the first charging module is used for charging according to the first charging rule.
In one embodiment of the present disclosure, the first determining module includes:
the first determining unit is used for determining a charging template according to the charging template identifier;
and the second determining unit is used for determining the configuration template corresponding to the charging template according to the charging template and the corresponding relation between the predetermined charging template and the configuration template.
In one embodiment of the present disclosure, a configuration template includes a plurality of configuration rules;
a configuration module comprising:
a third determining unit, configured to determine a configuration rule to be configured in the configuration template according to the charging parameter and a corresponding relationship between the charging parameter and the configuration rule in the configuration template;
and the configuration unit is used for configuring the configuration rule according to the calculation parameters to obtain the configured configuration template.
In an embodiment of the present disclosure, the charging apparatus further includes:
the second receiving module is used for receiving a second charging rule before receiving a charging rule generating instruction which comprises a charging template identifier and a charging parameter;
the second determining module is used for determining whether the configuration template for generating the second charging rule is the same as the pre-stored configuration template or not according to the second charging rule;
and the second charging module is used for charging according to the second charging rule under the condition that the configuration template for generating the second charging rule is the same as the pre-stored configuration template.
In an embodiment of the present disclosure, the charging apparatus further includes:
and the third receiving module is used for receiving the charging rule generating instruction under the condition that 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.
In one embodiment of the present disclosure, the billing template identification includes a billing template name and a billing template type;
the charging template name comprises at least one of monthly set meal fee, internal flow in the set and data excess flow fee;
the charging template type comprises at least one of function fee, service volume in the set and domestic internet fee.
According to yet another aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the above described charging method via execution of executable instructions.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the charging method described above.
The charging method provided by the embodiment of the disclosure includes receiving a charging rule instruction, determining a configuration template corresponding to a charging template identifier according to the charging template identifier, configuring the configuration template according to a charging parameter to obtain a configured configuration template, generating a first charging rule according to the configured configuration template, and charging according to the first charging rule. Therefore, the preset configuration template is used, the charging parameters contained in the charging rule instruction are used for configuring the preset configuration template before the charging rule is generated, and then the first charging rule is directly generated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a schematic diagram illustrating a charging system structure in an embodiment of the present disclosure;
fig. 2 shows a flow chart of a charging method in an embodiment of the present disclosure;
fig. 3 shows a flow chart of another charging method in an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a charging method according to another embodiment of the disclosure;
fig. 5 shows a flowchart of another charging method in an embodiment of the present disclosure;
fig. 6 shows a flowchart of another charging method in an embodiment of the present disclosure;
fig. 7 shows a schematic diagram of a charging apparatus in an embodiment of the disclosure; and
fig. 8 shows a block diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of 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.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The charging rules are rules and standards for operators to charge customers, at present, the charging rules in the service of the operators are usually combined by combining a plurality of tariff rules with various limiting conditions, and have higher complexity and flexibility and huge quantity.
Because the charging rules are high in complexity, one charging rule forming the charging rules can be realized only by relating to a plurality of database tables, and the problem that the charging rules are difficult to generate is caused.
In order to solve the foregoing problems, embodiments of the present disclosure provide a charging method, system, apparatus, device, and storage medium.
Fig. 1 shows a structure diagram of a charging system provided in an embodiment of the present disclosure.
As shown in fig. 1, the charging system provided in the embodiment of the present disclosure may include:
a generating device 102 and an executing device 104;
the generating device 102 is configured to receive the charging rule generating instruction, generate the 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 the executing device 104;
and the executing device 104 is used for charging according to the first charging rule.
It should be noted that both the generating device 102 and the executing device 104 may be disposed on a server or a terminal device.
The terminal device may be a variety of electronic devices including, but not limited to, a smartphone, a tablet, a laptop portable computer, a desktop computer, a wearable device, an augmented reality device, a virtual reality device, and the like.
The server may be a server that provides various services, such as a background management server that provides support for devices operated by the user with the terminal device. The background management server can analyze and process the received data such as the request and feed back the processing result to the terminal equipment.
Optionally, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
The generation apparatus 102 and the execution apparatus 104 may be connected via a wired network or a wireless network.
Optionally, the wireless or wired networks described above use standard communication techniques and/or protocols. The Network is typically the Internet, but can 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 virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), extensible markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), transport Layer Security (TLS), virtual Private Network (VPN), internet protocol Security (IPsec).
In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
The charging system provided by the embodiment of the disclosure receives the charging rule instruction, determines the configuration template corresponding to the charging template identifier according to the charging template identifier, configures the configuration template according to the charging parameter to obtain the configured configuration template, generates the first charging rule according to the configured configuration template, and charges according to the first charging rule. Therefore, the preset configuration template is used, the charging parameters contained in the charging rule instruction are used for configuring the preset configuration template before the charging rule is generated, and then the first charging rule is directly generated.
Based on the same inventive concept, the disclosed embodiments provide a charging method, which can be executed by any electronic device with computing processing capability.
Fig. 2 shows a flowchart of a charging method in the embodiment of the present disclosure.
As shown in fig. 2, the charging method may include:
s202, receiving a charging rule generating instruction, wherein the charging rule generating instruction comprises a charging template identifier and a charging parameter.
It should be noted that the charging rule instruction may include an instruction sent by the user.
Specifically, the user may send an instruction to the charging apparatus through the smart device corresponding to the user, where the sent instruction may include an instruction written in an assembly language or an instruction written in a natural language, and is not limited in this respect.
The billing template identification may include a billing template name and a billing template type.
Illustratively, the charging template name may include: monthly set meal rates, in-set domestic flow rates, and data overrun flow rates.
The charging template type comprises at least one of function fee, service volume in the set and domestic internet fee.
It should be noted that the charging template name and the charging template type are only examples, and the above examples do not specifically limit the charging template name and the charging template type.
It should be noted that the charging parameter may include a cost parameter, a traffic parameter, and the like.
For example, the billing parameter may be 299 yuan for a monthly package and 5G for intra-package traffic.
And S204, determining a configuration template corresponding to the charging template identifier according to the charging template identifier.
It should be noted that, determining, according to the charging template identifier, the configuration module corresponding to the charging template identifier specifically may include:
and determining the configuration module according to the preset corresponding relation between the charging template identifier and the configuration module and the charging template identifier.
It should be noted that the correspondence relationship may be a direct correspondence relationship, or may include an indirect correspondence relationship.
And S206, configuring the configuration template according to the charging parameters to obtain the configured configuration template.
It should be noted that the configuration template may include a configuration template that is already configured completely except for the unfilled charging parameters.
The developer can pre-configure a configuration template which can be suitable for various charging rules, and charging parameters in the configuration template are not filled in advance.
After receiving the charging parameters, determining the position of the charging parameters needing to be filled in the configuration template according to the corresponding relation between the predetermined charging parameters and the configuration template.
And then according to the position, filling the charging parameters into the configuration template to obtain the configuration template after configuration.
Illustratively, the configuration template is a configuration template corresponding to a charging template which is a monthly package function fee.
The configuration template may be:
Tariff-id=1001
PRICING-SECTION-ID=5001
FIXED-PATE XALUE-ID=X
wherein 1001 and 5001 may be identifiers of configuration templates, and X may be a filling location corresponding to the charging parameter.
When charging parameter configuration is performed, the charging parameter X can be directly replaced by a specific charging parameter, such as 299 yuan, and configuration of the configuration template can be completed.
And S208, generating a first charging rule according to the configured template.
It should be noted that the first charging rule may be a charging rule composed of a plurality of configuration templates.
S210, charging is carried out according to the first charging rule.
The charging method provided by the embodiment of the disclosure includes receiving a charging rule instruction, determining a configuration template corresponding to a charging template identifier according to the charging template identifier, configuring the configuration template according to a charging parameter to obtain a configured configuration template, generating a first charging rule according to the configured configuration template, and charging according to the first charging rule. Therefore, the preset configuration template is used, the charging parameters contained in the charging rule instruction are used for configuring the preset configuration template before the charging rule is generated, and then the first charging rule is directly generated.
Based on the same inventive concept, the embodiment of the present disclosure further provides another charging method. The method may be performed by any electronic device having computing processing capabilities.
Fig. 3 shows a flowchart of another charging method in the embodiment of the present disclosure.
As shown in fig. 3, the charging method provided in the embodiment of the present disclosure is different from the charging method in the foregoing embodiment in that S204 may include:
s302, the charging template is determined according to the charging template identification.
It should be noted that, the corresponding relationship between the charging template identifier and the charging template may be pre-established, and then the charging template is determined according to the predetermined corresponding relationship and the identifier of the charging template.
Illustratively, the identification of the billing template may include a specific identification denoted by a code number. .
S304, determining a configuration template corresponding to the charging template according to the charging template and the corresponding relation between the predetermined charging template and the configuration template.
It should be noted that, the corresponding relationship between the charging template and the configuration template may be pre-established, and then the configuration template may be determined according to the predetermined corresponding relationship and the charging template.
Based on the same inventive concept, the embodiment of the present disclosure further provides another charging method. The method may be performed by any electronic device having computing processing capabilities.
Fig. 4 shows a flowchart of another charging method in the embodiment of the present disclosure.
As shown in fig. 4, the charging method provided in the embodiment of the present disclosure is different from the charging method in the foregoing embodiment in that S206 may include:
s402, determining the configuration rule needing to be configured in the configuration template according to the charging parameter and the corresponding relation between the preset charging parameter and the configuration rule in the configuration template.
It should be noted that the charging parameters may include charging parameter types, and different charging parameter types may correspond to different configuration templates.
The charging parameter type and the configuration rule in the configuration template can be pre-established with a corresponding relationship.
After the corresponding relation is established, the configuration rule of the configuration template can be determined according to the charging parameter type.
Exemplary configuration rules may include functions, parameters, and the like.
S404, configuring the configuration rule according to the calculation parameters to obtain the configured configuration template.
Illustratively, the configuration rules may include the following rules.
Tariff-id=1001
PRICING-SECTION-ID=5001
FIXED-PATE XALUE-ID=X
Configuring the configuration rule according to the calculation parameters may include:
the "FIXED-path XALUE-ID = X" in the above configuration rule is replaced with "FIXED-path XALUE-ID =299", wherein 299 is a charging parameter.
Based on the same inventive concept, the embodiment of the present disclosure further provides another charging method. The method may be performed by any electronic device having computing processing capabilities.
Fig. 5 is a flowchart illustrating another charging method in the embodiment of the present disclosure.
As shown in fig. 5, the charging method provided in the embodiment of the present disclosure is different from the charging method in the foregoing embodiment in that before S202, the charging method may further include:
s502, receiving a second charging rule.
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.
Charging may also be based on the second charging rule.
Illustratively, the second charging rule may be a charging rule transmitted by other charging means.
S504, according to the second charging rule, whether the configuration template for generating the second charging rule is the same as the pre-stored configuration template is determined.
It should be noted that the second charging rule may be generated by a configuration template corresponding to the second charging rule.
The configuration template corresponding to the second charging rule and the pre-stored configuration template may have different functions, parameters, and other positions in the compiling template.
For example, since different charging devices are located in different regions, the generated configuration template may be different among the different charging devices.
And S506, under the condition that the configuration template for generating the second charging rule is the same as the pre-stored configuration template, charging is carried out according to the second charging rule.
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 parameter, the configuration template corresponding to the second charging rule is the same as the configuration template corresponding to the first charging rule.
Further, the first charging rule and the second charging rule respectively generated according to the configuration template should also be the same.
The charging can be directly performed on the area corresponding to the first charging rule according to the second charging rule.
In the embodiment of the present disclosure, by obtaining the second charging rule, and under the condition that it is determined 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, so that the problem of resource waste caused by repeatedly generating charging rules is avoided.
Based on the same inventive concept, the embodiment of the present disclosure further provides another charging method. The method may be performed by any electronic device having computing processing capabilities.
Fig. 6 shows a flowchart of another charging method in the embodiment of the present disclosure.
As shown in fig. 6, the charging method provided in the embodiment of the present disclosure is different from the charging method in the foregoing embodiment in that after S504, the charging method may further include:
s602, receiving a charging rule generating instruction under the condition that the configuration template for generating the second charging rule is different from the pre-stored configuration template.
It should be noted that the configuration template corresponding to the second charging rule may be compared with a configuration template stored in advance according to a machine learning algorithm.
After receiving the charging rule generating instruction, according to the steps in the above embodiment, a first charging rule may be generated according to the charging rule instruction, and then charging is completed according to the first charging rule.
Based on the same inventive concept, the embodiment of the present disclosure further provides a charging device, such as the following embodiments. Because the principle of the embodiment of the apparatus for solving the problem is similar to that of the embodiment of the method, the embodiment of the apparatus can be implemented by referring to the implementation of the embodiment of the method, and repeated details are not described again.
Fig. 7 shows a schematic diagram of a charging apparatus in an embodiment of the disclosure.
As shown in fig. 7, the apparatus 700 includes:
a first receiving module 702, configured to receive a charging rule generating instruction, where the charging rule generating instruction includes a charging template identifier and a charging parameter;
a first determining module 704, configured to determine, according to the charging template identifier, a configuration template corresponding to the charging template identifier;
a configuration module 706, configured to configure the configuration template according to the charging parameter, so as to obtain a configured configuration template;
a generating module 708, configured to generate a first charging rule according to the configured configuration template;
the first charging module 710 is configured to perform charging according to the first charging rule.
The charging device provided by the embodiment of the disclosure receives the charging rule instruction, then determines the configuration template corresponding to the charging template identifier according to the charging template identifier, then configures the configuration template according to the charging parameter to obtain the configured configuration template, then generates the first charging rule according to the configured configuration template, and then charges according to the first charging rule. Therefore, the preset configuration template is used, the charging parameters contained in the charging rule instruction are used for configuring the preset configuration template before the charging rule is generated, and then the first charging rule is directly generated.
In one embodiment of the present disclosure, the first determining module 704 includes:
the first determining unit is used for determining the charging template according to the charging template identifier;
and the second determining unit is used for determining the configuration template corresponding to the charging template according to the charging template and the corresponding relation between the predetermined charging template and the configuration template.
In one embodiment of the present disclosure, a configuration template includes a plurality of configuration rules;
a configuration module 706 comprising:
a third determining unit, configured to determine a configuration rule to be configured in the configuration template according to the charging parameter and a corresponding relationship between the charging parameter and the configuration rule in the configuration template;
and the configuration unit is used for configuring the configuration rule according to the calculation parameters to obtain the configured configuration template.
In an embodiment of the present disclosure, the charging apparatus further includes:
the second receiving module 712, configured to receive the charging rule generating instruction, where the charging rule generating instruction includes the charging template identifier and the charging parameter and is used to receive a second charging rule;
a second determining module 714, configured to determine whether the configuration template generating the second charging rule is the same as the pre-stored configuration template according to the second charging rule;
and a second charging module 716, configured to charge 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.
In one embodiment of the present disclosure, the charging apparatus further includes:
the third receiving module 718 is configured to, 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, receive the charging rule generating instruction if the configuration template for generating the second charging rule is not the same as the pre-stored configuration template.
In the embodiment of the present disclosure, by obtaining the second charging rule, and under the condition that it is determined 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, so that the problem of resource waste caused by repeatedly generating charging rules is avoided.
In one embodiment of the present disclosure, the billing template identification includes a billing template name and a billing template type;
the charging template name comprises at least one of monthly set meal fee, internal flow in the set and data excess flow fee;
the charging template type comprises at least one of function fee, service volume in the set and domestic internet fee.
According to yet another aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above described charging method via execution of executable instructions.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the disclosure is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 that couples the various system components including the memory unit 820 and the processing unit 810.
Wherein the memory unit stores program code that may be executed by the processing unit 810 to cause the processing unit 810 to perform the steps according to various exemplary embodiments of the present disclosure as described in the "exemplary methods" section above in this specification. For example, the processing unit 810 may perform the following steps of the above-described method embodiments:
receiving a charging rule generating instruction, wherein the charging rule generating instruction comprises a charging template identifier and a charging parameter;
determining a configuration template corresponding to the charging template identifier according to the charging template identifier;
configuring the configuration template according to the charging parameters to obtain a configured configuration template;
generating a first charging rule according to the configured configuration template;
and charging according to the first charging rule.
The storage unit 820 may include readable media in the form of volatile memory units 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.
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 thereof may comprise an implementation of a network environment.
Bus 830 may be any 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.
The electronic device 800 may also communicate with one or more external devices 840 (e.g., a keyboard, a pointing device, a bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any device (e.g., a router, a modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, 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, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, which may be a readable signal medium or a readable storage medium. Having stored thereon a program product capable of carrying out the methods of the present disclosure. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device.
More specific examples of the computer-readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present disclosure, a computer readable storage medium may include a propagated data signal with readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Alternatively, program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the 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 kind 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., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A charging method, characterized in that the method comprises:
receiving a charging rule generating instruction, wherein the charging rule generating instruction comprises a charging template identifier and a charging parameter;
determining a configuration template corresponding to the charging template identifier according to the charging template identifier;
configuring the configuration template according to the charging parameters to obtain a configured configuration template;
generating a first charging rule according to the configured configuration template;
and charging according to the first charging rule.
2. The charging method according to claim 1, wherein the determining the configuration template corresponding to the charging template identifier according to the charging template identifier comprises:
determining a charging template according to the charging template identifier;
and determining a configuration template corresponding to the charging template according to the charging template and the corresponding relation between the predetermined charging template and the configuration template.
3. The charging method according to claim 1, wherein the configuration template comprises a plurality of configuration rules;
the configuring the configuration template according to the charging parameters to obtain a configured configuration template, comprising:
determining a configuration rule to be configured in a configuration template according to the charging parameter and the corresponding relation between the preset charging parameter and the configuration rule in the configuration template;
and configuring the configuration rule according to the calculation parameters to obtain a configured configuration template.
4. The charging method according to claim 1, wherein before the receiving a generate charging rule instruction, the generate charging rule instruction including a charging template identifier and a charging parameter, the method further comprises:
receiving a second charging rule;
determining whether the configuration template for generating the second charging rule is the same as a pre-stored configuration template or not according to the second charging rule;
and under the condition that the configuration template for generating the second charging rule is the same as the pre-stored configuration template, charging according to the second charging rule.
5. The charging method according to claim 4, wherein 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 comprises:
and receiving a charging rule generating instruction under the condition that the configuration template for generating the second charging rule is different from a pre-stored configuration template.
6. The charging method according to claim 1, wherein the charging template identification comprises a charging template name and a charging template type;
the charging template name comprises at least one of monthly set meal fee, internal flow in the set and data excess flow rate fee;
the charging template type comprises at least one of function fee, service volume in the set and domestic internet fee.
7. A charging system is characterized in that the system comprises a generating device and an executing device;
the generating device is used for receiving a charging rule generating instruction, the charging rule generating instruction comprises a charging template identifier and a charging parameter, a configuration template corresponding to the charging template identifier is determined according to the charging template identifier, the configuration template is configured according to the charging parameter to obtain a configured configuration template, a first charging rule is generated according to the configured configuration template, and the first charging rule is sent to the executing device;
and the execution device is used for charging according to the first charging rule.
8. A charging apparatus, characterized in that the apparatus comprises:
the first receiving module is used for receiving a charging rule generating instruction, wherein the charging rule generating instruction comprises a charging template identifier and a charging parameter;
the first determining module is used for determining a configuration template corresponding to the charging template identifier according to the charging template identifier;
the configuration module is used for configuring the configuration template according to the charging parameters to obtain a configured configuration template;
the generating module is used for generating a first charging rule according to the configured template;
and the first charging module is used for charging according to the first charging rule.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the charging method of any one of claims 1 to 6 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the charging method according to any one of claims 1 to 6.
CN202211054081.4A 2022-08-31 2022-08-31 Charging method, system, device, equipment and storage medium Active CN115412384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211054081.4A CN115412384B (en) 2022-08-31 2022-08-31 Charging method, system, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211054081.4A CN115412384B (en) 2022-08-31 2022-08-31 Charging method, system, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115412384A true CN115412384A (en) 2022-11-29
CN115412384B CN115412384B (en) 2024-08-27

Family

ID=84163108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211054081.4A Active CN115412384B (en) 2022-08-31 2022-08-31 Charging method, system, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115412384B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014053153A1 (en) * 2012-10-01 2014-04-10 Nokia Siemens Networks Oy Correlation of application detection and policy and charging control
CN109787781A (en) * 2018-12-17 2019-05-21 深圳壹账通智能科技有限公司 Online charging method, apparatus, computer equipment and storage medium
US20200118186A1 (en) * 2018-10-11 2020-04-16 International Business Machines Corporation Generating a quote to cash solution
CN112488691A (en) * 2020-11-30 2021-03-12 乐刷科技有限公司 Merchant settlement charging method and device and computer readable storage medium
CN114760604A (en) * 2022-04-07 2022-07-15 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for processing package tariff

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014053153A1 (en) * 2012-10-01 2014-04-10 Nokia Siemens Networks Oy Correlation of application detection and policy and charging control
US20200118186A1 (en) * 2018-10-11 2020-04-16 International Business Machines Corporation Generating a quote to cash solution
CN109787781A (en) * 2018-12-17 2019-05-21 深圳壹账通智能科技有限公司 Online charging method, apparatus, computer equipment and storage medium
CN112488691A (en) * 2020-11-30 2021-03-12 乐刷科技有限公司 Merchant settlement charging method and device and computer readable storage medium
CN114760604A (en) * 2022-04-07 2022-07-15 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for processing package tariff

Also Published As

Publication number Publication date
CN115412384B (en) 2024-08-27

Similar Documents

Publication Publication Date Title
CN109766722B (en) Method for constructing intelligent contract in block chain
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
US8881177B2 (en) Communications driver management
CN111163052B (en) Method, device, medium and electronic equipment for connecting Internet of things platform
CN110795181A (en) Application program interface display method and device based on skip protocol and electronic equipment
CN113821352A (en) Remote service calling method and device
CN111144878B (en) Instruction generation method and instruction generation device
CN114900448A (en) Micro-service gateway flow management method and device and electronic equipment
CN116917858A (en) Runtime communication protocol parameter adjustment in containerized applications
CN112631590A (en) Component library generation method and device, electronic equipment and computer readable medium
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN116781586A (en) gRPC flow analysis method, device, equipment and medium
CN113010174A (en) Service monitoring method and device
CN115412384B (en) Charging method, system, device, equipment and storage medium
WO2023083071A1 (en) View interaction method and apparatus, electronic device, and computer readable medium
CN110765610A (en) PDM (product data management) integration method and device, computer equipment and storage medium
CN112346774A (en) Method and device for generating application installation package
CN113472785B (en) Data processing method and device, electronic equipment and readable storage medium
CN109298869A (en) A kind of generation method and relevant apparatus of target channel packet
CN117472555A (en) Computing power resource allocation method, system, device, equipment and storage medium
CN113709171A (en) Method and device for cross-component state communication
CN116491101A (en) Private key management
CN113672225A (en) User interface processing method, device, equipment and storage medium
CN113760727A (en) Interface regression testing method and device
WO2024119917A1 (en) Sensing measurement method and apparatus, and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant