feat(order): add private attributes for the PayPal order and its capture

paypalOrderId is the PayPal order the checkout created for the order,
paypalCaptureId and paymentCapturedAt record the verified capture. All
three are private, so the content API never returns them. Strapi adds the
columns when it syncs the schema at startup.

types/generated/contentTypes.d.ts is the output of strapi
ts:generate-types, run in the release image without network.

Refs libretech/mp#71
This commit is contained in:
libretech committed 2026-10-08 23:22:36 +02:00
1 parent 20afcd4416
commit 2bbffeed2d
2 files changed
+15

No files matched your search

+3
View File
@@ -389,7 +389,10 @@ export interface ApiOrderOrder extends Schema.CollectionType {
invoiceSent: Attribute.Boolean & Attribute.DefaultTo<false>;
payment: Attribute.Relation<"api::order.order", "oneToOne", "api::payment.payment">;
paymentAuthorised: Attribute.Boolean & Attribute.DefaultTo<false>;
paymentCapturedAt: Attribute.DateTime & Attribute.Private;
paymentStatus: Attribute.String;
paypalCaptureId: Attribute.String & Attribute.Private;
paypalOrderId: Attribute.String & Attribute.Private;
subtotal: Attribute.Decimal;
total: Attribute.Decimal;
updatedAt: Attribute.DateTime;