code: function updateReceiptState( state, receiptId, attributes ) {
  	return Object.assign( {}, state, {
  		[ receiptId ]: Object.assign( {}, initialReceiptState, state[ receiptId ], attributes ),
  	} );
  }
docs: Returns a new state with the given attributes for the given receipt ID.
  
  @param {Object} state current state
  @param {Number} receiptId identifier of the site
  @param {Object} attributes list of attributes and their values
  @returns {Object} the new state