Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/offerWalletObject.java Secret
Last active Jun 30, 2016

Embed
What would you like to do?
Barcode barcode = new Barcode().setType("upcA").setValue("123456789012")
.setAlternateText("12345");
OfferObject object = new OfferObject()
.setClassId('2945482443380251551.ExampleOfferClass1')
.setId('2945482443380251551.ExampleOfferObject1')
.setVersion(1L)
.setBarcode(barcode)
.setValidTimeInterval(new TimeInterval().setEnd(new DateTime().setDate(new com.google.api.client.util.DateTime(
new Date().getTime() + 263000000000L))))
.setState("active");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.