oro-sdk-apis 1.55.0 → 1.56.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/models/workflow.ts
CHANGED
@@ -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
|
/**
|