Skip to content

Commit

Permalink
magento#7988 Requested changes updated also reverted last updates in …
Browse files Browse the repository at this point in the history
…checkoutData index
  • Loading branch information
arshad-codilar committed May 3, 2017
1 parent 5bc1a22 commit e3b22e4
Showing 1 changed file with 27 additions and 29 deletions.
56 changes: 27 additions & 29 deletions app/code/Magento/Checkout/view/frontend/web/js/checkout-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,21 @@ define([

if ($.isEmptyObject(getData())) {
checkoutData = {
'selectedShippingAddress': null, // Selected shipping address pullled from local storage (Persistence)
'shippingAddressFromData': null, // Shipping address pullled from local storage (Persistence)
'newCustomerShippingAddress': null, // Shipping address pullled from local storage for new customer (Persistence)
'selectedShippingRate': null, // Shipping rate pulled from local storage (Persistence)
'selectedPaymentMethod': null, // Payment method pulled from local storage (Persistence)
'selectedBillingAddress': null, // Selected billing address pullled from local storage (Persistence)
'billingAddressFromData': null, // Billing address pullled from local storage (Persistence)
'newCustomerBillingAddress': null, // Billing address pullled from local storage for new customer (Persistence)
'validatedEmailValue': null, // Validated email address from local storage (Persistence)
'inputFieldEmailValue' : null // Email input field value from local storage (Persistence)
'selectedShippingAddress': null, //Selected shipping address pullled from persistence storage.
'shippingAddressFromData': null, //Shipping address pullled from persistence storage.
'newCustomerShippingAddress': null, //Shipping address pullled from persistence storage for new customer.
'selectedShippingRate': null, //Shipping rate pulled from persistence storage.
'selectedPaymentMethod': null, //Payment method pulled from persistence storage.
'selectedBillingAddress': null, //Selected billing address pullled from persistence storage.
'billingAddressFromData': null, //Billing address pullled from persistence storage.
'newCustomerBillingAddress': null //Billing address pullled from persistence storage for new customer.
};
saveData(checkoutData);
}

return {
/**
* Setting the selected shipping address pulled from local storage
* Setting the selected shipping address pulled from persistence storage.
*
* @param {Object} data
*/
Expand All @@ -61,7 +59,7 @@ define([
},

/**
* Pulling the selected shipping address from local storage
* Pulling the selected shipping address from persistence storage.
*
* @return {*}
*/
Expand All @@ -70,7 +68,7 @@ define([
},

/**
* Setting the shipping address pulled from local storage
* Setting the shipping address pulled from persistence storage.
*
* @param {Object} data
*/
Expand All @@ -82,7 +80,7 @@ define([
},

/**
* Pulling the shipping address from local storage
* Pulling the shipping address from persistence storage.
*
* @return {*}
*/
Expand All @@ -91,7 +89,7 @@ define([
},

/**
* Setting the shipping address pulled from local storage for new customer
* Setting the shipping address pulled from persistence storage for new customer.
*
* @param {Object} data
*/
Expand All @@ -103,7 +101,7 @@ define([
},

/**
* Pulling the shipping address from local storage for new customer
* Pulling the shipping address from persistence storage for new customer.
*
* @return {*}
*/
Expand All @@ -112,7 +110,7 @@ define([
},

/**
* Setting the selected shipping rate pulled from local storage
* Setting the selected shipping rate pulled from persistence storage.
*
* @param {Object} data
*/
Expand All @@ -133,7 +131,7 @@ define([
},

/**
* Setting the selected payment method pulled from local storage
* Setting the selected payment method pulled from persistence storage.
*
* @param {Object} data
*/
Expand All @@ -145,7 +143,7 @@ define([
},

/**
* Pulling the payment method from local storage
* Pulling the payment method from persistence storage.
*
* @return {*}
*/
Expand All @@ -154,7 +152,7 @@ define([
},

/**
* Setting the selected billing address pulled from local storage
* Setting the selected billing address pulled from persistence storage.
*
* @param {Object} data
*/
Expand All @@ -166,7 +164,7 @@ define([
},

/**
* Pulling the selected billing address from local storage
* Pulling the selected billing address from persistence storage.
*
* @return {*}
*/
Expand All @@ -175,7 +173,7 @@ define([
},

/**
* Setting the billing address pulled from local storage
* Setting the billing address pulled from persistence storage.
*
* @param {Object} data
*/
Expand All @@ -187,15 +185,15 @@ define([
},

/**
* Pulling the billing address from local storage
* Pulling the billing address from persistence storage.
* @return {*}
*/
getBillingAddressFromData: function () {
return getData().billingAddressFromData;
},

/**
* Setting the billing address pulled from local storage for new customer
* Setting the billing address pulled from persistence storage for new customer.
*
* @param {Object} data
*/
Expand All @@ -207,7 +205,7 @@ define([
},

/**
* Pulling the billing address from local storage for new customer
* Pulling the billing address from persistence storage for new customer.
*
* @return {*}
*/
Expand All @@ -216,7 +214,7 @@ define([
},

/**
* Pulling the email address from local storage
* Pulling the email address from persistence storage.
*
* @return {*}
*/
Expand All @@ -227,7 +225,7 @@ define([
},

/**
* Setting the email address pulled from local storage
* Setting the email address pulled from persistence storage.
*
* @param {String} email
*/
Expand All @@ -239,7 +237,7 @@ define([
},

/**
* Pulling the email input field value from local storage
* Pulling the email input field value from persistence storage.
*
* @return {*}
*/
Expand All @@ -250,7 +248,7 @@ define([
},

/**
* Setting the email input field value pulled from local storage
* Setting the email input field value pulled from persistence storage.
*
* @param {String} email
*/
Expand Down

0 comments on commit e3b22e4

Please sign in to comment.