This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"asnNumber": 8850 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"https://authorized_vendors.vendorportal.com": [], | |
"https://authorized_vendor_ids.vendorportal.com": [ | |
5124 | |
], | |
"https://authorized_payee_ids.vendorportal.com": [], | |
"iss": "https://modaoperandi-dev.auth0.com/", | |
"sub": "auth0|aaa749143f8700e849aaaaa", | |
"aud": [ | |
"https://vendor-service.modaoperandi.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"styleNumber": "AST-RES15+++B", | |
"styleName": "Astere Printed Satin Dress", | |
"vendorColor": "multi", | |
"skus": [ | |
{ | |
"skuSize": "UK 8", | |
"quantity": 1, | |
"quantityReceived": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"items": [ | |
{ | |
"styleNumber": "SAAD-325", | |
"styleName": "Sam Addams", | |
"color": "Ivory Black", | |
"styles": [ | |
{ | |
"size": "AU 0", | |
"quantityReceived": 4, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"styles": [ | |
{ | |
"styleNumber": "SAAD-325", | |
"styleName": "Sam Addams", | |
"color": "Ivory Black", | |
"skus": [ | |
{ | |
"size": "AU 0", | |
"quantityReceived": 4, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
po.purchase_order_number, | |
vs.color, | |
vs.name, | |
vs.style_code, | |
poi.size, | |
poi.received_quantity, | |
poi.quantity | |
FROM mojo_development.vendor_purchase_orders po |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"sku": "SK113823", | |
"quantity": 8 | |
}, | |
{ | |
"sku": "SK18", | |
"quantity": 3 | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error" : { | |
"code" : "SHIPMENT.POSTAGE.FAILURE", | |
"message" : "The country associated with Shippers ShipperNumber must be the same as the shipments Shippers country.", | |
"errors" : [ ] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"fromAddress": { | |
"company": "Cool Brand", | |
"name": "Vendor Portman", | |
"street1": "1A Larkspur Cres", | |
"street2": "", | |
"city": "St. Albert", | |
"state": "AB", | |
"zipCode": "T8N2M4", | |
"country": "CA", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void dealWithFile(String resourceName) | |
throws URISyntaxException, IOException { | |
URL url = Resources.getResource(resourceName); | |
URI uri = url.toURI(); | |
Path path = Paths.get(uri); | |
// if file is relatively small | |
List<String> smallData = Files.readAllLines(path); | |
// if file is relatively large | |
Stream<String> bigData = Files.lines(path); | |
} |