Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 43.12 KB | None | 0 0
  1. {
  2.   "code": "0A2C",
  3.   "flow": "eod-switch-package",
  4.   "inputSchema": "Empty",
  5.   "root": {
  6.     "id": "0A2C_I_0",
  7.     "title": "Is CustomerPackage defined?",
  8.     "condition": "true",
  9.     "logic": [
  10.       "Define(`CUSTOMER_PACKAGE`, GetCustomerPackage())",
  11.       "Define(`CP_IS_EMPTY`, IsEmpty(CUSTOMER_PACKAGE))"
  12.     ],
  13.     "children": [
  14.       {
  15.         "id": "0A2C_K_0",
  16.         "title": "Is this a SME box",
  17.         "condition": "!CP_IS_EMPTY",
  18.         "logic": [
  19.           "Define(`IS_SME_BOX`, IsSmeBox())"
  20.         ],
  21.         "predecessors": [
  22.           "0A2C_I_0"
  23.         ],
  24.         "children": [
  25.           {
  26.             "id": "0A2C_M_0",
  27.             "title": "Is trial enabled?",
  28.             "condition": "IS_SME_BOX",
  29.             "predecessors": [
  30.               "0A2C_I_0",
  31.               "0A2C_K_0"
  32.             ],
  33.             "children": [
  34.               {
  35.                 "id": "0A2C_O_0",
  36.                 "title": "Is the trial end day",
  37.                 "condition": "CUSTOMER_PACKAGE.TrialEnabled ",
  38.                 "logic": [
  39.                   "Define(`TRIAL_END_DATE`, Time.Parse(CUSTOMER_PACKAGE.TrialDateEnd))",
  40.                   "Define(`TODAY`, GetBookingDate())"
  41.                 ],
  42.                 "predecessors": [
  43.                   "0A2C_I_0",
  44.                   "0A2C_K_0",
  45.                   "0A2C_M_0"
  46.                 ],
  47.                 "children": [
  48.                   {
  49.                     "id": "0A2C_Q_0",
  50.                     "title": "End of logic leading to result",
  51.                     "condition": "TRIAL_END_DATE == TODAY",
  52.                     "result": "Result.0A2C.10",
  53.                     "predecessors": [
  54.                       "0A2C_I_0",
  55.                       "0A2C_K_0",
  56.                       "0A2C_M_0",
  57.                       "0A2C_O_0"
  58.                     ]
  59.                   },
  60.                   {
  61.                     "id": "0A2C_Q_1",
  62.                     "title": "End of logic leading to result",
  63.                     "condition": "TRIAL_END_DATE != TODAY",
  64.                     "result": "Result.0A2C.20",
  65.                     "predecessors": [
  66.                       "0A2C_I_0",
  67.                       "0A2C_K_0",
  68.                       "0A2C_M_0",
  69.                       "0A2C_O_0"
  70.                     ]
  71.                   }
  72.                 ]
  73.               },
  74.               {
  75.                 "id": "0A2C_O_2",
  76.                 "title": "Is package to switch set?",
  77.                 "condition": "!CUSTOMER_PACKAGE.TrialEnabled",
  78.                 "logic": [
  79.                   "Define(`SWITCH_NOT_SET`, IsEmpty(CUSTOMER_PACKAGE.PackageToSwitch))"
  80.                 ],
  81.                 "predecessors": [
  82.                   "0A2C_I_0",
  83.                   "0A2C_K_0",
  84.                   "0A2C_M_0"
  85.                 ],
  86.                 "children": [
  87.                   {
  88.                     "id": "0A2C_Q_2",
  89.                     "title": "Is today the last day of month",
  90.                     "condition": "!SWITCH_NOT_SET",
  91.                     "logic": [
  92.                       "Define(`TODAY`, GetBookingDate())",
  93.                       "Define(`TODAY_STR`, TODAY.Format(`2006-01-02`))",
  94.                       "Define(`LAST_DAY_OF_BOOKING_MONTH`, Time.LastDayOfBookingMonth())"
  95.                     ],
  96.                     "predecessors": [
  97.                       "0A2C_I_0",
  98.                       "0A2C_K_0",
  99.                       "0A2C_M_0",
  100.                       "0A2C_O_2"
  101.                     ],
  102.                     "children": [
  103.                       {
  104.                         "id": "0A2C_S_2",
  105.                         "title": "Is it switch day?",
  106.                         "condition": "TODAY.Day() == LAST_DAY_OF_BOOKING_MONTH.Day()",
  107.                         "predecessors": [
  108.                           "0A2C_I_0",
  109.                           "0A2C_K_0",
  110.                           "0A2C_M_0",
  111.                           "0A2C_O_2",
  112.                           "0A2C_Q_2"
  113.                         ],
  114.                         "children": [
  115.                           {
  116.                             "id": "0A2C_U_2",
  117.                             "title": "To which package we switch?",
  118.                             "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay \u003e= LAST_DAY_OF_BOOKING_MONTH.Day()",
  119.                             "predecessors": [
  120.                               "0A2C_I_0",
  121.                               "0A2C_K_0",
  122.                               "0A2C_M_0",
  123.                               "0A2C_O_2",
  124.                               "0A2C_Q_2",
  125.                               "0A2C_S_2"
  126.                             ],
  127.                             "children": [
  128.                               {
  129.                                 "id": "0A2C_W_2",
  130.                                 "title": "End of logic leading to result",
  131.                                 "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `SME_STANDARD`",
  132.                                 "result": "Result.0A2C.30",
  133.                                 "predecessors": [
  134.                                   "0A2C_I_0",
  135.                                   "0A2C_K_0",
  136.                                   "0A2C_M_0",
  137.                                   "0A2C_O_2",
  138.                                   "0A2C_Q_2",
  139.                                   "0A2C_S_2",
  140.                                   "0A2C_U_2"
  141.                                 ]
  142.                               },
  143.                               {
  144.                                 "id": "0A2C_W_3",
  145.                                 "title": "End of logic leading to result",
  146.                                 "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `SME_PREMIUM`",
  147.                                 "result": "Result.0A2C.40",
  148.                                 "predecessors": [
  149.                                   "0A2C_I_0",
  150.                                   "0A2C_K_0",
  151.                                   "0A2C_M_0",
  152.                                   "0A2C_O_2",
  153.                                   "0A2C_Q_2",
  154.                                   "0A2C_S_2",
  155.                                   "0A2C_U_2"
  156.                                 ]
  157.                               },
  158.                               {
  159.                                 "id": "0A2C_W_4",
  160.                                 "title": "End of logic leading to result",
  161.                                 "condition": "CUSTOMER_PACKAGE.PackageToSwitch != `SME_STANDARD` \u0026\u0026 CUSTOMER_PACKAGE.PackageToSwitch != `SME_PREMIUM`",
  162.                                 "result": "Result.0A2C.50",
  163.                                 "predecessors": [
  164.                                   "0A2C_I_0",
  165.                                   "0A2C_K_0",
  166.                                   "0A2C_M_0",
  167.                                   "0A2C_O_2",
  168.                                   "0A2C_Q_2",
  169.                                   "0A2C_S_2",
  170.                                   "0A2C_U_2"
  171.                                 ]
  172.                               }
  173.                             ]
  174.                           },
  175.                           {
  176.                             "id": "0A2C_U_5",
  177.                             "title": "End of logic leading to result",
  178.                             "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay \u003c LAST_DAY_OF_BOOKING_MONTH.Day()",
  179.                             "result": "Result.0A2C.60",
  180.                             "predecessors": [
  181.                               "0A2C_I_0",
  182.                               "0A2C_K_0",
  183.                               "0A2C_M_0",
  184.                               "0A2C_O_2",
  185.                               "0A2C_Q_2",
  186.                               "0A2C_S_2"
  187.                             ]
  188.                           }
  189.                         ]
  190.                       },
  191.                       {
  192.                         "id": "0A2C_S_6",
  193.                         "title": "Is it switch day?",
  194.                         "condition": "TODAY.Day() != LAST_DAY_OF_BOOKING_MONTH.Day()",
  195.                         "predecessors": [
  196.                           "0A2C_I_0",
  197.                           "0A2C_K_0",
  198.                           "0A2C_M_0",
  199.                           "0A2C_O_2",
  200.                           "0A2C_Q_2"
  201.                         ],
  202.                         "children": [
  203.                           {
  204.                             "id": "0A2C_U_6",
  205.                             "title": "To which package we switch?",
  206.                             "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay == TODAY.Day()",
  207.                             "predecessors": [
  208.                               "0A2C_I_0",
  209.                               "0A2C_K_0",
  210.                               "0A2C_M_0",
  211.                               "0A2C_O_2",
  212.                               "0A2C_Q_2",
  213.                               "0A2C_S_6"
  214.                             ],
  215.                             "children": [
  216.                               {
  217.                                 "id": "0A2C_W_6",
  218.                                 "title": "End of logic leading to result",
  219.                                 "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `SME_STANDARD`",
  220.                                 "result": "Result.0A2C.70",
  221.                                 "predecessors": [
  222.                                   "0A2C_I_0",
  223.                                   "0A2C_K_0",
  224.                                   "0A2C_M_0",
  225.                                   "0A2C_O_2",
  226.                                   "0A2C_Q_2",
  227.                                   "0A2C_S_6",
  228.                                   "0A2C_U_6"
  229.                                 ]
  230.                               },
  231.                               {
  232.                                 "id": "0A2C_W_7",
  233.                                 "title": "End of logic leading to result",
  234.                                 "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `SME_PREMIUM`",
  235.                                 "result": "Result.0A2C.80",
  236.                                 "predecessors": [
  237.                                   "0A2C_I_0",
  238.                                   "0A2C_K_0",
  239.                                   "0A2C_M_0",
  240.                                   "0A2C_O_2",
  241.                                   "0A2C_Q_2",
  242.                                   "0A2C_S_6",
  243.                                   "0A2C_U_6"
  244.                                 ]
  245.                               },
  246.                               {
  247.                                 "id": "0A2C_W_8",
  248.                                 "title": "End of logic leading to result",
  249.                                 "condition": "CUSTOMER_PACKAGE.PackageToSwitch != `SME_STANDARD` \u0026\u0026 CUSTOMER_PACKAGE.PackageToSwitch != `SME_PREMIUM`",
  250.                                 "result": "Result.0A2C.90",
  251.                                 "predecessors": [
  252.                                   "0A2C_I_0",
  253.                                   "0A2C_K_0",
  254.                                   "0A2C_M_0",
  255.                                   "0A2C_O_2",
  256.                                   "0A2C_Q_2",
  257.                                   "0A2C_S_6",
  258.                                   "0A2C_U_6"
  259.                                 ]
  260.                               }
  261.                             ]
  262.                           },
  263.                           {
  264.                             "id": "0A2C_U_9",
  265.                             "title": "End of logic leading to result",
  266.                             "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay != TODAY.Day()",
  267.                             "result": "Result.0A2C.100",
  268.                             "predecessors": [
  269.                               "0A2C_I_0",
  270.                               "0A2C_K_0",
  271.                               "0A2C_M_0",
  272.                               "0A2C_O_2",
  273.                               "0A2C_Q_2",
  274.                               "0A2C_S_6"
  275.                             ]
  276.                           }
  277.                         ]
  278.                       }
  279.                     ]
  280.                   },
  281.                   {
  282.                     "id": "0A2C_Q_10",
  283.                     "title": "End of logic leading to result",
  284.                     "condition": "SWITCH_NOT_SET",
  285.                     "result": "Result.0A2C.110",
  286.                     "predecessors": [
  287.                       "0A2C_I_0",
  288.                       "0A2C_K_0",
  289.                       "0A2C_M_0",
  290.                       "0A2C_O_2"
  291.                     ]
  292.                   }
  293.                 ]
  294.               }
  295.             ]
  296.           },
  297.           {
  298.             "id": "0A2C_M_11",
  299.             "title": "Is this a retail box",
  300.             "condition": "!IS_SME_BOX",
  301.             "logic": [
  302.               "Define(`IS_RETAIL_BOX`, IsRetailBox())"
  303.             ],
  304.             "predecessors": [
  305.               "0A2C_I_0",
  306.               "0A2C_K_0"
  307.             ],
  308.             "children": [
  309.               {
  310.                 "id": "0A2C_O_11",
  311.                 "title": "Is trial enabled?",
  312.                 "condition": "IS_RETAIL_BOX",
  313.                 "predecessors": [
  314.                   "0A2C_I_0",
  315.                   "0A2C_K_0",
  316.                   "0A2C_M_11"
  317.                 ],
  318.                 "children": [
  319.                   {
  320.                     "id": "0A2C_Q_11",
  321.                     "title": "Is the trial end day",
  322.                     "condition": "CUSTOMER_PACKAGE.TrialEnabled ",
  323.                     "logic": [
  324.                       "Define(`TRIAL_END_DATE`, Time.Parse(CUSTOMER_PACKAGE.TrialDateEnd))",
  325.                       "Define(`TODAY`, GetBookingDate())"
  326.                     ],
  327.                     "predecessors": [
  328.                       "0A2C_I_0",
  329.                       "0A2C_K_0",
  330.                       "0A2C_M_11",
  331.                       "0A2C_O_11"
  332.                     ],
  333.                     "children": [
  334.                       {
  335.                         "id": "0A2C_S_11",
  336.                         "title": "End of logic leading to result",
  337.                         "condition": "TRIAL_END_DATE == TODAY",
  338.                         "result": "Result.0A2C.120",
  339.                         "predecessors": [
  340.                           "0A2C_I_0",
  341.                           "0A2C_K_0",
  342.                           "0A2C_M_11",
  343.                           "0A2C_O_11",
  344.                           "0A2C_Q_11"
  345.                         ]
  346.                       },
  347.                       {
  348.                         "id": "0A2C_S_12",
  349.                         "title": "End of logic leading to result",
  350.                         "condition": "TRIAL_END_DATE != TODAY",
  351.                         "result": "Result.0A2C.130",
  352.                         "predecessors": [
  353.                           "0A2C_I_0",
  354.                           "0A2C_K_0",
  355.                           "0A2C_M_11",
  356.                           "0A2C_O_11",
  357.                           "0A2C_Q_11"
  358.                         ]
  359.                       }
  360.                     ]
  361.                   },
  362.                   {
  363.                     "id": "0A2C_Q_13",
  364.                     "title": "Is package to switch set?",
  365.                     "condition": "!CUSTOMER_PACKAGE.TrialEnabled",
  366.                     "logic": [
  367.                       "Define(`SWITCH_NOT_SET`, IsEmpty(CUSTOMER_PACKAGE.PackageToSwitch))"
  368.                     ],
  369.                     "predecessors": [
  370.                       "0A2C_I_0",
  371.                       "0A2C_K_0",
  372.                       "0A2C_M_11",
  373.                       "0A2C_O_11"
  374.                     ],
  375.                     "children": [
  376.                       {
  377.                         "id": "0A2C_S_13",
  378.                         "title": "Is today the last day of month",
  379.                         "condition": "!SWITCH_NOT_SET",
  380.                         "logic": [
  381.                           "Define(`TODAY`, GetBookingDate())",
  382.                           "Define(`TODAY_STR`, TODAY.Format(`2006-01-02`))",
  383.                           "Define(`LAST_DAY_OF_BOOKING_MONTH`, Time.LastDayOfBookingMonth())"
  384.                         ],
  385.                         "predecessors": [
  386.                           "0A2C_I_0",
  387.                           "0A2C_K_0",
  388.                           "0A2C_M_11",
  389.                           "0A2C_O_11",
  390.                           "0A2C_Q_13"
  391.                         ],
  392.                         "children": [
  393.                           {
  394.                             "id": "0A2C_U_13",
  395.                             "title": "Is it switch day?",
  396.                             "condition": "TODAY.Day() == LAST_DAY_OF_BOOKING_MONTH.Day()",
  397.                             "predecessors": [
  398.                               "0A2C_I_0",
  399.                               "0A2C_K_0",
  400.                               "0A2C_M_11",
  401.                               "0A2C_O_11",
  402.                               "0A2C_Q_13",
  403.                               "0A2C_S_13"
  404.                             ],
  405.                             "children": [
  406.                               {
  407.                                 "id": "0A2C_W_13",
  408.                                 "title": "To which package we switch?",
  409.                                 "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay \u003e= LAST_DAY_OF_BOOKING_MONTH.Day()",
  410.                                 "predecessors": [
  411.                                   "0A2C_I_0",
  412.                                   "0A2C_K_0",
  413.                                   "0A2C_M_11",
  414.                                   "0A2C_O_11",
  415.                                   "0A2C_Q_13",
  416.                                   "0A2C_S_13",
  417.                                   "0A2C_U_13"
  418.                                 ],
  419.                                 "children": [
  420.                                   {
  421.                                     "id": "0A2C_Y_13",
  422.                                     "title": "End of logic leading to result",
  423.                                     "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `RETAIL_STANDARD`",
  424.                                     "result": "Result.0A2C.140",
  425.                                     "predecessors": [
  426.                                       "0A2C_I_0",
  427.                                       "0A2C_K_0",
  428.                                       "0A2C_M_11",
  429.                                       "0A2C_O_11",
  430.                                       "0A2C_Q_13",
  431.                                       "0A2C_S_13",
  432.                                       "0A2C_U_13",
  433.                                       "0A2C_W_13"
  434.                                     ]
  435.                                   },
  436.                                   {
  437.                                     "id": "0A2C_Y_14",
  438.                                     "title": "End of logic leading to result",
  439.                                     "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `RETAIL_PREMIUM`",
  440.                                     "result": "Result.0A2C.150",
  441.                                     "predecessors": [
  442.                                       "0A2C_I_0",
  443.                                       "0A2C_K_0",
  444.                                       "0A2C_M_11",
  445.                                       "0A2C_O_11",
  446.                                       "0A2C_Q_13",
  447.                                       "0A2C_S_13",
  448.                                       "0A2C_U_13",
  449.                                       "0A2C_W_13"
  450.                                     ]
  451.                                   },
  452.                                   {
  453.                                     "id": "0A2C_Y_15",
  454.                                     "title": "End of logic leading to result",
  455.                                     "condition": "CUSTOMER_PACKAGE.PackageToSwitch != `RETAIL_STANDARD` \u0026\u0026 CUSTOMER_PACKAGE.PackageToSwitch != `RETAIL_PREMIUM`",
  456.                                     "result": "Result.0A2C.160",
  457.                                     "predecessors": [
  458.                                       "0A2C_I_0",
  459.                                       "0A2C_K_0",
  460.                                       "0A2C_M_11",
  461.                                       "0A2C_O_11",
  462.                                       "0A2C_Q_13",
  463.                                       "0A2C_S_13",
  464.                                       "0A2C_U_13",
  465.                                       "0A2C_W_13"
  466.                                     ]
  467.                                   }
  468.                                 ]
  469.                               },
  470.                               {
  471.                                 "id": "0A2C_W_16",
  472.                                 "title": "End of logic leading to result",
  473.                                 "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay \u003c LAST_DAY_OF_BOOKING_MONTH.Day()",
  474.                                 "result": "Result.0A2C.170",
  475.                                 "predecessors": [
  476.                                   "0A2C_I_0",
  477.                                   "0A2C_K_0",
  478.                                   "0A2C_M_11",
  479.                                   "0A2C_O_11",
  480.                                   "0A2C_Q_13",
  481.                                   "0A2C_S_13",
  482.                                   "0A2C_U_13"
  483.                                 ]
  484.                               }
  485.                             ]
  486.                           },
  487.                           {
  488.                             "id": "0A2C_U_17",
  489.                             "title": "Is it switch day?",
  490.                             "condition": "TODAY.Day() != LAST_DAY_OF_BOOKING_MONTH.Day()",
  491.                             "predecessors": [
  492.                               "0A2C_I_0",
  493.                               "0A2C_K_0",
  494.                               "0A2C_M_11",
  495.                               "0A2C_O_11",
  496.                               "0A2C_Q_13",
  497.                               "0A2C_S_13"
  498.                             ],
  499.                             "children": [
  500.                               {
  501.                                 "id": "0A2C_W_17",
  502.                                 "title": "To which package we switch?",
  503.                                 "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay == TODAY.Day()",
  504.                                 "predecessors": [
  505.                                   "0A2C_I_0",
  506.                                   "0A2C_K_0",
  507.                                   "0A2C_M_11",
  508.                                   "0A2C_O_11",
  509.                                   "0A2C_Q_13",
  510.                                   "0A2C_S_13",
  511.                                   "0A2C_U_17"
  512.                                 ],
  513.                                 "children": [
  514.                                   {
  515.                                     "id": "0A2C_Y_17",
  516.                                     "title": "End of logic leading to result",
  517.                                     "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `RETAIL_STANDARD`",
  518.                                     "result": "Result.0A2C.180",
  519.                                     "predecessors": [
  520.                                       "0A2C_I_0",
  521.                                       "0A2C_K_0",
  522.                                       "0A2C_M_11",
  523.                                       "0A2C_O_11",
  524.                                       "0A2C_Q_13",
  525.                                       "0A2C_S_13",
  526.                                       "0A2C_U_17",
  527.                                       "0A2C_W_17"
  528.                                     ]
  529.                                   },
  530.                                   {
  531.                                     "id": "0A2C_Y_18",
  532.                                     "title": "End of logic leading to result",
  533.                                     "condition": "CUSTOMER_PACKAGE.PackageToSwitch == `RETAIL_PREMIUM`",
  534.                                     "result": "Result.0A2C.190",
  535.                                     "predecessors": [
  536.                                       "0A2C_I_0",
  537.                                       "0A2C_K_0",
  538.                                       "0A2C_M_11",
  539.                                       "0A2C_O_11",
  540.                                       "0A2C_Q_13",
  541.                                       "0A2C_S_13",
  542.                                       "0A2C_U_17",
  543.                                       "0A2C_W_17"
  544.                                     ]
  545.                                   },
  546.                                   {
  547.                                     "id": "0A2C_Y_19",
  548.                                     "title": "End of logic leading to result",
  549.                                     "condition": "CUSTOMER_PACKAGE.PackageToSwitch != `RETAIL_STANDARD` \u0026\u0026 CUSTOMER_PACKAGE.PackageToSwitch != `RETAIL_PREMIUM`",
  550.                                     "result": "Result.0A2C.200",
  551.                                     "predecessors": [
  552.                                       "0A2C_I_0",
  553.                                       "0A2C_K_0",
  554.                                       "0A2C_M_11",
  555.                                       "0A2C_O_11",
  556.                                       "0A2C_Q_13",
  557.                                       "0A2C_S_13",
  558.                                       "0A2C_U_17",
  559.                                       "0A2C_W_17"
  560.                                     ]
  561.                                   }
  562.                                 ]
  563.                               },
  564.                               {
  565.                                 "id": "0A2C_W_20",
  566.                                 "title": "End of logic leading to result",
  567.                                 "condition": "CUSTOMER_PACKAGE.SubscriptionFeeChargeDay != TODAY.Day()",
  568.                                 "result": "Result.0A2C.210",
  569.                                 "predecessors": [
  570.                                   "0A2C_I_0",
  571.                                   "0A2C_K_0",
  572.                                   "0A2C_M_11",
  573.                                   "0A2C_O_11",
  574.                                   "0A2C_Q_13",
  575.                                   "0A2C_S_13",
  576.                                   "0A2C_U_17"
  577.                                 ]
  578.                               }
  579.                             ]
  580.                           }
  581.                         ]
  582.                       },
  583.                       {
  584.                         "id": "0A2C_S_21",
  585.                         "title": "End of logic leading to result",
  586.                         "condition": "SWITCH_NOT_SET",
  587.                         "result": "Result.0A2C.220",
  588.                         "predecessors": [
  589.                           "0A2C_I_0",
  590.                           "0A2C_K_0",
  591.                           "0A2C_M_11",
  592.                           "0A2C_O_11",
  593.                           "0A2C_Q_13"
  594.                         ]
  595.                       }
  596.                     ]
  597.                   }
  598.                 ]
  599.               },
  600.               {
  601.                 "id": "0A2C_O_22",
  602.                 "title": "End of logic leading to result",
  603.                 "condition": "!IS_RETAIL_BOX",
  604.                 "result": "Result.0A2C.230",
  605.                 "predecessors": [
  606.                   "0A2C_I_0",
  607.                   "0A2C_K_0",
  608.                   "0A2C_M_11"
  609.                 ]
  610.               }
  611.             ]
  612.           }
  613.         ]
  614.       },
  615.       {
  616.         "id": "0A2C_K_23",
  617.         "title": "End of logic leading to result",
  618.         "condition": "CP_IS_EMPTY",
  619.         "result": "Result.0A2C.240",
  620.         "predecessors": [
  621.           "0A2C_I_0"
  622.         ]
  623.       }
  624.     ]
  625.   },
  626.   "results": [
  627.     {
  628.       "code": "Result.0A2C.10",
  629.       "bookings": [
  630.         {
  631.           "id": "MC.0A2C.10_1_1",
  632.           "schema": "CustomerPackage",
  633.           "copyObject": "CUSTOMER_PACKAGE",
  634.           "function": "Book(`MC.0A2C.1`,`DEF`,0,``,``,`D`,`CUSTOMER_PACKAGE`,``,``,``,`Deactivate trial`,true,``,Decimal(0),``,[],OUT,``,Decimal(0),``,Decimal(0),``)",
  635.           "mapping": {
  636.             "TrialEnabled": "false"
  637.           }
  638.         },
  639.         {
  640.           "id": "Exit.0A2C.10",
  641.           "schema": "Empty",
  642.           "function": "Exit(`10`, `10`, true, `Deactivate trial`)",
  643.           "mapping": {}
  644.         }
  645.       ]
  646.     },
  647.     {
  648.       "code": "Result.0A2C.20",
  649.       "bookings": [
  650.         {
  651.           "id": "Exit.0A2C.20",
  652.           "schema": "Empty",
  653.           "function": "Exit(`20`, `20`, true, `EOD - it is not a problem`)",
  654.           "mapping": {}
  655.         }
  656.       ]
  657.     },
  658.     {
  659.       "code": "Result.0A2C.30",
  660.       "bookings": [
  661.         {
  662.           "id": "MC.0A2C.30_2_1",
  663.           "schema": "CustomerPackage",
  664.           "function": "Book(`MC.0A2C.2`,`DEF`,0,``,``,`D`,`CUSTOMER_PACKAGE`,``,``,``,`Package to switch`,true,``,Decimal(0),``,[],OUT,``,Decimal(0),``,Decimal(0),``)",
  665.           "mapping": {
  666.             "AtmFeeAboveFree": "Decimal(0.01)",
  667.             "AtmMonthValueFree.Amount": "Decimal(1000)",
  668.             "AtmMonthValueFree.Currency": "`EUR`",
  669.             "AtmMonthValueFree.Period": "`M`",
  670.             "ExpressDeliveryFee.Amount": "Decimal(15.00)",
  671.             "ExpressDeliveryFee.Currency": "`EUR`",
  672.             "FxTransactions": "Decimal(0)",
  673.             "MaxActiveCards.Number": "Decimal(1)",
  674.             "MaxActiveCards.Period": "`E0`",
  675.             "MaxIssuedCardsYear.Number": "Decimal(5)",
  676.             "MaxIssuedCardsYear.Period": "`Y`",
  677.             "MaxNumberOfCurrencyAccount": "0",
  678.             "Package": "`SME_STANDARD`",
  679.             "PackageDateStart": "TODAY_STR",
  680.             "PackageToSwitch": "``",
  681.             "PlasticsFeeAboveFree.Amount": "Decimal(0.00)",
  682.             "PlasticsFeeAboveFree.Currency": "`EUR`",
  683.             "PlasticsFree.Number": "Decimal(10)",
  684.             "PlasticsFree.Period": "`Y`",
  685.             "StandardDeliveryFee.Amount": "Decimal(0)",
  686.             "StandardDeliveryFee.Currency": "`EUR`",
  687.             "SubscriptionFee.Amount": "Decimal(10)",
  688.             "SubscriptionFee.Currency": "`EUR`",
  689.             "SubscriptionFeeChargeDay": "TODAY.Day()",
  690.             "TransferDomesticFee.Amount": "Decimal(0)",
  691.             "TransferDomesticFee.Currency": "`EUR`",
  692.             "TransferForeignFee.Amount": "Decimal(0)",
  693.             "TransferForeignFee.Currency": "`EUR`",
  694.             "TransferForeignFixedFee.Amount": "Decimal(0)",
  695.             "TransferForeignFixedFee.Currency": "`EUR`",
  696.             "TransferPeerToPeerFee.Amount": "Decimal(0)",
  697.             "TransferPeerToPeerFee.Currency": "`EUR`",
  698.             "TransferSEPAFee.Amount": "Decimal(0)",
  699.             "TransferSEPAFee.Currency": "`EUR`",
  700.             "TrialDateEnd": "CUSTOMER_PACKAGE.TrialDateEnd",
  701.             "TrialEnabled": "CUSTOMER_PACKAGE.TrialEnabled"
  702.           }
  703.         },
  704.         {
  705.           "id": "Exit.0A2C.30",
  706.           "schema": "Empty",
  707.           "function": "Exit(`30`, `30`, true, `Switch to SME_STANDARD`)",
  708.           "mapping": {}
  709.         }
  710.       ]
  711.     },
  712.     {
  713.       "code": "Result.0A2C.40",
  714.       "bookings": [
  715.         {
  716.           "id": "Exit.0A2C.40",
  717.           "schema": "Empty",
  718.           "function": "Exit(`40`, `40`, false, `Not supported switch to SME_PREMIUM`)",
  719.           "mapping": {}
  720.         }
  721.       ]
  722.     },
  723.     {
  724.       "code": "Result.0A2C.50",
  725.       "bookings": [
  726.         {
  727.           "id": "Exit.0A2C.50",
  728.           "schema": "Empty",
  729.           "function": "Exit(`50`, `50`, false, `No SME package`)",
  730.           "mapping": {}
  731.         }
  732.       ]
  733.     },
  734.     {
  735.       "code": "Result.0A2C.60",
  736.       "bookings": [
  737.         {
  738.           "id": "Exit.0A2C.60",
  739.           "schema": "Empty",
  740.           "function": "Exit(`60`, `60`, true, `EOD - it is not a problem`)",
  741.           "mapping": {}
  742.         }
  743.       ]
  744.     },
  745.     {
  746.       "code": "Result.0A2C.70",
  747.       "bookings": [
  748.         {
  749.           "id": "MC.0A2C.70_2_1",
  750.           "schema": "CustomerPackage",
  751.           "function": "Book(`MC.0A2C.2`,`DEF`,0,``,``,`D`,`CUSTOMER_PACKAGE`,``,``,``,`Package to switch`,true,``,Decimal(0),``,[],OUT,``,Decimal(0),``,Decimal(0),``)",
  752.           "mapping": {
  753.             "AtmFeeAboveFree": "Decimal(0.01)",
  754.             "AtmMonthValueFree.Amount": "Decimal(1000)",
  755.             "AtmMonthValueFree.Currency": "`EUR`",
  756.             "AtmMonthValueFree.Period": "`M`",
  757.             "ExpressDeliveryFee.Amount": "Decimal(15.00)",
  758.             "ExpressDeliveryFee.Currency": "`EUR`",
  759.             "FxTransactions": "Decimal(0)",
  760.             "MaxActiveCards.Number": "Decimal(1)",
  761.             "MaxActiveCards.Period": "`E0`",
  762.             "MaxIssuedCardsYear.Number": "Decimal(5)",
  763.             "MaxIssuedCardsYear.Period": "`Y`",
  764.             "MaxNumberOfCurrencyAccount": "0",
  765.             "Package": "`SME_STANDARD`",
  766.             "PackageDateStart": "TODAY_STR",
  767.             "PackageToSwitch": "``",
  768.             "PlasticsFeeAboveFree.Amount": "Decimal(0.00)",
  769.             "PlasticsFeeAboveFree.Currency": "`EUR`",
  770.             "PlasticsFree.Number": "Decimal(10)",
  771.             "PlasticsFree.Period": "`Y`",
  772.             "StandardDeliveryFee.Amount": "Decimal(0)",
  773.             "StandardDeliveryFee.Currency": "`EUR`",
  774.             "SubscriptionFee.Amount": "Decimal(10)",
  775.             "SubscriptionFee.Currency": "`EUR`",
  776.             "SubscriptionFeeChargeDay": "TODAY.Day()",
  777.             "TransferDomesticFee.Amount": "Decimal(0)",
  778.             "TransferDomesticFee.Currency": "`EUR`",
  779.             "TransferForeignFee.Amount": "Decimal(0)",
  780.             "TransferForeignFee.Currency": "`EUR`",
  781.             "TransferForeignFixedFee.Amount": "Decimal(0)",
  782.             "TransferForeignFixedFee.Currency": "`EUR`",
  783.             "TransferPeerToPeerFee.Amount": "Decimal(0)",
  784.             "TransferPeerToPeerFee.Currency": "`EUR`",
  785.             "TransferSEPAFee.Amount": "Decimal(0)",
  786.             "TransferSEPAFee.Currency": "`EUR`",
  787.             "TrialDateEnd": "CUSTOMER_PACKAGE.TrialDateEnd",
  788.             "TrialEnabled": "CUSTOMER_PACKAGE.TrialEnabled"
  789.           }
  790.         },
  791.         {
  792.           "id": "Exit.0A2C.70",
  793.           "schema": "Empty",
  794.           "function": "Exit(`70`, `70`, true, `Switch to SME_STANDARD`)",
  795.           "mapping": {}
  796.         }
  797.       ]
  798.     },
  799.     {
  800.       "code": "Result.0A2C.80",
  801.       "bookings": [
  802.         {
  803.           "id": "Exit.0A2C.80",
  804.           "schema": "Empty",
  805.           "function": "Exit(`80`, `80`, false, `Not supported switch to SME_PREMIUM`)",
  806.           "mapping": {}
  807.         }
  808.       ]
  809.     },
  810.     {
  811.       "code": "Result.0A2C.90",
  812.       "bookings": [
  813.         {
  814.           "id": "Exit.0A2C.90",
  815.           "schema": "Empty",
  816.           "function": "Exit(`90`, `90`, false, `No SME package`)",
  817.           "mapping": {}
  818.         }
  819.       ]
  820.     },
  821.     {
  822.       "code": "Result.0A2C.100",
  823.       "bookings": [
  824.         {
  825.           "id": "Exit.0A2C.100",
  826.           "schema": "Empty",
  827.           "function": "Exit(`100`, `100`, true, `EOD - it is not a problem`)",
  828.           "mapping": {}
  829.         }
  830.       ]
  831.     },
  832.     {
  833.       "code": "Result.0A2C.110",
  834.       "bookings": [
  835.         {
  836.           "id": "Exit.0A2C.110",
  837.           "schema": "Empty",
  838.           "function": "Exit(`110`, `110`, true, `EOD - it is not a problem`)",
  839.           "mapping": {}
  840.         }
  841.       ]
  842.     },
  843.     {
  844.       "code": "Result.0A2C.120",
  845.       "bookings": [
  846.         {
  847.           "id": "MC.0A2C.120_1_1",
  848.           "schema": "CustomerPackage",
  849.           "copyObject": "CUSTOMER_PACKAGE",
  850.           "function": "Book(`MC.0A2C.1`,`DEF`,0,``,``,`D`,`CUSTOMER_PACKAGE`,``,``,``,`Deactivate trial`,true,``,Decimal(0),``,[],OUT,``,Decimal(0),``,Decimal(0),``)",
  851.           "mapping": {
  852.             "TrialEnabled": "false"
  853.           }
  854.         },
  855.         {
  856.           "id": "Exit.0A2C.120",
  857.           "schema": "Empty",
  858.           "function": "Exit(`120`, `120`, true, `Deactivate trial`)",
  859.           "mapping": {}
  860.         }
  861.       ]
  862.     },
  863.     {
  864.       "code": "Result.0A2C.130",
  865.       "bookings": [
  866.         {
  867.           "id": "Exit.0A2C.130",
  868.           "schema": "Empty",
  869.           "function": "Exit(`130`, `130`, true, `EOD - it is not a problem`)",
  870.           "mapping": {}
  871.         }
  872.       ]
  873.     },
  874.     {
  875.       "code": "Result.0A2C.140",
  876.       "bookings": [
  877.         {
  878.           "id": "MC.0A2C.140_3_1",
  879.           "schema": "CustomerPackage",
  880.           "function": "Book(`MC.0A2C.3`,`DEF`,0,``,``,`D`,`CUSTOMER_PACKAGE`,``,``,``,`Package to switch`,true,``,Decimal(0),``,[],OUT,``,Decimal(0),``,Decimal(0),``)",
  881.           "mapping": {
  882.             "AtmFeeAboveFree": "Decimal(0.02)",
  883.             "AtmMonthValueFree.Amount": "Decimal(300)",
  884.             "AtmMonthValueFree.Currency": "`EUR`",
  885.             "AtmMonthValueFree.Period": "`M`",
  886.             "ExpressDeliveryFee.Amount": "Decimal(15.00)",
  887.             "ExpressDeliveryFee.Currency": "`EUR`",
  888.             "FxTransactions": "Decimal(0.00)",
  889.             "MaxActiveCards.Number": "Decimal(1)",
  890.             "MaxActiveCards.Period": "`E0`",
  891.             "MaxIssuedCardsYear.Number": "Decimal(3)",
  892.             "MaxIssuedCardsYear.Period": "`Y`",
  893.             "MaxNumberOfCurrencyAccount": "0",
  894.             "MaxNumberOfSubaccount": "0",
  895.             "Package": "`RETAIL_STANDARD`",
  896.             "PackageDateStart": "TODAY_STR",
  897.             "PackageToSwitch": "``",
  898.             "PlasticsFeeAboveFree.Amount": "Decimal(5.00)",
  899.             "PlasticsFeeAboveFree.Currency": "`EUR`",
  900.             "PlasticsFree.Number": "Decimal(1)",
  901.             "PlasticsFree.Period": "`E0`",
  902.             "StandardDeliveryFee.Amount": "Decimal(0)",
  903.             "StandardDeliveryFee.Currency": "`EUR`",
  904.             "SubscriptionFee.Amount": "Decimal(1)",
  905.             "SubscriptionFee.Currency": "`EUR`",
  906.             "SubscriptionFeeChargeDay": "TODAY.Day()",
  907.             "TransferDomesticFee.Amount": "Decimal(0)",
  908.             "TransferDomesticFee.Currency": "`EUR`",
  909.             "TransferForeignFee.Amount": "Decimal(0)",
  910.             "TransferForeignFee.Currency": "`EUR`",
  911.             "TransferForeignFixedFee.Amount": "Decimal(0)",
  912.             "TransferForeignFixedFee.Currency": "`EUR`",
  913.             "TransferPeerToPeerFee.Amount": "Decimal(0)",
  914.             "TransferPeerToPeerFee.Currency": "`EUR`",
  915.             "TransferSEPAFee.Amount": "Decimal(0)",
  916.             "TransferSEPAFee.Currency": "`EUR`",
  917.             "TrialDateEnd": "CUSTOMER_PACKAGE.TrialDateEnd",
  918.             "TrialEnabled": "CUSTOMER_PACKAGE.TrialEnabled"
  919.           }
  920.         },
  921.         {
  922.           "id": "Exit.0A2C.140",
  923.           "schema": "Empty",
  924.           "function": "Exit(`140`, `140`, true, `Switch to RETAIL_STANDARD`)",
  925.           "mapping": {}
  926.         }
  927.       ]
  928.     },
  929.     {
  930.       "code": "Result.0A2C.150",
  931.       "bookings": [
  932.         {
  933.           "id": "Exit.0A2C.150",
  934.           "schema": "Empty",
  935.           "function": "Exit(`150`, `150`, false, `Not supported switch to RETAIL_PREMIUM`)",
  936.           "mapping": {}
  937.         }
  938.       ]
  939.     },
  940.     {
  941.       "code": "Result.0A2C.160",
  942.       "bookings": [
  943.         {
  944.           "id": "Exit.0A2C.160",
  945.           "schema": "Empty",
  946.           "function": "Exit(`160`, `160`, false, `No Retail package`)",
  947.           "mapping": {}
  948.         }
  949.       ]
  950.     },
  951.     {
  952.       "code": "Result.0A2C.170",
  953.       "bookings": [
  954.         {
  955.           "id": "Exit.0A2C.170",
  956.           "schema": "Empty",
  957.           "function": "Exit(`170`, `170`, true, `EOD - it is not a problem`)",
  958.           "mapping": {}
  959.         }
  960.       ]
  961.     },
  962.     {
  963.       "code": "Result.0A2C.180",
  964.       "bookings": [
  965.         {
  966.           "id": "MC.0A2C.180_3_1",
  967.           "schema": "CustomerPackage",
  968.           "function": "Book(`MC.0A2C.3`,`DEF`,0,``,``,`D`,`CUSTOMER_PACKAGE`,``,``,``,`Package to switch`,true,``,Decimal(0),``,[],OUT,``,Decimal(0),``,Decimal(0),``)",
  969.           "mapping": {
  970.             "AtmFeeAboveFree": "Decimal(0.02)",
  971.             "AtmMonthValueFree.Amount": "Decimal(300)",
  972.             "AtmMonthValueFree.Currency": "`EUR`",
  973.             "AtmMonthValueFree.Period": "`M`",
  974.             "ExpressDeliveryFee.Amount": "Decimal(15.00)",
  975.             "ExpressDeliveryFee.Currency": "`EUR`",
  976.             "FxTransactions": "Decimal(0.00)",
  977.             "MaxActiveCards.Number": "Decimal(1)",
  978.             "MaxActiveCards.Period": "`E0`",
  979.             "MaxIssuedCardsYear.Number": "Decimal(3)",
  980.             "MaxIssuedCardsYear.Period": "`Y`",
  981.             "MaxNumberOfCurrencyAccount": "0",
  982.             "MaxNumberOfSubaccount": "0",
  983.             "Package": "`RETAIL_STANDARD`",
  984.             "PackageDateStart": "TODAY_STR",
  985.             "PackageToSwitch": "``",
  986.             "PlasticsFeeAboveFree.Amount": "Decimal(5.00)",
  987.             "PlasticsFeeAboveFree.Currency": "`EUR`",
  988.             "PlasticsFree.Number": "Decimal(1)",
  989.             "PlasticsFree.Period": "`E0`",
  990.             "StandardDeliveryFee.Amount": "Decimal(0)",
  991.             "StandardDeliveryFee.Currency": "`EUR`",
  992.             "SubscriptionFee.Amount": "Decimal(1)",
  993.             "SubscriptionFee.Currency": "`EUR`",
  994.             "SubscriptionFeeChargeDay": "TODAY.Day()",
  995.             "TransferDomesticFee.Amount": "Decimal(0)",
  996.             "TransferDomesticFee.Currency": "`EUR`",
  997.             "TransferForeignFee.Amount": "Decimal(0)",
  998.             "TransferForeignFee.Currency": "`EUR`",
  999.             "TransferForeignFixedFee.Amount": "Decimal(0)",
  1000.             "TransferForeignFixedFee.Currency": "`EUR`",
  1001.             "TransferPeerToPeerFee.Amount": "Decimal(0)",
  1002.             "TransferPeerToPeerFee.Currency": "`EUR`",
  1003.             "TransferSEPAFee.Amount": "Decimal(0)",
  1004.             "TransferSEPAFee.Currency": "`EUR`",
  1005.             "TrialDateEnd": "CUSTOMER_PACKAGE.TrialDateEnd",
  1006.             "TrialEnabled": "CUSTOMER_PACKAGE.TrialEnabled"
  1007.           }
  1008.         },
  1009.         {
  1010.           "id": "Exit.0A2C.180",
  1011.           "schema": "Empty",
  1012.           "function": "Exit(`180`, `180`, true, `Switch to RETAIL_STANDARD`)",
  1013.           "mapping": {}
  1014.         }
  1015.       ]
  1016.     },
  1017.     {
  1018.       "code": "Result.0A2C.190",
  1019.       "bookings": [
  1020.         {
  1021.           "id": "Exit.0A2C.190",
  1022.           "schema": "Empty",
  1023.           "function": "Exit(`190`, `190`, false, `Switch to RETAIL_PREMIUM`)",
  1024.           "mapping": {}
  1025.         }
  1026.       ]
  1027.     },
  1028.     {
  1029.       "code": "Result.0A2C.200",
  1030.       "bookings": [
  1031.         {
  1032.           "id": "Exit.0A2C.200",
  1033.           "schema": "Empty",
  1034.           "function": "Exit(`200`, `200`, false, `No Retail package`)",
  1035.           "mapping": {}
  1036.         }
  1037.       ]
  1038.     },
  1039.     {
  1040.       "code": "Result.0A2C.210",
  1041.       "bookings": [
  1042.         {
  1043.           "id": "Exit.0A2C.210",
  1044.           "schema": "Empty",
  1045.           "function": "Exit(`210`, `210`, true, `EOD - it is not a problem`)",
  1046.           "mapping": {}
  1047.         }
  1048.       ]
  1049.     },
  1050.     {
  1051.       "code": "Result.0A2C.220",
  1052.       "bookings": [
  1053.         {
  1054.           "id": "Exit.0A2C.220",
  1055.           "schema": "Empty",
  1056.           "function": "Exit(`220`, `220`, true, `EOD - it is not a problem`)",
  1057.           "mapping": {}
  1058.         }
  1059.       ]
  1060.     },
  1061.     {
  1062.       "code": "Result.0A2C.230",
  1063.       "bookings": [
  1064.         {
  1065.           "id": "Exit.0A2C.230",
  1066.           "schema": "Empty",
  1067.           "function": "Exit(`230`, `230`, true, `EOD - it is not a problem`)",
  1068.           "mapping": {}
  1069.         }
  1070.       ]
  1071.     },
  1072.     {
  1073.       "code": "Result.0A2C.240",
  1074.       "bookings": [
  1075.         {
  1076.           "id": "Exit.0A2C.240",
  1077.           "schema": "Empty",
  1078.           "function": "Exit(`240`, `240`, true, `EOD - it is not a problem`)",
  1079.           "mapping": {}
  1080.         }
  1081.       ]
  1082.     }
  1083.   ],
  1084.   "response": {
  1085.     "schema": "Empty",
  1086.     "mapping": {}
  1087.   }
  1088. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement