mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: mark payment license as used after usage.
fix: fix system models with createdAt and updatedAt fields. fix: reset password token expiration time.
This commit is contained in:
8
server/src/exceptions/NoPaymentModelWithPricedPlan.ts
Normal file
8
server/src/exceptions/NoPaymentModelWithPricedPlan.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
export default class NoPaymentModelWithPricedPlan {
|
||||
|
||||
constructor() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
|
||||
|
||||
export default class NotAllowedChangeSubscriptionPlan extends Error{
|
||||
export default class NotAllowedChangeSubscriptionPlan {
|
||||
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
this.name = "NotAllowedChangeSubscriptionPlan";
|
||||
}
|
||||
}
|
||||
7
server/src/exceptions/PaymentAmountInvalidWithPlan.ts
Normal file
7
server/src/exceptions/PaymentAmountInvalidWithPlan.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
export default class PaymentAmountInvalidWithPlan{
|
||||
constructor() {
|
||||
|
||||
}
|
||||
}
|
||||
5
server/src/exceptions/PaymentInputInvalid.ts
Normal file
5
server/src/exceptions/PaymentInputInvalid.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
export default class PaymentInputInvalid {
|
||||
constructor() {}
|
||||
}
|
||||
@@ -1,9 +1,15 @@
|
||||
import NotAllowedChangeSubscriptionPlan from './NotAllowedChangeSubscriptionPlan';
|
||||
import ServiceError from './ServiceError';
|
||||
import ServiceErrors from './ServiceErrors';
|
||||
import NoPaymentModelWithPricedPlan from './NoPaymentModelWithPricedPlan';
|
||||
import PaymentInputInvalid from './PaymentInputInvalid';
|
||||
import PaymentAmountInvalidWithPlan from './PaymentAmountInvalidWithPlan';
|
||||
|
||||
export {
|
||||
NotAllowedChangeSubscriptionPlan,
|
||||
NoPaymentModelWithPricedPlan,
|
||||
PaymentAmountInvalidWithPlan,
|
||||
ServiceError,
|
||||
ServiceErrors,
|
||||
PaymentInputInvalid
|
||||
};
|
||||
Reference in New Issue
Block a user