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.
@@ -220,6 +220,30 @@ export interface WorkflowData {
|
|
220
220
|
* (optional) the description of the service this workflow provides
|
221
221
|
*/
|
222
222
|
serviceDescription?: string;
|
223
|
+
/**
|
224
|
+
* (optional) rules to hide certain payment plans depending on the workflow answers
|
225
|
+
*/
|
226
|
+
hidePlanRules?: HidePlanRule[];
|
227
|
+
}
|
228
|
+
export interface HidePlanRule {
|
229
|
+
/**
|
230
|
+
* the stripe plan id from the practice service
|
231
|
+
*/
|
232
|
+
idPlan: string;
|
233
|
+
/**
|
234
|
+
* Questions to apply yup rules on in, if rules are met then hide the plan
|
235
|
+
*/
|
236
|
+
rules: QuestionHidePlanRule | QuestionHidePlanRule[] | QuestionHidePlanRule[][];
|
237
|
+
}
|
238
|
+
export interface QuestionHidePlanRule {
|
239
|
+
/**
|
240
|
+
* the id of the question to check the rule on
|
241
|
+
*/
|
242
|
+
questionId: string;
|
243
|
+
/**
|
244
|
+
* a collection of yup validated rules (same exact syntax we used for the workflow formValidation field, please reuse same functions)
|
245
|
+
*/
|
246
|
+
yupRuleValueToHide: any;
|
223
247
|
}
|
224
248
|
/**
|
225
249
|
* This interface describes an upload of an image (could be a picture, a pdf, a text file, etc.)
|