Class NPayDAO
java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.BillingModuleDAO
ru.bgcrm.plugin.bgbilling.proto.dao.NPayDAO
-
Field Summary
Fields inherited from class BillingModuleDAO
moduleIdFields inherited from class BillingDAO
dbInfo, jsonMapper, jsonTypeFactory, transferData, user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteService(int contractId, int id) Deletes the contract's subscription fee servicegetService(int id) Returns the contract's subscription fee service by record IDgetServiceList(int contractId) Returns the contract's subscription fee servicesvoidupdateService(NPayService service) Updates or adds the contract's subscription fee serviceMethods inherited from class BillingModuleDAO
getModuleId, setModuleIdMethods inherited from class BillingDAO
doRequest, getDbInfo, getPage, getVersion, linesToString, readJsonValue, setPage
-
Constructor Details
-
NPayDAO
-
-
Method Details
-
getServiceList
Returns the contract's subscription fee services- Parameters:
contractId- the contract ID- Returns:
- the service list
-
getService
Returns the contract's subscription fee service by record ID- Parameters:
id- the record ID- Returns:
- the service
-
updateService
Updates or adds the contract's subscription fee service- Parameters:
service- the service
-
deleteService
public void deleteService(int contractId, int id) Deletes the contract's subscription fee service- Parameters:
contractId- the contract IDid- the service ID
-