oro-sdk-apis 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.55.0",
2
+ "version": "1.56.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -268,6 +268,32 @@ export interface WorkflowData {
268
268
  * (optional) the description of the service this workflow provides
269
269
  */
270
270
  serviceDescription?: string
271
+ /**
272
+ * (optional) rules to hide certain payment plans depending on the workflow answers
273
+ */
274
+ hidePlanRules?: HidePlanRule[]
275
+ }
276
+
277
+ export interface HidePlanRule {
278
+ /**
279
+ * the stripe plan id from the practice service
280
+ */
281
+ idPlan: string
282
+ /**
283
+ * Questions to apply yup rules on in, if rules are met then hide the plan
284
+ */
285
+ rules: QuestionHidePlanRule | QuestionHidePlanRule[] | QuestionHidePlanRule[][]
286
+ }
287
+
288
+ export interface QuestionHidePlanRule {
289
+ /**
290
+ * the id of the question to check the rule on
291
+ */
292
+ questionId: string
293
+ /**
294
+ * a collection of yup validated rules (same exact syntax we used for the workflow formValidation field, please reuse same functions)
295
+ */
296
+ yupRuleValueToHide: any
271
297
  }
272
298
 
273
299
  /**