{
    "name": "Sanmar",
    "app_type": "sanmar",
    "sync_type": "ftp",
    "is_active": true,
    "debug_mode": false,
    "connections": [
        {
            "name": "Products",
            "type": "ftp",
            "is_active": true,
            "is_primary": true,
            "resource_type": "product",
            "priority": 1,
            "configuration": {
                "host": "ftp.sanmar.com",
                "username": "<username>",
                "password": "<password>",
                "port": 21,
                "is_zip": true,
                "file_name": "SanMar_EPDD_csv.csv",
                "delimiter": "comma",
                "use_first_row_as_header": true,
                "file_path": "SanMarPDD/SanMar_EPDD_csv.zip",
                "prerequisites": {
                    "product_response": "",
                    "variable_response": {
                        "parent_identifier": "STYLE#"
                    },
                    "main_product_unique_identifier": "STYLE#",
                    "variable_product_unique_identifier": "UNIQUE_KEY"
                }
            }
        },
        {
            "name": "Gallery Images",
            "type": "ftp",
            "is_active": true,
            "is_primary": false,
            "resource_type": "product",
            "priority": 2,
            "configuration": {
                "host": "ftp.sanmar.com",
                "username": "<username>",
                "password": "<password>",
                "port": 21,
                "is_zip": true,
                "protocol": "ftp",
                "delimiter": "comma",
                "file_name": "SanMar_SDL_N.csv",
                "file_path": "SanMarPDD/SanMar_SDL_N.zip",
                "prerequisites": {
                    "product_response": "",
                    "variable_response": {
                        "parent_identifier": "STYLE#"
                    },
                    "main_product_unique_identifier": "STYLE#",
                    "variable_product_unique_identifier": "UNIQUE_KEY"
                },
                "use_first_row_as_header": true
            }
        }
    ],
    "attribute_mapping": [
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "description",
            "supplier_attribute": "PRODUCT_DESCRIPTION",
            "advanced_configuration": null
        },
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "images",
            "supplier_attribute": "FRONT_MODEL_IMAGE_URL",
            "advanced_configuration": null
        },
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "name",
            "supplier_attribute": "PRODUCT_TITLE",
            "advanced_configuration": null
        },
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "regular_price",
            "supplier_attribute": "PIECE_PRICE",
            "advanced_configuration": null
        },
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "sku",
            "supplier_attribute": "STYLE#",
            "advanced_configuration": null
        },
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "stock_quantity",
            "supplier_attribute": "QTY",
            "advanced_configuration": null
        }
    ],
    "operations": [
        {
            "operation": "product-operations",
            "operation_type": "data-sync",
            "is_active": true,
            "configuration": {
                "available_products": {
                    "add": true,
                    "update": true,
                    "update_product_status": false,
                    "product_status": "publish"
                },
                "unavailable_products": {
                    "operation": "none",
                    "products_of": "none"
                }
            },
            "connections": [
                "Products"
            ]
        },
        {
            "operation": "product-operations",
            "operation_type": "data-sync",
            "is_active": true,
            "configuration": {
                "available_products": {
                    "add": false,
                    "update": true,
                    "update_product_status": false,
                    "product_status": "publish"
                },
                "unavailable_products": {
                    "operation": "none",
                    "products_of": "none"
                }
            },
            "connections": [
                "Gallery Images"
            ]
        },
        {
            "operation": "batch",
            "operation_type": "performance-optimization",
            "is_active": true,
            "configuration": {
                "batch_size": 5000
            },
            "connections": [
                "Products"
            ]
        },
        {
            "operation": "batch",
            "operation_type": "performance-optimization",
            "is_active": true,
            "configuration": {
                "batch_size": 10
            },
            "connections": [
                "Gallery Images"
            ]
        },
        {
            "operation": "file-sync",
            "operation_type": "data-sync",
            "is_active": true,
            "configuration": {
                "file_name": "SanMar_EPDD.csv",
                "is_zip": true
            },
            "connections": [
                "Products"
            ]
        }
    ]
}