Przeglądaj źródła

[web] add payment field to Subscription

GitOrigin-RevId: 3fd569372636f880b5e2d4e5dd98f6e28067c464
Kristina Hjertberg 1 rok temu
rodzic
commit
a3b908e255
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      services/web/app/src/models/Subscription.js

+ 8 - 0
services/web/app/src/models/Subscription.js

@@ -57,6 +57,14 @@ const SubscriptionSchema = new Schema(
         type: Date,
       },
     },
+    paymentProvider: {
+      service: {
+        type: String,
+      },
+      subscriptionId: {
+        type: String,
+      },
+    },
     collectionMethod: {
       type: String,
       enum: ['automatic', 'manual'],