Преглед изворни кода

Merge pull request #28244 from overleaf/kh-add-preview-charges-endpoint

[web] add API endpoint for previewing new subscription charges

GitOrigin-RevId: 6a6df51937837ece348c18aacef201eaee57e42d
Kristina пре 1 година
родитељ
комит
d81ae27dda
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      services/web/app/src/Features/Subscription/PaymentProviderEntities.js

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

@@ -629,11 +629,15 @@ class PaymentProviderCoupon {
    * @param {string} props.code
    * @param {string} props.code
    * @param {string} props.name
    * @param {string} props.name
    * @param {string} [props.description]
    * @param {string} [props.description]
+   * @param {boolean} [props.isSingleUse]
+   * @param {number | null} [props.discountMonths]
    */
    */
   constructor(props) {
   constructor(props) {
     this.code = props.code
     this.code = props.code
     this.name = props.name
     this.name = props.name
     this.description = props.description
     this.description = props.description
+    this.isSingleUse = props.isSingleUse
+    this.discountMonths = props.discountMonths
   }
   }
 }
 }