feat: integrate Stripe payment to invoices

This commit is contained in:
Ahmed Bouhuolia
2024-09-18 19:24:01 +02:00
parent df706d2573
commit 4665f529e6
24 changed files with 540 additions and 80 deletions

View File

@@ -1,6 +1,7 @@
import { Model } from 'objection';
import TenantModel from 'models/TenantModel';
export class PaymentIntegration extends Model {
export class PaymentIntegration extends TenantModel {
static get tableName() {
return 'payment_integrations';
}
@@ -12,7 +13,7 @@ export class PaymentIntegration extends Model {
static get jsonSchema() {
return {
type: 'object',
required: ['service', 'enable'],
required: ['name', 'service', 'enable'],
properties: {
id: { type: 'integer' },
service: { type: 'string' },