Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created July 4, 2016 13:30
Show Gist options
  • Save hitherejoe/6901748130f4289337be6135eb764086 to your computer and use it in GitHub Desktop.
Save hitherejoe/6901748130f4289337be6135eb764086 to your computer and use it in GitHub Desktop.
{
"classId": "2945482443380251551.ExampleClass1",
"id": "2945482443380251551.ExampleObject1",
"accountId": "1234567890",
"accountName": "Jane Doe",
"barcode": {
"alternateText": "12345",
"type": "qrCode",
"value": "28343E3"
},
"classId": "#{issuerId}.#{classId}",
"id": "#{issuerId}.#{objectId}",
"textModulesData": [{
"header": "Jane's Baconrista Rewards",
"body": "Save more at your local Mountain View store Jane. " +
"You get 1 bacon fat latte for every 5 coffees purchased. " +
"Also just for you, 10% off all pastries in the Mountain View store."
}],
"linksModuleData": {
"uris": [
{
"kind": "walletobjects#uri",
"uri": "http://www.baconrista.com/myaccount?id=1234567890",
"description": "My Baconrista Account"
}]
},
"infoModuleData": {
"labelValueRows": [{
"columns": [{
"label": "Next Reward in",
"value": "2 coffees"
}, {
"label": "Member Since",
"value": "01/15/2013"
}]
}, {
"columns": [{
"label": "Local Store",
"value": "Mountain View"
}]
}],
"showLastUpdateTime": "true"
},
"loyaltyPoints": {
"balance": {
"string": "5000"
},
"label": "Points",
"pointsType": "points"
},
"messages": [{
"actionUri": {
"uri": "http://baconrista.com"
},
"header": "Jane, welcome to Banconrista Rewards!",
"body": "Thanks for joining our program. Show this message to " +
"our barista for your first free coffee on us!",
"image": {
"sourceUri": {
"uri": "http://farm4.staticflickr.com/3723/11177041115_6e6a3b6f49_o.jpg"
}
}
}],
"state": "active",
"version": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment