| @@ -42,9 +42,9 @@ | ||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Receipt data schema contract version. |
| 45 | 45 | */ |
| 46 | - const SCHEMA_VERSION = '1.1.0'; | |
| 46 | + const SCHEMA_VERSION = '1.2.0'; | |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Money keys that must be present in totals. |
| 50 | 50 | */ |
| @@ -803,25 +803,29 @@ | ||
| 803 | 803 | 'discounts' => array( |
| 804 | 804 | 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Discounts', 'woocommerce-pos' ), |
| 805 | 805 | 'is_array' => true, |
| 806 | 806 | 'fields' => array( |
| 807 | - 'label' => array( | |
| 807 | + 'label' => array( | |
| 808 | 808 | 'type' => 'string', |
| 809 | 809 | 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Discount Label', 'woocommerce-pos' ), |
| 810 | 810 | ), |
| 811 | - 'code' => array( | |
| 811 | + 'code' => array( | |
| 812 | 812 | 'type' => 'string', |
| 813 | 813 | 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Coupon Code', 'woocommerce-pos' ), |
| 814 | 814 | ), |
| 815 | - 'total' => array( | |
| 815 | + 'discount_type' => array( | |
| 816 | + 'type' => 'string', | |
| 817 | + 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Coupon Type', 'woocommerce-pos' ), | |
| 818 | + ), | |
| 819 | + 'total' => array( | |
| 816 | 820 | 'type' => 'money', |
| 817 | 821 | 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Total', 'woocommerce-pos' ), |
| 818 | 822 | ), |
| 819 | - 'total_incl' => array( | |
| 823 | + 'total_incl' => array( | |
| 820 | 824 | 'type' => 'money', |
| 821 | 825 | 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Total (incl tax)', 'woocommerce-pos' ), |
| 822 | 826 | ), |
| 823 | - 'total_excl' => array( | |
| 827 | + 'total_excl' => array( | |
| 824 | 828 | 'type' => 'money', |
| 825 | 829 | 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Total (excl tax)', 'woocommerce-pos' ), |
| 826 | 830 | ), |
| 827 | 831 | ), |