Comments (2)
If I mess with func MacStudioDataFor Country(), and set the orderedSKUs list to something non-sensical, I get the same error so the problem must be with the specific SKU numbers for Mac Studio and Studio Display.
If I set the country to US and choose a US Apple Store with either the Mac Studio or Studio Display product type, Inventory Checker works fine once again. That must mean the Canadian SKU numbers are incorrect for the Mac Studio and Studio Display.
from inventory-checker-app.
Ok, looks like this problem is fixed if you use the country.altSkuCode for both the StudioDIsplay and MacStudio. So fixed code looks like this:
func StudioDisplayForCountry(_ country: Country) -> SKUData {
let skuCode = country.altSkuCode ?? country.skuCode
let orderedSkus = [
"MK0U3\(skuCode)/A",
"MK0Q3\(skuCode)/A",
"MMYQ3\(skuCode)/A",
"MMYW3\(skuCode)/A",
"MMYV3\(skuCode)/A",
"MMYX3\(skuCode)/A"
]
let skusToName = [
"MK0U3\(skuCode)/A": "Studio Display - Standard glass - Tilt-adjustable stand",
"MK0Q3\(skuCode)/A": "Studio Display - Standard glass - Tilt- and height-adjustable stand",
"MMYQ3\(skuCode)/A": "Studio Display - Standard glass - VESA mount adapter",
"MMYW3\(skuCode)/A": "Studio Display - Nano-texture glass - Tilt-adjustable stand",
"MMYV3\(skuCode)/A": "Studio Display - Nano-texture glass - Tilt- and height-adjustable stand",
"MMYX3\(skuCode)/A": "Studio Display - Nano-texture glass - VESA mount adapter"
]
return SKUData(orderedSKUs: orderedSkus, lookup: skusToName)
}
func MacStudioDataForCountry(_ country: Country) -> SKUData {
let skuCode = country.altSkuCode ?? country.skuCode
let orderedSkus = [
"MJMV3\(skuCode)/A",
"MJMW3\(skuCode)/A"
]
let skusToName = [
"MJMV3\(skuCode)/A": "M1 Max (10c CPU, 24c GPU), 32GB RAM, 512GB SSD",
"MJMW3\(skuCode)/A": "M1 Ultra (20c CPU, 48c GPU), 64GB RAM, 1TB SSD"
]
return SKUData(orderedSKUs: orderedSkus, lookup: skusToName)
}
from inventory-checker-app.
Related Issues (20)
- Support querying for new iPad Pro M2
- Notification text should only account for preferred models
- Option to specify the distance for the "Nearby" stores check HOT 2
- Notification says "Preferred Model found!" instead of Product name HOT 1
- Only notify when inventory is found HOT 2
- App reporting that Apple's API is down
- Click on the available product to open the product in your browser HOT 1
- Turkey Support
- Homepod support HOT 1
- M2 Macbook Pro models not showing up.
- AirPods Max HOT 1
- Switzerland
- AirPods Max HOT 1
- How to find specs for latest products to update the app HOT 1
- Add Menu Bar view on macOS
- New iPhone 15 models HOT 3
- Product Request HOT 1
- The definition of nearby stores seems rather broad HOT 1
- Does not allow searching for Apple Vision Pro inventory HOT 1
- New macbook air m3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inventory-checker-app.