<?php

$data = [
    [
        'key' => 'DELIVERY_SERVICES_ENABLED',
        'type' => 'bool',
        'value' => 1,
        'module' => 'Delivery Services',
        'description' => 'Turn on/off Delivery Services',
        'created_at' => new DateTime(),
    ],
    [
        'key' => 'DELIVERY_SERVICES_TOKEN_LIVE',
        'type' => 'string',
        'value' => '',
        'module' => 'Delivery Services',
        'description' => 'Auth token for Live integration',
        'created_at' => new DateTime(),
    ],
    [
        'key' => 'DELIVERY_SERVICES_TOKEN_TEST',
        'type' => 'string',
        'value' => '',
        'module' => 'Delivery Services',
        'description' => 'Auth token for Test integration',
        'created_at' => new DateTime(),
    ],
    [
        'key' => 'DELIVERY_SERVICES_LIVE',
        'type' => 'bool',
        'value' => 0,
        'module' => 'Delivery Services',
        'description' => 'Whether integration should use live environment in production site',
        'created_at' => new DateTime(),
    ],
    [
        'key' => 'DELIVERY_DEFAULT_ITEM_WEIGHT',
        'type' => 'int',
        'value' => 200,
        'module' => 'Delivery Services',
        'description' => 'Default item weight in grams',
        'created_at' => new DateTime(),
    ],
    [
        'key' => 'DELIVERY_COURIER_EXPORT_STATUS_ID',
        'type' => 'int',
        'value' => 4,
        'module' => 'Delivery Services',
        'description' => 'Status ID for sending order to courier',
        'created_at' => new DateTime(),
    ],
];

foreach ($data as $key => $values) {
    if (defined($values['key'])) {
        unset($data[$key]);
    }
}

\MTC\Core\Setting::Insert($data);
