Skip to content

Commit

Permalink
feat(store): add Otto (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnk93 committed Dec 2, 2020
1 parent 2fc018b commit af96c5f
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -200,6 +200,7 @@ environment variables are **optional**._
| Nvidia | `nvidia`|
| Nvidia (API) | `nvidia-api`|
| Office Depot | `officedepot`|
| Otto | `otto`|
| Overclockers (UK) | `overclockers`|
| PCComponentes (ES) | `pccomponentes`|
| PlayStation | `playstation`|
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -58,6 +58,7 @@ import {Novatech} from './novatech';
import {Nvidia} from './nvidia';
import {NvidiaApi} from './nvidia-api';
import {OfficeDepot} from './officedepot';
import {Otto} from './otto';
import {Overclockers} from './overclockers';
import {PCComponentes} from './pccomponentes';
import {PlayStation} from './playstation';
Expand Down Expand Up @@ -138,6 +139,7 @@ export const storeList = new Map([
[Nvidia.name, Nvidia],
[NvidiaApi.name, NvidiaApi],
[OfficeDepot.name, OfficeDepot],
[Otto.name, Otto],
[Overclockers.name, Overclockers],
[PCComponentes.name, PCComponentes],
[PlayStation.name, PlayStation],
Expand Down
66 changes: 66 additions & 0 deletions src/store/model/otto.ts
@@ -0,0 +1,66 @@
import {Store} from './store';

export const Otto: Store = {
labels: {
inStock: [
{
container:
'button.prd_ordering__button.p_btn150--1st.js_product_addToBasket',
text: ['In den Warenkorb']
}
],
maxPrice: {
container: '#normalPriceAmount',
euroFormat: false
},
outOfStock: {
container: 'div.p_message.p_message--hint > strong',
text: ['Deinen gew眉nschten Artikel k枚nnen wir leider nicht mehr liefern']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.otto.de/p/playstation-5-medienfernbedienung-1170617135#variationId=1170617136'
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url:
'https://www.otto.de/p/playstation-5-1136008456/#variationId=1136008459'
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url:
'https://www.otto.de/p/playstation-5-1154028000#variationId=1154028001'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url:
'https://www.otto.de/p/playstation-5-digital-edition-1161042793#variationId=1161042794'
},
{
brand: 'microsoft',
model: 'xbox series s',
series: 'xboxss',
url:
'https://www.otto.de/p/xbox-series-s-1229056876/#variationId=1229056877'
},
{
brand: 'microsoft',
model: 'xbox series x',
series: 'xboxsx',
url:
'https://www.otto.de/p/xbox-series-x-1229057353#variationId=1229057354'
}
],
name: 'otto'
};

0 comments on commit af96c5f

Please sign in to comment.