Skip to content

Instantly share code, notes, and snippets.

@qburst-sreeragh
Last active July 18, 2018 07:15
Show Gist options
  • Save qburst-sreeragh/5e903abb49491e0edfbe9d92b0547716 to your computer and use it in GitHub Desktop.
Save qburst-sreeragh/5e903abb49491e0edfbe9d92b0547716 to your computer and use it in GitHub Desktop.
API_POST_Object = {
img1_h: 10,
im1_w: 10,
img1_url: "",
img2_h: 20,
im2_w: 20,
img2_url: "",
img3_h: 30,
im3_w: 30,
img3_url: ""
}
DB_Object = {
images: {
fp: { height: 10, width: 10, url: "" },
pc: { height: 20, width: 20, url: "" },
sp: { height: 30, width: 30, url: "" }
}
}
//COMMENTS
DB_Object = {
comment_1: {
en_US: 'ABCD',
en_UK: 'BCD'
},
comment_2: {
en_US: 'EFGH',
en_UK: 'FGH'
}
}
//according to locale passed in API
API_GET_Object = { comment1: 'ABCD' }
oldCoupon = {
"brand": "uq",
"region": "kr",
"currency": "KRW",
"amount": 6,
"lowest_price": 70,
}
newCoupon = {
"brand": "uq",
"region": "eu",
locations: {
"ge": {
"currency": "EU",
"amount": 6,
"lowest_price": 70
},
"sw": {
"currency": "SWEK",
"amount": 6,
"lowest_price": 70
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment