<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

return [
    'rule_information' =>
        [
            'children' =>
                [
                    'website_ids' => ['arguments' => ['data' => ['config' => ['options' => []]]]],
                    'is_active' =>
                        [
                            'arguments' =>
                                [
                                    'data' =>
                                        [
                                            'config' =>
                                                [
                                                    'options' =>
                                                        [
                                                            [
                                                                'label' => __('Active'),
                                                                'value' => '1',
                                                            ],
                                                            [
                                                                'label' => __('Inactive'),
                                                                'value' => '0',
                                                            ],
                                                        ],
                                                ],
                                        ],
                                ],
                        ],
                    'customer_group_ids' => ['arguments' => ['data' => ['config' => ['options' => []]]]],
                    'coupon_type' =>
                        [
                            'arguments' =>
                                [
                                    'data' =>
                                        [
                                            'config' =>
                                                [
                                                    'options' =>
                                                        [
                                                            [
                                                                'label' => 'couponType1',
                                                                'value' => 'key1',
                                                            ],
                                                            [
                                                                'label' => 'couponType2',
                                                                'value' => 'key2',
                                                            ],
                                                        ],
                                                ],
                                        ],
                                ],
                        ],
                    'is_rss' =>
                        [
                            'arguments' =>
                                [
                                    'data' =>
                                        [
                                            'config' =>
                                                [
                                                    'options' =>
                                                        [
                                                            [
                                                                'label' => __('Yes'),
                                                                'value' => '1',
                                                            ],
                                                            [
                                                                'label' => __('No'),
                                                                'value' => '0',
                                                            ],
                                                        ],
                                                ],
                                        ],
                                ],
                        ],
                ],
        ],
    'actions' =>
        [
            'children' =>
                [
                    'simple_action' =>
                        [
                            'arguments' =>
                                [
                                    'data' =>
                                        [
                                            'config' =>
                                                [
                                                    'options' =>
                                                        [
                                                            [
                                                                'label' => __('Percent of product price discount'),
                                                                'value' => 'by_percent',
                                                            ],
                                                            [
                                                                'label' => __('Fixed amount discount'),
                                                                'value' => 'by_fixed',
                                                            ],
                                                            [
                                                                'label' => __('Fixed amount discount for whole cart'),
                                                                'value' => 'cart_fixed',
                                                            ],
                                                            [
                                                                'label' => __(
                                                                    'Buy X get Y free (discount amount is Y)'
                                                                ),
                                                                'value' => 'buy_x_get_y',
                                                            ],
                                                        ],
                                                ],
                                        ],
                                ],
                        ],
                    'discount_amount' => ['arguments' => ['data' => ['config' => ['value' => '0']]]],
                    'discount_qty' => ['arguments' => ['data' => ['config' => ['value' => '0']]]],
                    'apply_to_shipping' =>
                        [
                            'arguments' =>
                                [
                                    'data' =>
                                        [
                                            'config' =>
                                                [
                                                    'options' =>
                                                        [
                                                            [
                                                                'label' => __('Yes'),
                                                                'value' => '1'
                                                            ],
                                                            [
                                                                'label' => __('No'),
                                                                'value' => '0'
                                                            ],
                                                        ],
                                                ],
                                        ],
                                ],
                        ],
                    'stop_rules_processing' =>
                        [
                            'arguments' =>
                                [
                                    'data' =>
                                        [
                                            'config' =>
                                                [

                                                    'options' =>
                                                        [
                                                            [
                                                                'label' => __('Yes'),
                                                                'value' => '1'
                                                            ],

                                                            [
                                                                'label' => __('No'),
                                                                'value' => '0'
                                                            ],
                                                        ],
                                                ],
                                        ],
                                ],
                        ],
                ],
        ],
    'labels' => ['children' => ['store_labels[0]' => ['arguments' => ['data' => ['config' => ['value' => 'label0']]]]]],
];
