update payment method, remove stripe, paypal, amanapay
Build & Push / Pipeline Tests (push) Failing after 59s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Failing after 48s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped

This commit is contained in:
root
2026-08-17 21:05:29 -04:00
parent c9915a8315
commit fe8ffbeb9f
109 changed files with 568 additions and 2662 deletions
+1 -29
View File
@@ -36,7 +36,6 @@ import { offerSchema } from '../modules/offers/offer.schemas'
// ── Payments ─────────────────────────────────────────────────────────────────
import {
chargeSchema,
manualPaymentSchema,
refundSchema,
} from '../modules/payments/payment.schemas'
@@ -116,7 +115,7 @@ export const openApiDocument: JsonObject = {
{ name: 'Reservations', description: 'Booking lifecycle' },
{ name: 'Customers', description: 'Customer profiles & documents' },
{ name: 'Offers', description: 'Discounts & promo codes' },
{ name: 'Payments', description: 'Charges, manual payments, refunds' },
{ name: 'Payments', description: 'Manual payments and refunds' },
{ name: 'Reviews', description: 'Customer reviews' },
{ name: 'Complaints', description: 'Complaint tracking' },
{ name: 'Analytics', description: 'Dashboard & reports' },
@@ -156,7 +155,6 @@ export const openApiDocument: JsonObject = {
// ── Offers ──────────────────────────────────────────────────
OfferInput: s(offerSchema),
// ── Payments ────────────────────────────────────────────────
PaymentCharge: s(chargeSchema),
ManualPayment: s(manualPaymentSchema),
Refund: s(refundSchema),
// ── Reviews ─────────────────────────────────────────────────
@@ -755,23 +753,6 @@ export const openApiDocument: JsonObject = {
responses: { '200': ok },
},
},
'/payments/reservations/{id}/charge': {
post: {
tags: ['Payments'],
summary: 'Initiate online payment (AmanPay / PayPal)',
parameters: [idPath()],
requestBody: jsonBody('#/components/schemas/PaymentCharge'),
responses: { '200': ok, '400': err4 },
},
},
'/payments/reservations/{id}/capture-paypal': {
post: {
tags: ['Payments'],
summary: 'Capture PayPal order',
parameters: [idPath()],
responses: { '200': ok },
},
},
'/payments/reservations/{id}/manual': {
post: {
tags: ['Payments'],
@@ -1011,9 +992,6 @@ export const openApiDocument: JsonObject = {
'/subscriptions/trial': {
post: { tags: ['Subscriptions'], summary: 'Start trial (Owner)', responses: { '200': ok } },
},
'/subscriptions/checkout': {
post: { tags: ['Subscriptions'], summary: 'Checkout new subscription (Owner)', responses: { '200': ok } },
},
'/subscriptions/payment-options': {
get: { tags: ['Subscriptions'], summary: 'Available subscription collection methods and safe payer instructions', responses: { '200': ok } },
},
@@ -1043,9 +1021,6 @@ export const openApiDocument: JsonObject = {
'/subscriptions/cancel': {
post: { tags: ['Subscriptions'], summary: 'Cancel subscription (Owner)', responses: { '200': ok } },
},
'/subscriptions/reactivate': {
post: { tags: ['Subscriptions'], summary: 'Reactivate subscription (Owner)', responses: { '200': ok } },
},
'/subscriptions/resume': {
post: { tags: ['Subscriptions'], summary: 'Resume subscription (Owner)', responses: { '200': ok } },
},
@@ -1138,9 +1113,6 @@ export const openApiDocument: JsonObject = {
'/site/{slug}/booking/{id}': {
get: { tags: ['Site'], summary: 'Get booking status', security: [], parameters: [{ name: 'slug', in: 'path', required: true, schema: { type: 'string' } }, idPath()], responses: { '200': ok } },
},
'/site/{slug}/booking/{id}/pay': {
post: { tags: ['Site'], summary: 'Pay booking', security: [], parameters: [{ name: 'slug', in: 'path', required: true, schema: { type: 'string' } }, idPath()], responses: { '200': ok } },
},
'/site/{slug}/contact': {
post: { tags: ['Site'], summary: 'Contact form', security: [], parameters: [{ name: 'slug', in: 'path', required: true, schema: { type: 'string' } }], responses: { '200': ok } },
},