Răsfoiți Sursa

[web] display Stripe invoice line items on preview change page (#29280)

GitOrigin-RevId: 267586a33f19f6931e2eb76b33fdf569aa07b4d3
Kristina 11 luni în urmă
părinte
comite
05a50710bd

+ 1 - 1
services/web/app/src/Features/Subscription/PaymentProviderEntities.js

@@ -13,7 +13,7 @@
  * @property {number} subtotal
  * @property {number} discount
  * @property {number} tax
- * @property {boolean} isAiAssist
+ * @property {boolean} [isAiAssist]
  */
 
 const OError = require('@overleaf/o-error')

+ 1 - 0
services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx

@@ -39,6 +39,7 @@ function PreviewSubscriptionChange() {
     (item, index, arr) => {
       if (!item.isAiAssist) return true
 
+      // TODO: this can be removed when all subscriptions are using Stripe
       const isCanceledByAnotherItem = arr.some(
         (otherItem, otherIndex) =>
           otherIndex !== index &&

+ 1 - 1
services/web/types/subscription/subscription-change-preview.ts

@@ -9,7 +9,7 @@ export type ImmediateCharge = {
     subtotal: number
     discount: number
     tax: number
-    isAiAssist: boolean
+    isAiAssist?: boolean
   }[]
 }