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:
2 files changed
+15
No files matched your search
Vendored
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user