I did not get all of them, but added Silver back and also the 24GB SKUs. Not sure why the SKU pattern changes so I had to include extra bits after the (country.skuCode) in some cases
func M2MBAirDataForCountry(_ country: Country) -> SKUData {
let orderedSkus = [
// 8GB/256GB
"MLY33\(country.skuCode)/A",
"MLXW3\(country.skuCode)/A",
"MLY13\(country.skuCode)/A",
"MLXY3\(country.skuCode)/A",
// 8GB/512GB
"MLY43\(country.skuCode)/A",
"MLXX3\(country.skuCode)/A",
"MLY23\(country.skuCode)/A",
"MLY03\(country.skuCode)/A",
// 16GB/1TB
"MN703\(country.skuCode)A13/A",
"MNQP3\(country.skuCode)A4/A",
"MN6Y3\(country.skuCode)A4/A",
"MLY03\(country.skuCode)A4/A",
// 24GB/1TB
"MLY43\(country.skuCode)A7/A",
"MLXX3\(country.skuCode)A16/A",
"MLY23\(country.skuCode)A7/A",
"MLY03\(country.skuCode)A16/A",
// 24GB/2TB
"MLY43\(country.skuCode)A17/A",
"MLXX3\(country.skuCode)A8/A",
"MLY23\(country.skuCode)A8/A",
"MLY03\(country.skuCode)A17/A"
]
let skusToName = [
// 8GB/256GB
"MLY33\(country.skuCode)/A": "M2 (8c CPU, 8c GPU) 8GB/256GB Midnight",
"MLXW3\(country.skuCode)/A": "M2 (8c CPU, 8c GPU) 8GB/256GB Space Gray",
"MLY13\(country.skuCode)/A": "M2 (8c CPU, 8c GPU) 8GB/256GB Starlight",
"MLXY3\(country.skuCode)/A": "M2 (8c CPU, 8c GPU) 8GB/256GB Silver",
// 8GB/512GB
"MLY43\(country.skuCode)/A": "M2 (8c CPU, 10c GPU) 8GB/512GB Midnight",
"MLXX3\(country.skuCode)/A": "M2 (8c CPU, 10c GPU) 8GB/512GB Space Gray",
"MLY23\(country.skuCode)/A": "M2 (8c CPU, 10c GPU) 8GB/512GB Starlight",
"MLY03\(country.skuCode)/A": "M2 (8c CPU, 10c GPU) 8GB/512GB Silver",
// 16GB/1TB
"MN703\(country.skuCode)A13/A": "M2 (8c CPU, 10c GPU) 16GB/1TB Midnight",
"MNQP3\(country.skuCode)A4/A": "M2 (8c CPU, 10c GPU) 16GB/1TB Space Gray",
"MN6Y3\(country.skuCode)A4/A": "M2 (8c CPU, 10c GPU) 16GB/1TB Starlight",
"MLY03\(country.skuCode)A4/A": "M2 (8c CPU, 10c GPU) 16GB/1TB Silver",
// 24GB/1TB
"MLY43\(country.skuCode)A7/A": "M2 (8c CPU, 10c GPU) 24GB/1TB Midnight",
"MLXX3\(country.skuCode)A16/A": "M2 (8c CPU, 10c GPU) 24GB/1TB Space Gray",
"MLY23\(country.skuCode)A7/A": "M2 (8c CPU, 10c GPU) 24GB/1TB Starlight",
"MLY03\(country.skuCode)A16/A": "M2 (8c CPU, 10c GPU) 24GB/1TB Silver",
// 24GB/2TB
"MLY43\(country.skuCode)A17/A": "M2 (8c CPU, 10c GPU) 24GB/2TB Midnight",
"MLXX3\(country.skuCode)A8/A": "M2 (8c CPU, 10c GPU) 24GB/2TB Space Gray",
"MLY23\(country.skuCode)A8/A": "M2 (8c CPU, 10c GPU) 24GB/2TB Starlight",
"MLY03\(country.skuCode)A17/A": "M2 (8c CPU, 10c GPU) 24GB/2TB Silver"
]
return SKUData(orderedSKUs: orderedSkus, lookup: skusToName)