You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*new method for fetching all subscribers from a product instance ([#38](https://github.com/subtopia-algo/subtopia-js-sdk/issues/38)) ([8fc14db](https://github.com/subtopia-algo/subtopia-js-sdk/commit/8fc14dbdaa2e6d04fb4f470a65d472fbfe3a8b72))
12
+
*refactoring contracts to support latest 'token-based' types ([#39](https://github.com/subtopia-algo/subtopia-js-sdk/issues/39)) ([604becc](https://github.com/subtopia-algo/subtopia-js-sdk/commit/604beccc4fc2800b4859368aebf3228b6122dd8f))
- new method for fetching all subscribers from a product instance ([#38](https://github.com/subtopia-algo/subtopia-js-sdk/issues/38)) ([8fc14db](https://github.com/subtopia-algo/subtopia-js-sdk/commit/8fc14dbdaa2e6d04fb4f470a65d472fbfe3a8b72))
productID: PUT_PRODUCT_ID_HERE, // number - the ID of the Product instance you want to create a discount for
139
-
duration: PUT_DURATION_HERE, // number - the type of duration to apply. Also serves as static id for the discount.
140
142
discountType: PUT_DISCOUNT_TYPE_HERE, // number - the type of discount to apply. FIXED or PERCENTAGE
141
143
discountValue: PUT_DISCOUNT_VALUE_HERE, // number - the discount to be deducted from the subscription price
142
144
expiresIn: PUT_EXPIRATION_TIME_HERE, // (Optional) Set 0 for discount to never expire. Else set number of seconds to append to unix timestamp at time of creation.
@@ -152,12 +154,9 @@ console.log(discount.txID); // response is of type string
0 commit comments