Skip to content

Commit

Permalink
created new favico. fixed incorrect if statements in network/lib/samp…
Browse files Browse the repository at this point in the history
…le.js
  • Loading branch information
Bob Dill committed Sep 20, 2018
1 parent c9b1ba0 commit dc75870
Show file tree
Hide file tree
Showing 29 changed files with 111 additions and 111 deletions.
Binary file removed Chapter04/favicon.ico
Binary file not shown.
Binary file modified Chapter05/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter05/favicon.ico
Binary file not shown.
30 changes: 15 additions & 15 deletions Chapter05/network/lib/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file modified Chapter06/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter06/favicon.ico
Binary file not shown.
30 changes: 15 additions & 15 deletions Chapter06/network/lib/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file modified Chapter07/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter07/favicon.ico
Binary file not shown.
30 changes: 15 additions & 15 deletions Chapter07/network/lib/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file modified Chapter08/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter08/favicon.ico
Binary file not shown.
30 changes: 15 additions & 15 deletions Chapter08/network/lib/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file modified Chapter09/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter09/favicon.ico
Binary file not shown.
30 changes: 15 additions & 15 deletions Chapter09/network/lib/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file modified Chapter10/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter10/favicon.ico
Binary file not shown.
30 changes: 15 additions & 15 deletions Chapter10/network/lib/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file modified Chapter11/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter11/favicon.ico
Binary file not shown.
30 changes: 15 additions & 15 deletions Chapter11/network/lib/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file modified Chapter12/HTML/favicon.ico
100755 → 100644
Binary file not shown.
Binary file removed Chapter12/favicon.ico
Binary file not shown.
Loading

0 comments on commit dc75870

Please sign in to comment.