diff --git a/Chapter04/favicon.ico b/Chapter04/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter04/favicon.ico and /dev/null differ diff --git a/Chapter05/HTML/favicon.ico b/Chapter05/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter05/HTML/favicon.ico and b/Chapter05/HTML/favicon.ico differ diff --git a/Chapter05/favicon.ico b/Chapter05/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter05/favicon.ico and /dev/null differ diff --git a/Chapter05/network/lib/sample.js b/Chapter05/network/lib/sample.js index e16ab45..cf652c9 100644 --- a/Chapter05/network/lib/sample.js +++ b/Chapter05/network/lib/sample.js @@ -160,11 +160,11 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -175,11 +175,11 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -190,11 +190,11 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a dispute by the buyer diff --git a/Chapter06/HTML/favicon.ico b/Chapter06/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter06/HTML/favicon.ico and b/Chapter06/HTML/favicon.ico differ diff --git a/Chapter06/favicon.ico b/Chapter06/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter06/favicon.ico and /dev/null differ diff --git a/Chapter06/network/lib/sample.js b/Chapter06/network/lib/sample.js index d8f70ae..cf20b90 100644 --- a/Chapter06/network/lib/sample.js +++ b/Chapter06/network/lib/sample.js @@ -159,11 +159,11 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -174,11 +174,11 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -189,11 +189,11 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a dispute by the buyer diff --git a/Chapter07/HTML/favicon.ico b/Chapter07/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter07/HTML/favicon.ico and b/Chapter07/HTML/favicon.ico differ diff --git a/Chapter07/favicon.ico b/Chapter07/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter07/favicon.ico and /dev/null differ diff --git a/Chapter07/network/lib/sample.js b/Chapter07/network/lib/sample.js index d8f70ae..cf20b90 100644 --- a/Chapter07/network/lib/sample.js +++ b/Chapter07/network/lib/sample.js @@ -159,11 +159,11 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -174,11 +174,11 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -189,11 +189,11 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a dispute by the buyer diff --git a/Chapter08/HTML/favicon.ico b/Chapter08/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter08/HTML/favicon.ico and b/Chapter08/HTML/favicon.ico differ diff --git a/Chapter08/favicon.ico b/Chapter08/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter08/favicon.ico and /dev/null differ diff --git a/Chapter08/network/lib/sample.js b/Chapter08/network/lib/sample.js index ed6499f..0d948b6 100644 --- a/Chapter08/network/lib/sample.js +++ b/Chapter08/network/lib/sample.js @@ -159,11 +159,11 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -174,11 +174,11 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -189,11 +189,11 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a dispute by the buyer diff --git a/Chapter09/HTML/favicon.ico b/Chapter09/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter09/HTML/favicon.ico and b/Chapter09/HTML/favicon.ico differ diff --git a/Chapter09/favicon.ico b/Chapter09/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter09/favicon.ico and /dev/null differ diff --git a/Chapter09/network/lib/sample.js b/Chapter09/network/lib/sample.js index ed6499f..0d948b6 100644 --- a/Chapter09/network/lib/sample.js +++ b/Chapter09/network/lib/sample.js @@ -159,11 +159,11 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -174,11 +174,11 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -189,11 +189,11 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a dispute by the buyer diff --git a/Chapter10/HTML/favicon.ico b/Chapter10/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter10/HTML/favicon.ico and b/Chapter10/HTML/favicon.ico differ diff --git a/Chapter10/favicon.ico b/Chapter10/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter10/favicon.ico and /dev/null differ diff --git a/Chapter10/network/lib/sample.js b/Chapter10/network/lib/sample.js index ed6499f..0d948b6 100644 --- a/Chapter10/network/lib/sample.js +++ b/Chapter10/network/lib/sample.js @@ -159,11 +159,11 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -174,11 +174,11 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -189,11 +189,11 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a dispute by the buyer diff --git a/Chapter11/HTML/favicon.ico b/Chapter11/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter11/HTML/favicon.ico and b/Chapter11/HTML/favicon.ico differ diff --git a/Chapter11/favicon.ico b/Chapter11/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter11/favicon.ico and /dev/null differ diff --git a/Chapter11/network/lib/sample.js b/Chapter11/network/lib/sample.js index ed6499f..0d948b6 100644 --- a/Chapter11/network/lib/sample.js +++ b/Chapter11/network/lib/sample.js @@ -159,11 +159,11 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -174,11 +174,11 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a payment to the seller @@ -189,11 +189,11 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } - return getAssetRegistry('org.acme.Z2BTestNetwork.Order') - .then(function (assetRegistry) { - return assetRegistry.update(purchase.order); - }); + return getAssetRegistry('org.acme.Z2BTestNetwork.Order') + .then(function (assetRegistry) { + return assetRegistry.update(purchase.order); + }); + } } /** * Record a dispute by the buyer diff --git a/Chapter12/HTML/favicon.ico b/Chapter12/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter12/HTML/favicon.ico and b/Chapter12/HTML/favicon.ico differ diff --git a/Chapter12/favicon.ico b/Chapter12/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter12/favicon.ico and /dev/null differ diff --git a/Chapter12/network/lib/sample.js b/Chapter12/network/lib/sample.js index 7a0c946..174b4db 100644 --- a/Chapter12/network/lib/sample.js +++ b/Chapter12/network/lib/sample.js @@ -196,7 +196,6 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } return getAssetRegistry('org.acme.Z2BTestNetwork.Order') .then(function (assetRegistry) { return assetRegistry.update(purchase.order) @@ -206,6 +205,7 @@ function RequestPayment(purchase) { return (_res); }).catch(function(error){return(error);}); }); + } } /** * Record a payment to the seller @@ -216,7 +216,6 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } return getAssetRegistry('org.acme.Z2BTestNetwork.Order') .then(function (assetRegistry) { return assetRegistry.update(purchase.order) @@ -226,6 +225,7 @@ function AuthorizePayment(purchase) { return (_res); }).catch(function(error){return(error);}); }); + } } /** * Record a payment to the seller @@ -236,7 +236,6 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } return getAssetRegistry('org.acme.Z2BTestNetwork.Order') .then(function (assetRegistry) { return assetRegistry.update(purchase.order) @@ -246,6 +245,7 @@ function Pay(purchase) { return (_res); }).catch(function(error){return(error);}); }); + } } /** * Record a dispute by the buyer diff --git a/Chapter13/HTML/favicon.ico b/Chapter13/HTML/favicon.ico old mode 100755 new mode 100644 index fc9e25d..3dbe425 Binary files a/Chapter13/HTML/favicon.ico and b/Chapter13/HTML/favicon.ico differ diff --git a/Chapter13/favicon.ico b/Chapter13/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter13/favicon.ico and /dev/null differ diff --git a/Chapter13/network/lib/sample.js b/Chapter13/network/lib/sample.js index 7a0c946..174b4db 100644 --- a/Chapter13/network/lib/sample.js +++ b/Chapter13/network/lib/sample.js @@ -196,7 +196,6 @@ function RequestPayment(purchase) { {purchase.order.status = JSON.stringify(orderStatus.PayRequest); purchase.order.financeCo = purchase.financeCo; purchase.order.paymentRequested = new Date().toISOString(); - } return getAssetRegistry('org.acme.Z2BTestNetwork.Order') .then(function (assetRegistry) { return assetRegistry.update(purchase.order) @@ -206,6 +205,7 @@ function RequestPayment(purchase) { return (_res); }).catch(function(error){return(error);}); }); + } } /** * Record a payment to the seller @@ -216,7 +216,6 @@ function AuthorizePayment(purchase) { if ((JSON.parse(purchase.order.status).text == orderStatus.PayRequest.text ) || (JSON.parse(purchase.order.status).text == orderStatus.Resolve.text )) {purchase.order.status = JSON.stringify(orderStatus.Authorize); purchase.order.approved = new Date().toISOString(); - } return getAssetRegistry('org.acme.Z2BTestNetwork.Order') .then(function (assetRegistry) { return assetRegistry.update(purchase.order) @@ -226,6 +225,7 @@ function AuthorizePayment(purchase) { return (_res); }).catch(function(error){return(error);}); }); + } } /** * Record a payment to the seller @@ -236,7 +236,6 @@ function Pay(purchase) { if (JSON.parse(purchase.order.status).text == orderStatus.Authorize.text ) {purchase.order.status = JSON.stringify(orderStatus.Paid); purchase.order.paid = new Date().toISOString(); - } return getAssetRegistry('org.acme.Z2BTestNetwork.Order') .then(function (assetRegistry) { return assetRegistry.update(purchase.order) @@ -246,6 +245,7 @@ function Pay(purchase) { return (_res); }).catch(function(error){return(error);}); }); + } } /** * Record a dispute by the buyer diff --git a/Chapter14/favicon.ico b/Chapter14/favicon.ico deleted file mode 100755 index fc9e25d..0000000 Binary files a/Chapter14/favicon.ico and /dev/null differ